@bash0816/claude-code 2.1.202 → 2.1.203

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.201
40
+ npm install -g @bash0816/claude-code@2.1.202
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -427,6 +427,15 @@
427
427
  "entry_end_offset": 256775735,
428
428
  "tarball_integrity": "sha512-9UBnDApKhqiUT3iX3i4hU8P4BztWvQkM5ZiLNBXPS4B9yBRrTc68fYG/I3WxC7Gt/+cV5ekTSGf8GUmMVpoERQ==",
429
429
  "tarball_sha256": "046411b9737e1bcb1c811e28c5278550a560062029411061dc559e23e77660e7",
430
+ "status": "termux_verified"
431
+ },
432
+ "2.1.203": {
433
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.203",
434
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.203",
435
+ "entry_js_offset": 229114740,
436
+ "entry_end_offset": 248210622,
437
+ "tarball_integrity": "sha512-xJKtMGZRG+pe2rWV3Ozg9vi9pyWnbcMoLUlxxou/4mthp7w0g6r51SyKDbJMKh/cuzIYT69A/Tb6hIqqPqYZWQ==",
438
+ "tarball_sha256": "24d35434ab219fd166a5a735347bbe7144fa55e4f522d6c649a7454ee3f4b22e",
430
439
  "status": "offset_discovered"
431
440
  }
432
441
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.201",
5
- "latest_candidate_version": "2.1.202",
6
- "previous_stable_version": "2.1.200",
4
+ "latest_audited_version": "2.1.202",
5
+ "latest_candidate_version": "2.1.203",
6
+ "previous_stable_version": "2.1.201",
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
  }
@@ -594,12 +594,18 @@ function rewriteNativeChunkSource(source) {
594
594
  'Bun property access',
595
595
  _bunPropertyAccessExpected,
596
596
  );
597
+ const _npmInstallDeprecatedExpected = (() => {
598
+ const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
599
+ const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
600
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
601
+ return 1;
602
+ })();
597
603
  patched = replaceRequired(
598
604
  patched,
599
605
  /\bnpmInstallDeprecated:!0\b/g,
600
606
  'npmInstallDeprecated:!1',
601
607
  'npmInstallDeprecated flag',
602
- 1,
608
+ _npmInstallDeprecatedExpected,
603
609
  );
604
610
  return patched;
605
611
  }
@@ -1278,12 +1284,18 @@ function rewriteNativeChunkSource(source) {
1278
1284
  'Bun property access',
1279
1285
  _bunPropertyAccessExpected,
1280
1286
  );
1287
+ const _npmInstallDeprecatedExpected = (() => {
1288
+ const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
1289
+ const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
1290
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 203)) return 2;
1291
+ return 1;
1292
+ })();
1281
1293
  patched = replaceRequired(
1282
1294
  patched,
1283
1295
  /\bnpmInstallDeprecated:!0\b/g,
1284
1296
  'npmInstallDeprecated:!1',
1285
1297
  'npmInstallDeprecated flag',
1286
- 1,
1298
+ _npmInstallDeprecatedExpected,
1287
1299
  );
1288
1300
  return patched;
1289
1301
  }
@@ -344,6 +344,27 @@ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.
344
344
  }
345
345
  });
346
346
 
347
+ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.203)', () => {
348
+ process.env.CURRENT_CLAUDE_VERSION = '2.1.203';
349
+ try {
350
+ const { rewriteNativeChunkSource } = loadHelperApi();
351
+ const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
352
+ const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
353
+ const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
354
+ const patched = rewriteNativeChunkSource(source);
355
+
356
+ assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
357
+ assert.match(patched, /typeof __claudeBun/);
358
+ assert.match(patched, /typeof globalThis\.__claudeBun/);
359
+ assert.match(patched, /globalThis\.__claudeBun/);
360
+ assert.match(patched, /__claudeBun\./);
361
+ assert.match(patched, /npmInstallDeprecated:!1/);
362
+ assert.doesNotMatch(patched, /npmInstallDeprecated:!0/);
363
+ } finally {
364
+ delete process.env.CURRENT_CLAUDE_VERSION;
365
+ }
366
+ });
367
+
347
368
  test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
348
369
  const { rewriteNativeChunkSource } = loadHelperApi();
349
370
  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.202",
3
+ "version": "2.1.203",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {