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
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("node:child_process");
4
+
5
+ const output = execFileSync(
6
+ "npm",
7
+ ["pack", "--dry-run", "--json", "--ignore-scripts"],
8
+ { encoding: "utf8" },
9
+ );
10
+ const reports = JSON.parse(output);
11
+ if (!Array.isArray(reports) || reports.length !== 1) {
12
+ throw new Error("npm pack returned an unexpected report");
13
+ }
14
+
15
+ const report = reports[0];
16
+ const paths = report.files.map((file) => file.path);
17
+ const forbidden = paths.filter((path) =>
18
+ /(^|\/)(__pycache__|\.git|\.github)(\/|$)|\.(pyc|pyo|log)$/i.test(path),
19
+ );
20
+ if (forbidden.length > 0) {
21
+ throw new Error(`Forbidden package artifacts:\n${forbidden.join("\n")}`);
22
+ }
23
+
24
+ const required = [
25
+ "karnel/cli/commands/robin.sh",
26
+ "karnel/modules/osint.sh",
27
+ "karnel/tools/osint/robin/common.sh",
28
+ "karnel/tools/osint/robin/install.sh",
29
+ "karnel/tools/osint/robin/README.md",
30
+ "karnel/tools/osint/robin/requirements-termux.txt",
31
+ ];
32
+ for (const path of required) {
33
+ if (!paths.includes(path)) {
34
+ throw new Error(`Required package file is missing: ${path}`);
35
+ }
36
+ }
37
+
38
+ const packageVersion = require("../package.json").version;
39
+ if (report.version !== packageVersion) {
40
+ throw new Error(`Packed version ${report.version} does not match ${packageVersion}`);
41
+ }
42
+
43
+ console.log(
44
+ `Package: ${report.entryCount} files, ${report.size} bytes, version ${report.version}, no forbidden artifacts`,
45
+ );
@@ -1,9 +1,11 @@
1
+ #!/usr/bin/env bash
2
+
1
3
  _karnel_completions() {
2
4
  local cur prev words cword
3
5
  _init_completion || return
4
6
 
5
- local commands="backup brain cleanup doctor env help ia init install list open pg reinstall restore search show start status uninstall update upgrade version voice"
6
- local modules="ai auto db deploy dev editor lang npm shell ui"
7
+ local commands="backup brain cleanup deploy doctor env help ia init install list open pg reinstall restore robin search show start status uninstall update upgrade version voice"
8
+ local modules="ai auto db deploy dev editor games lang npm osint shell ui voice"
7
9
 
8
10
  if [[ $cword -eq 1 ]]; then
9
11
  COMPREPLY=($(compgen -W "$commands" -- "$cur"))
@@ -17,7 +19,10 @@ _karnel_completions() {
17
19
  fi
18
20
  ;;
19
21
  doctor)
20
- COMPREPLY=($(compgen -W "--quick --fix" -- "$cur"))
22
+ COMPREPLY=($(compgen -W "termux code robin --quick --fix" -- "$cur"))
23
+ ;;
24
+ robin)
25
+ COMPREPLY=($(compgen -W "start stop status config doctor update purge-data help" -- "$cur"))
21
26
  ;;
22
27
  restore)
23
28
  COMPREPLY=($(compgen -f -- "$cur"))
@@ -16,6 +16,7 @@ _karnel_commands() {
16
16
  'pg:PostgreSQL database manager'
17
17
  'reinstall:Uninstall + install modules'
18
18
  'restore:Restore from a backup'
19
+ 'robin:Manage Robin dark-web OSINT'
19
20
  'search:Search tools and memories'
20
21
  'show:Show tool documentation'
21
22
  'start:Start services'
@@ -37,10 +38,13 @@ _karnel_modules() {
37
38
  'deploy:Deployment CLIs'
38
39
  'dev:Development tools'
39
40
  'editor:Code editors'
41
+ 'games:Terminal games'
40
42
  'lang:Programming languages'
41
43
  'npm:Node.js packages'
44
+ 'osint:OSINT tools'
42
45
  'shell:ZSH shell plugins'
43
46
  'ui:Termux UI components'
47
+ 'voice:Speech-to-agent tools'
44
48
  )
45
49
  _describe 'module' modules
46
50
  }
@@ -77,7 +81,10 @@ _karnel() {
77
81
  fi
78
82
  ;;
79
83
  doctor)
80
- _arguments '--quick[Quick mode]' '--fix[Auto-fix]'
84
+ _arguments '1:subcommand:(termux code robin)' '--quick[Quick mode]' '--fix[Auto-fix]' '--network[Test Tor network]'
85
+ ;;
86
+ robin)
87
+ _arguments '1:subcommand:(start stop status config doctor update purge-data help)' '--accept-responsible-use[Accept responsible-use notice]' '--network[Test Tor network]'
81
88
  ;;
82
89
  *)
83
90
  _default