@bash0816/claude-code 2.1.178 → 2.1.179
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
package/bin/claude
CHANGED
|
@@ -12,20 +12,24 @@ while [ -L "${SELF}" ]; do
|
|
|
12
12
|
done
|
|
13
13
|
|
|
14
14
|
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "${SELF}")/.." && pwd)
|
|
15
|
+
NODE="${MAGI_NODE:-node}"
|
|
16
|
+
if [ -n "${MAGI_NODE:-}" ]; then
|
|
17
|
+
export PATH="$(dirname -- "$NODE"):$PATH"
|
|
18
|
+
fi
|
|
15
19
|
CONFIG_FILE="${PACKAGE_DIR}/config/claude-native-audited-versions.json"
|
|
16
|
-
PACKAGE_VERSION=$(
|
|
20
|
+
PACKAGE_VERSION=$("$NODE" -e 'const fs=require("fs"); const path=require("path"); const p=JSON.parse(fs.readFileSync(path.join(process.argv[1],"package.json"),"utf8")); process.stdout.write(p.version)' "${PACKAGE_DIR}")
|
|
17
21
|
CLAUDE_VERSION="${CLAUDE_TERMUX_CLAUDE_VERSION:-${PACKAGE_VERSION}}"
|
|
18
22
|
UPDATE_HELPER="${PACKAGE_DIR}/lib/check-updates.js"
|
|
19
23
|
|
|
20
24
|
if [ "${1:-}" = "update" ]; then
|
|
21
25
|
shift
|
|
22
|
-
exec
|
|
26
|
+
exec "$NODE" "${UPDATE_HELPER}" update "${CLAUDE_VERSION}" "$@"
|
|
23
27
|
fi
|
|
24
28
|
|
|
25
|
-
|
|
29
|
+
"$NODE" "${UPDATE_HELPER}" notify "${CLAUDE_VERSION}" || true
|
|
26
30
|
|
|
27
31
|
json_field() {
|
|
28
|
-
|
|
32
|
+
"$NODE" -e '
|
|
29
33
|
const fs = require("fs");
|
|
30
34
|
const config = JSON.parse(fs.readFileSync(process.argv[1], "utf8"));
|
|
31
35
|
const version = process.argv[2];
|
|
@@ -44,7 +48,7 @@ CACHE_DIR="${CLAUDE_TERMUX_PACKAGE_CACHE:-${HOME}/.claude-termux-native-package}
|
|
|
44
48
|
SOURCE_BIN="${CACHE_DIR}/app/node_modules/@anthropic-ai/claude-code-linux-arm64/claude"
|
|
45
49
|
|
|
46
50
|
if [ ! -f "${SOURCE_BIN}" ]; then
|
|
47
|
-
|
|
51
|
+
"$NODE" "${PACKAGE_DIR}/lib/prepare-native.js" "${CLAUDE_VERSION}"
|
|
48
52
|
fi
|
|
49
53
|
|
|
50
54
|
if [ ! -f "${SOURCE_BIN}" ]; then
|
|
@@ -292,6 +292,15 @@
|
|
|
292
292
|
"entry_end_offset": 249438303,
|
|
293
293
|
"tarball_integrity": "sha512-tDdcLyUNahnj71lj5c/BEsAHt6Ad1KjRznfzE2IuHflUrHgQtCpObjV8QK2YtoDVgDaPT7frGekse/SK6eKweQ==",
|
|
294
294
|
"tarball_sha256": "01376198944226dc8107f6d7104a029e2197c280282ba409bebed816cd760585",
|
|
295
|
+
"status": "termux_verified"
|
|
296
|
+
},
|
|
297
|
+
"2.1.179": {
|
|
298
|
+
"wrapper_spec": "@anthropic-ai/claude-code@2.1.179",
|
|
299
|
+
"native_spec": "@anthropic-ai/claude-code-linux-arm64@2.1.179",
|
|
300
|
+
"entry_js_offset": 232362996,
|
|
301
|
+
"entry_end_offset": 249480417,
|
|
302
|
+
"tarball_integrity": "sha512-KpB1gvSGW0m73be0gKbIqbKfyu0zTjf7oXuX6U1QfYKZVxarhA/D9n91c/sR6e2tB75nohx24Kg5roL6JvCYdQ==",
|
|
303
|
+
"tarball_sha256": "b59bd89c04695177826c09b19c66e6a7ef1b949a894126a05ededa39e536aa4a",
|
|
295
304
|
"status": "offset_discovered"
|
|
296
305
|
}
|
|
297
306
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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.178",
|
|
5
|
+
"latest_candidate_version": "2.1.179",
|
|
6
|
+
"previous_stable_version": "2.1.177-1",
|
|
7
7
|
"manifest_url": "https://raw.githubusercontent.com/bash0816/ClaudeCode-Termux/main/config/claude-termux-release-manifest.json"
|
|
8
8
|
}
|
|
@@ -11,6 +11,7 @@ TERMUX_TMPDIR="${TMPDIR:-/data/data/com.termux/files/usr/tmp}"
|
|
|
11
11
|
SSL_CERT_DIR="${SSL_CERT_DIR:-/data/data/com.termux/files/usr/etc/tls}"
|
|
12
12
|
SSL_CERT_FILE="${SSL_CERT_FILE:-/data/data/com.termux/files/usr/etc/tls/cert.pem}"
|
|
13
13
|
DISABLE_AUTOUPDATER="${DISABLE_AUTOUPDATER:-1}"
|
|
14
|
+
NODE="${MAGI_NODE:-node}"
|
|
14
15
|
|
|
15
16
|
need_cmd() {
|
|
16
17
|
if ! command -v "$1" >/dev/null 2>&1; then
|
|
@@ -19,8 +20,16 @@ need_cmd() {
|
|
|
19
20
|
fi
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
if ! "$NODE" --version >/dev/null 2>&1; then
|
|
24
|
+
echo "Missing required node: ${NODE}" >&2
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
if [ -z "${MAGI_ENV:-}" ]; then
|
|
28
|
+
need_cmd termux-open-url
|
|
29
|
+
else
|
|
30
|
+
command -v termux-open-url >/dev/null 2>&1 \
|
|
31
|
+
|| echo "[claude-code] termux-open-url not found; URL opening unavailable" >&2
|
|
32
|
+
fi
|
|
24
33
|
|
|
25
34
|
if [ ! -f "${SOURCE_BIN}" ]; then
|
|
26
35
|
echo "Missing source binary: ${SOURCE_BIN}" >&2
|
|
@@ -713,7 +722,7 @@ NODE
|
|
|
713
722
|
export ENABLE_CLAUDEAI_MCP_SERVERS="${ENABLE_CLAUDEAI_MCP_SERVERS:-0}"
|
|
714
723
|
export CLAUDE_CODE_SIMPLE="${CLAUDE_CODE_SIMPLE:-0}"
|
|
715
724
|
export DISABLE_INSTALLATION_CHECKS="${DISABLE_INSTALLATION_CHECKS:-true}"
|
|
716
|
-
|
|
725
|
+
"$NODE" "$_helper" "$@" </dev/null
|
|
717
726
|
_status=$?
|
|
718
727
|
rm -f "$_helper"
|
|
719
728
|
trap - EXIT HUP INT TERM
|
|
@@ -1380,7 +1389,7 @@ NODE
|
|
|
1380
1389
|
export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC="${CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC:-1}"
|
|
1381
1390
|
export ENABLE_CLAUDEAI_MCP_SERVERS="${ENABLE_CLAUDEAI_MCP_SERVERS:-0}"
|
|
1382
1391
|
export DISABLE_INSTALLATION_CHECKS="${DISABLE_INSTALLATION_CHECKS:-true}"
|
|
1383
|
-
|
|
1392
|
+
"$NODE" "$_bootstrap" "$@"
|
|
1384
1393
|
_status=$?
|
|
1385
1394
|
rm -f "$_bootstrap"
|
|
1386
1395
|
trap - EXIT HUP INT TERM
|