@xurxuo/claude-code-termux 2.1.141 → 2.1.142

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 CHANGED
@@ -34,7 +34,9 @@ claude update # Force update to latest Claude Code packages
34
34
 
35
35
  The wrapper checks npm at most once per day. If
36
36
  `@anthropic-ai/claude-code-linux-arm64` has a newer version, it automatically
37
- installs the latest Claude Code packages before launching. Set
37
+ installs the latest Claude Code packages before launching. The native package
38
+ uses npm `--force` because Termux reports `os=android` while the official
39
+ binary package is tagged `os=linux`. Set
38
40
  `CLAUDE_CODE_TERMUX_NO_AUTO_UPDATE=1` to disable the daily check.
39
41
 
40
42
  ## Auth
package/cli-wrapper.cjs CHANGED
@@ -132,7 +132,7 @@ function npmViewLatest(pkg) {
132
132
 
133
133
  function npmInstallLatest(packages) {
134
134
  const command = process.env.npm_execpath ? process.execPath : 'npm'
135
- const installArgs = ['install', '-g', ...packages.map((pkg) => pkg + '@latest')]
135
+ const installArgs = ['install', '-g', '--force', ...packages.map((pkg) => pkg + '@latest')]
136
136
  const args = process.env.npm_execpath
137
137
  ? [process.env.npm_execpath, ...installArgs]
138
138
  : installArgs
package/install.cjs CHANGED
@@ -77,8 +77,8 @@ function installLatestNativePackage(pkg) {
77
77
  console.error(`[${WRAPPER_NAME} postinstall] Installing ${pkg}@latest...`)
78
78
  const command = process.env.npm_execpath ? process.execPath : 'npm'
79
79
  const args = process.env.npm_execpath
80
- ? [process.env.npm_execpath, 'install', '-g', pkg + '@latest']
81
- : ['install', '-g', pkg + '@latest']
80
+ ? [process.env.npm_execpath, 'install', '-g', '--force', pkg + '@latest']
81
+ : ['install', '-g', '--force', pkg + '@latest']
82
82
  const result = spawnSync(command, args, {
83
83
  stdio: 'inherit',
84
84
  shell: process.platform === 'win32',
@@ -136,7 +136,7 @@ function main() {
136
136
  console.error(
137
137
  `[${WRAPPER_NAME} postinstall] Native package "${info.pkg}" not found and latest install failed.`,
138
138
  )
139
- console.error(' Try again with: npm install -g ' + info.pkg + '@latest')
139
+ console.error(' Try again with: npm install -g --force ' + info.pkg + '@latest')
140
140
  process.exitCode = 1
141
141
  }
142
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xurxuo/claude-code-termux",
3
- "version": "2.1.141",
3
+ "version": "2.1.142",
4
4
  "bin": {
5
5
  "claude": "cli-wrapper.cjs"
6
6
  },