@bash0816/claude-code 2.1.223 → 2.1.224
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.
|
|
40
|
+
npm install -g @bash0816/claude-code@2.1.223-1
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## Update / 更新
|
|
@@ -66,6 +66,35 @@ Normal launch also checks the same manifest with a short timeout and prints a no
|
|
|
66
66
|
|
|
67
67
|
通常起動時も、同じ manifest を短い timeout で確認し、新しい監査済み version があれば通知します。
|
|
68
68
|
|
|
69
|
+
## Known Issues / 既知の問題
|
|
70
|
+
|
|
71
|
+
Background sessions (`/background`, `claude agents`, the on-demand daemon) do not work on this
|
|
72
|
+
Termux wrapper: the Bun `Terminal` (PTY) API is not implemented by the compatibility shim. Since
|
|
73
|
+
`2.1.223-1`, this feature is disabled by default (`CLAUDE_CODE_DISABLE_AGENT_VIEW=1`) because
|
|
74
|
+
attempting to use it can cause an in-progress foreground conversation to be unexpectedly moved to
|
|
75
|
+
the background and become unreachable.
|
|
76
|
+
|
|
77
|
+
この Termux wrapper では、background session 機能(`/background`、`claude agents`、on-demand
|
|
78
|
+
daemon)が動作しません。互換 shim には Bun の `Terminal`(PTY)API が実装されていないためです。
|
|
79
|
+
`2.1.223-1` からはこの機能をデフォルトで無効化しています(`CLAUDE_CODE_DISABLE_AGENT_VIEW=1`)。
|
|
80
|
+
これは、この機能を使おうとすると、**進行中のフォアグラウンド会話が予告なくバックグラウンドへ
|
|
81
|
+
移動し、到達不能になることがある**ためです。
|
|
82
|
+
|
|
83
|
+
If you want to re-enable it anyway (understanding it may cause this issue), set the variable to
|
|
84
|
+
exactly `0` before launching:
|
|
85
|
+
|
|
86
|
+
理解した上であえて再有効化したい場合は、起動前に厳密に `0` を設定してください:
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
CLAUDE_CODE_DISABLE_AGENT_VIEW=0 claude
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Any value other than `1`/`true`/`yes`/`on` (case-insensitive) re-enables the feature, so a typo
|
|
93
|
+
like `disable` or `Y` will silently turn protection off. Use exactly `0` to be safe.
|
|
94
|
+
|
|
95
|
+
`1`/`true`/`yes`/`on`(大文字小文字を区別しません)以外の値は全て機能を再有効化してしまうため、
|
|
96
|
+
`disable` や `Y` のような typo でも保護が黙って外れます。安全のため厳密に `0` を指定してください。
|
|
97
|
+
|
|
69
98
|
## Policy / 方針
|
|
70
99
|
|
|
71
100
|
- Only audited versions in `config/claude-native-audited-versions.json` can run.
|
package/bin/claude
CHANGED
|
@@ -63,4 +63,5 @@ ENTRY_END_OFFSET="${ENTRY_END_OFFSET}" \
|
|
|
63
63
|
CURRENT_CLAUDE_VERSION="${CLAUDE_VERSION}" \
|
|
64
64
|
CLAUDE_TERMUX_PACKAGE_DIR="${PACKAGE_DIR}" \
|
|
65
65
|
CLAUDE_NATIVE_UPDATE_CHECK=0 \
|
|
66
|
+
CLAUDE_CODE_DISABLE_AGENT_VIEW="${CLAUDE_CODE_DISABLE_AGENT_VIEW:-1}" \
|
|
66
67
|
exec sh "${PACKAGE_DIR}/lib/termux-run-claude-native.sh" "$@"
|
|
@@ -634,6 +634,24 @@
|
|
|
634
634
|
"entry_end_offset": 281109040,
|
|
635
635
|
"tarball_integrity": "sha512-gh0n3fvUgzsrjeTqZraOhDKOzS7afB9U/qFvRY0FBpccogbJCk8otTYavPfdhAA2xESAoA0BaoVdzO4k4VkphA==",
|
|
636
636
|
"tarball_sha256": "29c49ec62bfbe995e5b1354a4c32d17101065d2c7722d5d0285cfa6a08d8c441",
|
|
637
|
+
"status": "termux_verified"
|
|
638
|
+
},
|
|
639
|
+
"2.1.223-1": {
|
|
640
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.223",
|
|
641
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.223",
|
|
642
|
+
"entry_js_offset": 257987828,
|
|
643
|
+
"entry_end_offset": 281109040,
|
|
644
|
+
"tarball_integrity": "sha512-gh0n3fvUgzsrjeTqZraOhDKOzS7afB9U/qFvRY0FBpccogbJCk8otTYavPfdhAA2xESAoA0BaoVdzO4k4VkphA==",
|
|
645
|
+
"tarball_sha256": "29c49ec62bfbe995e5b1354a4c32d17101065d2c7722d5d0285cfa6a08d8c441",
|
|
646
|
+
"status": "termux_verified"
|
|
647
|
+
},
|
|
648
|
+
"2.1.224": {
|
|
649
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.224",
|
|
650
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.224",
|
|
651
|
+
"entry_js_offset": 262371668,
|
|
652
|
+
"entry_end_offset": 286057058,
|
|
653
|
+
"tarball_integrity": "sha512-a16Zlqhr1CXO5vsfsw7FcvLbG2nqBAXWmvMmyXtNW+f9pAJm91GMJE9wK79cIyO9InZRLN06wYWyPcp1cx/nNg==",
|
|
654
|
+
"tarball_sha256": "711712d0526f0b266c961a5591ddca55979cd581ac67b0a0ffd19e5f4e2df2c7",
|
|
637
655
|
"status": "offset_discovered"
|
|
638
656
|
}
|
|
639
657
|
}
|
|
@@ -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.223-1",
|
|
5
|
+
"latest_candidate_version": "2.1.224",
|
|
6
|
+
"previous_stable_version": "2.1.223",
|
|
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
|
}
|
|
@@ -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]) >= 224)) return 44;
|
|
602
603
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 223)) return 43;
|
|
603
604
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
|
|
604
605
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 216)) return 40;
|
|
@@ -635,6 +636,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
635
636
|
'bg-pty-host factory disable',
|
|
636
637
|
1,
|
|
637
638
|
);
|
|
639
|
+
const _agentViewDisabled = ['1', 'true', 'yes', 'on'].includes(
|
|
640
|
+
String(process.env.CLAUDE_CODE_DISABLE_AGENT_VIEW ?? '').toLowerCase().trim(),
|
|
641
|
+
);
|
|
642
|
+
if (_agentViewDisabled) {
|
|
643
|
+
patched = replaceRequired(
|
|
644
|
+
patched,
|
|
645
|
+
/(\{type:"local-jsx",name:"background",aliases:\["bg"\][^}]*?isEnabled:\(\)=>)!0(\})/g,
|
|
646
|
+
'$1!1$2',
|
|
647
|
+
'/background command isEnabled disable',
|
|
648
|
+
1,
|
|
649
|
+
);
|
|
650
|
+
}
|
|
638
651
|
return patched;
|
|
639
652
|
}
|
|
640
653
|
|
|
@@ -1465,6 +1478,7 @@ function rewriteNativeChunkSource(source) {
|
|
|
1465
1478
|
const _bunPropertyAccessExpected = (() => {
|
|
1466
1479
|
const _ver = String(process.env.CURRENT_CLAUDE_VERSION || '');
|
|
1467
1480
|
const _m = _ver.match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
1481
|
+
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 224)) return 44;
|
|
1468
1482
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 223)) return 43;
|
|
1469
1483
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 219)) return 42;
|
|
1470
1484
|
if (_m && (Number(_m[1]) > 2 || Number(_m[2]) > 1 || Number(_m[3]) >= 216)) return 40;
|
|
@@ -1501,6 +1515,18 @@ function rewriteNativeChunkSource(source) {
|
|
|
1501
1515
|
'bg-pty-host factory disable',
|
|
1502
1516
|
1,
|
|
1503
1517
|
);
|
|
1518
|
+
const _agentViewDisabled = ['1', 'true', 'yes', 'on'].includes(
|
|
1519
|
+
String(process.env.CLAUDE_CODE_DISABLE_AGENT_VIEW ?? '').toLowerCase().trim(),
|
|
1520
|
+
);
|
|
1521
|
+
if (_agentViewDisabled) {
|
|
1522
|
+
patched = replaceRequired(
|
|
1523
|
+
patched,
|
|
1524
|
+
/(\{type:"local-jsx",name:"background",aliases:\["bg"\][^}]*?isEnabled:\(\)=>)!0(\})/g,
|
|
1525
|
+
'$1!1$2',
|
|
1526
|
+
'/background command isEnabled disable',
|
|
1527
|
+
1,
|
|
1528
|
+
);
|
|
1529
|
+
}
|
|
1504
1530
|
return patched;
|
|
1505
1531
|
}
|
|
1506
1532
|
|