karnel-termux 4.17.41 → 4.17.42
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 +2 -2
- package/karnel/RELEASE_COMMIT +1 -1
- package/karnel/cli/commands/ia.sh +2 -2
- package/karnel/cli/commands/reinstall.sh +4 -4
- package/karnel/cli/commands/uninstall.sh +2 -2
- package/karnel/cli/commands/update.sh +2 -2
- package/karnel/cli/commands/upgrade.sh +5 -1
- package/karnel/modules/security.sh +44 -4
- package/karnel/utils/install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://github.com/israelmarques1024-dotcom/karnel-termux">
|
|
11
|
-
<img src="https://img.shields.io/badge/version-4.17.
|
|
11
|
+
<img src="https://img.shields.io/badge/version-4.17.42-0078D4?style=for-the-badge" alt="Version">
|
|
12
12
|
</a>
|
|
13
13
|
<a href="https://www.npmjs.com/package/karnel-termux">
|
|
14
14
|
<img src="https://img.shields.io/npm/v/karnel-termux?style=for-the-badge&logo=npm&color=cb3837" alt="npm">
|
|
@@ -78,7 +78,7 @@ Why it's great:
|
|
|
78
78
|
### Via checksummed GitHub release (recommended)
|
|
79
79
|
|
|
80
80
|
```bash
|
|
81
|
-
version=4.17.
|
|
81
|
+
version=4.17.42
|
|
82
82
|
tmpdir=$(mktemp -d) && trap 'rm -rf "$tmpdir"' EXIT
|
|
83
83
|
base="https://github.com/israelmarques1024-dotcom/karnel-termux/releases/download/v$version"
|
|
84
84
|
curl -fsSL "$base/karnel-termux-install.sh" -o "$tmpdir/karnel-termux-install.sh"
|
package/karnel/RELEASE_COMMIT
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
14253a4bd8af3c1c2ae600f7bf4663e959a5d9ac
|
|
@@ -4,8 +4,8 @@ import "@/utils/log"
|
|
|
4
4
|
import "@/utils/colors"
|
|
5
5
|
|
|
6
6
|
# AI Manager (karnel ia) — router for all AI agents and sessions
|
|
7
|
-
IA_SESSIONS_DIR="$HOME/.local/share/karnel-data/ia/sessions"
|
|
8
|
-
IA_DATA_DIR="$HOME/.local/share/karnel-data/ia"
|
|
7
|
+
IA_SESSIONS_DIR="${KARNEL_DATA:-$HOME/.local/share/karnel-data}/ia/sessions"
|
|
8
|
+
IA_DATA_DIR="${KARNEL_DATA:-$HOME/.local/share/karnel-data}/ia"
|
|
9
9
|
|
|
10
10
|
ia_help() {
|
|
11
11
|
echo
|
|
@@ -131,8 +131,8 @@ _reinstall_full_module() {
|
|
|
131
131
|
reinstall_auto
|
|
132
132
|
;;
|
|
133
133
|
games)
|
|
134
|
-
import "@/
|
|
135
|
-
|
|
134
|
+
import "@/modules/games"
|
|
135
|
+
reinstall_games
|
|
136
136
|
;;
|
|
137
137
|
deploy)
|
|
138
138
|
import "@/modules/deploy"
|
|
@@ -683,10 +683,10 @@ _reinstall_specific_tools() {
|
|
|
683
683
|
_batch_tool_action "utils" "reinstall" "${tools[@]}" || return 1
|
|
684
684
|
;;
|
|
685
685
|
security|deploy)
|
|
686
|
-
_batch_tool_action "$
|
|
686
|
+
_batch_tool_action "$target" "reinstall" "${tools[@]}" || return 1
|
|
687
687
|
;;
|
|
688
688
|
*)
|
|
689
|
-
log_warn "Unknown reinstall target: $
|
|
689
|
+
log_warn "Unknown reinstall target: $target"
|
|
690
690
|
echo "Run 'karnel reinstall' to see available targets"
|
|
691
691
|
return 1
|
|
692
692
|
;;
|
|
@@ -26,7 +26,11 @@ upgrade_main() {
|
|
|
26
26
|
echo
|
|
27
27
|
log_info "Running cleanup..."
|
|
28
28
|
import "@/cli/commands/cleanup"
|
|
29
|
-
|
|
29
|
+
local cleanup_rc=0
|
|
30
|
+
cleanup_main || cleanup_rc=$?
|
|
31
|
+
if [[ "$cleanup_rc" -ne 0 ]]; then
|
|
32
|
+
log_warn "Cleanup completed with warnings"
|
|
33
|
+
fi
|
|
30
34
|
echo
|
|
31
35
|
log_success "Karnel is up to date (v$KARNEL_VERSION)"
|
|
32
36
|
echo
|
|
@@ -1,25 +1,65 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# shellcheck shell=bash
|
|
3
3
|
|
|
4
|
+
import "@/utils/log"
|
|
5
|
+
import "@/utils/colors"
|
|
6
|
+
|
|
7
|
+
LOG_FILE="$KARNEL_CACHE/install_security.log"
|
|
8
|
+
|
|
4
9
|
install_security() {
|
|
5
10
|
separator
|
|
6
11
|
box "Installing Security Tools"
|
|
7
12
|
separator
|
|
13
|
+
echo
|
|
14
|
+
log_info "Installing security tools..."
|
|
15
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
16
|
+
local rc=0
|
|
8
17
|
import "@/tools/security/all"
|
|
9
|
-
install_all_security
|
|
18
|
+
install_all_security || rc=$?
|
|
19
|
+
separator
|
|
20
|
+
[[ "$rc" -eq 0 ]] && log_success "Security tools installed" || log_warn "$rc security tool(s) failed to install"
|
|
21
|
+
return "$rc"
|
|
10
22
|
}
|
|
11
23
|
|
|
12
24
|
uninstall_security() {
|
|
25
|
+
separator
|
|
26
|
+
box "Uninstalling Security Tools"
|
|
27
|
+
separator
|
|
28
|
+
echo
|
|
29
|
+
log_info "Uninstalling security tools..."
|
|
30
|
+
local rc=0
|
|
13
31
|
import "@/tools/security/all"
|
|
14
|
-
uninstall_all_security
|
|
32
|
+
uninstall_all_security || rc=$?
|
|
33
|
+
separator
|
|
34
|
+
[[ "$rc" -eq 0 ]] && log_success "Security tools uninstalled" || log_warn "$rc security tool(s) failed to uninstall"
|
|
35
|
+
return "$rc"
|
|
15
36
|
}
|
|
16
37
|
|
|
17
38
|
update_security() {
|
|
39
|
+
separator
|
|
40
|
+
box "Updating Security Tools"
|
|
41
|
+
separator
|
|
42
|
+
echo
|
|
43
|
+
log_info "Updating security tools..."
|
|
44
|
+
local rc=0
|
|
18
45
|
import "@/tools/security/all"
|
|
19
|
-
update_all_security
|
|
46
|
+
update_all_security || rc=$?
|
|
47
|
+
separator
|
|
48
|
+
[[ "$rc" -eq 0 ]] && log_success "Security tools updated" || log_warn "$rc security tool(s) failed to update"
|
|
49
|
+
return "$rc"
|
|
20
50
|
}
|
|
21
51
|
|
|
22
52
|
reinstall_security() {
|
|
53
|
+
separator
|
|
54
|
+
box "Reinstalling Security Tools"
|
|
55
|
+
separator
|
|
56
|
+
echo
|
|
57
|
+
log_info "Reinstalling security tools..."
|
|
58
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
59
|
+
local rc=0
|
|
23
60
|
import "@/tools/security/all"
|
|
24
|
-
reinstall_all_security
|
|
61
|
+
reinstall_all_security || rc=$?
|
|
62
|
+
separator
|
|
63
|
+
[[ "$rc" -eq 0 ]] && log_success "Security tools reinstalled" || log_warn "$rc security tool(s) failed to reinstall"
|
|
64
|
+
return "$rc"
|
|
25
65
|
}
|
package/karnel/utils/install.sh
CHANGED
package/package.json
CHANGED