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 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.41-0078D4?style=for-the-badge" alt="Version">
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.41
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"
@@ -1 +1 @@
1
- 4277f0390226e9a4b99f13cb14a6938bd071b29e
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 "@/tools/games/all"
135
- reinstall_all_games
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 "$module" "reinstall" "${tools[@]}" || return 1
686
+ _batch_tool_action "$target" "reinstall" "${tools[@]}" || return 1
687
687
  ;;
688
688
  *)
689
- log_warn "Unknown reinstall target: $module"
689
+ log_warn "Unknown reinstall target: $target"
690
690
  echo "Run 'karnel reinstall' to see available targets"
691
691
  return 1
692
692
  ;;
@@ -149,8 +149,8 @@ _uninstall_full_module() {
149
149
  uninstall_security
150
150
  ;;
151
151
  games)
152
- import "@/tools/games/all"
153
- uninstall_all_games
152
+ import "@/modules/games"
153
+ uninstall_games
154
154
  ;;
155
155
  supabase)
156
156
  import "@/tools/deploy/supabase/install"
@@ -131,8 +131,8 @@ _update_full_module() {
131
131
  update_auto
132
132
  ;;
133
133
  games)
134
- import "@/tools/games/all"
135
- update_all_games
134
+ import "@/modules/games"
135
+ update_games
136
136
  ;;
137
137
  osint)
138
138
  import "@/modules/osint"
@@ -26,7 +26,11 @@ upgrade_main() {
26
26
  echo
27
27
  log_info "Running cleanup..."
28
28
  import "@/cli/commands/cleanup"
29
- cleanup_main
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
  }
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- LOG_FILE="${LOG_FILE:-$KARNEL_CACHE/install_ai.log}"
3
+ LOG_FILE="${LOG_FILE:-$KARNEL_CACHE/install.log}"
4
4
 
5
5
  # ── Dependency installation ────────────────────────────────────
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karnel-termux",
3
- "version": "4.17.41",
3
+ "version": "4.17.42",
4
4
  "description": "Modular Dev Environment for Termux — install languages, databases, AI agents, editors, and more with one command",
5
5
  "bin": {
6
6
  "karnel": "karnel/bin/karnel"