@mmmbuto/gemini-cli-termux 0.22.1-termux → 0.22.3-termux
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 +24 -8
- package/bundle/gemini.js +6016 -5305
- package/package.json +3 -11
- package/scripts/postinstall.cjs +47 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmbuto/gemini-cli-termux",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.3-termux",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20.0.0"
|
|
6
6
|
},
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"files": [
|
|
76
76
|
"bundle/",
|
|
77
|
+
"scripts/postinstall.cjs",
|
|
77
78
|
"README.md",
|
|
78
79
|
"LICENSE"
|
|
79
80
|
],
|
|
@@ -90,7 +91,7 @@
|
|
|
90
91
|
"@vitest/coverage-v8": "^3.1.1",
|
|
91
92
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
92
93
|
"cross-env": "^7.0.3",
|
|
93
|
-
"esbuild": "^0.
|
|
94
|
+
"esbuild": "^0.27.1",
|
|
94
95
|
"esbuild-plugin-wasm": "^1.1.0",
|
|
95
96
|
"eslint": "^9.24.0",
|
|
96
97
|
"eslint-config-prettier": "^10.1.2",
|
|
@@ -125,15 +126,6 @@
|
|
|
125
126
|
"latest-version": "^9.0.0",
|
|
126
127
|
"simple-git": "^3.28.0"
|
|
127
128
|
},
|
|
128
|
-
"optionalDependencies": {
|
|
129
|
-
"@lydell/node-pty": "1.1.0",
|
|
130
|
-
"@lydell/node-pty-darwin-arm64": "1.1.0",
|
|
131
|
-
"@lydell/node-pty-darwin-x64": "1.1.0",
|
|
132
|
-
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
133
|
-
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
134
|
-
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
135
|
-
"node-pty": "^1.0.0"
|
|
136
|
-
},
|
|
137
129
|
"lint-staged": {
|
|
138
130
|
"*.{js,jsx,ts,tsx}": [
|
|
139
131
|
"prettier --write",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// TERMUX PATCH: Show helpful message on Termux install
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
9
|
+
const os = require('node:os');
|
|
10
|
+
|
|
11
|
+
// Detect Termux environment
|
|
12
|
+
const isTermux =
|
|
13
|
+
os.platform() === 'android' ||
|
|
14
|
+
process.env.TERMUX_VERSION ||
|
|
15
|
+
(process.env.PREFIX && process.env.PREFIX.includes('com.termux'));
|
|
16
|
+
|
|
17
|
+
if (isTermux) {
|
|
18
|
+
console.log('');
|
|
19
|
+
console.log(
|
|
20
|
+
'╔══════════════════════════════════════════════════════════════╗',
|
|
21
|
+
);
|
|
22
|
+
console.log(
|
|
23
|
+
'║ gemini-cli-termux installed successfully on Termux! ║',
|
|
24
|
+
);
|
|
25
|
+
console.log(
|
|
26
|
+
'║ ║',
|
|
27
|
+
);
|
|
28
|
+
console.log(
|
|
29
|
+
'║ Note: Native module warnings above are EXPECTED. ║',
|
|
30
|
+
);
|
|
31
|
+
console.log(
|
|
32
|
+
'║ The CLI works with reduced PTY functionality. ║',
|
|
33
|
+
);
|
|
34
|
+
console.log(
|
|
35
|
+
'║ ║',
|
|
36
|
+
);
|
|
37
|
+
console.log(
|
|
38
|
+
'║ Quick start: gemini --version ║',
|
|
39
|
+
);
|
|
40
|
+
console.log(
|
|
41
|
+
'║ First run: gemini ║',
|
|
42
|
+
);
|
|
43
|
+
console.log(
|
|
44
|
+
'╚══════════════════════════════════════════════════════════════╝',
|
|
45
|
+
);
|
|
46
|
+
console.log('');
|
|
47
|
+
}
|