karnel-termux 4.17.40 → 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.36-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.36
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"
@@ -140,6 +140,11 @@ aliases, or options; use `karnel help` and the CLI reference for the full set.
140
140
  | `karnel uninstall <module>` | Remove installed modules |
141
141
  | `karnel reinstall <module>` | Reinstall modules |
142
142
  | `karnel upgrade` | Upgrade the framework (self-update) |
143
+ | `karnel ia` | Manage AI agent sessions, install tools, show launchers |
144
+ | `karnel search <query>` | Search tools and Brain memories |
145
+ | `karnel status` | System health dashboard (disk, RAM, services, connectivity) |
146
+ | `karnel start editor [port]` | Start code-server (VS Code in browser) |
147
+ | `karnel start robin` | Start Robin OSINT (Tor + web UI) |
143
148
  | `karnel doctor termux` | Diagnose the Termux environment (30+ sections) |
144
149
  | `karnel doctor code` | Detect project ecosystems and run code checks |
145
150
  | `karnel doctor robin` | Diagnose Robin, Tor, dependencies, and local UI |
@@ -147,7 +152,6 @@ aliases, or options; use `karnel help` and the CLI reference for the full set.
147
152
  | `karnel env` | Manage environment variables |
148
153
  | `karnel voice` | Voice commands for AI agents |
149
154
  | `karnel agent` | Local AI assistant — chat (`ask`) and task agent (`run`) |
150
- | `karnel start editor` | Start code-server (VS Code in browser) |
151
155
  | `karnel pg` | PostgreSQL manager |
152
156
  | `karnel init <template>` | Initialize projects with templates |
153
157
  | `karnel deploy` | Run Vercel, Railway, Netlify, or Supabase CLI commands |
@@ -202,9 +206,12 @@ karnel plugin search
202
206
  karnel plugin search backup --compatible
203
207
  karnel plugin install karnel-hello
204
208
  karnel plugin update karnel-hello
209
+ karnel plugin enable karnel-hello
210
+ karnel plugin disable karnel-hello
211
+ karnel plugin config karnel-hello greeting "Hello"
205
212
  karnel plugin list
206
213
  karnel plugin remove karnel-hello
207
- karnel plugin create meu-plugin
214
+ karnel plugin create my-plugin
208
215
  ```
209
216
 
210
217
  Plugins are Bash code loaded by the Karnel process and run with the current
@@ -212,6 +219,10 @@ user's permissions. They are not sandboxed. Registry plugins have reviewed
212
219
  metadata and are staged, validated, and atomically activated, but you should
213
220
  still review code you do not trust.
214
221
 
222
+ Use `karnel plugin disable` to temporarily stop a plugin without removing it,
223
+ and `karnel plugin enable` to reactivate it. Per-plugin configuration is
224
+ supported with `karnel plugin config <name> [key] [value]`.
225
+
215
226
  Each Karnel release pins and verifies one reviewed registry snapshot. New
216
227
  registry entries become available after updating Karnel to a release that
217
228
  includes that snapshot.
@@ -1 +1 @@
1
- dd742786e4b42ebc678470be889eb813a6a47c71
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
@@ -8,6 +8,7 @@ LOG_FILE="$KARNEL_CACHE/install_deploy.log"
8
8
  install_deploy() {
9
9
  separator; box "Installing Deploy CLIs"; separator; echo
10
10
  log_info "Installing deploy tools..."
11
+ mkdir -p "$(dirname "$LOG_FILE")"
11
12
  local rc=0
12
13
  import "@/tools/deploy/all"
13
14
  install_all_deploy_tools || rc=$?
@@ -41,6 +42,7 @@ update_deploy() {
41
42
  reinstall_deploy() {
42
43
  separator; box "Reinstalling Deploy CLIs"; separator; echo
43
44
  log_info "Reinstalling deploy tools..."
45
+ mkdir -p "$(dirname "$LOG_FILE")"
44
46
  local rc=0
45
47
  import "@/tools/deploy/all"
46
48
  reinstall_all_deploy_tools || rc=$?
@@ -8,6 +8,7 @@ LOG_FILE="$KARNEL_CACHE/install_games.log"
8
8
  install_games() {
9
9
  separator; box "Installing Games"; separator; echo
10
10
  log_info "Installing games..."
11
+ mkdir -p "$(dirname "$LOG_FILE")"
11
12
  local rc=0
12
13
  import "@/tools/games/all"
13
14
  install_all_games || rc=$?
@@ -41,6 +42,7 @@ update_games() {
41
42
  reinstall_games() {
42
43
  separator; box "Reinstalling Games"; separator; echo
43
44
  log_info "Reinstalling games..."
45
+ mkdir -p "$(dirname "$LOG_FILE")"
44
46
  local rc=0
45
47
  import "@/tools/games/all"
46
48
  reinstall_all_games || rc=$?
@@ -8,6 +8,7 @@ LOG_FILE="$KARNEL_CACHE/install_network.log"
8
8
  install_network() {
9
9
  separator; box "Installing Network Tools"; separator; echo
10
10
  log_info "Installing network tools..."
11
+ mkdir -p "$(dirname "$LOG_FILE")"
11
12
  local rc=0
12
13
  import "@/tools/network/all"
13
14
  install_all_network || rc=$?
@@ -41,6 +42,7 @@ update_network() {
41
42
  reinstall_network() {
42
43
  separator; box "Reinstalling Network Tools"; separator; echo
43
44
  log_info "Reinstalling network tools..."
45
+ mkdir -p "$(dirname "$LOG_FILE")"
44
46
  local rc=0
45
47
  import "@/tools/network/all"
46
48
  reinstall_all_network || rc=$?
@@ -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
  }
@@ -8,6 +8,7 @@ LOG_FILE="$KARNEL_CACHE/install_utils.log"
8
8
  install_utils() {
9
9
  separator; box "Installing Utility Tools"; separator; echo
10
10
  log_info "Installing utility tools..."
11
+ mkdir -p "$(dirname "$LOG_FILE")"
11
12
  local rc=0
12
13
  import "@/tools/utils/all"
13
14
  install_all_utils || rc=$?
@@ -41,6 +42,7 @@ update_utils() {
41
42
  reinstall_utils() {
42
43
  separator; box "Reinstalling Utility Tools"; separator; echo
43
44
  log_info "Reinstalling utility tools..."
45
+ mkdir -p "$(dirname "$LOG_FILE")"
44
46
  local rc=0
45
47
  import "@/tools/utils/all"
46
48
  reinstall_all_utils || rc=$?
@@ -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.40",
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"