@bash0816/claude-code 2.1.183 → 2.1.185

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
@@ -37,7 +37,7 @@ npm が `claude` bin link を管理する状態になれば、通常の `npm ins
37
37
  Latest audited version / 最新監査済み版:
38
38
 
39
39
  ```sh
40
- npm install -g @bash0816/claude-code@2.1.181
40
+ npm install -g @bash0816/claude-code@2.1.183
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -319,6 +319,15 @@
319
319
  "entry_end_offset": 229091290,
320
320
  "tarball_integrity": "sha512-TA+ixBwIKOZywNGOdi/q2abW1ibG9aJMwIe+O3BtEvrkcQD62jEyThW1jeC7/8Cdp0uyT5v5ilb63qD0YX59Ig==",
321
321
  "tarball_sha256": "9da734e6b9355179e585498ee367c570531722ca8f8aab2c3ceabc852134d230",
322
+ "status": "termux_verified"
323
+ },
324
+ "2.1.185": {
325
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.185",
326
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.185",
327
+ "entry_js_offset": 211766740,
328
+ "entry_end_offset": 229091355,
329
+ "tarball_integrity": "sha512-z/HIA74aQ2PKs0XqgI6G1mykAXrlbuOSun/EIcHRRm0sy1hA75H9fkGCR0d/DvKRq3+P2ehcXzGxlpmHmQCj0A==",
330
+ "tarball_sha256": "0679a07d6a5da72c06c4557c3b48698065d1559e01746f9887c6fd7732b2986c",
322
331
  "status": "offset_discovered"
323
332
  }
324
333
  }
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.181",
5
- "latest_candidate_version": "2.1.183",
6
- "previous_stable_version": "2.1.179",
4
+ "latest_audited_version": "2.1.183",
5
+ "latest_candidate_version": "2.1.185",
6
+ "previous_stable_version": "2.1.181",
7
7
  "manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
8
8
  }
@@ -57,6 +57,11 @@ for _a in "$@"; do
57
57
  esac
58
58
  done
59
59
 
60
+ _tui=0
61
+ if [ "$_pf" = "0" ] && [ -t 0 ]; then
62
+ _tui=1
63
+ fi
64
+
60
65
  if [ "$_pf" = "1" ] && [ "${CLAUDE_TERMUX_STDIN:-}" != "inherit" ]; then
61
66
  _helper=$(mktemp "${TERMUX_TMPDIR}/claude-helper.XXXXXX.js")
62
67
  trap 'rm -f "$_helper"' EXIT HUP INT TERM
@@ -730,6 +735,7 @@ NODE
730
735
  else
731
736
  _bootstrap=$(mktemp "${TERMUX_TMPDIR}/claude-bootstrap.XXXXXX.js")
732
737
  trap 'rm -f "$_bootstrap"' EXIT HUP INT TERM
738
+ export CLAUDE_TERMUX_TUI="${_tui}"
733
739
  cat <<'NODE' > "$_bootstrap"
734
740
  const fs = require('fs');
735
741
  const path = require('path');
@@ -1377,14 +1383,22 @@ async function main() {
1377
1383
  }
1378
1384
  }
1379
1385
 
1380
- main().catch(error => {
1381
- if (error && error.code === 'CLAUDE_TERMUX_OFFICIAL_UPDATE_BLOCKED') {
1382
- console.error(BLOCK_MESSAGE);
1383
- process.exit(error.status || 1);
1384
- }
1385
- console.error(error && error.stack ? error.stack : String(error));
1386
- process.exit(1);
1387
- });
1386
+ main()
1387
+ .then(() => {
1388
+ if (process.env.CLAUDE_TERMUX_TUI === '1' && process.exitCode === undefined) {
1389
+ return;
1390
+ }
1391
+ process.exit(process.exitCode ?? 0);
1392
+ })
1393
+ .catch(error => {
1394
+ if (error && error.code === 'CLAUDE_TERMUX_OFFICIAL_UPDATE_BLOCKED') {
1395
+ console.error(BLOCK_MESSAGE);
1396
+ process.exit(error.status || 1);
1397
+ return;
1398
+ }
1399
+ console.error(error && error.stack ? error.stack : String(error));
1400
+ process.exit(1);
1401
+ });
1388
1402
  NODE
1389
1403
  export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="${CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:-1}"
1390
1404
  export ENABLE_CLAUDEAI_MCP_SERVERS="${ENABLE_CLAUDEAI_MCP_SERVERS:-0}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash0816/claude-code",
3
- "version": "2.1.183",
3
+ "version": "2.1.185",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {