@8gi-foundation/8gent-code 0.6.0 → 0.8.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/README.md +62 -89
- package/dist/cli.js +3282 -3189
- package/package.json +5 -5
- package/bin/8gent-run.js +0 -47
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8gi-foundation/8gent-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
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",
|
|
7
7
|
"bin": {
|
|
8
|
-
"8": "./
|
|
9
|
-
"8gent": "./
|
|
10
|
-
"8gent-code": "./
|
|
8
|
+
"8": "./dist/cli.js",
|
|
9
|
+
"8gent": "./dist/cli.js",
|
|
10
|
+
"8gent-code": "./dist/cli.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/cli.js",
|
|
14
14
|
"dist/skills",
|
|
15
|
-
"bin/8gent-run.js",
|
|
16
15
|
"README.md",
|
|
17
16
|
"LICENSE"
|
|
18
17
|
],
|
|
@@ -43,6 +42,7 @@
|
|
|
43
42
|
"benchmark:category": "bun run benchmarks/runner.ts --category",
|
|
44
43
|
"benchmark:single": "bun run benchmarks/runner.ts --bench",
|
|
45
44
|
"benchmark:swebench": "bun run benchmarks/swebench/run.ts",
|
|
45
|
+
"audit": "bun run packages/audit/cli.ts",
|
|
46
46
|
"demo": "bun run scripts/demo-savings.ts",
|
|
47
47
|
"harness": "bun run packages/harness-cli/index.ts",
|
|
48
48
|
"harness:run": "bun run packages/harness-cli/index.ts run",
|
package/bin/8gent-run.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { execFileSync, spawnSync } from "child_process";
|
|
3
|
-
import { join, dirname } from "path";
|
|
4
|
-
import { existsSync } from "fs";
|
|
5
|
-
import { fileURLToPath } from "url";
|
|
6
|
-
|
|
7
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
const cli = join(__dirname, "..", "dist", "cli.js");
|
|
9
|
-
|
|
10
|
-
function hasBun() {
|
|
11
|
-
try {
|
|
12
|
-
execFileSync("bun", ["--version"], { stdio: "ignore" });
|
|
13
|
-
return true;
|
|
14
|
-
} catch {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
if (!hasBun()) {
|
|
20
|
-
console.error(`
|
|
21
|
-
8gent requires Bun to run. Install it with one command:
|
|
22
|
-
|
|
23
|
-
Mac / Linux:
|
|
24
|
-
curl -fsSL https://bun.sh/install | bash
|
|
25
|
-
|
|
26
|
-
Windows (PowerShell):
|
|
27
|
-
powershell -c "irm bun.sh/install.ps1 | iex"
|
|
28
|
-
|
|
29
|
-
Then restart your terminal and run: 8gent
|
|
30
|
-
`);
|
|
31
|
-
process.exit(1);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if (!existsSync(cli)) {
|
|
35
|
-
console.error(`
|
|
36
|
-
8gent build not found at ${cli}
|
|
37
|
-
Run: npm run build
|
|
38
|
-
`);
|
|
39
|
-
process.exit(1);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const result = spawnSync("bun", [cli, ...process.argv.slice(2)], {
|
|
43
|
-
stdio: "inherit",
|
|
44
|
-
env: process.env,
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
process.exit(result.status ?? 0);
|