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,700 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+ import "@/utils/colors"
5
+
6
+ uninstall_main() {
7
+
8
+ if [[ $# -eq 0 ]]; then
9
+ echo
10
+ box "Omni Uninstall"
11
+ echo
12
+ log_info "Usage: omni uninstall <target>"
13
+ log_info "Usage: omni uninstall <target> --tool1 --tool2"
14
+ echo
15
+ log_info "Available targets:"
16
+ echo
17
+ list_item "lang - Remove language packages"
18
+ list_item "db - Remove databases"
19
+ list_item "ai - Remove AI tools"
20
+ list_item "editor - Remove code editor"
21
+ list_item "dev - Remove development tools"
22
+ list_item "npm - Remove Node.js global modules"
23
+ list_item "shell - Remove ZSH + Oh My Zsh"
24
+ list_item "ui - Restore Termux UI to default"
25
+ list_item "auto - Remove automation tools"
26
+ list_item "deploy - Remove Deploy CLIs (Vercel, Railway, Netlify)"
27
+ echo
28
+ log_info "Uninstall specific tools with flags:"
29
+ echo
30
+ list_item "omni uninstall ai --qwen-code --ollama"
31
+ list_item "omni uninstall db --postgresql --sqlite"
32
+ list_item "Run ${D_CYAN}omni list <target>${NC} to see all available tools"
33
+ echo
34
+ log_warn "Warning: This will remove installed packages and configurations!"
35
+ echo
36
+ return
37
+ fi
38
+
39
+ # Separate module target from tool flags
40
+ local module_target=""
41
+ local -a tool_flags=()
42
+
43
+ for arg in "$@"; do
44
+ if [[ "$arg" == --* ]]; then
45
+ local flag="${arg#--}"
46
+ tool_flags+=("$flag")
47
+ elif [[ -z "$module_target" ]]; then
48
+ module_target="$arg"
49
+ fi
50
+ done
51
+
52
+ # If no module target specified, show error
53
+ if [[ -z "$module_target" ]]; then
54
+ log_error "No target specified"
55
+ echo "Run 'omni uninstall' to see available targets"
56
+ return 1
57
+ fi
58
+
59
+ # If no tool flags, uninstall entire module (original behavior)
60
+ if [[ ${#tool_flags[@]} -eq 0 ]]; then
61
+ _uninstall_full_module "$module_target"
62
+ else
63
+ # Uninstall specific tools
64
+ _uninstall_specific_tools "$module_target" "${tool_flags[@]}"
65
+ fi
66
+ }
67
+
68
+ # Uninstall entire module (original behavior)
69
+ _uninstall_full_module() {
70
+ local target="$1"
71
+
72
+ case "$target" in
73
+ lang)
74
+ import "@/modules/lang"
75
+ uninstall_lang
76
+ ;;
77
+ db)
78
+ import "@/modules/db"
79
+ uninstall_db
80
+ ;;
81
+ ai)
82
+ import "@/modules/ai"
83
+ uninstall_ai
84
+ ;;
85
+ editor)
86
+ import "@/modules/editor"
87
+ uninstall_editor
88
+ ;;
89
+ dev)
90
+ import "@/modules/dev"
91
+ uninstall_dev
92
+ ;;
93
+ npm)
94
+ import "@/modules/npm"
95
+ uninstall_npm
96
+ ;;
97
+ shell)
98
+ import "@/modules/shell"
99
+ uninstall_shell
100
+ ;;
101
+ ui)
102
+ import "@/modules/ui"
103
+ uninstall_ui
104
+ ;;
105
+ auto)
106
+ import "@/modules/auto"
107
+ uninstall_auto
108
+ ;;
109
+ deploy)
110
+ import "@/modules/deploy"
111
+ uninstall_deploy
112
+ ;;
113
+ *)
114
+ log_warn "Unknown uninstall target: $target"
115
+ echo "Run 'omni uninstall' to see available targets"
116
+ ;;
117
+ esac
118
+ }
119
+
120
+ # Uninstall specific tools within a module
121
+ _uninstall_specific_tools() {
122
+ local module="$1"
123
+ shift
124
+ local -a tools=("$@")
125
+
126
+ case "$module" in
127
+ ai)
128
+ import "@/tools/ai/all"
129
+ local uninstalled_count=0
130
+ local failed_count=0
131
+
132
+ for tool in "${tools[@]}"; do
133
+ case "$tool" in
134
+ qwen-code)
135
+ uninstall_qwen_code
136
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
137
+ ;;
138
+ gemini-cli)
139
+ uninstall_gemini_cli
140
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
141
+ ;;
142
+ claude-code)
143
+ uninstall_claude_code
144
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
145
+ ;;
146
+ mistral-vibe)
147
+ uninstall_mistral_vibe
148
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
149
+ ;;
150
+ openclaude)
151
+ uninstall_openclaude
152
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
153
+ ;;
154
+ openclaw)
155
+ uninstall_openclaw
156
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
157
+ ;;
158
+ ollama)
159
+ uninstall_ollama
160
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
161
+ ;;
162
+ codex)
163
+ uninstall_codex
164
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
165
+ ;;
166
+ opencode)
167
+ uninstall_opencode
168
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
169
+ ;;
170
+ kilocode-cli)
171
+ uninstall_kilocode_cli
172
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
173
+ ;;
174
+ mimocode)
175
+ uninstall_mimocode
176
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
177
+ ;;
178
+ engram)
179
+ uninstall_engram
180
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
181
+ ;;
182
+ codegraph)
183
+ uninstall_codegraph
184
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
185
+ ;;
186
+ pi)
187
+ uninstall_pi
188
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
189
+ ;;
190
+ antigravity-cli)
191
+ uninstall_antigravity_cli
192
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
193
+ ;;
194
+ minimax-cli)
195
+ uninstall_minimax_cli
196
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
197
+ ;;
198
+ gentle-ai)
199
+ uninstall_gentle_ai
200
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
201
+ ;;
202
+ gga)
203
+ uninstall_gga
204
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
205
+ ;;
206
+ hermes-agent)
207
+ uninstall_hermes_agent
208
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
209
+ ;;
210
+ kimi-code)
211
+ uninstall_kimi_code
212
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
213
+ ;;
214
+ command-code)
215
+ uninstall_command_code
216
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
217
+ ;;
218
+ freebuff)
219
+ uninstall_freebuff
220
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
221
+ ;;
222
+ kiro-cli)
223
+ uninstall_kiro_cli
224
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
225
+ ;;
226
+ heygen)
227
+ uninstall_heygen
228
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
229
+ ;;
230
+ seedance)
231
+ uninstall_seedance
232
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
233
+ ;;
234
+ veo3)
235
+ uninstall_veo3
236
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
237
+ ;;
238
+ odysseus)
239
+ uninstall_odysseus
240
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
241
+ ;;
242
+ *)
243
+ log_warn "Unknown AI tool: --$tool"
244
+ ;;
245
+ esac
246
+ done
247
+
248
+ echo
249
+ if [[ $uninstalled_count -gt 0 ]]; then
250
+ log_success "$uninstalled_count AI tool(s) uninstalled"
251
+ fi
252
+ if [[ $failed_count -gt 0 ]]; then
253
+ log_warn "$failed_count tool(s) failed to uninstall"
254
+ fi
255
+ echo
256
+ ;;
257
+ db)
258
+ import "@/tools/db/all"
259
+ local uninstalled_count=0
260
+ local failed_count=0
261
+
262
+ for tool in "${tools[@]}"; do
263
+ case "$tool" in
264
+ postgresql)
265
+ uninstall_postgresql
266
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
267
+ ;;
268
+ mariadb)
269
+ uninstall_mariadb
270
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
271
+ ;;
272
+ sqlite)
273
+ uninstall_sqlite
274
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
275
+ ;;
276
+ mongodb)
277
+ uninstall_mongodb
278
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
279
+ ;;
280
+ *)
281
+ log_warn "Unknown database: --$tool"
282
+ ;;
283
+ esac
284
+ done
285
+
286
+ echo
287
+ if [[ $uninstalled_count -gt 0 ]]; then
288
+ log_success "$uninstalled_count database(s) uninstalled"
289
+ fi
290
+ if [[ $failed_count -gt 0 ]]; then
291
+ log_warn "$failed_count database(s) failed to uninstall"
292
+ fi
293
+ echo
294
+ ;;
295
+ dev)
296
+ import "@/tools/dev/all"
297
+ local uninstalled_count=0
298
+ local failed_count=0
299
+
300
+ for tool in "${tools[@]}"; do
301
+ case "$tool" in
302
+ gh)
303
+ uninstall_gh
304
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
305
+ ;;
306
+ wget)
307
+ uninstall_wget
308
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
309
+ ;;
310
+ curl)
311
+ uninstall_curl
312
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
313
+ ;;
314
+ lsd)
315
+ uninstall_lsd
316
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
317
+ ;;
318
+ bat)
319
+ uninstall_bat
320
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
321
+ ;;
322
+ proot)
323
+ uninstall_proot
324
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
325
+ ;;
326
+ ncurses)
327
+ uninstall_ncurses
328
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
329
+ ;;
330
+ tmate)
331
+ uninstall_tmate
332
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
333
+ ;;
334
+ cloudflared)
335
+ uninstall_cloudflared
336
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
337
+ ;;
338
+ translate)
339
+ uninstall_translate
340
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
341
+ ;;
342
+ html2text)
343
+ uninstall_html2text
344
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
345
+ ;;
346
+ jq)
347
+ uninstall_jq
348
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
349
+ ;;
350
+ bc)
351
+ uninstall_bc
352
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
353
+ ;;
354
+ tree)
355
+ uninstall_tree
356
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
357
+ ;;
358
+ fzf)
359
+ uninstall_fzf
360
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
361
+ ;;
362
+ imagemagick)
363
+ uninstall_imagemagick
364
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
365
+ ;;
366
+ shfmt)
367
+ uninstall_shfmt
368
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
369
+ ;;
370
+ make)
371
+ uninstall_make
372
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
373
+ ;;
374
+ udocker)
375
+ uninstall_udocker
376
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
377
+ ;;
378
+ *)
379
+ log_warn "Unknown tool: --$tool"
380
+ ;;
381
+ esac
382
+ done
383
+
384
+ echo
385
+ if [[ $uninstalled_count -gt 0 ]]; then
386
+ log_success "$uninstalled_count tool(s) uninstalled"
387
+ fi
388
+ if [[ $failed_count -gt 0 ]]; then
389
+ log_warn "$failed_count tool(s) failed to uninstall"
390
+ fi
391
+ echo
392
+ ;;
393
+ npm)
394
+ import "@/tools/npm/all"
395
+ local uninstalled_count=0
396
+ local failed_count=0
397
+
398
+ for tool in "${tools[@]}"; do
399
+ case "$tool" in
400
+ typescript)
401
+ uninstall_typescript
402
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
403
+ ;;
404
+ nestjs)
405
+ uninstall_nestjs
406
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
407
+ ;;
408
+ prettier)
409
+ uninstall_prettier
410
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
411
+ ;;
412
+ live-server)
413
+ uninstall_live_server
414
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
415
+ ;;
416
+ localtunnel)
417
+ uninstall_localtunnel
418
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
419
+ ;;
420
+ vercel)
421
+ uninstall_vercel
422
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
423
+ ;;
424
+ markserv)
425
+ uninstall_markserv
426
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
427
+ ;;
428
+ psqlformat)
429
+ uninstall_psqlformat
430
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
431
+ ;;
432
+ ncu)
433
+ uninstall_ncu
434
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
435
+ ;;
436
+ ngrok)
437
+ uninstall_ngrok
438
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
439
+ ;;
440
+ *)
441
+ log_warn "Unknown node module: --$tool"
442
+ ;;
443
+ esac
444
+ done
445
+
446
+ echo
447
+ if [[ $uninstalled_count -gt 0 ]]; then
448
+ log_success "$uninstalled_count Node.js module(s) uninstalled"
449
+ fi
450
+ if [[ $failed_count -gt 0 ]]; then
451
+ log_warn "$failed_count module(s) failed to uninstall"
452
+ fi
453
+ echo
454
+ ;;
455
+ lang)
456
+ import "@/tools/lang/all"
457
+ local uninstalled_count=0
458
+ local failed_count=0
459
+
460
+ for tool in "${tools[@]}"; do
461
+ case "$tool" in
462
+ nodejs)
463
+ uninstall_npmjs
464
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
465
+ ;;
466
+ python)
467
+ uninstall_python
468
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
469
+ ;;
470
+ perl)
471
+ uninstall_perl
472
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
473
+ ;;
474
+ php)
475
+ uninstall_php
476
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
477
+ ;;
478
+ rust)
479
+ uninstall_rust
480
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
481
+ ;;
482
+ clang)
483
+ uninstall_clang
484
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
485
+ ;;
486
+ golang)
487
+ uninstall_golang
488
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
489
+ ;;
490
+ *)
491
+ log_warn "Unknown language: --$tool"
492
+ ;;
493
+ esac
494
+ done
495
+
496
+ echo
497
+ if [[ $uninstalled_count -gt 0 ]]; then
498
+ log_success "$uninstalled_count language(s) uninstalled"
499
+ fi
500
+ if [[ $failed_count -gt 0 ]]; then
501
+ log_warn "$failed_count language(s) failed to uninstall"
502
+ fi
503
+ echo
504
+ ;;
505
+ shell)
506
+ import "@/tools/shell/all"
507
+ local uninstalled_count=0
508
+ local failed_count=0
509
+
510
+ for tool in "${tools[@]}"; do
511
+ case "$tool" in
512
+ powerlevel10k)
513
+ uninstall_powerlevel10k
514
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
515
+ ;;
516
+ zsh-defer)
517
+ uninstall_zsh_defer
518
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
519
+ ;;
520
+ zsh-autosuggestions)
521
+ uninstall_zsh_autosuggestions
522
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
523
+ ;;
524
+ zsh-syntax-highlighting)
525
+ uninstall_zsh_syntax_highlighting
526
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
527
+ ;;
528
+ history-substring)
529
+ uninstall_history_substring
530
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
531
+ ;;
532
+ zsh-completions)
533
+ uninstall_zsh_completions
534
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
535
+ ;;
536
+ fzf-tab)
537
+ uninstall_fzf_tab
538
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
539
+ ;;
540
+ you-should-use)
541
+ uninstall_you_should_use
542
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
543
+ ;;
544
+ zsh-autopair)
545
+ uninstall_zsh_autopair
546
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
547
+ ;;
548
+ better-npm)
549
+ uninstall_better_npm
550
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
551
+ ;;
552
+ *)
553
+ log_warn "Unknown plugin: --$tool"
554
+ ;;
555
+ esac
556
+ done
557
+
558
+ echo
559
+ if [[ $uninstalled_count -gt 0 ]]; then
560
+ log_success "$uninstalled_count plugin(s) uninstalled"
561
+ fi
562
+ if [[ $failed_count -gt 0 ]]; then
563
+ log_warn "$failed_count plugin(s) failed to uninstall"
564
+ fi
565
+ echo
566
+ ;;
567
+ editor)
568
+ import "@/tools/editor/all"
569
+ local uninstalled_count=0
570
+ local failed_count=0
571
+
572
+ for tool in "${tools[@]}"; do
573
+ case "$tool" in
574
+ neovim)
575
+ uninstall_neovim
576
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
577
+ ;;
578
+ nvchad)
579
+ uninstall_nvchad
580
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
581
+ ;;
582
+ *)
583
+ log_warn "Unknown editor component: --$tool"
584
+ ;;
585
+ esac
586
+ done
587
+
588
+ echo
589
+ if [[ $uninstalled_count -gt 0 ]]; then
590
+ log_success "$uninstalled_count editor component(s) uninstalled"
591
+ fi
592
+ if [[ $failed_count -gt 0 ]]; then
593
+ log_warn "$failed_count component(s) failed to uninstall"
594
+ fi
595
+ echo
596
+ ;;
597
+ ui)
598
+ import "@/tools/ui/all"
599
+ local uninstalled_count=0
600
+ local failed_count=0
601
+
602
+ for tool in "${tools[@]}"; do
603
+ case "$tool" in
604
+ font)
605
+ uninstall_font
606
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
607
+ ;;
608
+ extra-keys)
609
+ uninstall_extra_keys
610
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
611
+ ;;
612
+ cursor)
613
+ uninstall_cursor
614
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
615
+ ;;
616
+ banner)
617
+ uninstall_banner
618
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
619
+ ;;
620
+ *)
621
+ log_warn "Unknown UI component: --$tool"
622
+ ;;
623
+ esac
624
+ done
625
+
626
+ echo
627
+ if [[ $uninstalled_count -gt 0 ]]; then
628
+ log_success "$uninstalled_count UI component(s) uninstalled"
629
+ fi
630
+ if [[ $failed_count -gt 0 ]]; then
631
+ log_warn "$failed_count component(s) failed to uninstall"
632
+ fi
633
+ echo
634
+ ;;
635
+ auto)
636
+ import "@/tools/auto/all"
637
+ local uninstalled_count=0
638
+ local failed_count=0
639
+
640
+ for tool in "${tools[@]}"; do
641
+ case "$tool" in
642
+ n8n)
643
+ uninstall_n8n
644
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
645
+ ;;
646
+ *)
647
+ log_warn "Unknown automation tool: --$tool"
648
+ ;;
649
+ esac
650
+ done
651
+
652
+ echo
653
+ if [[ $uninstalled_count -gt 0 ]]; then
654
+ log_success "$uninstalled_count automation tool(s) uninstalled"
655
+ fi
656
+ if [[ $failed_count -gt 0 ]]; then
657
+ log_warn "$failed_count tool(s) failed to uninstall"
658
+ fi
659
+ echo
660
+ ;;
661
+ deploy)
662
+ import "@/tools/deploy/all"
663
+ local uninstalled_count=0
664
+ local failed_count=0
665
+
666
+ for tool in "${tools[@]}"; do
667
+ case "$tool" in
668
+ vercel)
669
+ uninstall_vercel
670
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
671
+ ;;
672
+ railway)
673
+ uninstall_railway
674
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
675
+ ;;
676
+ netlify)
677
+ uninstall_netlify
678
+ case $? in 0) ((uninstalled_count++));; 1) ((failed_count++));; esac
679
+ ;;
680
+ *)
681
+ log_warn "Unknown deploy tool: --$tool"
682
+ ;;
683
+ esac
684
+ done
685
+
686
+ echo
687
+ if [[ $uninstalled_count -gt 0 ]]; then
688
+ log_success "$uninstalled_count deploy CLI(s) uninstalled"
689
+ fi
690
+ if [[ $failed_count -gt 0 ]]; then
691
+ log_warn "$failed_count CLI(s) failed to uninstall"
692
+ fi
693
+ echo
694
+ ;;
695
+ *)
696
+ log_warn "Unknown uninstall target: $module"
697
+ echo "Run 'omni uninstall' to see available targets"
698
+ ;;
699
+ esac
700
+ }