@bash0816/claude-code 2.1.268 → 2.1.270

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.265
40
+ npm install -g @bash0816/claude-code@2.1.269
41
41
  ```
42
42
 
43
43
  ## Update / 更新
@@ -1687,7 +1687,7 @@
1687
1687
  "entry_format": "esm-chunked",
1688
1688
  "tarball_integrity": "sha512-roxzE42QnT9Kp7ebPHPXQrCv4COI+OjIEQ9yvvxrRolVT18WLn3rUm8GBd1t5YqZLfvefbfgypKyFJKpyK3AbA==",
1689
1689
  "tarball_sha256": "3672b568660254dcb1c02a17b59927006cce90b7190e167ca249a8ebbb2fb505",
1690
- "status": "offset_discovered",
1690
+ "status": "termux_verified",
1691
1691
  "num_modules": 1837,
1692
1692
  "byte_count": 130930631,
1693
1693
  "cycle_hoists": [
@@ -1779,6 +1779,204 @@
1779
1779
  "hljsBundle.generated.min.js",
1780
1780
  "mermaid.min.js"
1781
1781
  ]
1782
+ },
1783
+ "2.1.269": {
1784
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.269",
1785
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.269",
1786
+ "entry_format": "esm-chunked",
1787
+ "tarball_integrity": "sha512-aFhjKAV8ihVlhyeXwRxzC9JpoDinXIMpJFbl+JW3Lc68XhCq5+O27qiryOV0RQ3MtUo1uxoOXrAhX3vUNGjUnA==",
1788
+ "tarball_sha256": "61e3610ab8c5d1af961f08a4d7b58b6ec6b220d0e3b777511a0399d306b7c765",
1789
+ "status": "termux_verified",
1790
+ "num_modules": 1864,
1791
+ "byte_count": 131352394,
1792
+ "cycle_hoists": [
1793
+ {
1794
+ "file": "chunk-6sssesag.js",
1795
+ "targetModule": "chunk-wtrnpg16.js",
1796
+ "expectedOccurrences": 1,
1797
+ "assertProperties": []
1798
+ },
1799
+ {
1800
+ "file": "chunk-fjfjb1nh.js",
1801
+ "targetModule": "chunk-8tx17qea.js",
1802
+ "expectedOccurrences": 1,
1803
+ "assertProperties": []
1804
+ },
1805
+ {
1806
+ "file": "chunk-fjfjb1nh.js",
1807
+ "targetModule": "chunk-5ax8rp9j.js",
1808
+ "expectedOccurrences": 2,
1809
+ "assertProperties": []
1810
+ },
1811
+ {
1812
+ "file": "chunk-fjfjb1nh.js",
1813
+ "targetModule": "chunk-db0xh8be.js",
1814
+ "expectedOccurrences": 1,
1815
+ "assertProperties": []
1816
+ },
1817
+ {
1818
+ "file": "chunk-fjfjb1nh.js",
1819
+ "targetModule": "chunk-w3v96zq6.js",
1820
+ "expectedOccurrences": 1,
1821
+ "assertProperties": [
1822
+ "MonitorTool"
1823
+ ]
1824
+ },
1825
+ {
1826
+ "file": "chunk-fjfjb1nh.js",
1827
+ "targetModule": "chunk-7twx10p5.js",
1828
+ "expectedOccurrences": 1,
1829
+ "assertProperties": [
1830
+ "ProposeSkillsTool"
1831
+ ]
1832
+ },
1833
+ {
1834
+ "file": "chunk-fjfjb1nh.js",
1835
+ "targetModule": "chunk-ww964qp2.js",
1836
+ "expectedOccurrences": 1,
1837
+ "assertProperties": [
1838
+ "EndConversationTool"
1839
+ ]
1840
+ },
1841
+ {
1842
+ "file": "chunk-fjfjb1nh.js",
1843
+ "targetModule": "chunk-s1kc7scx.js",
1844
+ "expectedOccurrences": 1,
1845
+ "assertProperties": [
1846
+ "ArtifactTool"
1847
+ ]
1848
+ },
1849
+ {
1850
+ "file": "chunk-fjfjb1nh.js",
1851
+ "targetModule": "chunk-2kfyyh31.js",
1852
+ "expectedOccurrences": 1,
1853
+ "assertProperties": [
1854
+ "WorkflowTool"
1855
+ ]
1856
+ },
1857
+ {
1858
+ "file": "chunk-fjfjb1nh.js",
1859
+ "targetModule": "chunk-142amtjm.js",
1860
+ "expectedOccurrences": 1,
1861
+ "assertProperties": [
1862
+ "default"
1863
+ ]
1864
+ },
1865
+ {
1866
+ "file": "chunk-fjfjb1nh.js",
1867
+ "targetModule": "chunk-epshjzre.js",
1868
+ "expectedOccurrences": 3,
1869
+ "assertProperties": [
1870
+ "getWorkflowCommands",
1871
+ "invalidateWorkflowCache",
1872
+ "warmWorkflows"
1873
+ ]
1874
+ }
1875
+ ],
1876
+ "cycle_hoists_skipped_assets": [
1877
+ "chart.umd.min.js",
1878
+ "hljsBundle.generated.min.js",
1879
+ "mermaid.min.js"
1880
+ ]
1881
+ },
1882
+ "2.1.270": {
1883
+ "wrapper_spec": "@anthropic-ai/claude-code@2.1.270",
1884
+ "native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.270",
1885
+ "entry_format": "esm-chunked",
1886
+ "tarball_integrity": "sha512-ByrnDr5s29glkjniJiYgnEVn/Qlc2xzodC+c/Cmg/SiFVPQrKtYGFFD8oO3MPFZVPddS+y15ESD3Jym1lUAv0A==",
1887
+ "tarball_sha256": "9c2c52fc53e97cc8e5e20848865c53425193251e6764c2abe975c6642587e9f3",
1888
+ "status": "offset_discovered",
1889
+ "num_modules": 1864,
1890
+ "byte_count": 135681456,
1891
+ "cycle_hoists": [
1892
+ {
1893
+ "file": "chunk-ebb5qxj5.js",
1894
+ "targetModule": "chunk-66tgg160.js",
1895
+ "expectedOccurrences": 1,
1896
+ "assertProperties": []
1897
+ },
1898
+ {
1899
+ "file": "chunk-ebb5qxj5.js",
1900
+ "targetModule": "chunk-bmzf571w.js",
1901
+ "expectedOccurrences": 2,
1902
+ "assertProperties": []
1903
+ },
1904
+ {
1905
+ "file": "chunk-ebb5qxj5.js",
1906
+ "targetModule": "chunk-z940by94.js",
1907
+ "expectedOccurrences": 1,
1908
+ "assertProperties": []
1909
+ },
1910
+ {
1911
+ "file": "chunk-ebb5qxj5.js",
1912
+ "targetModule": "chunk-z895hw5y.js",
1913
+ "expectedOccurrences": 1,
1914
+ "assertProperties": [
1915
+ "MonitorTool"
1916
+ ]
1917
+ },
1918
+ {
1919
+ "file": "chunk-ebb5qxj5.js",
1920
+ "targetModule": "chunk-sfv8y2ta.js",
1921
+ "expectedOccurrences": 1,
1922
+ "assertProperties": [
1923
+ "ProposeSkillsTool"
1924
+ ]
1925
+ },
1926
+ {
1927
+ "file": "chunk-ebb5qxj5.js",
1928
+ "targetModule": "chunk-pqms797a.js",
1929
+ "expectedOccurrences": 1,
1930
+ "assertProperties": [
1931
+ "EndConversationTool"
1932
+ ]
1933
+ },
1934
+ {
1935
+ "file": "chunk-ebb5qxj5.js",
1936
+ "targetModule": "chunk-q1a06axc.js",
1937
+ "expectedOccurrences": 1,
1938
+ "assertProperties": [
1939
+ "ArtifactTool"
1940
+ ]
1941
+ },
1942
+ {
1943
+ "file": "chunk-ebb5qxj5.js",
1944
+ "targetModule": "chunk-fv5vyk4g.js",
1945
+ "expectedOccurrences": 1,
1946
+ "assertProperties": [
1947
+ "WorkflowTool"
1948
+ ]
1949
+ },
1950
+ {
1951
+ "file": "chunk-ebb5qxj5.js",
1952
+ "targetModule": "chunk-z6wtf0n9.js",
1953
+ "expectedOccurrences": 1,
1954
+ "assertProperties": [
1955
+ "default"
1956
+ ]
1957
+ },
1958
+ {
1959
+ "file": "chunk-ebb5qxj5.js",
1960
+ "targetModule": "chunk-h8hx8zc3.js",
1961
+ "expectedOccurrences": 3,
1962
+ "assertProperties": [
1963
+ "getWorkflowCommands",
1964
+ "invalidateWorkflowCache",
1965
+ "warmWorkflows"
1966
+ ]
1967
+ },
1968
+ {
1969
+ "file": "chunk-j06v06np.js",
1970
+ "targetModule": "chunk-yg5wgv7y.js",
1971
+ "expectedOccurrences": 1,
1972
+ "assertProperties": []
1973
+ }
1974
+ ],
1975
+ "cycle_hoists_skipped_assets": [
1976
+ "chart.umd.min.js",
1977
+ "hljsBundle.generated.min.js",
1978
+ "mermaid.min.js"
1979
+ ]
1782
1980
  }
1783
1981
  }
1784
1982
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "manifest_version": 1,
3
3
  "package_name": "@bash0816/claude-code",
4
- "latest_audited_version": "2.1.265",
5
- "latest_candidate_version": "2.1.268",
6
- "previous_stable_version": "2.1.263",
4
+ "latest_audited_version": "2.1.269",
5
+ "latest_candidate_version": "2.1.270",
6
+ "previous_stable_version": "2.1.268",
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
  }
@@ -689,6 +689,9 @@ async function esmChunkedMain() {
689
689
  zstdDecompressSync: (buf) => require('node:zlib').zstdDecompressSync(buf),
690
690
  zstdDecompress: (buf) => new Promise((res, rej) =>
691
691
  require('node:zlib').zstdDecompress(buf, (e, r) => (e ? rej(e) : res(r)))),
692
+ unsafe: {
693
+ setJITPolicy: () => undefined,
694
+ },
692
695
  };
693
696
  Object.defineProperty(process.versions, 'bun', { value: '1.1.8', configurable: true });
694
697
  globalThis.__claudeBunShim = globalThis.Bun;
@@ -1010,6 +1013,9 @@ async function legacyCjsMain() {
1010
1013
  err.errno = -2;
1011
1014
  throw err;
1012
1015
  },
1016
+ unsafe: {
1017
+ setJITPolicy: () => undefined,
1018
+ },
1013
1019
  };
1014
1020
  Object.assign(globalThis.__claudeBunShim, globalThis.Bun);
1015
1021
  if (typeof globalThis.__claudeBunShim.gc !== 'function') {
@@ -1719,6 +1725,9 @@ async function esmChunkedMain() {
1719
1725
  zstdDecompressSync: (buf) => require('node:zlib').zstdDecompressSync(buf),
1720
1726
  zstdDecompress: (buf) => new Promise((res, rej) =>
1721
1727
  require('node:zlib').zstdDecompress(buf, (e, r) => (e ? rej(e) : res(r)))),
1728
+ unsafe: {
1729
+ setJITPolicy: () => undefined,
1730
+ },
1722
1731
  };
1723
1732
  Object.defineProperty(process.versions, 'bun', { value: '1.1.8', configurable: true });
1724
1733
  globalThis.__claudeBunShim = globalThis.Bun;
@@ -2042,6 +2051,9 @@ async function legacyCjsMain() {
2042
2051
  err.errno = -2;
2043
2052
  throw err;
2044
2053
  },
2054
+ unsafe: {
2055
+ setJITPolicy: () => undefined,
2056
+ },
2045
2057
  };
2046
2058
  Object.assign(globalThis.__claudeBunShim, globalThis.Bun);
2047
2059
  if (typeof globalThis.__claudeBunShim.gc !== 'function') {
@@ -1579,6 +1579,31 @@ function loadBunShim(source) {
1579
1579
  return context.module.exports;
1580
1580
  }
1581
1581
 
1582
+ function extractEsmShimSource(block) {
1583
+ const startMarker = '\n globalThis.Bun = {';
1584
+ const endMarker = '\n globalThis.__claudeBun = globalThis.Bun;';
1585
+ const start = block.indexOf(startMarker);
1586
+ assert.notEqual(start, -1, 'missing ESM Bun shim start');
1587
+ const end = block.indexOf(endMarker, start);
1588
+ assert.notEqual(end, -1, 'missing ESM Bun shim end');
1589
+ return block.slice(start + 1, end + endMarker.length);
1590
+ }
1591
+
1592
+ function loadEsmBunShim(source) {
1593
+ const context = vm.createContext({
1594
+ stringWidth: () => 0,
1595
+ wrapAnsi: value => value,
1596
+ stripANSI: value => value,
1597
+ stableHash: () => 0,
1598
+ process: { versions: {} },
1599
+ Buffer,
1600
+ require,
1601
+ });
1602
+ context.module = { exports: {} };
1603
+ vm.runInContext(`${source}\nmodule.exports = globalThis.Bun;`, context);
1604
+ return context.module.exports;
1605
+ }
1606
+
1582
1607
  test('helper and bootstrap Bun shim source is identical', () => {
1583
1608
  const helperBlock = extractBlock('cat <<\'NODE\' > "$_helper"', '\n export ENABLE_CLAUDEAI_MCP_SERVERS=');
1584
1609
  const bootstrapBlock = extractBlock('cat <<\'NODE\' > "$_bootstrap"', '\n export ENABLE_CLAUDEAI_MCP_SERVERS=');
@@ -1801,6 +1826,22 @@ test('both esmChunkedMain blocks have correct hook registration order', () => {
1801
1826
  assert.ok(blockCount >= 2, 'should have at least 2 esmChunkedMain blocks');
1802
1827
  });
1803
1828
 
1829
+ test('ESM Bun shim exposes unsafe.setJITPolicy as a safe no-op (helper/bootstrap)', () => {
1830
+ for (const blockMarker of ['cat <<\'NODE\' > "$_helper"', 'cat <<\'NODE\' > "$_bootstrap"']) {
1831
+ const block = extractBlock(blockMarker, '\n export ENABLE_CLAUDEAI_MCP_SERVERS=');
1832
+ const Bun = loadEsmBunShim(extractEsmShimSource(block));
1833
+ assert.equal(Bun.unsafe.setJITPolicy(1), undefined);
1834
+ }
1835
+ });
1836
+
1837
+ test('legacy Bun shim exposes unsafe.setJITPolicy as a safe no-op (helper/bootstrap)', () => {
1838
+ for (const blockMarker of ['cat <<\'NODE\' > "$_helper"', 'cat <<\'NODE\' > "$_bootstrap"']) {
1839
+ const block = extractBlock(blockMarker, '\n export ENABLE_CLAUDEAI_MCP_SERVERS=');
1840
+ const Bun = loadBunShim(extractShimSource(block));
1841
+ assert.equal(Bun.unsafe.setJITPolicy(1), undefined);
1842
+ }
1843
+ });
1844
+
1804
1845
  test('termux-run-claude-native.sh maintains compatibility with new zstd fields', () => {
1805
1846
  // Verify that the script structure is preserved
1806
1847
  const hasSourceBin = script.includes('SOURCE_BIN=');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash0816/claude-code",
3
- "version": "2.1.268",
3
+ "version": "2.1.270",
4
4
  "description": "Unofficial Termux-native Claude Code wrapper with audited native replay",
5
5
  "license": "GPL-3.0-only",
6
6
  "bin": {