@bash0816/claude-code 2.1.231 → 2.1.232
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
|
@@ -688,7 +688,16 @@
|
|
|
688
688
|
"entry_end_offset": 299210420,
|
|
689
689
|
"tarball_integrity": "sha512-a0YGXTjk6N5yRWE30dkbtS0tTZ5hOEXFCjTTX2slSa7XULMlJJLQ1X8oFJwpXmlvZu9FHx1YRLKJnni05uNIQQ==",
|
|
690
690
|
"tarball_sha256": "f50fa4b2270707208a3ae870deae8c562ec6b2f4d7bf778fca6275d13908b714",
|
|
691
|
-
"status": "
|
|
691
|
+
"status": "termux_verified"
|
|
692
|
+
},
|
|
693
|
+
"2.1.232": {
|
|
694
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.232",
|
|
695
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.232",
|
|
696
|
+
"entry_js_offset": 284086193,
|
|
697
|
+
"entry_end_offset": 310581163,
|
|
698
|
+
"tarball_integrity": "sha512-5Aub8i5pjCVlDBP/tIpHwO/8owfNBu2+FP+w0U8Jmy9s6cEhg/HB7Nyp9KyADhN74w6t0TVGvzUdnFXVMANI4Q==",
|
|
699
|
+
"tarball_sha256": "97322189ff3c884e86d2ba2981d21c9874ca78261a8bff65a4ef6f673ef98fa6",
|
|
700
|
+
"status": "termux_verified"
|
|
692
701
|
}
|
|
693
702
|
}
|
|
694
703
|
}
|
|
@@ -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.232",
|
|
5
|
+
"latest_candidate_version": "2.1.232",
|
|
6
|
+
"previous_stable_version": "2.1.231",
|
|
7
7
|
"stable_pinned_version": "2.1.220-2",
|
|
8
8
|
"manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
|
|
9
9
|
}
|
|
@@ -599,6 +599,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
599
599
|
const _bunPropertyAccessExpected = (() => {
|
|
600
600
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
601
601
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
602
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 232)) return 45;
|
|
602
603
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 224)) return 44;
|
|
603
604
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 223)) return 43;
|
|
604
605
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
|
|
@@ -1554,6 +1555,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
1554
1555
|
const _bunPropertyAccessExpected = (() => {
|
|
1555
1556
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
1556
1557
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
1558
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 232)) return 45;
|
|
1557
1559
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 224)) return 44;
|
|
1558
1560
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 223)) return 43;
|
|
1559
1561
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
|
|
@@ -605,6 +605,43 @@ test('rewriteNativeChunkSource rejects stale Bun property access count for versi
|
|
|
605
605
|
}
|
|
606
606
|
});
|
|
607
607
|
|
|
608
|
+
test('rewriteNativeChunkSource rewrites the synthetic bundle slice (version 2.1.232)', () => {
|
|
609
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.232';
|
|
610
|
+
try {
|
|
611
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
612
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
613
|
+
const bunProps = Array.from({ length: 45 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
614
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0; function dYs(){return(e,t,r)=>{let{cmd:n,prefixArgs:o}=ox({pinToCurrentBinary:!0}),i=[n,...o,"--bg-pty-host",r.ptySock];return i}} }`;
|
|
615
|
+
const patched = rewriteNativeChunkSource(source);
|
|
616
|
+
|
|
617
|
+
assert.match(patched, /var __claudeBun = globalThis\.__claudeBunShim;/);
|
|
618
|
+
assert.match(patched, /typeof __claudeBun/);
|
|
619
|
+
assert.match(patched, /typeof globalThis\.__claudeBun/);
|
|
620
|
+
assert.match(patched, /globalThis\.__claudeBun/);
|
|
621
|
+
assert.match(patched, /__claudeBun\./);
|
|
622
|
+
assert.equal((patched.match(/__claudeBun\./g) || []).length, 45);
|
|
623
|
+
} finally {
|
|
624
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
625
|
+
}
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
test('rewriteNativeChunkSource rejects stale Bun property access count for version 2.1.232', () => {
|
|
629
|
+
process.env.CURRENT_CLAUDE_VERSION = '2.1.232';
|
|
630
|
+
try {
|
|
631
|
+
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
632
|
+
const typeofBun = Array.from({ length: 7 }, () => 'typeof Bun').join('; ');
|
|
633
|
+
const bunProps = Array.from({ length: 44 }, (_, index) => `Bun.p${index}`).join('; ');
|
|
634
|
+
const source = `function(exports, require, module, __filename, __dirname) { ${typeofBun}; typeof globalThis.Bun; globalThis.Bun; ${bunProps}; npmInstallDeprecated:!0; npmInstallDeprecated:!0; function dYs(){return(e,t,r)=>{let{cmd:n,prefixArgs:o}=ox({pinToCurrentBinary:!0}),i=[n,...o,"--bg-pty-host",r.ptySock];return i}} }`;
|
|
635
|
+
|
|
636
|
+
assert.throws(
|
|
637
|
+
() => rewriteNativeChunkSource(source),
|
|
638
|
+
/unexpected Bun property access count 44/,
|
|
639
|
+
);
|
|
640
|
+
} finally {
|
|
641
|
+
delete process.env.CURRENT_CLAUDE_VERSION;
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
|
|
608
645
|
test('rewriteNativeChunkSource rejects unexpected replacement counts', () => {
|
|
609
646
|
const { rewriteNativeChunkSource } = loadHelperApi();
|
|
610
647
|
const source = buildSyntheticBundleSource().replace('Bun.p30;', '');
|