@8gi-foundation/8gent-code 0.12.1 → 0.17.0
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/LICENSE +1 -1
- package/README.md +83 -17
- package/dist/cli.js +18638 -3154
- package/dist/sounds/splash-narration.mp3 +0 -0
- package/package.json +21 -5
- package/scripts/postinstall.js +38 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8gi-foundation/8gent-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Autonomous coding agent. Runs locally on Ollama. Zero API cost. Your code stays on your machine. Open source.",
|
|
6
6
|
"type": "module",
|
|
@@ -14,12 +14,15 @@
|
|
|
14
14
|
"dist/skills",
|
|
15
15
|
"dist/sounds",
|
|
16
16
|
"bin/8gent-run.js",
|
|
17
|
+
"scripts/postinstall.js",
|
|
17
18
|
"README.md",
|
|
18
19
|
"LICENSE"
|
|
19
20
|
],
|
|
20
21
|
"scripts": {
|
|
21
22
|
"start": "bun run packages/eight/index.ts",
|
|
22
23
|
"agent": "bun run packages/eight/index.ts",
|
|
24
|
+
"daemon": "bun run packages/daemon/index.ts",
|
|
25
|
+
"daemon:local": "bun run packages/daemon/scripts/start-local.ts",
|
|
23
26
|
"tui": "bun run apps/tui/src/index.tsx",
|
|
24
27
|
"pet": "bash apps/lil-eight/build.sh && open 'apps/lil-eight/build/Lil Eight.app'",
|
|
25
28
|
"pet:build": "bash apps/lil-eight/build.sh",
|
|
@@ -28,20 +31,30 @@
|
|
|
28
31
|
"pet:log": "tail -f ~/.8gent/lil-eight.log",
|
|
29
32
|
"install-wizard": "bun run scripts/install-wizard.tsx",
|
|
30
33
|
"install:apple-foundation": "bun run scripts/install-apple-foundation.ts",
|
|
34
|
+
"build:eyes-bridge": "bash packages/eyes/native/build.sh",
|
|
31
35
|
"cli": "bun run bin/8gent.ts",
|
|
32
36
|
"dev": "next dev",
|
|
33
|
-
"build": "bun build bin/8gent.ts --outfile dist/cli.js --target bun && node
|
|
37
|
+
"build": "bun build bin/8gent.ts --outfile dist/cli.js --target bun && node scripts/build-finalize.js",
|
|
34
38
|
"build:tui": "bun build apps/tui/src/index.tsx --outdir dist/tui --target node",
|
|
35
39
|
"prepublishOnly": "npm run build",
|
|
36
|
-
"postinstall": "node
|
|
40
|
+
"postinstall": "node scripts/postinstall.js",
|
|
37
41
|
"test": "bun test packages/ apps/",
|
|
38
42
|
"test:benchmarks": "bun test benchmarks/",
|
|
39
43
|
"test:models": "bun scripts/test-models.ts",
|
|
40
44
|
"test:models:providers": "bun scripts/test-models.ts --providers",
|
|
45
|
+
"cua:setup": "bun run packages/eight/scripts/cua-setup.ts",
|
|
46
|
+
"cua:run": "bun run packages/eight/scripts/cua-run.ts",
|
|
41
47
|
"smoke": "bun scripts/smoke.ts",
|
|
42
48
|
"smoke:fast": "bun scripts/smoke.ts --skip-network",
|
|
43
49
|
"smoke:strict": "bun scripts/smoke.ts --strict",
|
|
44
|
-
"
|
|
50
|
+
"verify:presets": "bun scripts/verify-presets.ts",
|
|
51
|
+
"verify:presets:strict": "bun scripts/verify-presets.ts --strict",
|
|
52
|
+
"lint": "biome lint .",
|
|
53
|
+
"lint:fix": "biome lint --write .",
|
|
54
|
+
"format": "biome format --write .",
|
|
55
|
+
"format:check": "biome format .",
|
|
56
|
+
"check": "biome check .",
|
|
57
|
+
"check:fix": "biome check --write .",
|
|
45
58
|
"typecheck": "tsc --noEmit",
|
|
46
59
|
"typecheck:tui": "tsc --noEmit -p apps/tui/tsconfig.json",
|
|
47
60
|
"check:harness": "tsc --noEmit -p tsconfig.harness.json",
|
|
@@ -73,8 +86,10 @@
|
|
|
73
86
|
"@napi-rs/canvas": "^0.1.97",
|
|
74
87
|
"@types/bun": "latest",
|
|
75
88
|
"@types/jsdom": "^28.0.0",
|
|
89
|
+
"@types/pngjs": "^6.0.5",
|
|
76
90
|
"@types/ws": "^8.18.1",
|
|
77
91
|
"bmad-method": "^6.1.0",
|
|
92
|
+
"react-doctor": "^0.1.4",
|
|
78
93
|
"typescript": "^5.0.0"
|
|
79
94
|
},
|
|
80
95
|
"dependencies": {
|
|
@@ -97,6 +112,7 @@
|
|
|
97
112
|
"next-themes": "^0.4.6",
|
|
98
113
|
"node-pty": "^1.1.0",
|
|
99
114
|
"pdf-parse": "^2.4.5",
|
|
115
|
+
"pngjs": "^7.0.0",
|
|
100
116
|
"sharp": "^0.34.5",
|
|
101
117
|
"stripe": "^17.7.0",
|
|
102
118
|
"tree-sitter": "^0.21.0",
|
|
@@ -110,7 +126,7 @@
|
|
|
110
126
|
"publishConfig": {
|
|
111
127
|
"access": "public"
|
|
112
128
|
},
|
|
113
|
-
"author": "
|
|
129
|
+
"author": "8GI Foundation",
|
|
114
130
|
"license": "Apache-2.0",
|
|
115
131
|
"repository": {
|
|
116
132
|
"type": "git",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Cross-platform postinstall: welcome message, optional bmad-method init,
|
|
3
|
+
// and (macOS only) a best-effort build of the bundled native AX bridge so
|
|
4
|
+
// the @8gent/eyes ax-native backend is ready on first use.
|
|
5
|
+
import { execFileSync, spawnSync } from "node:child_process";
|
|
6
|
+
import { existsSync } from "node:fs";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { dirname, join } from "node:path";
|
|
9
|
+
|
|
10
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
|
|
12
|
+
console.log(
|
|
13
|
+
"\n✨ 8gent installed! Just type: 8gent\n\n8gent auto-detects LM Studio, Ollama, and local models on first run.\nIf no model is found, a setup menu will walk you through it.\n",
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
const npx = process.platform === "win32" ? "npx.cmd" : "npx";
|
|
17
|
+
try {
|
|
18
|
+
execFileSync(npx, ["bmad-method", "init", "--no-interactive"], { stdio: "ignore" });
|
|
19
|
+
} catch {
|
|
20
|
+
// bmad-method is optional - failure is non-fatal
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// macOS only: build the bundled AX bridge so @8gent/eyes works out of the
|
|
24
|
+
// box. Best-effort - failures are non-fatal (users can run the script
|
|
25
|
+
// manually). Skips when running inside CI to avoid slowing test pipelines.
|
|
26
|
+
if (process.platform === "darwin" && !process.env.CI && process.env.EIGHT_SKIP_BRIDGE_BUILD !== "1") {
|
|
27
|
+
const buildScript = join(__dirname, "..", "packages", "eyes", "native", "build.sh");
|
|
28
|
+
if (existsSync(buildScript)) {
|
|
29
|
+
const r = spawnSync("bash", [buildScript], { stdio: "ignore" });
|
|
30
|
+
if (r.status === 0) {
|
|
31
|
+
console.log("✓ Built bundled eyes bridge (~/.8gent/bin/8gent-ax-bridge).\n");
|
|
32
|
+
} else {
|
|
33
|
+
console.log(
|
|
34
|
+
"⚠ Could not build the eyes bridge automatically. Run `bash packages/eyes/native/build.sh` manually if you need the perception backend.\n",
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|