karnel-termux 4.16.0 → 4.16.1
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 +4 -2
- package/docs/CHANGELOG.md +16 -0
- package/docs/README.md +4 -0
- package/install.sh +0 -0
- package/karnel/bin/karnel +0 -0
- package/karnel/cli/commands/agent.sh +9 -0
- package/karnel/cli/commands/help.sh +0 -0
- package/karnel/tools/ai/all.sh +0 -0
- package/karnel/tools/ai/antigravity-cli/install.sh +0 -0
- package/karnel/tools/ai/cactus/install.sh +10 -4
- package/karnel/tools/ai/claude-code/install.sh +0 -0
- package/karnel/tools/ai/cline/bin/cline +0 -0
- package/karnel/tools/ai/cline/install.sh +0 -0
- package/karnel/tools/ai/codebuff/bin/codebuff +0 -0
- package/karnel/tools/ai/codebuff/install.sh +0 -0
- package/karnel/tools/ai/codegraph/install.sh +0 -0
- 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 +0 -0
- package/karnel/tools/ai/ctx7/install.sh +0 -0
- package/karnel/tools/ai/engram/install.sh +0 -0
- package/karnel/tools/ai/gemini-cli/install.sh +0 -0
- package/karnel/tools/ai/gentle-ai/install.sh +0 -0
- package/karnel/tools/ai/gga/install.sh +0 -0
- package/karnel/tools/ai/gga/termux.patch +0 -0
- 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 +0 -0
- 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 +0 -0
- 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/qwen-code/install.sh +0 -0
- package/karnel/tools/auto/n8n/install.sh +0 -0
- 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/redis/install.sh +0 -0
- package/karnel/tools/db/sqlite/install.sh +0 -0
- package/karnel/tools/deploy/netlify/install.sh +0 -0
- package/karnel/tools/deploy/railway/install.sh +0 -0
- package/karnel/tools/deploy/vercel/install.sh +0 -0
- 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 +0 -0
- 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/openssh/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/tmux/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/code-server/install.sh +0 -0
- package/karnel/tools/editor/neovim/install.sh +0 -0
- package/karnel/tools/editor/nvchad/install.sh +0 -0
- 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/bun/bin/bunx +0 -0
- package/karnel/tools/lang/bun/install.sh +0 -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/dark/install.sh +0 -0
- package/karnel/tools/network/dedsec-network/install.sh +0 -0
- 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 +0 -0
- package/karnel/tools/npm/typescript/install.sh +0 -0
- package/karnel/tools/npm/vercel/install.sh +0 -0
- package/karnel/tools/osint/robin/common.sh +0 -0
- package/karnel/tools/osint/robin/install.sh +0 -0
- package/karnel/tools/security/aircrack-ng/install.sh +0 -0
- package/karnel/tools/security/amass/install.sh +0 -0
- package/karnel/tools/security/binwalk/install.sh +0 -0
- package/karnel/tools/security/burpsuite/install.sh +0 -0
- package/karnel/tools/security/dirb/install.sh +0 -0
- package/karnel/tools/security/dnsrecon/install.sh +0 -0
- package/karnel/tools/security/enum4linux/install.sh +0 -0
- package/karnel/tools/security/exiftool/install.sh +0 -0
- package/karnel/tools/security/ffuf/install.sh +0 -0
- package/karnel/tools/security/foremost/install.sh +0 -0
- package/karnel/tools/security/gobuster/install.sh +0 -0
- package/karnel/tools/security/hashcat/install.sh +0 -0
- package/karnel/tools/security/hydra/install.sh +0 -0
- package/karnel/tools/security/john/install.sh +0 -0
- package/karnel/tools/security/masscan/install.sh +0 -0
- package/karnel/tools/security/metasploit/install.sh +0 -0
- package/karnel/tools/security/netcat/install.sh +0 -0
- package/karnel/tools/security/nikto/install.sh +0 -0
- package/karnel/tools/security/nmap/install.sh +0 -0
- package/karnel/tools/security/smbclient/install.sh +0 -0
- package/karnel/tools/security/sqlmap/install.sh +0 -0
- package/karnel/tools/security/steghide/install.sh +0 -0
- package/karnel/tools/security/subfinder/install.sh +0 -0
- package/karnel/tools/security/tcpdump/install.sh +0 -0
- package/karnel/tools/security/theharvester/install.sh +0 -0
- package/karnel/tools/security/wafw00f/install.sh +0 -0
- package/karnel/tools/security/whatweb/install.sh +0 -0
- package/karnel/tools/security/whois/install.sh +0 -0
- package/karnel/tools/security/wpscan/install.sh +0 -0
- package/karnel/tools/security/zap/install.sh +0 -0
- 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/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/applaunch/applaunch.py +0 -0
- package/karnel/tools/utils/applaunch/install.sh +0 -0
- package/karnel/tools/utils/fconv/fconv.py +0 -0
- package/karnel/tools/utils/fconv/install.sh +0 -0
- package/karnel/tools/utils/filecheck/filecheck.py +0 -0
- package/karnel/tools/utils/filecheck/install.sh +0 -0
- package/karnel/tools/utils/httptmux/install.sh +0 -0
- package/karnel/tools/utils/notes/install.sh +0 -0
- package/karnel/tools/utils/notes/notes.py +0 -0
- package/karnel/tools/utils/passman/install.sh +0 -0
- package/karnel/tools/utils/passman/passman.py +0 -0
- package/karnel/tools/utils/qrcode/install.sh +0 -0
- package/karnel/tools/utils/qrcode/qrcode.py +0 -0
- package/karnel/tools/utils/splash/install.sh +0 -0
- package/karnel/tools/utils/splash/splash.py +0 -0
- package/karnel/tools/utils/treex/install.sh +0 -0
- package/karnel/tools/utils/treex/treex.py +0 -0
- package/karnel/tools/utils/websites/install.sh +0 -0
- package/karnel/tools/utils/websites/websites.py +0 -0
- package/karnel/tools/utils/zork/install.sh +0 -0
- package/karnel/tools/utils/zork/zork.sh +0 -0
- package/karnel/utils/agent_actions.sh +16 -3
- package/karnel/utils/agent_llm.sh +8 -2
- package/package.json +3 -2
- package/karnel/RELEASE_COMMIT +0 -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.16.
|
|
11
|
+
<img src="https://img.shields.io/badge/version-4.16.1-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">
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
|
|
37
37
|
Created by **Israel Marques**.
|
|
38
38
|
|
|
39
|
+
Core agent contributions by **devcorex**.
|
|
40
|
+
|
|
39
41
|
- **43 AI tools** — Claude, Gemini, OpenCode, Cactus, Hugging Face, Ollama, KeelCode, Goose, Factory Droid and more
|
|
40
42
|
- **8 languages** — Node.js, Python, Go, Rust, C/C++, PHP, Perl, Bun
|
|
41
43
|
- **5 databases** — PostgreSQL, MariaDB, SQLite, MongoDB, Redis
|
|
@@ -62,7 +64,7 @@ Created by **Israel Marques**.
|
|
|
62
64
|
### Via checksummed GitHub release (recommended)
|
|
63
65
|
|
|
64
66
|
```bash
|
|
65
|
-
version=4.16.
|
|
67
|
+
version=4.16.1
|
|
66
68
|
tmpdir=$(mktemp -d) && trap 'rm -rf "$tmpdir"' EXIT
|
|
67
69
|
base="https://github.com/israelmarques1024-dotcom/karnel-termux/releases/download/v$version"
|
|
68
70
|
curl -fsSL "$base/karnel-termux-install.sh" -o "$tmpdir/karnel-termux-install.sh"
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Documentation Changelog
|
|
2
2
|
|
|
3
|
+
## 4.16.1 - 2026-08-22
|
|
4
|
+
|
|
5
|
+
- `karnel agent ask/run`: when the model endpoint is unreachable and Cactus is
|
|
6
|
+
not installed, the agent now says so explicitly and offers to install Cactus
|
|
7
|
+
on the spot (`karnel install ai --cactus`) instead of printing a generic
|
|
8
|
+
"start your server" hint that referenced a binary the user did not have.
|
|
9
|
+
- Cactus glibc installer: fresh installs are now pinned to the tested
|
|
10
|
+
`cactus-compute` version (2.0.1) — the previous unpinned spec silently pulled
|
|
11
|
+
2.1.x with a ~1.5 GB torch/CUDA dependency chain; updates keep the
|
|
12
|
+
`>=2,<3` range used by the proot path.
|
|
13
|
+
- Cactus glibc installer: pip output is now streamed live (and mirrored to the
|
|
14
|
+
install log) instead of being hidden behind an indeterminate spinner, which
|
|
15
|
+
made multi-minute downloads look frozen.
|
|
16
|
+
- Credits: devcorex credited as a core agent contributor in `karnel agent`
|
|
17
|
+
help/REPL screens and project READMEs.
|
|
18
|
+
|
|
3
19
|
## 4.16.0 - 2026-08-20
|
|
4
20
|
|
|
5
21
|
- Rebranded fully to Karnel: removed every remaining reference to DevCoreX and
|
package/docs/README.md
CHANGED
|
@@ -29,3 +29,7 @@ With a single CLI (`karnel`), you can install and manage 43 AI tools, 8 language
|
|
|
29
29
|
- **[Supabase CLI](./cli/README.md#supabase--remote-project-helpers)** — `karnel supabase` remote-project helpers
|
|
30
30
|
- **[Architecture](./ARCHITECTURE.md)** — Project structure, module system, import mechanism
|
|
31
31
|
- **[Changelog](./CHANGELOG.md)** — Version history, bug fixes, known issues
|
|
32
|
+
|
|
33
|
+
## Credits
|
|
34
|
+
|
|
35
|
+
Created by **Israel Marques**. Core agent contributions by **devcorex**.
|
package/install.sh
CHANGED
|
File without changes
|
package/karnel/bin/karnel
CHANGED
|
File without changes
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
# and DESCRIBES. bash EXECUTES. In the REPLs (and -p prompts on a
|
|
14
14
|
# TTY) typing `@query` opens an fzf picker to attach a file's
|
|
15
15
|
# contents to your message.
|
|
16
|
+
#
|
|
17
|
+
# Credits:
|
|
18
|
+
# devcorex — core agent contributor
|
|
16
19
|
# ============================================================
|
|
17
20
|
|
|
18
21
|
import "@/utils/log"
|
|
@@ -28,6 +31,8 @@ agent_help() {
|
|
|
28
31
|
echo
|
|
29
32
|
box "Karnel Agent — Local AI Assistant & Task Agent"
|
|
30
33
|
echo
|
|
34
|
+
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
35
|
+
echo
|
|
31
36
|
log_info "Usage: karnel agent <ask|run|config> [options]"
|
|
32
37
|
echo
|
|
33
38
|
separator_section "Subcommands"
|
|
@@ -552,6 +557,8 @@ agent_ask_repl() {
|
|
|
552
557
|
agent_banner
|
|
553
558
|
separator_section "Karnel Agent — Ask"
|
|
554
559
|
echo
|
|
560
|
+
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
561
|
+
echo
|
|
555
562
|
agent_status_line
|
|
556
563
|
echo
|
|
557
564
|
list_item "Type ${D_CYAN}/help${D_NC} to see all commands"
|
|
@@ -667,6 +674,8 @@ agent_run_repl() {
|
|
|
667
674
|
agent_banner
|
|
668
675
|
separator_section "Karnel Agent — Run ($([[ $AGENT_PLAN_MODE == 1 ]] && echo 'PLAN · read-only' || echo 'BUILD mode'))"
|
|
669
676
|
echo
|
|
677
|
+
printf " ${D_GRAY}credits: devcorex — core agent${D_NC}\n"
|
|
678
|
+
echo
|
|
670
679
|
agent_status_line
|
|
671
680
|
echo
|
|
672
681
|
list_item "Type ${D_CYAN}/help${D_NC} to see all commands"
|
|
File without changes
|
package/karnel/tools/ai/all.sh
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -245,12 +245,16 @@ _cactus_cli_install_deps_native() {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
_cactus_cli_install_pip_glibc_impl() {
|
|
248
|
+
local pkg_spec="cactus-compute==${CACTUS_VERSION}"
|
|
248
249
|
local install_args=""
|
|
249
250
|
if [ "${1:-install}" = "update" ]; then
|
|
251
|
+
pkg_spec='cactus-compute>=2,<3'
|
|
250
252
|
install_args="--upgrade"
|
|
251
253
|
fi
|
|
252
254
|
|
|
253
|
-
|
|
255
|
+
_cactus_cli_glibc_run -m pip install $install_args "$pkg_spec" 2>&1 | tee -a "$CACTUS_CLI_LOG_FILE"
|
|
256
|
+
local pip_rc=${PIPESTATUS[0]}
|
|
257
|
+
if (( pip_rc != 0 )); then
|
|
254
258
|
log_error "Failed to install Cactus Engine CLI"
|
|
255
259
|
return 1
|
|
256
260
|
fi
|
|
@@ -261,8 +265,10 @@ _cactus_cli_install_pip_glibc_impl() {
|
|
|
261
265
|
}
|
|
262
266
|
|
|
263
267
|
_cactus_cli_install_pip_glibc() {
|
|
264
|
-
log_info "This downloads the Cactus Engine wheel (~
|
|
265
|
-
|
|
268
|
+
log_info "This downloads the Cactus Engine wheel (~26 MB) plus dependencies (torch, numpy, fastapi...) — it can take several minutes; progress is shown below"
|
|
269
|
+
log_info "Full log: ${D_CYAN}$CACTUS_CLI_LOG_FILE${D_NC}"
|
|
270
|
+
echo
|
|
271
|
+
_cactus_cli_install_pip_glibc_impl "$@"
|
|
266
272
|
}
|
|
267
273
|
|
|
268
274
|
_cactus_cli_post_install_glibc() {
|
|
@@ -321,7 +327,7 @@ _cactus_cli_verify_impl() {
|
|
|
321
327
|
}
|
|
322
328
|
|
|
323
329
|
_cactus_cli_verify_glibc() {
|
|
324
|
-
loading "Verifying Cactus Engine CLI" _cactus_cli_verify_impl
|
|
330
|
+
loading "Verifying Cactus Engine CLI (first engine load, may take a few minutes)" _cactus_cli_verify_impl
|
|
325
331
|
}
|
|
326
332
|
|
|
327
333
|
_cactus_cli_create_glibc_wrapper() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1142,9 +1142,22 @@ agent_server_ensure() {
|
|
|
1142
1142
|
return 0
|
|
1143
1143
|
fi
|
|
1144
1144
|
if ! command -v cactus &>/dev/null; then
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1145
|
+
echo
|
|
1146
|
+
log_warn "Cactus (the local model server) is not installed"
|
|
1147
|
+
if agent_confirm "Install Cactus now? (karnel install ai --cactus)" _agent_install_cactus; then
|
|
1148
|
+
import "@/tools/ai/cactus/install"
|
|
1149
|
+
if install_cactus; then
|
|
1150
|
+
log_success "Cactus installed — starting the model server…"
|
|
1151
|
+
else
|
|
1152
|
+
log_error "Cactus installation failed — start the server manually:"
|
|
1153
|
+
list_item "${D_CYAN}$AGENT_SERVER_CMD${D_NC}"
|
|
1154
|
+
return 1
|
|
1155
|
+
fi
|
|
1156
|
+
else
|
|
1157
|
+
log_info "Install it later with: ${D_CYAN}karnel install ai --cactus${D_NC}"
|
|
1158
|
+
list_item "Or start the server manually: ${D_CYAN}$AGENT_SERVER_CMD${D_NC}"
|
|
1159
|
+
return 1
|
|
1160
|
+
fi
|
|
1148
1161
|
fi
|
|
1149
1162
|
echo
|
|
1150
1163
|
log_info "Starting the Cactus model server in the background…"
|
|
@@ -121,8 +121,14 @@ agent_models_url() {
|
|
|
121
121
|
agent_check_server() {
|
|
122
122
|
local models
|
|
123
123
|
models=$(curl -fsS -m 6 "$(agent_models_url)" 2>/dev/null) || {
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
if ! command -v cactus &>/dev/null; then
|
|
125
|
+
log_warn "Cannot reach endpoint: ${D_CYAN}$AGENT_ENDPOINT${D_NC} — Cactus is not installed"
|
|
126
|
+
list_item "Install it: ${D_CYAN}karnel install ai --cactus${D_NC}"
|
|
127
|
+
list_item "Or point to a running server: ${D_CYAN}karnel agent config endpoint <url>${D_NC}"
|
|
128
|
+
else
|
|
129
|
+
log_warn "Cannot reach endpoint: ${D_CYAN}$AGENT_ENDPOINT${D_NC}"
|
|
130
|
+
list_item "Start your server, e.g.: ${D_CYAN}$AGENT_SERVER_CMD${D_NC}"
|
|
131
|
+
fi
|
|
126
132
|
return 1
|
|
127
133
|
}
|
|
128
134
|
if command -v jq &>/dev/null && echo "$models" | jq -e '.data' &>/dev/null; then
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karnel-termux",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.1",
|
|
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,7 +39,8 @@
|
|
|
39
39
|
],
|
|
40
40
|
"author": "israel marques",
|
|
41
41
|
"contributors": [
|
|
42
|
-
"israel marques"
|
|
42
|
+
"israel marques",
|
|
43
|
+
"devcorex"
|
|
43
44
|
],
|
|
44
45
|
"license": "MIT",
|
|
45
46
|
"bugs": {
|
package/karnel/RELEASE_COMMIT
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b96d4c7cb3e38a356ca310c3e9d8de39aea605ca
|