@mmmbuto/gemini-cli-termux 0.24.4-termux → 0.24.6-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 +16 -21
- package/bundle/README.md +239 -0
- package/bundle/docs/TERMUX.md +8 -9
- package/bundle/docs/patches/MERGE_TO_0.24_ANALYSIS.md +2 -2
- package/bundle/docs/patches/README.md +18 -13
- package/bundle/docs/patches/mcp-sdk-typings-shim.md +27 -0
- package/bundle/docs/termux-api/EXECUTION_PLAN.md +4 -4
- package/bundle/docs/termux-api/MERGE_STRATEGY.md +6 -2
- package/bundle/docs/termux-api/PATCHES.md +34 -36
- package/bundle/gemini.js +7622 -10724
- package/package.json +3 -3
- package/scripts/postinstall.cjs +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Patch Analysis & Improvement Proposals
|
|
2
2
|
|
|
3
|
-
**Project**: gemini-cli-termux **Version**: 0.
|
|
4
|
-
**Date**:
|
|
3
|
+
**Project**: gemini-cli-termux **Version**: 0.24.6-termux **Author**: DioNanos
|
|
4
|
+
**Date**: 2026-01-08
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -71,40 +71,38 @@ export default isInCi;
|
|
|
71
71
|
|
|
72
72
|
```json
|
|
73
73
|
{
|
|
74
|
-
|
|
75
|
-
"@
|
|
76
|
-
"@lydell/node-pty-darwin-arm64": "1.1.0",
|
|
77
|
-
"@lydell/node-pty-darwin-x64": "1.1.0",
|
|
78
|
-
"@lydell/node-pty-linux-x64": "1.1.0",
|
|
79
|
-
"@lydell/node-pty-win32-arm64": "1.1.0",
|
|
80
|
-
"@lydell/node-pty-win32-x64": "1.1.0",
|
|
81
|
-
"node-pty": "^1.0.0"
|
|
74
|
+
"optionalDependencies": {
|
|
75
|
+
"@mmmbuto/node-pty-android-arm64": "1.1.0"
|
|
82
76
|
}
|
|
83
77
|
}
|
|
84
78
|
```
|
|
85
79
|
|
|
86
80
|
**Purpose**: Allows installation without compiling native modules.
|
|
87
81
|
|
|
88
|
-
**Status**: ✅ Functional,
|
|
82
|
+
**Status**: ✅ Functional, clean install on Termux
|
|
89
83
|
|
|
90
84
|
**Proposed Improvements**: See
|
|
91
85
|
[Installation Improvements](#installation-improvements)
|
|
92
86
|
|
|
93
87
|
---
|
|
94
88
|
|
|
95
|
-
### 4.
|
|
89
|
+
### 4. Prepare Script (Termux)
|
|
90
|
+
|
|
91
|
+
**File**: `scripts/prepare-termux.cjs`
|
|
92
|
+
|
|
93
|
+
**Purpose**: Skips `husky` + `bundle` work on Termux installs.
|
|
94
|
+
|
|
95
|
+
**Status**: ✅ Functional
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
### 5. esbuild External Modules
|
|
96
100
|
|
|
97
101
|
**File**: `esbuild.config.js`
|
|
98
102
|
|
|
99
103
|
```javascript
|
|
100
104
|
const external = [
|
|
101
|
-
'@
|
|
102
|
-
'node-pty',
|
|
103
|
-
'@lydell/node-pty-darwin-arm64',
|
|
104
|
-
'@lydell/node-pty-darwin-x64',
|
|
105
|
-
'@lydell/node-pty-linux-x64',
|
|
106
|
-
'@lydell/node-pty-win32-arm64',
|
|
107
|
-
'@lydell/node-pty-win32-x64',
|
|
105
|
+
'@mmmbuto/node-pty-android-arm64',
|
|
108
106
|
];
|
|
109
107
|
```
|
|
110
108
|
|
|
@@ -118,14 +116,18 @@ const external = [
|
|
|
118
116
|
|
|
119
117
|
### Issue 1: Warning during npm install
|
|
120
118
|
|
|
121
|
-
**Symptom**:
|
|
119
|
+
**Symptom (before Termux-only fork)**:
|
|
122
120
|
|
|
123
121
|
```
|
|
124
122
|
npm warn optional SKIPPING OPTIONAL DEPENDENCY: @lydell/node-pty@1.1.0
|
|
125
123
|
npm warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @lydell/node-pty-linux-x64
|
|
126
124
|
```
|
|
127
125
|
|
|
128
|
-
**
|
|
126
|
+
**Current Status**:
|
|
127
|
+
|
|
128
|
+
With `@mmmbuto/node-pty-android-arm64`, installs on Termux should be clean and avoid node-gyp.
|
|
129
|
+
|
|
130
|
+
**Legacy Proposed Solution**:
|
|
129
131
|
|
|
130
132
|
#### A. Custom postinstall script
|
|
131
133
|
|
|
@@ -173,23 +175,19 @@ if (os.platform() === 'android' || process.env.TERMUX_VERSION) {
|
|
|
173
175
|
}
|
|
174
176
|
```
|
|
175
177
|
|
|
176
|
-
#### B. Documentation .npmrc
|
|
178
|
+
#### B. Documentation .npmrc (legacy)
|
|
177
179
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
```ini
|
|
181
|
-
# Suppress optional dependency warnings
|
|
182
|
-
loglevel=error
|
|
183
|
-
optional=false
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
**Note**: Not recommended globally, but useful for advanced users.
|
|
180
|
+
Previously used to suppress optional dependency warnings. **Do not use
|
|
181
|
+
`optional=false` now**, because it disables the Termux PTY prebuild.
|
|
187
182
|
|
|
188
183
|
---
|
|
189
184
|
|
|
190
|
-
### Issue 2: Build from source
|
|
185
|
+
### Issue 2: Build from source should not require manual flags
|
|
186
|
+
|
|
187
|
+
**Symptom (before `prepare-termux`)**: `npm install` ran desktop-only prepare
|
|
188
|
+
steps, so users relied on `--ignore-scripts`.
|
|
191
189
|
|
|
192
|
-
**
|
|
190
|
+
**Current Status**: `prepare` is now Termux-aware, so plain `npm install` works.
|
|
193
191
|
|
|
194
192
|
**Proposed Solution**:
|
|
195
193
|
|
|
@@ -202,12 +200,12 @@ optional=false
|
|
|
202
200
|
|
|
203
201
|
# Standard install (desktop)
|
|
204
202
|
install:
|
|
205
|
-
|
|
203
|
+
npm install
|
|
206
204
|
|
|
207
205
|
# Termux-specific install
|
|
208
206
|
termux-install:
|
|
209
207
|
@echo "Installing for Termux..."
|
|
210
|
-
npm install
|
|
208
|
+
npm install
|
|
211
209
|
npm run build
|
|
212
210
|
npm run bundle
|
|
213
211
|
@echo ""
|
|
@@ -241,7 +239,7 @@ fi
|
|
|
241
239
|
|
|
242
240
|
# Install dependencies
|
|
243
241
|
echo "Installing dependencies..."
|
|
244
|
-
npm install
|
|
242
|
+
npm install
|
|
245
243
|
|
|
246
244
|
# Build
|
|
247
245
|
echo "Building..."
|