@bash0816/claude-code 2.1.204 → 2.1.205
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
|
@@ -445,6 +445,15 @@
|
|
|
445
445
|
"entry_end_offset": 248215712,
|
|
446
446
|
"tarball_integrity": "sha512-modtmDBn++ENMTwu+OKuq/iJmSXIIeijw3sn+Cd7zoKzZuGGGVAiOshpojrJO7RgSUXPmM2HIr5n1pKoF4mYMQ==",
|
|
447
447
|
"tarball_sha256": "23c52e5e2e04a072d274436276d32a5c7f9672f8772a216d7d03c35961c047f9",
|
|
448
|
+
"status": "termux_verified"
|
|
449
|
+
},
|
|
450
|
+
"2.1.205": {
|
|
451
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.205",
|
|
452
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.205",
|
|
453
|
+
"entry_js_offset": 229516132,
|
|
454
|
+
"entry_end_offset": 248686185,
|
|
455
|
+
"tarball_integrity": "sha512-6xZPQQjQjWIAp3AsCfUBAPMTfD/GdVaNfBOQ/BVfEZN4H6h/dQN1lmctMcfEXXBstul4VoOYzuzALFKlPRzukg==",
|
|
456
|
+
"tarball_sha256": "b9bee2e92869637ccf2d154ae09baaba561b7354b32f15ab8549a9b731b53847",
|
|
448
457
|
"status": "offset_discovered"
|
|
449
458
|
}
|
|
450
459
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 1,
|
|
3
3
|
"package_name": "@bash0816/claude-code",
|
|
4
|
-
"latest_audited_version": "2.1.
|
|
5
|
-
"latest_candidate_version": "2.1.
|
|
6
|
-
"previous_stable_version": "2.1.
|
|
4
|
+
"latest_audited_version": "2.1.204",
|
|
5
|
+
"latest_candidate_version": "2.1.205",
|
|
6
|
+
"previous_stable_version": "2.1.203",
|
|
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]) >= 205)) return 38;
|
|
586
587
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 202)) return 41;
|
|
587
588
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
|
|
588
589
|
return 37;
|
|
@@ -1273,6 +1274,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
1273
1274
|
const _bunPropertyAccessExpected = (() => {
|
|
1274
1275
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
1275
1276
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
1277
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 205)) return 38;
|
|
1276
1278
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 202)) return 41;
|
|
1277
1279
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 200)) return 40;
|
|
1278
1280
|
return 37;
|
|
@@ -365,6 +365,44 @@ test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.
|
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
|
|
368
|
+
test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.205)', () => {
|
|
369
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.205';
|
|
370
|
+
try {
|
|
371
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
372
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
373
|
+
const bunProps = Array.from({ length: 38 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
374
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
|
|
375
|
+
const patched = rewriteNativeChunkSource(source);
|
|
376
|
+
|
|
377
|
+
assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
|
|
378
|
+
assert.match(patched, /typeof __claudeBun/);
|
|
379
|
+
assert.match(patched, /typeof globalThis\.__claudeBun/);
|
|
380
|
+
assert.match(patched, /globalThis\.__claudeBun/);
|
|
381
|
+
assert.match(patched, /__claudeBun\./);
|
|
382
|
+
assert.match(patched, /npmInstallDeprecated:!1/);
|
|
383
|
+
assert.doesNotMatch(patched, /npmInstallDeprecated:!0/);
|
|
384
|
+
} finally {
|
|
385
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
test('rewriteNativeChunkSource rejects stale Bun property access count for version 2.1.205', () => {
|
|
390
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.205';
|
|
391
|
+
try {
|
|
392
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
393
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
394
|
+
const bunProps = Array.from({ length: 41 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
395
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0 }`;
|
|
396
|
+
|
|
397
|
+
assert.throws(
|
|
398
|
+
() => rewriteNativeChunkSource(source),
|
|
399
|
+
/unexpected Bun property access count 41/,
|
|
400
|
+
);
|
|
401
|
+
} finally {
|
|
402
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
|
|
368
406
|
test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
|
|
369
407
|
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
370
408
|
const source = buildSyntheticBundleSource().replace('Bun.p30;', '');
|