karnel-termux 4.7.7 → 4.9.0
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 +46 -5
- package/install.sh +2 -2
- package/karnel/cli/commands/backup.sh +13 -2
- package/karnel/cli/commands/doctor/fixes.sh +111 -13
- package/karnel/cli/commands/doctor.sh +112 -10
- package/karnel/cli/commands/init.sh +2 -2
- package/karnel/cli/commands/install.sh +155 -118
- package/karnel/cli/commands/list.sh +106 -13
- package/karnel/cli/commands/open.sh +28 -8
- package/karnel/cli/commands/reinstall.sh +79 -46
- package/karnel/cli/commands/restore.sh +16 -0
- package/karnel/cli/commands/robin.sh +656 -0
- package/karnel/cli/commands/search.sh +1 -0
- package/karnel/cli/commands/show.sh +1 -0
- package/karnel/cli/commands/start.sh +12 -2
- package/karnel/cli/commands/status.sh +11 -0
- package/karnel/cli/commands/uninstall.sh +47 -0
- package/karnel/cli/commands/update.sh +43 -0
- package/karnel/cli/commands/version.sh +2 -0
- package/karnel/cli/commands/voice.sh +11 -6
- package/karnel/cli/karnel.sh +115 -69
- package/karnel/modules/ai.sh +21 -6
- package/karnel/modules/deploy.sh +4 -0
- package/karnel/modules/dev.sh +19 -46
- package/karnel/modules/games.sh +81 -4
- package/karnel/modules/network.sh +88 -0
- package/karnel/modules/osint.sh +123 -0
- package/karnel/modules/shell.sh +1 -1
- package/karnel/modules/ui.sh +4 -0
- package/karnel/modules/utils.sh +88 -0
- package/karnel/modules/voice.sh +8 -2
- package/karnel/tools/ai/all.sh +1 -0
- package/karnel/tools/ai/antigravity-cli/install.sh +0 -0
- package/karnel/tools/ai/claude-code/install.sh +0 -0
- package/karnel/tools/ai/cline/install.sh +8 -8
- package/karnel/tools/ai/codegraph/install.sh +8 -5
- package/karnel/tools/ai/codex/install.sh +0 -0
- package/karnel/tools/ai/command-code/install.sh +0 -0
- package/karnel/tools/ai/copilot-termux/install.sh +0 -0
- package/karnel/tools/ai/crush/install.sh +1 -1
- package/karnel/tools/ai/ctx7/install.sh +0 -0
- package/karnel/tools/ai/engram/install.sh +5 -2
- package/karnel/tools/ai/freebuff/install.sh +0 -0
- package/karnel/tools/ai/gemini-cli/install.sh +0 -0
- package/karnel/tools/ai/gentle-ai/install.sh +1 -1
- package/karnel/tools/ai/hermes-agent/install.sh +0 -0
- package/karnel/tools/ai/kilocode-cli/install.sh +0 -0
- package/karnel/tools/ai/kimchi-code/install.sh +3 -1
- package/karnel/tools/ai/kimi-code/install.sh +0 -0
- package/karnel/tools/ai/kiro/install.sh +0 -0
- package/karnel/tools/ai/mimocode/install.sh +0 -0
- package/karnel/tools/ai/minimax-cli/install.sh +0 -0
- package/karnel/tools/ai/mistral-vibe/install.sh +0 -0
- package/karnel/tools/ai/odysseus/install.sh +0 -0
- package/karnel/tools/ai/ollama/install.sh +0 -0
- package/karnel/tools/ai/omni-route/install.sh +1 -1
- package/karnel/tools/ai/openclaude/install.sh +0 -0
- package/karnel/tools/ai/openclaw/install.sh +0 -0
- package/karnel/tools/ai/opencode/install.sh +0 -0
- package/karnel/tools/ai/openspec/install.sh +0 -0
- package/karnel/tools/ai/pi/install.sh +0 -0
- package/karnel/tools/ai/qoder/README.md +50 -0
- package/karnel/tools/ai/qoder/bin/qodercli +28 -0
- package/karnel/tools/ai/qoder/helper/qoder_helper.c +47 -0
- package/karnel/tools/ai/qoder/install.sh +367 -0
- package/karnel/tools/ai/qwen-code/install.sh +0 -0
- package/karnel/tools/auto/all.sh +1 -1
- package/karnel/tools/auto/n8n/install.sh +0 -0
- package/karnel/tools/db/all.sh +1 -1
- package/karnel/tools/db/mariadb/install.sh +0 -0
- package/karnel/tools/db/mongodb/install.sh +0 -0
- package/karnel/tools/db/postgresql/install.sh +0 -0
- package/karnel/tools/db/sqlite/install.sh +0 -0
- package/karnel/tools/deploy/all.sh +2 -2
- package/karnel/tools/deploy/netlify/install.sh +0 -0
- package/karnel/tools/deploy/railway/install.sh +1 -1
- package/karnel/tools/deploy/vercel/install.sh +0 -0
- package/karnel/tools/dev/all.sh +36 -13
- package/karnel/tools/dev/bat/install.sh +0 -0
- package/karnel/tools/dev/bc/install.sh +0 -0
- package/karnel/tools/dev/cloudflared/install.sh +0 -0
- package/karnel/tools/dev/curl/install.sh +0 -0
- package/karnel/tools/dev/fzf/install.sh +36 -9
- package/karnel/tools/dev/gh/install.sh +0 -0
- package/karnel/tools/dev/html2text/install.sh +0 -0
- package/karnel/tools/dev/imagemagick/install.sh +0 -0
- package/karnel/tools/dev/jq/install.sh +0 -0
- package/karnel/tools/dev/lsd/install.sh +0 -0
- package/karnel/tools/dev/make/install.sh +0 -0
- package/karnel/tools/dev/ncurses/install.sh +0 -0
- package/karnel/tools/dev/proot/install.sh +0 -0
- package/karnel/tools/dev/shfmt/install.sh +0 -0
- package/karnel/tools/dev/snyk/install.sh +0 -0
- package/karnel/tools/dev/tmate/install.sh +0 -0
- package/karnel/tools/dev/translate/install.sh +0 -0
- package/karnel/tools/dev/tree/install.sh +0 -0
- package/karnel/tools/dev/udocker/install.sh +0 -0
- package/karnel/tools/dev/wget/install.sh +0 -0
- package/karnel/tools/editor/all.sh +1 -1
- package/karnel/tools/editor/code-server/install.sh +0 -0
- package/karnel/tools/games/all.sh +1 -1
- package/karnel/tools/games/arcade/install.sh +0 -0
- package/karnel/tools/games/buzz/install.sh +0 -0
- package/karnel/tools/games/ctfgod/install.sh +0 -0
- package/karnel/tools/games/detective/install.sh +0 -0
- package/karnel/tools/games/pet-friends/install.sh +0 -0
- package/karnel/tools/games/tamagotchi/install.sh +0 -0
- package/karnel/tools/lang/all.sh +2 -1
- package/karnel/tools/lang/bun/bin/bun +27 -0
- package/karnel/tools/lang/bun/install.sh +318 -0
- package/karnel/tools/lang/bun/src/bun-shim.c +352 -0
- package/karnel/tools/lang/bun/src/bun_wrapper.c +55 -0
- package/karnel/tools/lang/clang/install.sh +0 -0
- package/karnel/tools/lang/golang/install.sh +0 -0
- package/karnel/tools/lang/nodejs/install.sh +0 -0
- package/karnel/tools/lang/perl/install.sh +0 -0
- package/karnel/tools/lang/php/install.sh +0 -0
- package/karnel/tools/lang/python/install.sh +0 -0
- package/karnel/tools/lang/rust/install.sh +0 -0
- package/karnel/tools/network/all.sh +65 -0
- package/karnel/tools/network/dark/README.md +45 -0
- package/karnel/tools/network/dark/dark.py +709 -0
- package/karnel/tools/network/dark/install.sh +51 -0
- package/karnel/tools/network/dedsec-network/README.md +42 -0
- package/karnel/tools/network/dedsec-network/dedsec-network.py +709 -0
- package/karnel/tools/network/dedsec-network/install.sh +50 -0
- package/karnel/tools/npm/all.sh +1 -1
- package/karnel/tools/npm/live-server/install.sh +0 -0
- package/karnel/tools/npm/localtunnel/install.sh +0 -0
- package/karnel/tools/npm/markserv/install.sh +0 -0
- package/karnel/tools/npm/ncu/install.sh +0 -0
- package/karnel/tools/npm/nestjs/install.sh +0 -0
- package/karnel/tools/npm/ngrok/install.sh +0 -0
- package/karnel/tools/npm/prettier/install.sh +0 -0
- package/karnel/tools/npm/psqlformat/install.sh +0 -0
- package/karnel/tools/npm/turbopack/install.sh +2 -0
- package/karnel/tools/npm/typescript/install.sh +0 -0
- package/karnel/tools/npm/vercel/install.sh +0 -0
- package/karnel/tools/osint/all.sh +65 -0
- package/karnel/tools/osint/robin/README.md +99 -0
- package/karnel/tools/osint/robin/common.sh +258 -0
- package/karnel/tools/osint/robin/install.sh +548 -0
- package/karnel/tools/osint/robin/requirements-termux.txt +33 -0
- package/karnel/tools/shell/all.sh +1 -1
- package/karnel/tools/shell/better-npm/install.sh +0 -0
- package/karnel/tools/shell/fzf-tab/install.sh +0 -0
- package/karnel/tools/shell/history-substring/install.sh +0 -0
- package/karnel/tools/shell/powerlevel10k/install.sh +0 -0
- package/karnel/tools/shell/you-should-use/install.sh +0 -0
- package/karnel/tools/shell/zsh-autopair/install.sh +0 -0
- package/karnel/tools/shell/zsh-autosuggestions/install.sh +0 -0
- package/karnel/tools/shell/zsh-completions/install.sh +0 -0
- package/karnel/tools/shell/zsh-defer/install.sh +0 -0
- package/karnel/tools/shell/zsh-syntax-highlighting/install.sh +0 -0
- package/karnel/tools/ui/all.sh +1 -1
- package/karnel/tools/ui/banner/install.sh +0 -0
- package/karnel/tools/ui/cursor/install.sh +0 -0
- package/karnel/tools/ui/extra-keys/install.sh +0 -0
- package/karnel/tools/ui/font/install.sh +0 -0
- package/karnel/tools/utils/all.sh +88 -0
- package/karnel/tools/utils/applaunch/README.md +43 -0
- package/karnel/tools/{dev → utils}/applaunch/install.sh +3 -3
- package/karnel/tools/utils/fconv/README.md +41 -0
- package/karnel/tools/{dev → utils}/fconv/install.sh +3 -3
- package/karnel/tools/utils/filecheck/README.md +41 -0
- package/karnel/tools/{dev → utils}/filecheck/install.sh +3 -3
- package/karnel/tools/utils/httptmux/README.md +42 -0
- package/karnel/tools/{dev → utils}/httptmux/install.sh +0 -0
- package/karnel/tools/utils/notes/README.md +41 -0
- package/karnel/tools/{dev → utils}/notes/install.sh +3 -3
- package/karnel/tools/utils/passman/README.md +42 -0
- package/karnel/tools/{dev → utils}/passman/install.sh +3 -3
- package/karnel/tools/utils/qrcode/README.md +41 -0
- package/karnel/tools/utils/qrcode/install.sh +50 -0
- package/karnel/tools/utils/qrcode/qrcode.py +89 -0
- package/karnel/tools/utils/splash/README.md +41 -0
- package/karnel/tools/{dev → utils}/splash/install.sh +3 -3
- package/karnel/tools/utils/treex/README.md +41 -0
- package/karnel/tools/{dev → utils}/treex/install.sh +3 -3
- package/karnel/tools/utils/websites/README.md +41 -0
- package/karnel/tools/{dev → utils}/websites/install.sh +3 -3
- package/karnel/tools/utils/zork/README.md +43 -0
- package/karnel/tools/{dev → utils}/zork/install.sh +3 -3
- package/karnel/utils/banner.sh +8 -6
- package/karnel/utils/bootstrap.sh +1 -1
- package/karnel/utils/env.sh +16 -2
- package/karnel/utils/log.sh +0 -1
- package/karnel/utils/tools.sh +9 -2
- package/package.json +6 -1
- package/scripts/check-package.js +45 -0
- package/scripts/completion.bash +8 -3
- package/scripts/completion.zsh +8 -13
- package/karnel/cli/commands/doctor/system.sh +0 -87
- package/karnel/tools/dev/applaunch/__pycache__/applaunch.cpython-314.pyc +0 -0
- package/karnel/tools/dev/fconv/__pycache__/fconv.cpython-314.pyc +0 -0
- package/karnel/tools/dev/filecheck/__pycache__/filecheck.cpython-314.pyc +0 -0
- package/karnel/tools/dev/notes/__pycache__/notes.cpython-314.pyc +0 -0
- package/karnel/tools/dev/passman/__pycache__/passman.cpython-314.pyc +0 -0
- package/karnel/tools/dev/splash/__pycache__/splash.cpython-314.pyc +0 -0
- package/karnel/tools/dev/websites/__pycache__/websites.cpython-314.pyc +0 -0
- package/karnel/tools/games/arcade/__pycache__/arcade.cpython-314.pyc +0 -0
- package/karnel/tools/games/buzz/__pycache__/buzz.cpython-314.pyc +0 -0
- package/karnel/tools/games/ctfgod/__pycache__/ctfgod.cpython-314.pyc +0 -0
- package/karnel/tools/games/detective/__pycache__/detective.cpython-314.pyc +0 -0
- package/karnel/tools/games/pet-friends/__pycache__/pet-friends.cpython-314.pyc +0 -0
- package/karnel/tools/games/tamagotchi/__pycache__/tamagotchi.cpython-314.pyc +0 -0
- package/karnel/tools/games/terminal-arcade/__pycache__/terminal-arcade.cpython-314.pyc +0 -0
- /package/karnel/tools/{dev → utils}/applaunch/applaunch.py +0 -0
- /package/karnel/tools/{dev → utils}/fconv/fconv.py +0 -0
- /package/karnel/tools/{dev → utils}/filecheck/filecheck.py +0 -0
- /package/karnel/tools/{dev → utils}/notes/notes.py +0 -0
- /package/karnel/tools/{dev → utils}/passman/passman.py +0 -0
- /package/karnel/tools/{dev → utils}/splash/splash.py +0 -0
- /package/karnel/tools/{dev → utils}/treex/treex.py +0 -0
- /package/karnel/tools/{dev → utils}/websites/websites.py +0 -0
|
@@ -24,6 +24,10 @@ list_main() {
|
|
|
24
24
|
list_item "auto - List automation tools"
|
|
25
25
|
list_item "deploy - List deploy CLIs"
|
|
26
26
|
list_item "games - List games"
|
|
27
|
+
list_item "network - List network tools"
|
|
28
|
+
list_item "utils - List utility scripts"
|
|
29
|
+
list_item "voice - List voice commands"
|
|
30
|
+
list_item "osint - List OSINT tools"
|
|
27
31
|
echo
|
|
28
32
|
return
|
|
29
33
|
fi
|
|
@@ -63,6 +67,18 @@ list_main() {
|
|
|
63
67
|
games)
|
|
64
68
|
_list_games
|
|
65
69
|
;;
|
|
70
|
+
osint)
|
|
71
|
+
_list_osint
|
|
72
|
+
;;
|
|
73
|
+
network)
|
|
74
|
+
_list_network
|
|
75
|
+
;;
|
|
76
|
+
utils)
|
|
77
|
+
_list_utils
|
|
78
|
+
;;
|
|
79
|
+
voice)
|
|
80
|
+
_list_voice
|
|
81
|
+
;;
|
|
66
82
|
*)
|
|
67
83
|
log_warn "Unknown list target: $arg"
|
|
68
84
|
echo "Run 'karnel list' to see available targets"
|
|
@@ -95,6 +111,7 @@ _list_lang() {
|
|
|
95
111
|
echo
|
|
96
112
|
|
|
97
113
|
table_start "Package" "Install Flag" "Status"
|
|
114
|
+
table_row "Bun" "--bun" "$(_check_cmd "bun")"
|
|
98
115
|
table_row "Node.js LTS" "--nodejs" "$(_check_pkg "nodejs-lts")"
|
|
99
116
|
table_row "Python" "--python" "$(_check_pkg "python")"
|
|
100
117
|
table_row "Perl" "--perl" "$(_check_pkg "perl")"
|
|
@@ -229,16 +246,6 @@ _list_dev() {
|
|
|
229
246
|
table_row "Make" "--make" "$(_check_pkg "make")"
|
|
230
247
|
table_row "Udocker" "--udocker" "$(_check_pkg "udocker")"
|
|
231
248
|
table_row "Snyk" "--snyk" "$(_check_cmd "snyk")"
|
|
232
|
-
table_row "httptmux" "--httptmux" "$(_check_cmd "httptmux")"
|
|
233
|
-
table_row "Zork" "--zork" "$(_check_cmd "zork")"
|
|
234
|
-
table_row "File Converter" "--fconv" "$(_check_cmd "fconv")"
|
|
235
|
-
table_row "File Checker" "--filecheck" "$(_check_cmd "filecheck")"
|
|
236
|
-
table_row "Websites Creator" "--websites" "$(_check_cmd "websites")"
|
|
237
|
-
table_row "Smart Notes" "--notes" "$(_check_cmd "notes")"
|
|
238
|
-
table_row "Tree Explorer" "--treex" "$(_check_cmd "treex")"
|
|
239
|
-
table_row "Password Master" "--passman" "$(_check_cmd "passman")"
|
|
240
|
-
table_row "App Launcher" "--applaunch" "$(_check_cmd "applaunch")"
|
|
241
|
-
table_row "Loading Screen" "--splash" "$(_check_cmd "splash")"
|
|
242
249
|
table_end
|
|
243
250
|
|
|
244
251
|
echo
|
|
@@ -288,9 +295,9 @@ _list_npm() {
|
|
|
288
295
|
table_row "Markserv" "--markserv" "markserv" "$(_check_cmd "markserv")"
|
|
289
296
|
table_row "PSQL Format" "--psqlformat" "psqlformat" "$(_check_cmd "psqlformat")"
|
|
290
297
|
table_row "NPM Check Updates" "--ncu" "ncu" "$(_check_cmd "ncu")"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
298
|
+
table_row "Ngrok" "--ngrok" "ngrok" "$(_check_cmd "ngrok")"
|
|
299
|
+
table_row "Turbopack" "--turbopack" "turbo" "$(_check_cmd "turbo")"
|
|
300
|
+
table_end
|
|
294
301
|
|
|
295
302
|
echo
|
|
296
303
|
log_info "Install specific: ${D_CYAN}karnel install npm --typescript --prettier${NC}"
|
|
@@ -364,6 +371,73 @@ _list_auto() {
|
|
|
364
371
|
echo
|
|
365
372
|
}
|
|
366
373
|
|
|
374
|
+
# ===== LIST OSINT =====
|
|
375
|
+
_list_osint() {
|
|
376
|
+
import "@/tools/osint/robin/common"
|
|
377
|
+
echo
|
|
378
|
+
box "OSINT Tools"
|
|
379
|
+
echo
|
|
380
|
+
log_info "Available OSINT tools and install commands:"
|
|
381
|
+
echo
|
|
382
|
+
|
|
383
|
+
table_start "Tool" "Install Flag" "Status"
|
|
384
|
+
table_row "Robin — Dark Web OSINT" "--robin" "$(_check_robin)"
|
|
385
|
+
table_end
|
|
386
|
+
|
|
387
|
+
echo
|
|
388
|
+
log_info "Install specific: ${D_CYAN}karnel install osint --robin${NC}"
|
|
389
|
+
log_info "Install all: ${D_CYAN}karnel install osint${NC}"
|
|
390
|
+
log_info "Start: ${D_CYAN}karnel robin start${NC}"
|
|
391
|
+
echo
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
# ===== LIST NETWORK =====
|
|
395
|
+
_list_network() {
|
|
396
|
+
echo
|
|
397
|
+
box "Network Tools"
|
|
398
|
+
echo
|
|
399
|
+
log_info "Available network tools and install commands:"
|
|
400
|
+
echo
|
|
401
|
+
|
|
402
|
+
table_start "Tool" "Install Flag" "Command" "Status"
|
|
403
|
+
table_row "Dark Web OSINT" "--dark" "dark" "$(_check_cmd "dark")"
|
|
404
|
+
table_row "DedSec Network Toolkit" "--dedsec-network" "dedsec-network" "$(_check_cmd "dedsec-network")"
|
|
405
|
+
table_end
|
|
406
|
+
|
|
407
|
+
echo
|
|
408
|
+
log_info "Install specific: ${D_CYAN}karnel install network --dark --dedsec-network${NC}"
|
|
409
|
+
log_info "Install all: ${D_CYAN}karnel install network${NC}"
|
|
410
|
+
echo
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
# ===== LIST UTILS =====
|
|
414
|
+
_list_utils() {
|
|
415
|
+
echo
|
|
416
|
+
box "Utility Scripts"
|
|
417
|
+
echo
|
|
418
|
+
log_info "Available utility scripts and install commands:"
|
|
419
|
+
echo
|
|
420
|
+
|
|
421
|
+
table_start "Tool" "Install Flag" "Command" "Status"
|
|
422
|
+
table_row "File Converter" "--fconv" "fconv" "$(_check_cmd "fconv")"
|
|
423
|
+
table_row "File Checker" "--filecheck" "filecheck" "$(_check_cmd "filecheck")"
|
|
424
|
+
table_row "Websites Creator" "--websites" "websites" "$(_check_cmd "websites")"
|
|
425
|
+
table_row "Smart Notes" "--notes" "notes" "$(_check_cmd "notes")"
|
|
426
|
+
table_row "Tree Explorer" "--treex" "treex" "$(_check_cmd "treex")"
|
|
427
|
+
table_row "Password Master" "--passman" "passman" "$(_check_cmd "passman")"
|
|
428
|
+
table_row "App Launcher" "--applaunch" "applaunch" "$(_check_cmd "applaunch")"
|
|
429
|
+
table_row "Loading Screen" "--splash" "splash" "$(_check_cmd "splash")"
|
|
430
|
+
table_row "httptmux (API client)" "--httptmux" "httptmux" "$(_check_cmd "httptmux")"
|
|
431
|
+
table_row "Zork (text adventure)" "--zork" "zork" "$(_check_cmd "zork")"
|
|
432
|
+
table_row "QR Code Generator" "--qrcode" "qrcode" "$(_check_cmd "qrcode")"
|
|
433
|
+
table_end
|
|
434
|
+
|
|
435
|
+
echo
|
|
436
|
+
log_info "Install specific: ${D_CYAN}karnel install utils --fconv --notes${NC}"
|
|
437
|
+
log_info "Install all: ${D_CYAN}karnel install utils${NC}"
|
|
438
|
+
echo
|
|
439
|
+
}
|
|
440
|
+
|
|
367
441
|
# ===== HELPER FUNCTIONS =====
|
|
368
442
|
|
|
369
443
|
# Check if command exists
|
|
@@ -396,6 +470,14 @@ _check_dir() {
|
|
|
396
470
|
fi
|
|
397
471
|
}
|
|
398
472
|
|
|
473
|
+
_check_robin() {
|
|
474
|
+
if _robin_is_installed; then
|
|
475
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
476
|
+
else
|
|
477
|
+
echo -e "${D_RED}not installed${NC}"
|
|
478
|
+
fi
|
|
479
|
+
}
|
|
480
|
+
|
|
399
481
|
# Check if file exists
|
|
400
482
|
_check_file() {
|
|
401
483
|
local file="$1"
|
|
@@ -439,3 +521,14 @@ _grep_config() {
|
|
|
439
521
|
echo -e "${D_RED}not installed${NC}"
|
|
440
522
|
fi
|
|
441
523
|
}
|
|
524
|
+
|
|
525
|
+
# ===== LIST VOICE =====
|
|
526
|
+
_list_voice() {
|
|
527
|
+
echo
|
|
528
|
+
box "Voice Command"
|
|
529
|
+
echo
|
|
530
|
+
printf " ${D_GREEN}%-18s${NC} %s\n" "voice" "Speech-to-agent AI command"
|
|
531
|
+
echo
|
|
532
|
+
list_item "Usage: ${D_CYAN}karnel install voice${NC}"
|
|
533
|
+
echo
|
|
534
|
+
}
|
|
@@ -48,10 +48,25 @@ open_main() {
|
|
|
48
48
|
deploy)
|
|
49
49
|
url="$OPEN_BASE_URL/karnel/deploy"
|
|
50
50
|
;;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
cleanup)
|
|
52
|
+
url="$OPEN_BASE_URL/karnel/cleanup"
|
|
53
|
+
;;
|
|
54
|
+
network)
|
|
55
|
+
url="$OPEN_BASE_URL/karnel/network"
|
|
56
|
+
;;
|
|
57
|
+
utils)
|
|
58
|
+
url="$OPEN_BASE_URL/karnel/utils"
|
|
59
|
+
;;
|
|
60
|
+
games)
|
|
61
|
+
url="$OPEN_BASE_URL/karnel/games"
|
|
62
|
+
;;
|
|
63
|
+
voice)
|
|
64
|
+
url="$OPEN_BASE_URL/karnel/voice"
|
|
65
|
+
;;
|
|
66
|
+
osint|robin)
|
|
67
|
+
url="$OPEN_BASE_URL/karnel/osint"
|
|
68
|
+
;;
|
|
69
|
+
--help | -h)
|
|
55
70
|
open_help
|
|
56
71
|
return
|
|
57
72
|
;;
|
|
@@ -95,10 +110,15 @@ open_help() {
|
|
|
95
110
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "npm" "Node.js tools"
|
|
96
111
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "shell" "ZSH shell"
|
|
97
112
|
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "ui" "Termux UI"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
113
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "auto" "Automation tools"
|
|
114
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "deploy" "Deploy CLIs"
|
|
115
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "games" "Games"
|
|
116
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "cleanup" "Cache cleanup"
|
|
117
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "network" "Network tools"
|
|
118
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "utils" "Utility tools"
|
|
119
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "voice" "Voice command"
|
|
120
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "osint" "OSINT tools"
|
|
121
|
+
echo
|
|
102
122
|
separator_section "Website"
|
|
103
123
|
echo
|
|
104
124
|
list_item "${D_CYAN}$OPEN_BASE_URL${NC}"
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import "@/utils/log"
|
|
4
4
|
import "@/utils/colors"
|
|
5
|
+
import "@/utils/tools"
|
|
5
6
|
|
|
6
7
|
reinstall_main() {
|
|
7
8
|
|
|
@@ -24,6 +25,11 @@ reinstall_main() {
|
|
|
24
25
|
list_item "ui - Reinstall Termux UI"
|
|
25
26
|
list_item "auto - Reinstall automation tools"
|
|
26
27
|
list_item "games - Reinstall games"
|
|
28
|
+
list_item "network - Reinstall network tools"
|
|
29
|
+
list_item "utils - Reinstall utility scripts"
|
|
30
|
+
list_item "deploy - Reinstall deploy CLIs"
|
|
31
|
+
list_item "voice - Reinstall voice command"
|
|
32
|
+
list_item "osint - Reinstall OSINT tools"
|
|
27
33
|
echo
|
|
28
34
|
log_info "Reinstall specific tools with flags:"
|
|
29
35
|
echo
|
|
@@ -38,6 +44,7 @@ reinstall_main() {
|
|
|
38
44
|
|
|
39
45
|
local module_target=""
|
|
40
46
|
local -a tool_flags=()
|
|
47
|
+
local -a invalid_args=()
|
|
41
48
|
|
|
42
49
|
for arg in "$@"; do
|
|
43
50
|
if [[ "$arg" == --* ]]; then
|
|
@@ -45,9 +52,20 @@ reinstall_main() {
|
|
|
45
52
|
tool_flags+=("$flag")
|
|
46
53
|
elif [[ -z "$module_target" ]]; then
|
|
47
54
|
module_target="$arg"
|
|
55
|
+
else
|
|
56
|
+
invalid_args+=("$arg")
|
|
48
57
|
fi
|
|
49
58
|
done
|
|
50
59
|
|
|
60
|
+
if [[ ${#invalid_args[@]} -gt 0 ]]; then
|
|
61
|
+
log_error "Invalid arguments: ${invalid_args[*]}"
|
|
62
|
+
echo
|
|
63
|
+
log_info "To reinstall specific tools, use -- before the name:"
|
|
64
|
+
log_info " ${D_CYAN}karnel reinstall $module_target --${invalid_args[0]}${NC}"
|
|
65
|
+
echo
|
|
66
|
+
return 1
|
|
67
|
+
fi
|
|
68
|
+
|
|
51
69
|
if [[ -z "$module_target" ]]; then
|
|
52
70
|
log_error "No target specified"
|
|
53
71
|
echo "Run 'karnel reinstall' to see available targets"
|
|
@@ -105,6 +123,26 @@ _reinstall_full_module() {
|
|
|
105
123
|
import "@/tools/games/all"
|
|
106
124
|
reinstall_all_games
|
|
107
125
|
;;
|
|
126
|
+
deploy)
|
|
127
|
+
import "@/modules/deploy"
|
|
128
|
+
reinstall_deploy
|
|
129
|
+
;;
|
|
130
|
+
voice)
|
|
131
|
+
import "@/modules/voice"
|
|
132
|
+
reinstall_voice
|
|
133
|
+
;;
|
|
134
|
+
osint)
|
|
135
|
+
import "@/modules/osint"
|
|
136
|
+
reinstall_osint
|
|
137
|
+
;;
|
|
138
|
+
network)
|
|
139
|
+
import "@/modules/network"
|
|
140
|
+
reinstall_network
|
|
141
|
+
;;
|
|
142
|
+
utils)
|
|
143
|
+
import "@/modules/utils"
|
|
144
|
+
reinstall_utils
|
|
145
|
+
;;
|
|
108
146
|
*)
|
|
109
147
|
log_warn "Unknown reinstall target: $target"
|
|
110
148
|
echo "Run 'karnel reinstall' to see available targets"
|
|
@@ -165,8 +203,8 @@ _reinstall_specific_tools() {
|
|
|
165
203
|
reinstall_kilocode_cli
|
|
166
204
|
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
167
205
|
;;
|
|
168
|
-
kimchi)
|
|
169
|
-
|
|
206
|
+
kimchi-code)
|
|
207
|
+
reinstall_kimchi_code
|
|
170
208
|
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
171
209
|
;;
|
|
172
210
|
mimocode)
|
|
@@ -229,6 +267,26 @@ _reinstall_specific_tools() {
|
|
|
229
267
|
reinstall_copilot_termux
|
|
230
268
|
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
231
269
|
;;
|
|
270
|
+
kiro)
|
|
271
|
+
reinstall_kiro
|
|
272
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
273
|
+
;;
|
|
274
|
+
crush)
|
|
275
|
+
reinstall_crush
|
|
276
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
277
|
+
;;
|
|
278
|
+
cline)
|
|
279
|
+
reinstall_cline
|
|
280
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
281
|
+
;;
|
|
282
|
+
odysseus)
|
|
283
|
+
reinstall_odysseus
|
|
284
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
285
|
+
;;
|
|
286
|
+
omni-route)
|
|
287
|
+
reinstall_omni_route
|
|
288
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
289
|
+
;;
|
|
232
290
|
*)
|
|
233
291
|
log_warn "Unknown AI tool: --$tool"
|
|
234
292
|
;;
|
|
@@ -381,49 +439,9 @@ _reinstall_specific_tools() {
|
|
|
381
439
|
reinstall_snyk
|
|
382
440
|
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
383
441
|
;;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
;;
|
|
388
|
-
zork)
|
|
389
|
-
reinstall_zork
|
|
390
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
391
|
-
;;
|
|
392
|
-
fconv)
|
|
393
|
-
reinstall_fconv
|
|
394
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
395
|
-
;;
|
|
396
|
-
filecheck)
|
|
397
|
-
reinstall_filecheck
|
|
398
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
399
|
-
;;
|
|
400
|
-
websites)
|
|
401
|
-
reinstall_websites
|
|
402
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
403
|
-
;;
|
|
404
|
-
notes)
|
|
405
|
-
reinstall_notes
|
|
406
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
407
|
-
;;
|
|
408
|
-
treex)
|
|
409
|
-
reinstall_treex
|
|
410
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
411
|
-
;;
|
|
412
|
-
passman)
|
|
413
|
-
reinstall_passman
|
|
414
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
415
|
-
;;
|
|
416
|
-
applaunch)
|
|
417
|
-
reinstall_applaunch
|
|
418
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
419
|
-
;;
|
|
420
|
-
splash)
|
|
421
|
-
reinstall_splash
|
|
422
|
-
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
423
|
-
;;
|
|
424
|
-
*)
|
|
425
|
-
log_warn "Unknown tool: --$tool"
|
|
426
|
-
;;
|
|
442
|
+
*)
|
|
443
|
+
log_warn "Unknown tool: --$tool"
|
|
444
|
+
;;
|
|
427
445
|
esac
|
|
428
446
|
done
|
|
429
447
|
|
|
@@ -555,8 +573,12 @@ _reinstall_specific_tools() {
|
|
|
555
573
|
|
|
556
574
|
for tool in "${tools[@]}"; do
|
|
557
575
|
case "$tool" in
|
|
576
|
+
bun)
|
|
577
|
+
reinstall_bun
|
|
578
|
+
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
579
|
+
;;
|
|
558
580
|
nodejs)
|
|
559
|
-
|
|
581
|
+
reinstall_nodejs
|
|
560
582
|
case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
|
|
561
583
|
;;
|
|
562
584
|
python)
|
|
@@ -758,6 +780,17 @@ _reinstall_specific_tools() {
|
|
|
758
780
|
fi
|
|
759
781
|
echo
|
|
760
782
|
;;
|
|
783
|
+
osint)
|
|
784
|
+
import "@/tools/osint/robin/common"
|
|
785
|
+
_robin_print_disclaimer
|
|
786
|
+
_batch_tool_action "osint" "reinstall" "${tools[@]}"
|
|
787
|
+
;;
|
|
788
|
+
network)
|
|
789
|
+
_batch_tool_action "network" "reinstall" "${tools[@]}"
|
|
790
|
+
;;
|
|
791
|
+
utils)
|
|
792
|
+
_batch_tool_action "utils" "reinstall" "${tools[@]}"
|
|
793
|
+
;;
|
|
761
794
|
*)
|
|
762
795
|
log_warn "Unknown reinstall target: $module"
|
|
763
796
|
echo "Run 'karnel reinstall' to see available targets"
|
|
@@ -47,6 +47,22 @@ restore_main() {
|
|
|
47
47
|
echo
|
|
48
48
|
log_info "Restoring: $(basename "$file")"
|
|
49
49
|
[[ -f "$manifest" ]] && log_info "$(wc -l < "$manifest") tools to reinstall"
|
|
50
|
+
|
|
51
|
+
# Checksum verification
|
|
52
|
+
local checksum_file="$file.sha256"
|
|
53
|
+
if [[ -f "$checksum_file" ]]; then
|
|
54
|
+
log_info "Verifying checksum..."
|
|
55
|
+
if sha256sum -c "$checksum_file" &>/dev/null; then
|
|
56
|
+
log_success "Checksum verified"
|
|
57
|
+
else
|
|
58
|
+
log_error "Checksum mismatch! Backup may be corrupted"
|
|
59
|
+
read_confirm "Continue anyway?" confirm
|
|
60
|
+
[[ "$confirm" != "y" ]] && { log_info "Cancelled"; return 1; }
|
|
61
|
+
fi
|
|
62
|
+
else
|
|
63
|
+
log_warn "No checksum file found (pre-checksum backup)"
|
|
64
|
+
fi
|
|
65
|
+
|
|
50
66
|
echo
|
|
51
67
|
|
|
52
68
|
read_confirm "Proceed with restore?" confirm
|