@bash0816/claude-code 2.1.201 → 2.1.202

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.200
40
+ npm install -g @bash0816/claude-code@2.1.201
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -418,6 +418,15 @@
418
418
  "entry_end_offset": 246293196,
419
419
  "tarball_integrity": "sha512-3/5r/T5+zb8oxhkoO6nGNfaSpmRxCKfDxMx1oIEXVUhjXhqGCP1DAp+DgL5o76HaJgerL9euBKxSNuDiDAfrjg==",
420
420
  "tarball_sha256": "f8e1966c35b1cd48445399eb17258d8619329ce2db48cfe4f335857d83e81c7d",
421
+ "status": "termux_verified"
422
+ },
423
+ "2.1.202": {
424
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.202",
425
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.202",
426
+ "entry_js_offset": 234690308,
427
+ "entry_end_offset": 256775735,
428
+ "tarball_integrity": "sha512-9UBnDApKhqiUT3iX3i4hU8P4BztWvQkM5ZiLNBXPS4B9yBRrTc68fYG/I3WxC7Gt/+cV5ekTSGf8GUmMVpoERQ==",
429
+ "tarball_sha256": "046411b9737e1bcb1c811e28c5278550a560062029411061dc559e23e77660e7",
421
430
  "status": "offset_discovered"
422
431
  }
423
432
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.200",
5
- "latest_candidate_version": "2.1.201",
6
- "previous_stable_version": "2.1.198",
7
- "stable_pinned_version": "2.1.176",
4
+ "latest_audited_version": "2.1.201",
5
+ "latest_candidate_version": "2.1.202",
6
+ "previous_stable_version": "2.1.200",
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]) >= 202)) return 41;
586
587
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
587
588
  return 37;
588
589
  })();
@@ -1266,6 +1267,7 @@ function rewriteNativeChunkSource(source) {
1266
1267
  const _bunPropertyAccessExpected = (() => {
1267
1268
  const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
1268
1269
  const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
1270
+ if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 202)) return 41;
1269
1271
  if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
1270
1272
  return 37;
1271
1273
  })();
@@ -323,6 +323,27 @@ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.
323
323
  }
324
324
  });
325
325
 
326
+ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.202)', () => {
327
+ process.env.CURRENT_CLAUDE_VERSION = '2.1.202';
328
+ try {
329
+ const { rewriteNativeChunkSource } = loadHelperApi();
330
+ const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
331
+ const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
332
+ const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0 }`;
333
+ const patched = rewriteNativeChunkSource(source);
334
+
335
+ assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
336
+ assert.match(patched, /typeof __claudeBun/);
337
+ assert.match(patched, /typeof globalThis\.__claudeBun/);
338
+ assert.match(patched, /globalThis\.__claudeBun/);
339
+ assert.match(patched, /__claudeBun\./);
340
+ assert.match(patched, /npmInstallDeprecated:!1/);
341
+ assert.doesNotMatch(patched, /npmInstallDeprecated:!0/);
342
+ } finally {
343
+ delete process.env.CURRENT_CLAUDE_VERSION;
344
+ }
345
+ });
346
+
326
347
  test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
327
348
  const { rewriteNativeChunkSource } = loadHelperApi();
328
349
  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.201",
3
+ "version": "2.1.202",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {