karnel-termux 4.17.35 → 4.17.36
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 +3 -3
- package/docs/CHANGELOG.md +4 -5
- package/docs/index.md +1 -1
- package/karnel/RELEASE_COMMIT +1 -1
- package/karnel/cli/commands/agent.sh +0 -8
- package/karnel/tools/deploy/netlify/install.sh +1 -0
- package/karnel/tools/deploy/vercel/install.sh +1 -0
- package/karnel/tools/security/masscan/install.sh +7 -1
- package/karnel/tools/security/metasploit/install.sh +9 -0
- package/karnel/utils/env.sh +34 -0
- package/package.json +2 -3
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.36-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">
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
**Karnel Termux** is a modular development environment that transforms Termux into a complete workstation.
|
|
33
33
|
|
|
34
|
-
Created by **Israel Marques**.
|
|
34
|
+
Created by **Israel Marques**.
|
|
35
35
|
|
|
36
36
|
With a single CLI (`karnel`), install and manage:
|
|
37
37
|
|
|
@@ -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.36
|
|
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/docs/CHANGELOG.md
CHANGED
|
@@ -249,14 +249,13 @@ layout: base
|
|
|
249
249
|
- Cactus glibc installer: pip output is now streamed live (and mirrored to the
|
|
250
250
|
install log) instead of being hidden behind an indeterminate spinner, which
|
|
251
251
|
made multi-minute downloads look frozen.
|
|
252
|
-
-
|
|
253
|
-
|
|
252
|
+
- Agent help/REPL screens and project READMEs were updated with contributor
|
|
253
|
+
credits.
|
|
254
254
|
|
|
255
255
|
## 4.16.0 - 2026-08-20
|
|
256
256
|
|
|
257
|
-
- Rebranded fully to Karnel: removed
|
|
258
|
-
|
|
259
|
-
agent utilities.
|
|
257
|
+
- Rebranded fully to Karnel: removed legacy upstream branding across
|
|
258
|
+
contributors, CLI `open` targets, completions, docs and agent utilities.
|
|
260
259
|
- `nvchad` editor tool now installs the official upstream `NvChad/starter`
|
|
261
260
|
(pinned to a reviewed commit) instead of a third-party fork.
|
|
262
261
|
- Added the `karnel agent` subsystem (agent.sh, agent_actions.sh, agent_llm.sh,
|
package/docs/index.md
CHANGED
package/karnel/RELEASE_COMMIT
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6ce9fe8b0567a2129eac070d4c168dd5ea79450f
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
# TTY) typing `@query` opens an fzf picker to attach a file's
|
|
15
15
|
# contents to your message.
|
|
16
16
|
#
|
|
17
|
-
# Credits:
|
|
18
|
-
# devcorex — core agent contributor
|
|
19
17
|
# ============================================================
|
|
20
18
|
|
|
21
19
|
import "@/utils/log"
|
|
@@ -31,8 +29,6 @@ agent_help() {
|
|
|
31
29
|
echo
|
|
32
30
|
box "Karnel Agent — Local AI Assistant & Task Agent"
|
|
33
31
|
echo
|
|
34
|
-
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
35
|
-
echo
|
|
36
32
|
log_info "Usage: karnel agent <ask|run|config> [options]"
|
|
37
33
|
echo
|
|
38
34
|
separator_section "Subcommands"
|
|
@@ -560,8 +556,6 @@ agent_ask_repl() {
|
|
|
560
556
|
agent_banner
|
|
561
557
|
separator_section "Karnel Agent — Ask"
|
|
562
558
|
echo
|
|
563
|
-
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
564
|
-
echo
|
|
565
559
|
agent_status_line
|
|
566
560
|
echo
|
|
567
561
|
list_item "Type ${D_CYAN}/help${D_NC} to see all commands"
|
|
@@ -677,8 +671,6 @@ agent_run_repl() {
|
|
|
677
671
|
agent_banner
|
|
678
672
|
separator_section "Karnel Agent — Run ($([[ $AGENT_PLAN_MODE == 1 ]] && echo 'PLAN · read-only' || echo 'BUILD mode'))"
|
|
679
673
|
echo
|
|
680
|
-
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
681
|
-
echo
|
|
682
674
|
agent_status_line
|
|
683
675
|
echo
|
|
684
676
|
list_item "Type ${D_CYAN}/help${D_NC} to see all commands"
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
_MASSCAN_DIR="${KARNEL_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/karnel-data}/tools/masscan"
|
|
4
4
|
_MASSCAN_REPO="https://github.com/robertdavidgraham/masscan.git"
|
|
5
5
|
_MASSCAN_COMMIT="94e118ccd26c2fb263fb2fe731043f7b3240723c"
|
|
6
|
+
_MASSCAN_PACKAGE_MARKER="$PREFIX/share/karnel-installers/masscan"
|
|
7
|
+
_masscan_package_owned() { [[ -f "$_MASSCAN_PACKAGE_MARKER" && "$(<"$_MASSCAN_PACKAGE_MARKER")" == 'pkg:masscan' ]]; }
|
|
6
8
|
|
|
7
9
|
install_masscan() {
|
|
8
10
|
if command -v masscan &>/dev/null; then
|
|
@@ -11,6 +13,7 @@ install_masscan() {
|
|
|
11
13
|
fi
|
|
12
14
|
log_info "Instalando masscan..."
|
|
13
15
|
if pkg install -y masscan 2>/dev/null || apt install -y masscan 2>/dev/null; then
|
|
16
|
+
mkdir -p "$(dirname "$_MASSCAN_PACKAGE_MARKER")" && printf '%s\n' 'pkg:masscan' >"$_MASSCAN_PACKAGE_MARKER" || return 1
|
|
14
17
|
log_success "masscan instalado"
|
|
15
18
|
return 0
|
|
16
19
|
fi
|
|
@@ -34,7 +37,10 @@ install_masscan() {
|
|
|
34
37
|
|
|
35
38
|
uninstall_masscan() {
|
|
36
39
|
log_info "Removendo masscan..."
|
|
37
|
-
if
|
|
40
|
+
if _masscan_package_owned; then
|
|
41
|
+
pkg uninstall -y masscan 2>/dev/null || apt remove -y masscan 2>/dev/null || return 1
|
|
42
|
+
rm -f "$_MASSCAN_PACKAGE_MARKER"
|
|
43
|
+
elif [ -f "$_MASSCAN_DIR/.karnel-wrapper" ]; then
|
|
38
44
|
[ "$(sha256sum "$PREFIX/bin/masscan" 2>/dev/null)" = "$(<"$_MASSCAN_DIR/.karnel-wrapper")" ] && rm -f "$PREFIX/bin/masscan"
|
|
39
45
|
rm -rf "$_MASSCAN_DIR"
|
|
40
46
|
fi
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
METASPLOIT_DIR="${KARNEL_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/karnel-data}/tools/metasploit-framework"
|
|
4
4
|
METASPLOIT_REPO="https://github.com/rapid7/metasploit-framework.git"
|
|
5
5
|
METASPLOIT_COMMIT="9f74eb0a48ca7f8039c2618e359c2e80f998ac89"
|
|
6
|
+
METASPLOIT_PACKAGE_MARKER="$PREFIX/share/karnel-installers/metasploit"
|
|
7
|
+
_metasploit_package_owned() { [[ -f "$METASPLOIT_PACKAGE_MARKER" && "$(<"$METASPLOIT_PACKAGE_MARKER")" == 'pkg:metasploit' ]]; }
|
|
6
8
|
|
|
7
9
|
install_metasploit() {
|
|
8
10
|
if command -v msfconsole &>/dev/null; then
|
|
@@ -12,6 +14,7 @@ install_metasploit() {
|
|
|
12
14
|
log_info "Instalando Metasploit Framework..."
|
|
13
15
|
|
|
14
16
|
if pkg install -y metasploit 2>/dev/null || apt install -y metasploit 2>/dev/null; then
|
|
17
|
+
mkdir -p "$(dirname "$METASPLOIT_PACKAGE_MARKER")" && printf '%s\n' 'pkg:metasploit' >"$METASPLOIT_PACKAGE_MARKER" || return 1
|
|
15
18
|
log_success "metasploit instalado"
|
|
16
19
|
return 0
|
|
17
20
|
fi
|
|
@@ -44,6 +47,12 @@ BINEOF
|
|
|
44
47
|
|
|
45
48
|
uninstall_metasploit() {
|
|
46
49
|
log_info "Removendo Metasploit..."
|
|
50
|
+
if _metasploit_package_owned; then
|
|
51
|
+
pkg uninstall -y metasploit 2>/dev/null || apt remove -y metasploit 2>/dev/null || return 1
|
|
52
|
+
rm -f "$METASPLOIT_PACKAGE_MARKER"
|
|
53
|
+
log_success "metasploit removido"
|
|
54
|
+
return 0
|
|
55
|
+
fi
|
|
47
56
|
for bin in msfconsole msfvenom msfrpc msfrpcd msfdb; do
|
|
48
57
|
if [ -f "$METASPLOIT_DIR/.karnel-wrapper-$bin" ]; then
|
|
49
58
|
[ "$(sha256sum "$PREFIX/bin/$bin" 2>/dev/null)" = "$(<"$METASPLOIT_DIR/.karnel-wrapper-$bin")" ] && rm -f "$PREFIX/bin/$bin"
|
package/karnel/utils/env.sh
CHANGED
|
@@ -12,6 +12,40 @@ fi
|
|
|
12
12
|
|
|
13
13
|
: "${HOME:?HOME is unset — cannot determine config paths}"
|
|
14
14
|
|
|
15
|
+
# Karnel-managed commands are installed in $PREFIX/bin. Keep that directory
|
|
16
|
+
# ahead of user-local binaries so an obsolete external install cannot shadow
|
|
17
|
+
# an update that Karnel just completed, while preserving explicit PATH
|
|
18
|
+
# overrides that appear before both directories.
|
|
19
|
+
_karnel_prefer_prefix_bin() {
|
|
20
|
+
[[ -n "${PREFIX:-}" ]] || return 0
|
|
21
|
+
|
|
22
|
+
local prefix_bin="$PREFIX/bin" local_bin="$HOME/.local/bin"
|
|
23
|
+
local -a entries=() reordered=()
|
|
24
|
+
local prefix_index=-1 local_index=-1 index=0 entry joined="" inserted=0
|
|
25
|
+
IFS=: read -r -a entries <<< "${PATH:-}"
|
|
26
|
+
for entry in "${entries[@]}"; do
|
|
27
|
+
[[ "$entry" == "$prefix_bin" && $prefix_index -lt 0 ]] && prefix_index=$index
|
|
28
|
+
[[ "$entry" == "$local_bin" && $local_index -lt 0 ]] && local_index=$index
|
|
29
|
+
((index += 1))
|
|
30
|
+
done
|
|
31
|
+
(( prefix_index > local_index && local_index >= 0 )) || return 0
|
|
32
|
+
|
|
33
|
+
for entry in "${entries[@]}"; do
|
|
34
|
+
[[ "$entry" == "$prefix_bin" ]] && continue
|
|
35
|
+
if [[ "$entry" == "$local_bin" && $inserted -eq 0 ]]; then
|
|
36
|
+
reordered+=("$prefix_bin")
|
|
37
|
+
inserted=1
|
|
38
|
+
fi
|
|
39
|
+
reordered+=("$entry")
|
|
40
|
+
done
|
|
41
|
+
for entry in "${reordered[@]}"; do
|
|
42
|
+
joined+="${joined:+:}$entry"
|
|
43
|
+
done
|
|
44
|
+
export PATH="$joined"
|
|
45
|
+
}
|
|
46
|
+
_karnel_prefer_prefix_bin
|
|
47
|
+
unset -f _karnel_prefer_prefix_bin
|
|
48
|
+
|
|
15
49
|
# configuración
|
|
16
50
|
KARNEL_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/karnel"
|
|
17
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karnel-termux",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.36",
|
|
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"
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"author": "israel marques",
|
|
41
41
|
"contributors": [
|
|
42
|
-
"israel marques"
|
|
43
|
-
"devcorex"
|
|
42
|
+
"israel marques"
|
|
44
43
|
],
|
|
45
44
|
"license": "MIT",
|
|
46
45
|
"bugs": {
|