@bash0816/claude-code 2.1.224 → 2.1.227

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.223-1
40
+ npm install -g @bash0816/claude-code@2.1.226
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -652,6 +652,24 @@
652
652
  "entry_end_offset": 286057058,
653
653
  "tarball_integrity": "sha512-a16Zlqhr1CXO5vsfsw7FcvLbG2nqBAXWmvMmyXtNW+f9pAJm91GMJE9wK79cIyO9InZRLN06wYWyPcp1cx/nNg==",
654
654
  "tarball_sha256": "711712d0526f0b266c961a5591ddca55979cd581ac67b0a0ffd19e5f4e2df2c7",
655
+ "status": "termux_verified"
656
+ },
657
+ "2.1.226": {
658
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.226",
659
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.226",
660
+ "entry_js_offset": 264236564,
661
+ "entry_end_offset": 288213155,
662
+ "tarball_integrity": "sha512-/USq3R28PunkjZZfyweEgUAlR7npgrruZmb47j3oRRxlFWk5Jurj+THiwhl/AKxUgkxaxb35cr6DCAeXNlQ/jg==",
663
+ "tarball_sha256": "fbbb2610daff70d118c8dda8aeffee92b38f20aa464e758c3d09e3c83ab6ef56",
664
+ "status": "termux_verified"
665
+ },
666
+ "2.1.227": {
667
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.227",
668
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.227",
669
+ "entry_js_offset": 269158692,
670
+ "entry_end_offset": 293584486,
671
+ "tarball_integrity": "sha512-vqM0t4yu6X1ggUFlNE5Tcj8xpVxWkwuous/LEdVEEP3FKdA5NPoIUAIJC4zUPaqycTPeX8KLoXrZ1N8Qb413AA==",
672
+ "tarball_sha256": "865b9118c4b69c87fbb5cf83295703f88b044eba9fdf573c3926bfbae8216c60",
655
673
  "status": "offset_discovered"
656
674
  }
657
675
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.223-1",
5
- "latest_candidate_version": "2.1.224",
6
- "previous_stable_version": "2.1.223",
7
- "stable_pinned_version": "2.1.193",
4
+ "latest_audited_version": "2.1.226",
5
+ "latest_candidate_version": "2.1.227",
6
+ "previous_stable_version": "2.1.224",
7
+ "stable_pinned_version": "2.1.220-2",
8
8
  "manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
9
9
  }
@@ -619,16 +619,19 @@ function rewriteNativeChunkSource(source) {
619
619
  const _npmInstallDeprecatedExpected = (() => {
620
620
  const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
621
621
  const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
622
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 227)) return 0;
622
623
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
623
624
  return 1;
624
625
  })();
625
- patched = replaceRequired(
626
- patched,
627
- /\bnpmInstallDeprecated:!0\b/g,
628
- 'npmInstallDeprecated:!1',
629
- 'npmInstallDeprecated flag',
630
- _npmInstallDeprecatedExpected,
631
- );
626
+ if (_npmInstallDeprecatedExpected > 0) {
627
+ patched = replaceRequired(
628
+ patched,
629
+ /\bnpmInstallDeprecated:!0\b/g,
630
+ 'npmInstallDeprecated:!1',
631
+ 'npmInstallDeprecated flag',
632
+ _npmInstallDeprecatedExpected,
633
+ );
634
+ }
632
635
  patched = replaceRequired(
633
636
  patched,
634
637
  /function ([A-Za-z_$][\w$]*)\(\)\{(return\([A-Za-z_$][\w$]*,[A-Za-z_$][\w$]*,[A-Za-z_$][\w$]*\)=>\{let\{cmd:([A-Za-z_$][\w$]*),prefixArgs:([A-Za-z_$][\w$]*)\}=[A-Za-z_$][\w$]*\(\{pinToCurrentBinary:!0\}\),[A-Za-z_$][\w$]*=\[\3,\.\.\.\4,"--bg-pty-host")/g,
@@ -1498,16 +1501,19 @@ function rewriteNativeChunkSource(source) {
1498
1501
  const _npmInstallDeprecatedExpected = (() => {
1499
1502
  const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
1500
1503
  const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
1504
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 227)) return 0;
1501
1505
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
1502
1506
  return 1;
1503
1507
  })();
1504
- patched = replaceRequired(
1505
- patched,
1506
- /\bnpmInstallDeprecated:!0\b/g,
1507
- 'npmInstallDeprecated:!1',
1508
- 'npmInstallDeprecated flag',
1509
- _npmInstallDeprecatedExpected,
1510
- );
1508
+ if (_npmInstallDeprecatedExpected > 0) {
1509
+ patched = replaceRequired(
1510
+ patched,
1511
+ /\bnpmInstallDeprecated:!0\b/g,
1512
+ 'npmInstallDeprecated:!1',
1513
+ 'npmInstallDeprecated flag',
1514
+ _npmInstallDeprecatedExpected,
1515
+ );
1516
+ }
1511
1517
  patched = replaceRequired(
1512
1518
  patched,
1513
1519
  /function ([A-Za-z_$][\w$]*)\(\)\{(return\([A-Za-z_$][\w$]*,[A-Za-z_$][\w$]*,[A-Za-z_$][\w$]*\)=>\{let\{cmd:([A-Za-z_$][\w$]*),prefixArgs:([A-Za-z_$][\w$]*)\}=[A-Za-z_$][\w$]*\(\{pinToCurrentBinary:!0\}\),[A-Za-z_$][\w$]*=\[\3,\.\.\.\4,"--bg-pty-host")/g,
@@ -13,6 +13,11 @@ const vm = require('vm');
13
13
  const scriptPath = path.join(__dirname, 'termux-run-claude-native.sh');
14
14
  const script = fs.readFileSync(scriptPath, 'utf8');
15
15
 
16
+ // Fixtures below don't include the /background isEnabled pattern, so
17
+ // rewriteNativeChunkSource must run with the patch disabled (its default)
18
+ // regardless of what the ambient shell happens to export.
19
+ delete process.env.CLAUDE_CODE_DISABLE_AGENT_VIEW;
20
+
16
21
  function extractBlock(marker, trailer) {
17
22
  const start = script.indexOf(marker);
18
23
  assert.notEqual(start, -1, `missing marker: ${marker}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash0816/claude-code",
3
- "version": "2.1.224",
3
+ "version": "2.1.227",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {