@bash0816/claude-code 2.1.197 → 2.1.198

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.195
40
+ npm install -g @bash0816/claude-code@2.1.197
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -391,6 +391,15 @@
391
391
  "entry_end_offset": 240507229,
392
392
  "tarball_integrity": "sha512-sx6SoGj3MNR5CV+YDkNtbLHXa1tn3G8qcYFgm1gnvOi9ODQUKbhiPfankJfkTMDVekOvnKJhm6i9hGFIPzp7cQ==",
393
393
  "tarball_sha256": "61b142bb8d6c86e627ac7289739ee38150f598374474de696f3e1cebe112fa41",
394
+ "status": "termux_verified"
395
+ },
396
+ "2.1.198": {
397
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.198",
398
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.198",
399
+ "entry_js_offset": 225462420,
400
+ "entry_end_offset": 243892947,
401
+ "tarball_integrity": "sha512-+7i3CtYtmrcnJQpxP0Jh98Tj6bo2EV98Ip3HViVPPPrf3ZRoseXvacafjlrw8IB0vOYGhp65wKuQ6li4iKLN3A==",
402
+ "tarball_sha256": "83155e7b37846627c91118176996ee7e43bf6aa8a81df55745eb193c7929db62",
394
403
  "status": "offset_discovered"
395
404
  }
396
405
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.195",
5
- "latest_candidate_version": "2.1.197",
6
- "previous_stable_version": "2.1.193",
4
+ "latest_audited_version": "2.1.197",
5
+ "latest_candidate_version": "2.1.198",
6
+ "previous_stable_version": "2.1.195",
7
7
  "stable_pinned_version": "2.1.176",
8
8
  "manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
9
9
  }
@@ -114,7 +114,8 @@ function shouldNotify(cache, latestVersion) {
114
114
 
115
115
  function installTarget(packageName, targetVersion) {
116
116
  const spec = `${packageName}@${targetVersion}`;
117
- const command = `npm install -g ${spec}`;
117
+ const prefix = path.resolve(packageDir, '..', '..', '..', '..');
118
+ const command = `npm install -g --prefix ${prefix} ${spec}`;
118
119
 
119
120
  if (dryRun) {
120
121
  console.log(command);
@@ -122,7 +123,7 @@ function installTarget(packageName, targetVersion) {
122
123
  }
123
124
 
124
125
  console.error(`Updating to audited version ${targetVersion}`);
125
- const result = cp.spawnSync('npm', ['install', '-g', spec], {
126
+ const result = cp.spawnSync('npm', ['install', '-g', '--prefix', prefix, spec], {
126
127
  stdio: 'inherit',
127
128
  env: process.env,
128
129
  });
@@ -579,7 +579,7 @@ function rewriteNativeChunkSource(source) {
579
579
  /\bBun\./g,
580
580
  '__claudeBun.',
581
581
  'Bun property access',
582
- 38,
582
+ 37,
583
583
  );
584
584
  patched = replaceRequired(
585
585
  patched,
@@ -1250,7 +1250,7 @@ function rewriteNativeChunkSource(source) {
1250
1250
  /\bBun\./g,
1251
1251
  '__claudeBun.',
1252
1252
  'Bun property access',
1253
- 38,
1253
+ 37,
1254
1254
  );
1255
1255
  patched = replaceRequired(
1256
1256
  patched,
@@ -279,7 +279,7 @@ test('cleanupStaleEntryFiles removes only stale extracted files for the same off
279
279
 
280
280
  function buildSyntheticBundleSource() {
281
281
  const typeofBun = Array.from({ length: 6 }, () => 'typeof Bun').join('; ');
282
- const bunProps = Array.from({ length: 38 }, (_, index) => `Bun.p${index}`).join('; ');
282
+ const bunProps = Array.from({ length: 37 }, (_, index) => `Bun.p${index}`).join('; ');
283
283
  return `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0 }`;
284
284
  }
285
285
 
@@ -303,7 +303,7 @@ test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
303
303
 
304
304
  assert.throws(
305
305
  () => rewriteNativeChunkSource(source),
306
- /unexpected Bun property access count 37/,
306
+ /unexpected Bun property access count 36/,
307
307
  );
308
308
  });
309
309
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash0816/claude-code",
3
- "version": "2.1.197",
3
+ "version": "2.1.198",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {