@mmmbuto/gemini-cli-termux 0.22.0-termux → 0.22.2-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/gemini-cli-termux",
3
- "version": "0.22.0-termux",
3
+ "version": "0.22.2-termux",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },
@@ -59,7 +59,8 @@
59
59
  "telemetry": "node scripts/telemetry.js",
60
60
  "check:lockfile": "node scripts/check-lockfile.js",
61
61
  "clean": "node scripts/clean.js",
62
- "pre-commit": "node scripts/pre-commit.js"
62
+ "pre-commit": "node scripts/pre-commit.js",
63
+ "postinstall": "node scripts/postinstall.cjs || true"
63
64
  },
64
65
  "overrides": {
65
66
  "ink": "npm:@jrichman/ink@6.4.6",
@@ -73,6 +74,7 @@
73
74
  },
74
75
  "files": [
75
76
  "bundle/",
77
+ "scripts/postinstall.cjs",
76
78
  "README.md",
77
79
  "LICENSE"
78
80
  ],
@@ -145,4 +147,4 @@
145
147
  "prettier --write"
146
148
  ]
147
149
  }
148
- }
150
+ }
@@ -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
+ }