agmon 0.1.0 → 0.1.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/bin/cli.js +15 -4
- package/package.json +4 -6
- package/src/app/page.js +2 -15
package/bin/cli.js
CHANGED
|
@@ -5,6 +5,9 @@ import fs from "node:fs";
|
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { createRequire } from "node:module";
|
|
9
|
+
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
8
11
|
|
|
9
12
|
const __filename = fileURLToPath(import.meta.url);
|
|
10
13
|
const __dirname = path.dirname(__filename);
|
|
@@ -64,6 +67,14 @@ function getDaemonPid() {
|
|
|
64
67
|
// Commands
|
|
65
68
|
// -------------------------------------------------------------
|
|
66
69
|
|
|
70
|
+
function getNextBin() {
|
|
71
|
+
try {
|
|
72
|
+
return require.resolve("next/dist/bin/next");
|
|
73
|
+
} catch {
|
|
74
|
+
return path.join(PKG_ROOT, "node_modules", ".bin", "next");
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
67
78
|
function runForeground(port, open = true, isService = false) {
|
|
68
79
|
if (!isService) {
|
|
69
80
|
const existingPid = getDaemonPid();
|
|
@@ -79,8 +90,8 @@ function runForeground(port, open = true, isService = false) {
|
|
|
79
90
|
console.log(`📁 Project Root: ${PKG_ROOT}`);
|
|
80
91
|
console.log(`🌐 Dashboard: \x1b[36mhttp://localhost:${port}\x1b[0m\n`);
|
|
81
92
|
|
|
82
|
-
const nextBin =
|
|
83
|
-
const child = spawn(nextBin,
|
|
93
|
+
const nextBin = getNextBin();
|
|
94
|
+
const child = spawn(process.execPath, [nextBin, "dev", "--port", String(port)], {
|
|
84
95
|
cwd: PKG_ROOT,
|
|
85
96
|
stdio: "inherit",
|
|
86
97
|
env: { ...process.env, PORT: String(port) },
|
|
@@ -108,9 +119,9 @@ function startDaemon(port) {
|
|
|
108
119
|
console.log(`\x1b[32m🚀 Starting AGMon in Background Daemon Mode on port ${port}...\x1b[0m`);
|
|
109
120
|
|
|
110
121
|
const out = fs.openSync(LOG_FILE, "a");
|
|
111
|
-
const nextBin =
|
|
122
|
+
const nextBin = getNextBin();
|
|
112
123
|
|
|
113
|
-
const child = spawn(nextBin,
|
|
124
|
+
const child = spawn(process.execPath, [nextBin, "dev", "--port", String(port)], {
|
|
114
125
|
cwd: PKG_ROOT,
|
|
115
126
|
detached: true,
|
|
116
127
|
stdio: ["ignore", out, out],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agmon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Realtime AI Agent Office & Activity Visualizer for Antigravity, Claude Code & AI CLIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -22,14 +22,12 @@
|
|
|
22
22
|
"lint": "eslint ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@tailwindcss/postcss": "^4.1.18",
|
|
25
26
|
"next": "^16.1.6",
|
|
26
27
|
"pixi.js": "^8.22.0",
|
|
27
|
-
"react": "19.2.4",
|
|
28
|
-
"react-dom": "19.2.4"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@tailwindcss/postcss": "^4.1.18",
|
|
32
28
|
"postcss": "^8.5.6",
|
|
29
|
+
"react": "19.2.4",
|
|
30
|
+
"react-dom": "19.2.4",
|
|
33
31
|
"tailwindcss": "^4.1.18"
|
|
34
32
|
},
|
|
35
33
|
"keywords": [
|
package/src/app/page.js
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import dynamic from "next/dynamic";
|
|
4
3
|
import { useMemo, useState } from "react";
|
|
4
|
+
import OfficeCanvas from "@/components/factory/office-canvas";
|
|
5
5
|
import { useFactoryTraces } from "@/lib/useFactoryTraces";
|
|
6
6
|
import { buildOffice } from "@/components/factory/scene/office-layout";
|
|
7
7
|
import AgentPanel from "@/components/factory/AgentPanel";
|
|
8
8
|
import UpdateNotification from "@/components/UpdateNotification";
|
|
9
9
|
|
|
10
|
-
// Dynamic import of PixiJS Canvas to avoid WebGL execution during SSR
|
|
11
|
-
const OfficeCanvas = dynamic(() => import("@/components/factory/office-canvas"), {
|
|
12
|
-
ssr: false,
|
|
13
|
-
loading: () => (
|
|
14
|
-
<div className="flex h-full w-full items-center justify-center bg-[#080d14] text-slate-500">
|
|
15
|
-
<div className="flex flex-col items-center gap-2">
|
|
16
|
-
<div className="h-8 w-8 animate-spin rounded-full border-2 border-emerald-500 border-t-transparent" />
|
|
17
|
-
<span className="text-xs font-mono">Initializing Agent Factory Scene...</span>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
10
|
const PRESETS = [
|
|
24
11
|
{ id: "cases", label: "Edge Cases" },
|
|
25
12
|
{ id: "storm", label: "Storm (30 Agents)" },
|
|
@@ -58,7 +45,7 @@ export default function FactoryPage() {
|
|
|
58
45
|
AGMON
|
|
59
46
|
</span>
|
|
60
47
|
<span className="rounded-full bg-slate-800 px-2 py-0.5 text-[10px] font-semibold text-slate-400 uppercase tracking-wider">
|
|
61
|
-
v0.1.
|
|
48
|
+
v0.1.2
|
|
62
49
|
</span>
|
|
63
50
|
</div>
|
|
64
51
|
<p className="text-[11px] text-slate-400">AI Agent Office & Activity Visualizer</p>
|