@bash0816/claude-code 2.1.218 → 2.1.219

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.217
40
+ npm install -g @bash0816/claude-code@2.1.218
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -562,6 +562,15 @@
562
562
  "entry_end_offset": 263624682,
563
563
  "tarball_integrity": "sha512-CcbVQCzXd9EnlktCEPrkElhdBZuqIWhkeinRGxUuZa6aal4h6J+8Dbo+OnfchBEzd1mahRDQK8BckGBAYozv2g==",
564
564
  "tarball_sha256": "1d3cb5e12f0b653929e34ba046a7ba0a4f5c01eb25ea57b478dbac27e4af9619",
565
+ "status": "termux_verified"
566
+ },
567
+ "2.1.219": {
568
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.219",
569
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.219",
570
+ "entry_js_offset": 243825700,
571
+ "entry_end_offset": 265451802,
572
+ "tarball_integrity": "sha512-G5yLidk2u6djL5PPuBYXVwVhTsZY5zLoZwh1Jnrd/IRyYb0P0x4gKTzVvGlsGepkBrOp0H2k/KuicyNPrXt57Q==",
573
+ "tarball_sha256": "cf4ae671f08b91ac75ea63c8497e7ff4e3bdbe522b0f83bff2de162d44e0eb15",
565
574
  "status": "offset_discovered"
566
575
  }
567
576
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.217",
5
- "latest_candidate_version": "2.1.218",
6
- "previous_stable_version": "2.1.216",
4
+ "latest_audited_version": "2.1.218",
5
+ "latest_candidate_version": "2.1.219",
6
+ "previous_stable_version": "2.1.217",
7
7
  "stable_pinned_version": "2.1.193",
8
8
  "manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
9
9
  }
@@ -583,6 +583,7 @@ function rewriteNativeChunkSource(source) {
583
583
  const _bunPropertyAccessExpected = (() => {
584
584
  const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
585
585
  const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
586
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
586
587
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 216)) return 40;
587
588
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 214)) return 39;
588
589
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 205)) return 38;
@@ -1275,6 +1276,7 @@ function rewriteNativeChunkSource(source) {
1275
1276
  const _bunPropertyAccessExpected = (() => {
1276
1277
  const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
1277
1278
  const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
1279
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
1278
1280
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 216)) return 40;
1279
1281
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 214)) return 39;
1280
1282
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 205)) return 38;
@@ -478,6 +478,43 @@ test('rewriteNativeChunkSource rejects stale Bun property access count for versi
478
478
  }
479
479
  });
480
480
 
481
+ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.219)', () => {
482
+ process.env.CURRENT_CLAUDE_VERSION = '2.1.219';
483
+ try {
484
+ const { rewriteNativeChunkSource } = loadHelperApi();
485
+ const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
486
+ const bunProps = Array.from({ length: 42 }, (_, index) => `Bun.p${index}`).join('; ');
487
+ const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
488
+ const patched = rewriteNativeChunkSource(source);
489
+
490
+ assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
491
+ assert.match(patched, /typeof __claudeBun/);
492
+ assert.match(patched, /typeof globalThis\.__claudeBun/);
493
+ assert.match(patched, /globalThis\.__claudeBun/);
494
+ assert.match(patched, /__claudeBun\./);
495
+ assert.equal((patched.match(/__claudeBun\./g) || []).length, 42);
496
+ } finally {
497
+ delete process.env.CURRENT_CLAUDE_VERSION;
498
+ }
499
+ });
500
+
501
+ test('rewriteNativeChunkSource rejects stale Bun property access count for version 2.1.219', () => {
502
+ process.env.CURRENT_CLAUDE_VERSION = '2.1.219';
503
+ try {
504
+ const { rewriteNativeChunkSource } = loadHelperApi();
505
+ const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
506
+ const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
507
+ const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
508
+
509
+ assert.throws(
510
+ () => rewriteNativeChunkSource(source),
511
+ /unexpected Bun property access count 41/,
512
+ );
513
+ } finally {
514
+ delete process.env.CURRENT_CLAUDE_VERSION;
515
+ }
516
+ });
517
+
481
518
  test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
482
519
  const { rewriteNativeChunkSource } = loadHelperApi();
483
520
  const source = buildSyntheticBundleSource().replace('Bun.p30;', '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash0816/claude-code",
3
- "version": "2.1.218",
3
+ "version": "2.1.219",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {