karnel-termux 4.7.7 → 4.8.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.
Files changed (49) hide show
  1. package/README.md +39 -4
  2. package/karnel/cli/commands/backup.sh +8 -0
  3. package/karnel/cli/commands/doctor/system.sh +2 -0
  4. package/karnel/cli/commands/doctor.sh +8 -0
  5. package/karnel/cli/commands/install.sh +139 -84
  6. package/karnel/cli/commands/list.sh +32 -0
  7. package/karnel/cli/commands/open.sh +10 -6
  8. package/karnel/cli/commands/reinstall.sh +11 -0
  9. package/karnel/cli/commands/robin.sh +656 -0
  10. package/karnel/cli/commands/show.sh +1 -0
  11. package/karnel/cli/commands/start.sh +5 -0
  12. package/karnel/cli/commands/status.sh +11 -0
  13. package/karnel/cli/commands/uninstall.sh +9 -0
  14. package/karnel/cli/commands/update.sh +9 -0
  15. package/karnel/cli/commands/version.sh +2 -0
  16. package/karnel/cli/karnel.sh +35 -25
  17. package/karnel/modules/dev.sh +19 -46
  18. package/karnel/modules/osint.sh +123 -0
  19. package/karnel/tools/ai/crush/install.sh +1 -1
  20. package/karnel/tools/ai/omni-route/install.sh +1 -1
  21. package/karnel/tools/deploy/railway/install.sh +1 -1
  22. package/karnel/tools/dev/all.sh +45 -2
  23. package/karnel/tools/dev/fzf/install.sh +36 -9
  24. package/karnel/tools/npm/turbopack/install.sh +2 -0
  25. package/karnel/tools/osint/all.sh +65 -0
  26. package/karnel/tools/osint/robin/README.md +99 -0
  27. package/karnel/tools/osint/robin/common.sh +258 -0
  28. package/karnel/tools/osint/robin/install.sh +548 -0
  29. package/karnel/tools/osint/robin/requirements-termux.txt +33 -0
  30. package/karnel/utils/env.sh +16 -2
  31. package/karnel/utils/tools.sh +9 -2
  32. package/package.json +6 -1
  33. package/scripts/check-package.js +45 -0
  34. package/scripts/completion.bash +8 -3
  35. package/scripts/completion.zsh +8 -1
  36. package/karnel/tools/dev/applaunch/__pycache__/applaunch.cpython-314.pyc +0 -0
  37. package/karnel/tools/dev/fconv/__pycache__/fconv.cpython-314.pyc +0 -0
  38. package/karnel/tools/dev/filecheck/__pycache__/filecheck.cpython-314.pyc +0 -0
  39. package/karnel/tools/dev/notes/__pycache__/notes.cpython-314.pyc +0 -0
  40. package/karnel/tools/dev/passman/__pycache__/passman.cpython-314.pyc +0 -0
  41. package/karnel/tools/dev/splash/__pycache__/splash.cpython-314.pyc +0 -0
  42. package/karnel/tools/dev/websites/__pycache__/websites.cpython-314.pyc +0 -0
  43. package/karnel/tools/games/arcade/__pycache__/arcade.cpython-314.pyc +0 -0
  44. package/karnel/tools/games/buzz/__pycache__/buzz.cpython-314.pyc +0 -0
  45. package/karnel/tools/games/ctfgod/__pycache__/ctfgod.cpython-314.pyc +0 -0
  46. package/karnel/tools/games/detective/__pycache__/detective.cpython-314.pyc +0 -0
  47. package/karnel/tools/games/pet-friends/__pycache__/pet-friends.cpython-314.pyc +0 -0
  48. package/karnel/tools/games/tamagotchi/__pycache__/tamagotchi.cpython-314.pyc +0 -0
  49. package/karnel/tools/games/terminal-arcade/__pycache__/terminal-arcade.cpython-314.pyc +0 -0
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.7.6-0078D4?style=for-the-badge" alt="Version">
11
+ <img src="https://img.shields.io/badge/version-4.8.0-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,8 +36,9 @@ Created by **Israel Marques**.
36
36
  - **31 AI agents** for coding — Claude, Gemini, OpenCode, Ollama, Cline, karnelRoute and more
37
37
  - **7 languages** — Node.js, Python, Go, Rust, C/C++, PHP, Perl
