@mmmbuto/gemini-cli-termux 0.22.1-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/bundle/gemini.js CHANGED
@@ -93740,7 +93740,7 @@ import { fileURLToPath as fileURLToPath4 } from "node:url";
93740
93740
  import path12 from "node:path";
93741
93741
  async function getVersion() {
93742
93742
  const pkgJson = await getPackageJson(__dirname3);
93743
- return "0.22.1-termux";
93743
+ return "0.22.2-termux";
93744
93744
  }
93745
93745
  var __filename, __dirname3;
93746
93746
  var init_version2 = __esm({
@@ -161506,8 +161506,8 @@ var GIT_COMMIT_INFO, CLI_VERSION;
161506
161506
  var init_git_commit = __esm({
161507
161507
  "packages/core/dist/src/generated/git-commit.js"() {
161508
161508
  "use strict";
161509
- GIT_COMMIT_INFO = "027b3f5ad";
161510
- CLI_VERSION = "0.22.1-termux";
161509
+ GIT_COMMIT_INFO = "9e9457bdb";
161510
+ CLI_VERSION = "0.22.2-termux";
161511
161511
  }
161512
161512
  });
161513
161513
 
@@ -438544,7 +438544,7 @@ var WarningMessage = ({ text }) => {
438544
438544
  };
438545
438545
 
438546
438546
  // packages/cli/src/generated/git-commit.ts
438547
- var GIT_COMMIT_INFO2 = "9e9457bdb";
438547
+ var GIT_COMMIT_INFO2 = "eb630909f";
438548
438548
 
438549
438549
  // packages/cli/src/ui/components/AboutBox.tsx
438550
438550
  var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/gemini-cli-termux",
3
- "version": "0.22.1-termux",
3
+ "version": "0.22.2-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
  ],
@@ -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
+ }