@mmmbuto/gemini-cli-termux 0.22.2-termux → 0.22.4-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.
Files changed (3) hide show
  1. package/README.md +38 -8
  2. package/bundle/gemini.js +6084 -5307
  3. package/package.json +2 -11
package/README.md CHANGED
@@ -29,7 +29,7 @@ pkg update && pkg upgrade -y
29
29
  pkg install nodejs-lts -y
30
30
  npm install -g @mmmbuto/gemini-cli-termux
31
31
 
32
- gemini --version # expected: 0.22.0-termux (latest)
32
+ gemini --version # expected: 0.22.3-termux (latest)
33
33
  ```
34
34
 
35
35
  Build from source:
@@ -46,9 +46,8 @@ node bundle/gemini.js --version
46
46
 
47
47
  - **Smart Clipboard:** Auto-detects Android environment to enable seamless
48
48
  clipboard operations (fixes `TERMUX__PREFIX`).
49
- - **Streamlined Install:** Native modules (`node-pty`, `keytar`,
50
- `tree-sitter-bash`) are handled gracefully to ensure instant installation
51
- without compilation errors.
49
+ - **Streamlined Install:** Native PTY/keychain deps are **omitted** on Termux
50
+ (fallback to `child_process` + file-based tokens), avoiding native builds.
52
51
  - **Clean UX:** Suppresses desktop-centric warnings (like home directory checks)
53
52
  to optimize the experience for mobile terminal usage.
54
53
  - **ARM64 Native:** Bundled specifically for Android architecture.
@@ -65,7 +64,7 @@ node bundle/gemini.js --version
65
64
 
66
65
  ### 📚 Complete Documentation
67
66
 
68
- - **[Test Results](./GEMINI_TEST_REPORT_v0.22.0.md)** - Comprehensive test
67
+ - **[Test Results](./GEMINI_TEST_REPORT_v0.22.1.md)** - Comprehensive test
69
68
  report with analysis
70
69
  - **[Test Suite](./GEMINI_TEST_SUITE.md)** - Test methodology and checklist
71
70
  - **[Patches & Fixes](./docs/patches/)** - Known issues and workarounds
@@ -105,14 +104,14 @@ npm install -g @mmmbuto/gemini-cli-termux@latest
105
104
 
106
105
  ### Versions
107
106
 
108
- - **latest**: 0.22.0-termux (this build)
109
- - **stable**: 0.22.0-termux
107
+ - **latest**: 0.22.3-termux (this build)
108
+ - **stable**: 0.22.3-termux
110
109
 
111
110
  ## Tests
112
111
 
113
112
  - Suite: [`GEMINI_TEST_SUITE.md`](./GEMINI_TEST_SUITE.md)
114
113
  - Latest report:
115
- [`GEMINI_TEST_REPORT_v0.22.0.md`](./GEMINI_TEST_REPORT_v0.22.0.md)
114
+ [`GEMINI_TEST_REPORT_v0.22.1.md`](./GEMINI_TEST_REPORT_v0.22.1.md)
116
115
  - PASS with warnings (node-pty optional missing log; `--version --json`
117
116
  outputs plain string; config-path flag unsupported; extensions settings
118
117
  needs subcommand).
@@ -127,6 +126,18 @@ This fork supports optional integration with Termux-API commands for Android
127
126
  device access. Enable Gemini to interact with your device hardware and Android
128
127
  features.
129
128
 
129
+ **Context memory + TTS note:**
130
+
131
+ - The Termux fork ships JSON context memory at
132
+ `~/.gemini/context_memory/{base.json,user.json,user.journal.jsonl}`. In
133
+ `/settings → Context Memory` you can toggle autoload, choose the primary
134
+ source, and (if needed) enable writes to `base.json` via
135
+ `Allow Base Memory Writes`.
136
+ - TTS notifications are controlled by
137
+ `/settings → Notifications → Enable TTS Notifications`. When disabled,
138
+ `termux-tts-speak` is blocked even if an agent asks for it. These behaviors
139
+ are merge-safe and confined to Termux patches.
140
+
130
141
  ### Quick Setup
131
142
 
132
143
  ```bash
@@ -158,6 +169,25 @@ See [docs/termux-api/](./docs/termux-api/) for complete documentation.
158
169
 
159
170
  ---
160
171
 
172
+ ## v0.22.3-termux Highlights
173
+
174
+ - **Context Memory (default ON)**: strict, merge-safe JSON memory at
175
+ `~/.gemini/context_memory/{base.json,user.json,user.journal.jsonl}` with
176
+ per-source autoload, primary selector, and GEMINI.md bootstrap on first run.
177
+ - **Deterministic compaction**: journal append-only with incremental offsets,
178
+ closed JSON schemas, key-based upsert, TTL/ephemeral guardrails,
179
+ sensitivity=high excluded from autoload.
180
+ - **Base write toggle**: enable/disable writes to `base.json` from
181
+ `/save_memory target=base` (off by default, merge-safe).
182
+ - **TTS toggle**: new `/settings` switch to allow/block `termux-tts-speak`;
183
+ shell tool blocks TTS when disabled.
184
+ - **Termux-first shell**: non-interactive commands (`echo`, `pwd`, `ls`) work
185
+ without native PTY deps; optional natives removed for faster installs.
186
+ - **Termux-API tools**: discovery/call scripts under `scripts/termux-tools/`
187
+ expose Termux APIs as tools (battery, tts, camera, etc.).
188
+
189
+ See `docs/cli/context-memory.md` for the detailed memory layout and settings.
190
+
161
191
  ## v0.22.1-termux Improvements
162
192
 
163
193
  This release includes significant improvements to the Termux experience: