omni-catalyst 1.0.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 (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1137 -0
  3. package/core/bin/core +85 -0
  4. package/core/bin/omni +21 -0
  5. package/core/cli/commands/--version.sh +8 -0
  6. package/core/cli/commands/brain.sh +1549 -0
  7. package/core/cli/commands/doctor.sh +834 -0
  8. package/core/cli/commands/env.sh +226 -0
  9. package/core/cli/commands/init.sh +1266 -0
  10. package/core/cli/commands/install.sh +759 -0
  11. package/core/cli/commands/list.sh +397 -0
  12. package/core/cli/commands/open.sh +71 -0
  13. package/core/cli/commands/pg.sh +761 -0
  14. package/core/cli/commands/reinstall.sh +694 -0
  15. package/core/cli/commands/show.sh +90 -0
  16. package/core/cli/commands/uninstall.sh +700 -0
  17. package/core/cli/commands/update.sh +754 -0
  18. package/core/cli/commands/voice.sh +170 -0
  19. package/core/cli/core.sh +82 -0
  20. package/core/cli/omni.sh +634 -0
  21. package/core/modules/ai.sh +152 -0
  22. package/core/modules/auto.sh +90 -0
  23. package/core/modules/db.sh +94 -0
  24. package/core/modules/deploy.sh +50 -0
  25. package/core/modules/dev.sh +126 -0
  26. package/core/modules/editor.sh +101 -0
  27. package/core/modules/lang.sh +100 -0
  28. package/core/modules/npm.sh +122 -0
  29. package/core/modules/shell.sh +312 -0
  30. package/core/modules/ui.sh +115 -0
  31. package/core/tools/ai/all.sh +63 -0
  32. package/core/tools/ai/antigravity-cli/README.md +45 -0
  33. package/core/tools/ai/antigravity-cli/bin/agy +28 -0
  34. package/core/tools/ai/antigravity-cli/helper/agy_helper.c +39 -0
  35. package/core/tools/ai/antigravity-cli/install.sh +469 -0
  36. package/core/tools/ai/claude-code/README.md +45 -0
  37. package/core/tools/ai/claude-code/bin/claude +29 -0
  38. package/core/tools/ai/claude-code/helper/claude_helper.c +42 -0
  39. package/core/tools/ai/claude-code/install.sh +278 -0
  40. package/core/tools/ai/codegraph/README.md +43 -0
  41. package/core/tools/ai/codegraph/bin/codegraph +3 -0
  42. package/core/tools/ai/codegraph/install.sh +149 -0
  43. package/core/tools/ai/codex/README.md +44 -0
  44. package/core/tools/ai/codex/install.sh +104 -0
  45. package/core/tools/ai/command-code/README.md +62 -0
  46. package/core/tools/ai/command-code/install.sh +136 -0
  47. package/core/tools/ai/engram/README.md +44 -0
  48. package/core/tools/ai/engram/install.sh +127 -0
  49. package/core/tools/ai/freebuff/README.md +52 -0
  50. package/core/tools/ai/freebuff/bin/freebuff +28 -0
  51. package/core/tools/ai/freebuff/helper/freebuff_helper.c +47 -0
  52. package/core/tools/ai/freebuff/install.sh +301 -0
  53. package/core/tools/ai/gemini-cli/README.md +46 -0
  54. package/core/tools/ai/gemini-cli/install.sh +111 -0
  55. package/core/tools/ai/gentle-ai/README.md +42 -0
  56. package/core/tools/ai/gentle-ai/install.sh +253 -0
  57. package/core/tools/ai/gentle-ai/termux-patches.go +256 -0
  58. package/core/tools/ai/gga/README.md +49 -0
  59. package/core/tools/ai/gga/install.sh +134 -0
  60. package/core/tools/ai/hermes-agent/README.md +50 -0
  61. package/core/tools/ai/hermes-agent/install.sh +80 -0
  62. package/core/tools/ai/heygen/README.md +24 -0
  63. package/core/tools/ai/heygen/install.sh +126 -0
  64. package/core/tools/ai/kilocode-cli/README.md +45 -0
  65. package/core/tools/ai/kilocode-cli/bin/kilocode +21 -0
  66. package/core/tools/ai/kilocode-cli/helper/kilocode_helper.c +47 -0
  67. package/core/tools/ai/kilocode-cli/install.sh +179 -0
  68. package/core/tools/ai/kimchi-code/README.md +8 -0
  69. package/core/tools/ai/kimchi-code/install.sh +120 -0
  70. package/core/tools/ai/kimi-code/README.md +45 -0
  71. package/core/tools/ai/kimi-code/install.sh +111 -0
  72. package/core/tools/ai/kiro-cli/README.md +23 -0
  73. package/core/tools/ai/kiro-cli/install.sh +127 -0
  74. package/core/tools/ai/mimocode/README.md +43 -0
  75. package/core/tools/ai/mimocode/bin/mimo +28 -0
  76. package/core/tools/ai/mimocode/helper/mimocode_helper.c +47 -0
  77. package/core/tools/ai/mimocode/install.sh +287 -0
  78. package/core/tools/ai/minimax-cli/README.md +45 -0
  79. package/core/tools/ai/minimax-cli/install.sh +111 -0
  80. package/core/tools/ai/mistral-vibe/README.md +46 -0
  81. package/core/tools/ai/mistral-vibe/install.sh +119 -0
  82. package/core/tools/ai/odysseus/README.md +35 -0
  83. package/core/tools/ai/odysseus/install.sh +163 -0
  84. package/core/tools/ai/ollama/README.md +44 -0
  85. package/core/tools/ai/ollama/install.sh +78 -0
  86. package/core/tools/ai/openclaude/README.md +46 -0
  87. package/core/tools/ai/openclaude/install.sh +110 -0
  88. package/core/tools/ai/openclaw/README.md +47 -0
  89. package/core/tools/ai/openclaw/install.sh +112 -0
  90. package/core/tools/ai/opencode/README.md +51 -0
  91. package/core/tools/ai/opencode/bin/opencode +28 -0
  92. package/core/tools/ai/opencode/helper/opencode_helper.c +57 -0
  93. package/core/tools/ai/opencode/install.sh +290 -0
  94. package/core/tools/ai/pi/README.md +46 -0
  95. package/core/tools/ai/pi/install.sh +104 -0
  96. package/core/tools/ai/qwen-code/README.md +45 -0
  97. package/core/tools/ai/qwen-code/install.sh +111 -0
  98. package/core/tools/ai/seedance/README.md +22 -0
  99. package/core/tools/ai/seedance/install.sh +134 -0
  100. package/core/tools/ai/veo3/README.md +36 -0
  101. package/core/tools/ai/veo3/install.sh +151 -0
  102. package/core/tools/auto/all.sh +57 -0
  103. package/core/tools/auto/n8n/README.md +47 -0
  104. package/core/tools/auto/n8n/install.sh +102 -0
  105. package/core/tools/db/all.sh +60 -0
  106. package/core/tools/db/mariadb/README.md +43 -0
  107. package/core/tools/db/mariadb/install.sh +65 -0
  108. package/core/tools/db/mongodb/README.md +42 -0
  109. package/core/tools/db/mongodb/install.sh +73 -0
  110. package/core/tools/db/postgresql/README.md +45 -0
  111. package/core/tools/db/postgresql/install.sh +65 -0
  112. package/core/tools/db/sqlite/README.md +44 -0
  113. package/core/tools/db/sqlite/install.sh +65 -0
  114. package/core/tools/deploy/all.sh +39 -0
  115. package/core/tools/deploy/netlify/install.sh +41 -0
  116. package/core/tools/deploy/railway/install.sh +47 -0
  117. package/core/tools/deploy/vercel/install.sh +43 -0
  118. package/core/tools/dev/all.sh +75 -0
  119. package/core/tools/dev/bat/README.md +44 -0
  120. package/core/tools/dev/bat/install.sh +82 -0
  121. package/core/tools/dev/bc/README.md +44 -0
  122. package/core/tools/dev/bc/install.sh +82 -0
  123. package/core/tools/dev/cloudflared/README.md +43 -0
  124. package/core/tools/dev/cloudflared/install.sh +82 -0
  125. package/core/tools/dev/curl/README.md +43 -0
  126. package/core/tools/dev/curl/install.sh +82 -0
  127. package/core/tools/dev/fzf/README.md +44 -0
  128. package/core/tools/dev/fzf/install.sh +82 -0
  129. package/core/tools/dev/gh/README.md +43 -0
  130. package/core/tools/dev/gh/install.sh +82 -0
  131. package/core/tools/dev/html2text/README.md +44 -0
  132. package/core/tools/dev/html2text/install.sh +82 -0
  133. package/core/tools/dev/imagemagick/README.md +44 -0
  134. package/core/tools/dev/imagemagick/install.sh +82 -0
  135. package/core/tools/dev/jq/README.md +44 -0
  136. package/core/tools/dev/jq/install.sh +82 -0
  137. package/core/tools/dev/lsd/README.md +44 -0
  138. package/core/tools/dev/lsd/install.sh +82 -0
  139. package/core/tools/dev/make/README.md +44 -0
  140. package/core/tools/dev/make/install.sh +82 -0
  141. package/core/tools/dev/ncurses/README.md +42 -0
  142. package/core/tools/dev/ncurses/install.sh +82 -0
  143. package/core/tools/dev/proot/README.md +43 -0
  144. package/core/tools/dev/proot/install.sh +82 -0
  145. package/core/tools/dev/shfmt/README.md +44 -0
  146. package/core/tools/dev/shfmt/install.sh +82 -0
  147. package/core/tools/dev/tmate/README.md +44 -0
  148. package/core/tools/dev/tmate/install.sh +82 -0
  149. package/core/tools/dev/translate/README.md +44 -0
  150. package/core/tools/dev/translate/install.sh +82 -0
  151. package/core/tools/dev/tree/README.md +44 -0
  152. package/core/tools/dev/tree/install.sh +82 -0
  153. package/core/tools/dev/udocker/README.md +44 -0
  154. package/core/tools/dev/udocker/install.sh +82 -0
  155. package/core/tools/dev/wget/README.md +44 -0
  156. package/core/tools/dev/wget/install.sh +82 -0
  157. package/core/tools/editor/all.sh +58 -0
  158. package/core/tools/editor/neovim/README.md +43 -0
  159. package/core/tools/editor/neovim/install.sh +66 -0
  160. package/core/tools/editor/nvchad/README.md +45 -0
  161. package/core/tools/editor/nvchad/install.sh +110 -0
  162. package/core/tools/lang/all.sh +63 -0
  163. package/core/tools/lang/clang/README.md +43 -0
  164. package/core/tools/lang/clang/install.sh +79 -0
  165. package/core/tools/lang/golang/README.md +43 -0
  166. package/core/tools/lang/golang/install.sh +79 -0
  167. package/core/tools/lang/nodejs/README.md +43 -0
  168. package/core/tools/lang/nodejs/install.sh +79 -0
  169. package/core/tools/lang/perl/README.md +43 -0
  170. package/core/tools/lang/perl/install.sh +79 -0
  171. package/core/tools/lang/php/README.md +43 -0
  172. package/core/tools/lang/php/install.sh +79 -0
  173. package/core/tools/lang/python/README.md +43 -0
  174. package/core/tools/lang/python/install.sh +79 -0
  175. package/core/tools/lang/rust/README.md +43 -0
  176. package/core/tools/lang/rust/install.sh +79 -0
  177. package/core/tools/npm/all.sh +67 -0
  178. package/core/tools/npm/live-server/README.md +43 -0
  179. package/core/tools/npm/live-server/install.sh +95 -0
  180. package/core/tools/npm/localtunnel/README.md +43 -0
  181. package/core/tools/npm/localtunnel/install.sh +111 -0
  182. package/core/tools/npm/markserv/README.md +43 -0
  183. package/core/tools/npm/markserv/install.sh +94 -0
  184. package/core/tools/npm/ncu/README.md +43 -0
  185. package/core/tools/npm/ncu/install.sh +94 -0
  186. package/core/tools/npm/nestjs/README.md +43 -0
  187. package/core/tools/npm/nestjs/install.sh +94 -0
  188. package/core/tools/npm/ngrok/README.md +44 -0
  189. package/core/tools/npm/ngrok/install.sh +94 -0
  190. package/core/tools/npm/prettier/README.md +43 -0
  191. package/core/tools/npm/prettier/install.sh +94 -0
  192. package/core/tools/npm/psqlformat/README.md +43 -0
  193. package/core/tools/npm/psqlformat/install.sh +94 -0
  194. package/core/tools/npm/turbopack/README.md +8 -0
  195. package/core/tools/npm/turbopack/install.sh +41 -0
  196. package/core/tools/npm/typescript/README.md +43 -0
  197. package/core/tools/npm/typescript/install.sh +94 -0
  198. package/core/tools/npm/vercel/README.md +43 -0
  199. package/core/tools/npm/vercel/install.sh +94 -0
  200. package/core/tools/shell/all.sh +67 -0
  201. package/core/tools/shell/better-npm/README.md +43 -0
  202. package/core/tools/shell/better-npm/install.sh +85 -0
  203. package/core/tools/shell/fzf-tab/README.md +44 -0
  204. package/core/tools/shell/fzf-tab/install.sh +85 -0
  205. package/core/tools/shell/history-substring/README.md +43 -0
  206. package/core/tools/shell/history-substring/install.sh +85 -0
  207. package/core/tools/shell/powerlevel10k/README.md +43 -0
  208. package/core/tools/shell/powerlevel10k/install.sh +85 -0
  209. package/core/tools/shell/you-should-use/README.md +43 -0
  210. package/core/tools/shell/you-should-use/install.sh +85 -0
  211. package/core/tools/shell/zsh-autopair/README.md +44 -0
  212. package/core/tools/shell/zsh-autopair/install.sh +85 -0
  213. package/core/tools/shell/zsh-autosuggestions/README.md +43 -0
  214. package/core/tools/shell/zsh-autosuggestions/install.sh +85 -0
  215. package/core/tools/shell/zsh-completions/README.md +43 -0
  216. package/core/tools/shell/zsh-completions/install.sh +85 -0
  217. package/core/tools/shell/zsh-defer/README.md +43 -0
  218. package/core/tools/shell/zsh-defer/install.sh +85 -0
  219. package/core/tools/shell/zsh-syntax-highlighting/README.md +43 -0
  220. package/core/tools/shell/zsh-syntax-highlighting/install.sh +72 -0
  221. package/core/tools/ui/all.sh +61 -0
  222. package/core/tools/ui/banner/README.md +42 -0
  223. package/core/tools/ui/banner/install.sh +151 -0
  224. package/core/tools/ui/cursor/README.md +42 -0
  225. package/core/tools/ui/cursor/install.sh +58 -0
  226. package/core/tools/ui/extra-keys/README.md +43 -0
  227. package/core/tools/ui/extra-keys/install.sh +62 -0
  228. package/core/tools/ui/font/README.md +43 -0
  229. package/core/tools/ui/font/install.sh +63 -0
  230. package/core/utils/banner.sh +519 -0
  231. package/core/utils/bootstrap.sh +25 -0
  232. package/core/utils/colors.sh +31 -0
  233. package/core/utils/dialogrc +30 -0
  234. package/core/utils/env.sh +53 -0
  235. package/core/utils/log.sh +598 -0
  236. package/install.sh +272 -0
  237. package/package.json +43 -0
@@ -0,0 +1,42 @@
1
+ # MongoDB
2
+
3
+ NoSQL document database for modern applications
4
+
5
+ **Package:** mongodb
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.mongodb.com
9
+ **Type:** Database (pkg)
10
+ **License:** Server Side Public License (SSPL)
11
+
12
+ ## Description
13
+
14
+ MongoDB is a source-available, cross-platform, document-oriented database program. Classified as a NoSQL database product, MongoDB uses JSON-like documents with optional schemas, making it ideal for modern application development.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install db --mongodb
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall db --mongodb
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update db --mongodb
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Command: `mongod`, `mongosh`
41
+ - Data directory: `$PREFIX/var/lib/mongodb/`
42
+
@@ -0,0 +1,73 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_db.log"
6
+
7
+ _install_mongodb_impl() {
8
+ mkdir -p "$(dirname "$LOG_FILE")"
9
+
10
+ if [[ ! -f $PREFIX/etc/apt/sources.list.d/tur.list ]]; then
11
+ if ! pkg install tur-repo -y &>>"$LOG_FILE"; then
12
+ log_error "Failed to install tur-repo"
13
+ return 1
14
+ fi
15
+ fi
16
+
17
+ if pkg install mongodb -y &>>"$LOG_FILE"; then
18
+ log_success "MongoDB installed"
19
+ return 0
20
+ else
21
+ return 1
22
+ fi
23
+ }
24
+
25
+ install_mongodb() {
26
+ if command -v mongod &>/dev/null; then
27
+ log_info "MongoDB is already installed"
28
+ return 2
29
+ fi
30
+ log_info "Installing MongoDB..."
31
+ loading "Installing MongoDB" _install_mongodb_impl
32
+ }
33
+
34
+ _uninstall_mongodb_impl() {
35
+ mkdir -p "$(dirname "$LOG_FILE")"
36
+ if pkg uninstall mongodb -y &>>"$LOG_FILE"; then
37
+ log_success "MongoDB uninstalled"
38
+ return 0
39
+ else
40
+ log_error "Failed to uninstall MongoDB"
41
+ return 1
42
+ fi
43
+ }
44
+
45
+ uninstall_mongodb() {
46
+ if ! command -v mongod &>/dev/null; then
47
+ log_info "MongoDB is not installed"
48
+ return 2
49
+ fi
50
+ log_info "Uninstalling MongoDB..."
51
+ loading "Uninstalling MongoDB" _uninstall_mongodb_impl
52
+ }
53
+
54
+ _update_mongodb_impl() {
55
+ mkdir -p "$(dirname "$LOG_FILE")"
56
+ if pkg upgrade mongodb -y &>>"$LOG_FILE"; then
57
+ log_success "MongoDB updated"
58
+ return 0
59
+ else
60
+ log_error "Failed to update MongoDB"
61
+ return 1
62
+ fi
63
+ }
64
+
65
+ update_mongodb() {
66
+ log_info "Updating MongoDB..."
67
+ loading "Updating MongoDB" _update_mongodb_impl
68
+ }
69
+
70
+ reinstall_mongodb() {
71
+ uninstall_mongodb
72
+ install_mongodb
73
+ }
@@ -0,0 +1,45 @@
1
+ # PostgreSQL
2
+
3
+ Advanced open-source relational database
4
+
5
+ **Package:** postgresql
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.postgresql.org
9
+ **Type:** Database (pkg)
10
+ **License:** PostgreSQL License
11
+
12
+ ## Description
13
+
14
+ PostgreSQL is a powerful, open-source object-relational database system with over 30 years of active development. It has a strong reputation for reliability, feature robustness, and performance. Omni Catalyst includes a dedicated manager (`core pg`) for starting, stopping, and managing PostgreSQL instances.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+ - Data directory managed by `core pg`
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ core install db --postgresql
25
+ ```
26
+
27
+ ## Uninstall
28
+
29
+ ```bash
30
+ core uninstall db --postgresql
31
+ ```
32
+
33
+ ## Update
34
+
35
+ ```bash
36
+ core update db --postgresql
37
+ ```
38
+
39
+ ## Notes
40
+
41
+ - Managed via `core pg` commands (start, stop, restart, status, init, create, drop, list, shell)
42
+ - Logs: `~/.cache/omni/postgresql.log`
43
+ - Automatic data directory detection
44
+ - Support for existing installations
45
+
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_db.log"
6
+
7
+ _install_postgresql_impl() {
8
+ mkdir -p "$(dirname "$LOG_FILE")"
9
+ if pkg install postgresql -y &>>"$LOG_FILE"; then
10
+ log_success "PostgreSQL installed"
11
+ return 0
12
+ else
13
+ return 1
14
+ fi
15
+ }
16
+
17
+ install_postgresql() {
18
+ if command -v postgres &>/dev/null; then
19
+ log_info "PostgreSQL is already installed"
20
+ return 2
21
+ fi
22
+ log_info "Installing PostgreSQL..."
23
+ loading "Installing PostgreSQL" _install_postgresql_impl
24
+ }
25
+
26
+ _uninstall_postgresql_impl() {
27
+ mkdir -p "$(dirname "$LOG_FILE")"
28
+ if pkg uninstall postgresql -y &>>"$LOG_FILE"; then
29
+ log_success "PostgreSQL uninstalled"
30
+ return 0
31
+ else
32
+ log_error "Failed to uninstall PostgreSQL"
33
+ return 1
34
+ fi
35
+ }
36
+
37
+ uninstall_postgresql() {
38
+ if ! command -v postgres &>/dev/null; then
39
+ log_info "PostgreSQL is not installed"
40
+ return 2
41
+ fi
42
+ log_info "Uninstalling PostgreSQL..."
43
+ loading "Uninstalling PostgreSQL" _uninstall_postgresql_impl
44
+ }
45
+
46
+ _update_postgresql_impl() {
47
+ mkdir -p "$(dirname "$LOG_FILE")"
48
+ if pkg upgrade postgresql -y &>>"$LOG_FILE"; then
49
+ log_success "PostgreSQL updated"
50
+ return 0
51
+ else
52
+ log_error "Failed to update PostgreSQL"
53
+ return 1
54
+ fi
55
+ }
56
+
57
+ update_postgresql() {
58
+ log_info "Updating PostgreSQL..."
59
+ loading "Updating PostgreSQL" _update_postgresql_impl
60
+ }
61
+
62
+ reinstall_postgresql() {
63
+ uninstall_postgresql
64
+ install_postgresql
65
+ }
@@ -0,0 +1,44 @@
1
+ # SQLite
2
+
3
+ Self-contained, serverless, zero-configuration SQL database engine
4
+
5
+ **Package:** sqlite
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://www.sqlite.org
9
+ **Type:** Database (pkg)
10
+ **License:** Public Domain
11
+
12
+ ## Description
13
+
14
+ SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured SQL database engine. It is the most used database engine in the world, embedded in virtually every mobile phone and most computers.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install db --sqlite
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall db --sqlite
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update db --sqlite
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Zero configuration required
41
+ - No server process needed
42
+ - Database is a single file on disk
43
+ - Command: `sqlite3`
44
+
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_db.log"
6
+
7
+ _install_sqlite_impl() {
8
+ mkdir -p "$(dirname "$LOG_FILE")"
9
+ if pkg install sqlite -y &>>"$LOG_FILE"; then
10
+ log_success "SQLite installed"
11
+ return 0
12
+ else
13
+ return 1
14
+ fi
15
+ }
16
+
17
+ install_sqlite() {
18
+ if command -v sqlite3 &>/dev/null; then
19
+ log_info "SQLite is already installed"
20
+ return 2
21
+ fi
22
+ log_info "Installing SQLite..."
23
+ loading "Installing SQLite" _install_sqlite_impl
24
+ }
25
+
26
+ _uninstall_sqlite_impl() {
27
+ mkdir -p "$(dirname "$LOG_FILE")"
28
+ if pkg uninstall sqlite -y &>>"$LOG_FILE"; then
29
+ log_success "SQLite uninstalled"
30
+ return 0
31
+ else
32
+ log_error "Failed to uninstall SQLite"
33
+ return 1
34
+ fi
35
+ }
36
+
37
+ uninstall_sqlite() {
38
+ if ! command -v sqlite3 &>/dev/null; then
39
+ log_info "SQLite is not installed"
40
+ return 2
41
+ fi
42
+ log_info "Uninstalling SQLite..."
43
+ loading "Uninstalling SQLite" _uninstall_sqlite_impl
44
+ }
45
+
46
+ _update_sqlite_impl() {
47
+ mkdir -p "$(dirname "$LOG_FILE")"
48
+ if pkg upgrade sqlite -y &>>"$LOG_FILE"; then
49
+ log_success "SQLite updated"
50
+ return 0
51
+ else
52
+ log_error "Failed to update SQLite"
53
+ return 1
54
+ fi
55
+ }
56
+
57
+ update_sqlite() {
58
+ log_info "Updating SQLite..."
59
+ loading "Updating SQLite" _update_sqlite_impl
60
+ }
61
+
62
+ reinstall_sqlite() {
63
+ uninstall_sqlite
64
+ install_sqlite
65
+ }
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ DEPLOY_TOOLS=("vercel" "railway" "netlify")
6
+
7
+ for _tool in "${DEPLOY_TOOLS[@]}"; do
8
+ source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
9
+ done
10
+ unset _tool
11
+
12
+ _batch_deploy() {
13
+ local action="$1"
14
+ local action_past="$2"
15
+ local count=0
16
+ local failed=0
17
+ local total=${#DEPLOY_TOOLS[@]}
18
+ local current=0
19
+
20
+ progress_start "$total" "${action_past}ing deploy tools..."
21
+
22
+ for tool in "${DEPLOY_TOOLS[@]}"; do
23
+ local func_name="${action}_${tool//-/_}"
24
+ if declare -f "$func_name" &>/dev/null; then
25
+ loading "${action_past^}ing $tool" "$func_name"
26
+ case $? in 0) ((count++));; 1) ((failed++));; esac
27
+ fi
28
+ ((current++))
29
+ progress_update "$current" "$total"
30
+ done
31
+
32
+ progress_done "$total"
33
+ return $failed
34
+ }
35
+
36
+ install_all_deploy_tools() { _batch_deploy "install" "install"; }
37
+ uninstall_all_deploy_tools() { _batch_deploy "uninstall" "uninstall"; }
38
+ update_all_deploy_tools() { _batch_deploy "update" "update"; }
39
+ reinstall_all_deploy_tools() { _batch_deploy "reinstall" "reinstall"; }
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ install_netlify() {
6
+ if command -v netlify &>/dev/null; then
7
+ log_info "Netlify CLI is already installed"
8
+ return 2
9
+ fi
10
+ log_info "Installing Netlify CLI..."
11
+ npm install -g netlify-cli &>/dev/null || {
12
+ log_error "Failed to install Netlify CLI"
13
+ return 1
14
+ }
15
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v netlify)" &>/dev/null
16
+ log_success "Netlify CLI installed"
17
+ }
18
+
19
+ uninstall_netlify() {
20
+ log_info "Uninstalling Netlify CLI..."
21
+ npm uninstall -g netlify-cli &>/dev/null || {
22
+ log_error "Failed to uninstall Netlify CLI"
23
+ return 1
24
+ }
25
+ log_success "Netlify CLI uninstalled"
26
+ }
27
+
28
+ update_netlify() {
29
+ log_info "Updating Netlify CLI..."
30
+ npm update -g netlify-cli &>/dev/null || {
31
+ log_error "Failed to update Netlify CLI"
32
+ return 1
33
+ }
34
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v netlify)" &>/dev/null
35
+ log_success "Netlify CLI updated"
36
+ }
37
+
38
+ reinstall_netlify() {
39
+ uninstall_netlify
40
+ install_netlify
41
+ }
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ install_railway() {
6
+ if command -v railway &>/dev/null; then
7
+ log_info "Railway CLI is already installed"
8
+ return 2
9
+ fi
10
+ log_info "Installing Railway CLI..."
11
+ npm install -g @railway/cli --legacy-peer-deps &>/dev/null || {
12
+ log_warn "npm install failed, trying with npx..."
13
+ npx -y @railway/cli --version &>/dev/null || {
14
+ log_error "Failed to install Railway CLI"
15
+ return 1
16
+ }
17
+ }
18
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v railway 2>/dev/null)" &>/dev/null
19
+ log_success "Railway CLI installed"
20
+ }
21
+
22
+ uninstall_railway() {
23
+ log_info "Uninstalling Railway CLI..."
24
+ npm uninstall -g @railway/cli &>/dev/null || {
25
+ log_error "Failed to uninstall Railway CLI"
26
+ return 1
27
+ }
28
+ log_success "Railway CLI uninstalled"
29
+ }
30
+
31
+ update_railway() {
32
+ log_info "Updating Railway CLI..."
33
+ npm update -g @railway/cli &>/dev/null || {
34
+ log_warn "npm update failed, trying reinstall..."
35
+ npm install -g @railway/cli --legacy-peer-deps &>/dev/null || {
36
+ log_error "Failed to update Railway CLI"
37
+ return 1
38
+ }
39
+ }
40
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v railway 2>/dev/null)" &>/dev/null
41
+ log_success "Railway CLI updated"
42
+ }
43
+
44
+ reinstall_railway() {
45
+ uninstall_railway
46
+ install_railway
47
+ }
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ VERCEL_BIN="$PREFIX/lib/node_modules/vercel/dist/vc.js"
6
+
7
+ install_vercel() {
8
+ if [[ -f "$VERCEL_BIN" ]]; then
9
+ log_info "Vercel CLI is already installed"
10
+ return 2
11
+ fi
12
+ log_info "Installing Vercel CLI..."
13
+ npm install -g vercel &>/dev/null || {
14
+ log_error "Failed to install Vercel CLI"
15
+ return 1
16
+ }
17
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v vercel)" &>/dev/null
18
+ log_success "Vercel CLI installed"
19
+ }
20
+
21
+ uninstall_vercel() {
22
+ log_info "Uninstalling Vercel CLI..."
23
+ npm uninstall -g vercel &>/dev/null || {
24
+ log_error "Failed to uninstall Vercel CLI"
25
+ return 1
26
+ }
27
+ log_success "Vercel CLI uninstalled"
28
+ }
29
+
30
+ update_vercel() {
31
+ log_info "Updating Vercel CLI..."
32
+ npm update -g vercel &>/dev/null || {
33
+ log_error "Failed to update Vercel CLI"
34
+ return 1
35
+ }
36
+ command -v termux-fix-shebang &>/dev/null && termux-fix-shebang "$(command -v vercel)" &>/dev/null
37
+ log_success "Vercel CLI updated"
38
+ }
39
+
40
+ reinstall_vercel() {
41
+ uninstall_vercel
42
+ install_vercel
43
+ }
@@ -0,0 +1,75 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+
5
+ LOG_FILE="$OMNI_CACHE/install_dev.log"
6
+
7
+ TOOLS_PACKAGES=(
8
+ "gh"
9
+ "wget"
10
+ "curl"
11
+ "lsd"
12
+ "bat"
13
+ "proot"
14
+ "ncurses"
15
+ "tmate"
16
+ "cloudflared"
17
+ "translate"
18
+ "html2text"
19
+ "jq"
20
+ "bc"
21
+ "tree"
22
+ "fzf"
23
+ "imagemagick"
24
+ "shfmt"
25
+ "make"
26
+ "udocker"
27
+ )
28
+
29
+ for _tool in "${TOOLS_PACKAGES[@]}"; do
30
+ source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
31
+ done
32
+ unset _tool
33
+
34
+ _batch_dev() {
35
+ local action="$1"
36
+ local action_past="$2"
37
+ local count_var="$3"
38
+ local count=0
39
+ local failed=0
40
+ local total=${#TOOLS_PACKAGES[@]}
41
+ local current=0
42
+ local func_name
43
+
44
+ progress_start "$total" "${action_past}ing dev tools..."
45
+
46
+ for tool in "${TOOLS_PACKAGES[@]}"; do
47
+ func_name="${action}_${tool//-/_}"
48
+ if declare -f "$func_name" &>/dev/null; then
49
+ loading "${action_past^}ing ${tool}" "$func_name"
50
+ case $? in 0) ((count++));; 1) ((failed++));; esac
51
+ fi
52
+ ((current++))
53
+ progress_update "$current" "$total"
54
+ done
55
+
56
+ progress_done "$total"
57
+ eval "$count_var=$count"
58
+ return $failed
59
+ }
60
+
61
+ install_all_dev() {
62
+ _batch_dev "install" "install" "installed_count"
63
+ }
64
+
65
+ uninstall_all_dev() {
66
+ _batch_dev "uninstall" "uninstall" "uninstalled_count"
67
+ }
68
+
69
+ update_all_dev() {
70
+ _batch_dev "update" "update" "updated_count"
71
+ }
72
+
73
+ reinstall_all_dev() {
74
+ _batch_dev "reinstall" "reinstall" "reinstalled_count"
75
+ }
@@ -0,0 +1,44 @@
1
+ # Bat
2
+
3
+ Modern cat replacement with syntax highlighting
4
+
5
+ **Package:** bat
6
+ **Author:** israel676767
7
+ **Repository:** https://github.com/israel676767/omni
8
+ **Official:** https://github.com/sharkdp/bat
9
+ **Type:** Development tool (pkg)
10
+ **License:** Apache 2.0 / MIT
11
+
12
+ ## Description
13
+
14
+ Bat is a modern replacement for the `cat` command written in Rust. It provides syntax highlighting for over 200 languages, Git change integration, automatic paging, and line numbers. Used by `core show` for colorized documentation output.
15
+
16
+ ## Dependencies
17
+
18
+ - Installed via pkg
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ core install dev --bat
24
+ ```
25
+
26
+ ## Uninstall
27
+
28
+ ```bash
29
+ core uninstall dev --bat
30
+ ```
31
+
32
+ ## Update
33
+
34
+ ```bash
35
+ core update dev --bat
36
+ ```
37
+
38
+ ## Notes
39
+
40
+ - Command: `bat`
41
+ - Syntax highlighting for 200+ languages
42
+ - Git change markers in output
43
+ - Used by `core show` for documentation display
44
+