38
38
  - **5 databases** — PostgreSQL, MariaDB, SQLite, MongoDB, Redis
39
- - **24 dev tools** — gh, curl, fzf, bat, lsd, jq, tmux, openssh, snyk and more
39
+ - **32 dev tools** — gh, curl, fzf, bat, lsd, jq, tmux, openssh, snyk and more
40
40
  - **3 deploy CLIs** — Vercel, Railway, Netlify
41
+ - **Responsible OSINT** — Robin v2.8 through Tor with a loopback-only web UI
41
42
  - **Professional editor** — code-server (VS Code in browser)
42
43
  - **Second brain** — Memory system with AI search and idea graph
43
44
  - **Voice commands** — Speak to your AI agents
@@ -92,6 +93,7 @@ karnel
92
93
  | `karnel reinstall <module>` | Reinstall modules |
93
94
  | `karnel doctor termux` | Diagnose the Termux environment (30+ sections) |
94
95
  | `karnel doctor code` | Detect project ecosystems and run code checks |
96
+ | `karnel doctor robin` | Diagnose Robin, Tor, dependencies, and local UI |
95
97
  | `karnel brain` | Second brain — memories and search |
96
98
  | `karnel env` | Manage environment variables |
97
99
  | `karnel voice` | Voice commands for AI agents |
@@ -99,6 +101,7 @@ karnel
99
101
  | `karnel pg` | PostgreSQL manager |
100
102
  | `karnel init <template>` | Initialize projects with templates |
101
103
  | `karnel deploy` | Deploy projects (Vercel, Railway, Netlify) |
104
+ | `karnel robin` | Manage the Robin OSINT service |
102
105
  | `karnel --version` | Show installed version |
103
106
 
104
107
  ### Modules
@@ -115,6 +118,36 @@ karnel
115
118
  | `ui` | Font, cursor, extra-keys, banner | `karnel install ui` |
116
119
  | `auto` | Automation with n8n | `karnel install auto` |
117
120
  | `deploy` | Vercel, Railway, Netlify | `karnel install deploy` |
121
+ | `games` | Buzz, CTF God, Detective, Tamagotchi and more | `karnel install games` |
122
+ | `osint` | Robin v2.8, Tor, Streamlit, and LLM providers | `karnel install osint` |
123
+ | `voice` | Speech-to-agent through Termux:API | `karnel install voice` |
124
+
125
+ ---
126
+
127
+ ## Robin OSINT
128
+
129
+ Robin is an independent AI-assisted dark-web OSINT project. Karnel pins the
130
+ tested `v2.8` release, installs native Termux scientific dependencies, binds the
131
+ web interface only to `127.0.0.1`, and keeps application code separate from
132
+ provider configuration and saved investigations.
133
+
134
+ ```bash
135
+ karnel install osint --robin
136
+ karnel robin config
137
+ karnel robin start
138
+ karnel robin doctor --network
139
+ ```
140
+
141
+ Open `http://127.0.0.1:8501` only after the health check succeeds. Use Robin
142
+ solely for lawful, authorized, and ethical research. Tor does not guarantee
143
+ anonymity, external LLM traffic normally bypasses Tor, providers may process
144
+ submitted data, and AI output is not verified evidence.
145
+
146
+ Uninstall and reinstall preserve `$KARNEL_CONFIG/robin/.env` and
147
+ `$KARNEL_DATA/robin/investigations`. Permanent deletion requires the explicit
148
+ `karnel robin purge-data` command.
149
+
150
+ See the bundled reference with `karnel show osint --robin`.
118
151
 
119
152
  ---
120
153
 
@@ -157,7 +190,7 @@ karnel install ai --opencode --ollama # Install specific agents
157
190
  | **Odysseus** | `--odysseus` | Odysseus coding assistant |
158
191
  | **Kimchi CLI** | `--kimchi-code` | Kimchi AI agent |
159
192
  | **Cline CLI** | `--cline` | Autonomous coding agent (via proot-distro) |
160
- | **karnelRoute** | `--karnel-route` | AI Gateway with 236+ providers |
193
+ | **omniRoute** | `--omni-route` | AI gateway with 236+ providers |
161
194
  | **Context7** | `--ctx7` | Documentation for AI assistants |
162
195
  | **OpenSpec** | `--openspec` | Spec-Driven Development |
163
196
  | **Copilot-Termux** | `--copilot-termux` | GitHub Copilot CLI adapted for Termux |
@@ -168,7 +201,7 @@ karnel install ai --opencode --ollama # Install specific agents
168
201
 
169
202
  ## karnel doctor
170
203
 
171
- Doctor has exactly two operational subcommands:
204
+ Doctor has three operational subcommands:
172
205
 
173
206
  ```bash
174
207
  karnel doctor termux # 30+ Termux/Karnel diagnostic sections
@@ -179,6 +212,8 @@ karnel doctor code # Quick project analysis
179
212
  karnel doctor code --standard . # Add security, deps, coverage and complexity
180
213
  karnel doctor code --deep --json . # All 76 definitions as standalone JSON
181
214
  karnel doctor code --fix . # Apply fixes classified as safe
215
+ karnel doctor robin # Robin/Tor/dependency diagnostics
216
+ karnel doctor robin --network # Also verify traffic through Tor
182
217
  ```
183
218
 
184
219
  Running `karnel doctor` without a subcommand defaults to `termux`.
@@ -2,6 +2,7 @@
2
2
 
3
3
  import "@/utils/log"
4
4
  import "@/utils/colors"
5
+ import "@/tools/osint/robin/common"
5
6
 
6
7
  backup_main() {
7
8
  if [[ "$1" == "--help" || "$1" == "-h" ]]; then
@@ -78,6 +79,13 @@ backup_main() {
78
79
  fi
79
80
  fi
80
81
  done
82
+ # Robin API keys and investigations are intentionally excluded from ordinary,
83
+ # unencrypted backups. The acknowledgement file is harmless to retain.
84
+ if [[ "$ROBIN_CONFIG_DIR" == "$HOME/.config/"* ]]; then
85
+ local robin_config_relative="${ROBIN_CONFIG_DIR#"$HOME/.config/"}"
86
+ rm -f "$tmp/config/config/$robin_config_relative"/.env* 2>/dev/null
87
+ fi
88
+ find "$tmp/config/config" -type f -path '*/karnel/robin/.env*' -delete 2>/dev/null
81
89
  [[ -f "$PREFIX/etc/apt/sources.list" ]] && cp "$PREFIX/etc/apt/sources.list" "$tmp/config/prefix-etc/" 2>/dev/null
82
90
 
83
91
  tar -czf "$file" -C "$tmp" . 2>/dev/null
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
1
3
  _doctor_system() {
2
4
  local arch
3
5
  arch=$(uname -m)
@@ -17,6 +17,12 @@ doctor_main() {
17
17
  shift
18
18
  doctor_code "$@"
19
19
  ;;
20
+ robin)
21
+ shift
22
+ import "@/cli/commands/robin"
23
+ _robin_print_disclaimer
24
+ _robin_doctor "$@"
25
+ ;;
20
26
  --quick|-q)
21
27
  log_warn "Deprecated: use ${D_CYAN}karnel doctor termux --quick${NC}"
22
28
  doctor_termux "$@"
@@ -47,6 +53,7 @@ doctor_help() {
47
53
  echo
48
54
  printf " ${D_CYAN}%-16s${NC} %s\n" "termux" "Diagnose Termux environment (full system check)"
49
55
  printf " ${D_CYAN}%-16s${NC} %s\n" "code" "Analyze project code structure and tools"
56
+ printf " ${D_CYAN}%-16s${NC} %s\n" "robin" "Diagnose Robin, Tor, dependencies, and local UI"
50
57
  echo
51
58
  separator_section "Termux Options"
52
59
  echo
@@ -57,6 +64,7 @@ doctor_help() {
57
64
  list_item "${D_CYAN}karnel doctor${NC} — Termux diagnostics (default)"
58
65
  list_item "${D_CYAN}karnel doctor termux --quick${NC} — Quick diagnostics"
59
66
  list_item "${D_CYAN}karnel doctor code${NC} — Analyze current project"
67
+ list_item "${D_CYAN}karnel doctor robin${NC} — Diagnose Robin locally"
60
68
  list_item "${D_CYAN}karnel doctor termux --fix${NC} — Diagnose + auto-fix"
61
69
  echo
62
70
  }