bravecode-cli 0.1.20 → 0.1.21
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/cli-main.mjs +1254 -67342
- package/dist/cli-main.mjs.map +4 -4
- package/package.json +17 -1
- package/scripts/build.js +36 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bravecode-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "Agentic AI vibe coding CLI with free model support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -53,8 +53,10 @@
|
|
|
53
53
|
"@opentui/core": "^0.5.8",
|
|
54
54
|
"@opentui/react": "^0.5.8",
|
|
55
55
|
"ai": "^7.0.78",
|
|
56
|
+
"bun-ffi-structs": "0.3.1",
|
|
56
57
|
"chalk": "^5.4.1",
|
|
57
58
|
"commander": "^13.1.0",
|
|
59
|
+
"diff": "9.0.0",
|
|
58
60
|
"ink": "^7.1.1",
|
|
59
61
|
"ink-text-input": "^6.0.0",
|
|
60
62
|
"inquirer": "^12.6.0",
|
|
@@ -63,8 +65,22 @@
|
|
|
63
65
|
"minimatch": "^10.0.3",
|
|
64
66
|
"ora": "^8.2.0",
|
|
65
67
|
"react": "^19.2.8",
|
|
68
|
+
"react-reconciler": "^0.33.0",
|
|
69
|
+
"string-width": "^7.2.0",
|
|
70
|
+
"strip-ansi": "^7.1.2",
|
|
71
|
+
"ws": "^8.18.0",
|
|
66
72
|
"zod": "^3.25.67"
|
|
67
73
|
},
|
|
74
|
+
"optionalDependencies": {
|
|
75
|
+
"@opentui/core-darwin-x64": "0.5.8",
|
|
76
|
+
"@opentui/core-darwin-arm64": "0.5.8",
|
|
77
|
+
"@opentui/core-linux-x64": "0.5.8",
|
|
78
|
+
"@opentui/core-linux-arm64": "0.5.8",
|
|
79
|
+
"@opentui/core-win32-x64": "0.5.8",
|
|
80
|
+
"@opentui/core-win32-arm64": "0.5.8",
|
|
81
|
+
"@opentui/core-linux-x64-musl": "0.5.8",
|
|
82
|
+
"@opentui/core-linux-arm64-musl": "0.5.8"
|
|
83
|
+
},
|
|
68
84
|
"devDependencies": {
|
|
69
85
|
"@types/ink": "^2.0.3",
|
|
70
86
|
"@types/node": "^24.0.10",
|
package/scripts/build.js
CHANGED
|
@@ -38,7 +38,42 @@ await build({
|
|
|
38
38
|
},
|
|
39
39
|
sourcemap: true,
|
|
40
40
|
minify: false,
|
|
41
|
-
|
|
41
|
+
// IMPORTANT: do NOT bundle @opentui packages. They use platform-specific
|
|
42
|
+
// optional native dependencies (@opentui/core-linux-x64 etc.) that they
|
|
43
|
+
// locate via __dirname / import.meta.url relative paths. If esbuild inlines
|
|
44
|
+
// them into our bundle, those relative paths break and the native FFI fails
|
|
45
|
+
// with "OpenTUI native FFI is not available for this runtime yet".
|
|
46
|
+
//
|
|
47
|
+
// We also externalize ink, react, react-devtools-core, yoga-layout, and all
|
|
48
|
+
// of @opentui's transitive deps that need intact module resolution (ws,
|
|
49
|
+
// react-reconciler, bun-ffi-structs, diff, string-width, strip-ansi, marked).
|
|
50
|
+
external: [
|
|
51
|
+
// React / Ink ecosystem
|
|
52
|
+
"react-devtools-core",
|
|
53
|
+
"ink",
|
|
54
|
+
"ink-text-input",
|
|
55
|
+
"react",
|
|
56
|
+
"yoga-layout",
|
|
57
|
+
"react-reconciler",
|
|
58
|
+
"ws",
|
|
59
|
+
// @opentui core + react bindings (NEVER bundle these — breaks native FFI)
|
|
60
|
+
"@opentui/core",
|
|
61
|
+
"@opentui/react",
|
|
62
|
+
// @opentui platform-specific native optional dependencies
|
|
63
|
+
"@opentui/core-darwin-x64",
|
|
64
|
+
"@opentui/core-darwin-arm64",
|
|
65
|
+
"@opentui/core-linux-x64",
|
|
66
|
+
"@opentui/core-linux-arm64",
|
|
67
|
+
"@opentui/core-win32-x64",
|
|
68
|
+
"@opentui/core-win32-arm64",
|
|
69
|
+
"@opentui/core-linux-x64-musl",
|
|
70
|
+
"@opentui/core-linux-arm64-musl",
|
|
71
|
+
// @opentui transitive deps used in path-sensitive contexts
|
|
72
|
+
"bun-ffi-structs",
|
|
73
|
+
"diff",
|
|
74
|
+
"string-width",
|
|
75
|
+
"strip-ansi",
|
|
76
|
+
],
|
|
42
77
|
});
|
|
43
78
|
|
|
44
79
|
// Write the CJS bootstrap wrapper. This is the actual `bravecode` bin entry.
|