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,694 @@
1
+ #!/usr/bin/env bash
2
+
3
+ import "@/utils/log"
4
+ import "@/utils/colors"
5
+
6
+ reinstall_main() {
7
+
8
+ if [[ $# -eq 0 ]]; then
9
+ echo
10
+ box "Omni Reinstall"
11
+ echo
12
+ log_info "Usage: omni reinstall <target>"
13
+ log_info "Usage: omni reinstall <target> --tool1 --tool2"
14
+ echo
15
+ log_info "Available targets:"
16
+ echo
17
+ list_item "lang - Reinstall language packages"
18
+ list_item "db - Reinstall databases"
19
+ list_item "ai - Reinstall AI tools"
20
+ list_item "editor - Reinstall code editor"
21
+ list_item "dev - Reinstall development tools"
22
+ list_item "npm - Reinstall Node.js global modules"
23
+ list_item "shell - Reinstall ZSH + Oh My Zsh"
24
+ list_item "ui - Reinstall Termux UI"
25
+ list_item "auto - Reinstall automation tools"
26
+ list_item "deploy - Reinstall Deploy CLIs (Vercel, Railway, Netlify)"
27
+ echo
28
+ log_info "Reinstall specific tools with flags:"
29
+ echo
30
+ list_item "omni reinstall ai --qwen-code --ollama"
31
+ list_item "omni reinstall db --postgresql --sqlite"
32
+ list_item "Run ${D_CYAN}omni list <target>${NC} to see all available tools"
33
+ echo
34
+ log_warn "This will uninstall and then install the selected components!"
35
+ echo
36
+ return
37
+ fi
38
+
39
+ local module_target=""
40
+ local -a tool_flags=()
41
+
42
+ for arg in "$@"; do
43
+ if [[ "$arg" == --* ]]; then
44
+ local flag="${arg#--}"
45
+ tool_flags+=("$flag")
46
+ elif [[ -z "$module_target" ]]; then
47
+ module_target="$arg"
48
+ fi
49
+ done
50
+
51
+ if [[ -z "$module_target" ]]; then
52
+ log_error "No target specified"
53
+ echo "Run 'omni reinstall' to see available targets"
54
+ return 1
55
+ fi
56
+
57
+ if [[ ${#tool_flags[@]} -eq 0 ]]; then
58
+ _reinstall_full_module "$module_target"
59
+ else
60
+ _reinstall_specific_tools "$module_target" "${tool_flags[@]}"
61
+ fi
62
+ }
63
+
64
+ _reinstall_full_module() {
65
+ local target="$1"
66
+
67
+ case "$target" in
68
+ lang)
69
+ import "@/modules/lang"
70
+ reinstall_lang
71
+ ;;
72
+ db)
73
+ import "@/modules/db"
74
+ reinstall_db
75
+ ;;
76
+ ai)
77
+ import "@/modules/ai"
78
+ reinstall_ai
79
+ ;;
80
+ editor)
81
+ import "@/modules/editor"
82
+ reinstall_editor
83
+ ;;
84
+ dev)
85
+ import "@/modules/dev"
86
+ reinstall_dev
87
+ ;;
88
+ npm)
89
+ import "@/modules/npm"
90
+ reinstall_npm
91
+ ;;
92
+ shell)
93
+ import "@/modules/shell"
94
+ reinstall_shell
95
+ ;;
96
+ ui)
97
+ import "@/modules/ui"
98
+ reinstall_ui
99
+ ;;
100
+ auto)
101
+ import "@/modules/auto"
102
+ reinstall_auto
103
+ ;;
104
+ deploy)
105
+ import "@/modules/deploy"
106
+ reinstall_deploy
107
+ ;;
108
+ *)
109
+ log_warn "Unknown reinstall target: $target"
110
+ echo "Run 'omni reinstall' to see available targets"
111
+ ;;
112
+ esac
113
+ }
114
+
115
+ _reinstall_specific_tools() {
116
+ local module="$1"
117
+ shift
118
+ local -a tools=("$@")
119
+
120
+ case "$module" in
121
+ ai)
122
+ import "@/tools/ai/all"
123
+ local reinstalled_count=0
124
+ local failed_count=0
125
+
126
+ for tool in "${tools[@]}"; do
127
+ case "$tool" in
128
+ qwen-code)
129
+ reinstall_qwen_code
130
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
131
+ ;;
132
+ gemini-cli)
133
+ reinstall_gemini_cli
134
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
135
+ ;;
136
+ claude-code)
137
+ reinstall_claude_code
138
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
139
+ ;;
140
+ mistral-vibe)
141
+ reinstall_mistral_vibe
142
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
143
+ ;;
144
+ openclaude)
145
+ reinstall_openclaude
146
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
147
+ ;;
148
+ openclaw)
149
+ reinstall_openclaw
150
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
151
+ ;;
152
+ ollama)
153
+ reinstall_ollama
154
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
155
+ ;;
156
+ codex)
157
+ reinstall_codex
158
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
159
+ ;;
160
+ opencode)
161
+ reinstall_opencode
162
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
163
+ ;;
164
+ kilocode-cli)
165
+ reinstall_kilocode_cli
166
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
167
+ ;;
168
+ mimocode)
169
+ reinstall_mimocode
170
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
171
+ ;;
172
+ engram)
173
+ reinstall_engram
174
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
175
+ ;;
176
+ codegraph)
177
+ reinstall_codegraph
178
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
179
+ ;;
180
+ pi)
181
+ reinstall_pi
182
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
183
+ ;;
184
+ antigravity-cli)
185
+ reinstall_antigravity_cli
186
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
187
+ ;;
188
+ minimax-cli)
189
+ reinstall_minimax_cli
190
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
191
+ ;;
192
+ gentle-ai)
193
+ reinstall_gentle_ai
194
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
195
+ ;;
196
+ gga)
197
+ reinstall_gga
198
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
199
+ ;;
200
+ hermes-agent)
201
+ reinstall_hermes_agent
202
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
203
+ ;;
204
+ kimi-code)
205
+ reinstall_kimi_code
206
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
207
+ ;;
208
+ command-code)
209
+ reinstall_command_code
210
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
211
+ ;;
212
+ freebuff)
213
+ reinstall_freebuff
214
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
215
+ ;;
216
+ kiro-cli)
217
+ reinstall_kiro_cli
218
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
219
+ ;;
220
+ heygen)
221
+ reinstall_heygen
222
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
223
+ ;;
224
+ seedance)
225
+ reinstall_seedance
226
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
227
+ ;;
228
+ veo3)
229
+ reinstall_veo3
230
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
231
+ ;;
232
+ odysseus)
233
+ reinstall_odysseus
234
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
235
+ ;;
236
+ *)
237
+ log_warn "Unknown AI tool: --$tool"
238
+ ;;
239
+ esac
240
+ done
241
+
242
+ echo
243
+ if [[ $reinstalled_count -gt 0 ]]; then
244
+ log_success "$reinstalled_count AI tool(s) reinstalled"
245
+ fi
246
+ if [[ $failed_count -gt 0 ]]; then
247
+ log_warn "$failed_count tool(s) failed to reinstall"
248
+ fi
249
+ echo
250
+ ;;
251
+ db)
252
+ import "@/tools/db/all"
253
+ local reinstalled_count=0
254
+ local failed_count=0
255
+
256
+ for tool in "${tools[@]}"; do
257
+ case "$tool" in
258
+ postgresql)
259
+ reinstall_postgresql
260
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
261
+ ;;
262
+ mariadb)
263
+ reinstall_mariadb
264
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
265
+ ;;
266
+ sqlite)
267
+ reinstall_sqlite
268
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
269
+ ;;
270
+ mongodb)
271
+ reinstall_mongodb
272
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
273
+ ;;
274
+ *)
275
+ log_warn "Unknown database: --$tool"
276
+ ;;
277
+ esac
278
+ done
279
+
280
+ echo
281
+ if [[ $reinstalled_count -gt 0 ]]; then
282
+ log_success "$reinstalled_count database(s) reinstalled"
283
+ fi
284
+ if [[ $failed_count -gt 0 ]]; then
285
+ log_warn "$failed_count database(s) failed to reinstall"
286
+ fi
287
+ echo
288
+ ;;
289
+ dev)
290
+ import "@/tools/dev/all"
291
+ local reinstalled_count=0
292
+ local failed_count=0
293
+
294
+ for tool in "${tools[@]}"; do
295
+ case "$tool" in
296
+ gh)
297
+ reinstall_gh
298
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
299
+ ;;
300
+ wget)
301
+ reinstall_wget
302
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
303
+ ;;
304
+ curl)
305
+ reinstall_curl
306
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
307
+ ;;
308
+ lsd)
309
+ reinstall_lsd
310
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
311
+ ;;
312
+ bat)
313
+ reinstall_bat
314
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
315
+ ;;
316
+ proot)
317
+ reinstall_proot
318
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
319
+ ;;
320
+ ncurses)
321
+ reinstall_ncurses
322
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
323
+ ;;
324
+ tmate)
325
+ reinstall_tmate
326
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
327
+ ;;
328
+ cloudflared)
329
+ reinstall_cloudflared
330
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
331
+ ;;
332
+ translate)
333
+ reinstall_translate
334
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
335
+ ;;
336
+ html2text)
337
+ reinstall_html2text
338
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
339
+ ;;
340
+ jq)
341
+ reinstall_jq
342
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
343
+ ;;
344
+ bc)
345
+ reinstall_bc
346
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
347
+ ;;
348
+ tree)
349
+ reinstall_tree
350
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
351
+ ;;
352
+ fzf)
353
+ reinstall_fzf
354
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
355
+ ;;
356
+ imagemagick)
357
+ reinstall_imagemagick
358
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
359
+ ;;
360
+ shfmt)
361
+ reinstall_shfmt
362
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
363
+ ;;
364
+ make)
365
+ reinstall_make
366
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
367
+ ;;
368
+ udocker)
369
+ reinstall_udocker
370
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
371
+ ;;
372
+ *)
373
+ log_warn "Unknown tool: --$tool"
374
+ ;;
375
+ esac
376
+ done
377
+
378
+ echo
379
+ if [[ $reinstalled_count -gt 0 ]]; then
380
+ log_success "$reinstalled_count tool(s) reinstalled"
381
+ fi
382
+ if [[ $failed_count -gt 0 ]]; then
383
+ log_warn "$failed_count tool(s) failed to reinstall"
384
+ fi
385
+ echo
386
+ ;;
387
+ npm)
388
+ import "@/tools/npm/all"
389
+ local reinstalled_count=0
390
+ local failed_count=0
391
+
392
+ for tool in "${tools[@]}"; do
393
+ case "$tool" in
394
+ typescript)
395
+ reinstall_typescript
396
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
397
+ ;;
398
+ nestjs)
399
+ reinstall_nestjs
400
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
401
+ ;;
402
+ prettier)
403
+ reinstall_prettier
404
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
405
+ ;;
406
+ live-server)
407
+ reinstall_live_server
408
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
409
+ ;;
410
+ localtunnel)
411
+ reinstall_localtunnel
412
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
413
+ ;;
414
+ vercel)
415
+ reinstall_vercel
416
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
417
+ ;;
418
+ markserv)
419
+ reinstall_markserv
420
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
421
+ ;;
422
+ psqlformat)
423
+ reinstall_psqlformat
424
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
425
+ ;;
426
+ ncu)
427
+ reinstall_ncu
428
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
429
+ ;;
430
+ ngrok)
431
+ reinstall_ngrok
432
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
433
+ ;;
434
+ *)
435
+ log_warn "Unknown node module: --$tool"
436
+ ;;
437
+ esac
438
+ done
439
+
440
+ echo
441
+ if [[ $reinstalled_count -gt 0 ]]; then
442
+ log_success "$reinstalled_count Node.js module(s) reinstalled"
443
+ fi
444
+ if [[ $failed_count -gt 0 ]]; then
445
+ log_warn "$failed_count module(s) failed to reinstall"
446
+ fi
447
+ echo
448
+ ;;
449
+ lang)
450
+ import "@/tools/lang/all"
451
+ local reinstalled_count=0
452
+ local failed_count=0
453
+
454
+ for tool in "${tools[@]}"; do
455
+ case "$tool" in
456
+ nodejs)
457
+ reinstall_npmjs
458
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
459
+ ;;
460
+ python)
461
+ reinstall_python
462
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
463
+ ;;
464
+ perl)
465
+ reinstall_perl
466
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
467
+ ;;
468
+ php)
469
+ reinstall_php
470
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
471
+ ;;
472
+ rust)
473
+ reinstall_rust
474
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
475
+ ;;
476
+ clang)
477
+ reinstall_clang
478
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
479
+ ;;
480
+ golang)
481
+ reinstall_golang
482
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
483
+ ;;
484
+ *)
485
+ log_warn "Unknown language: --$tool"
486
+ ;;
487
+ esac
488
+ done
489
+
490
+ echo
491
+ if [[ $reinstalled_count -gt 0 ]]; then
492
+ log_success "$reinstalled_count language(s) reinstalled"
493
+ fi
494
+ if [[ $failed_count -gt 0 ]]; then
495
+ log_warn "$failed_count language(s) failed to reinstall"
496
+ fi
497
+ echo
498
+ ;;
499
+ shell)
500
+ import "@/tools/shell/all"
501
+ local reinstalled_count=0
502
+ local failed_count=0
503
+
504
+ for tool in "${tools[@]}"; do
505
+ case "$tool" in
506
+ powerlevel10k)
507
+ reinstall_powerlevel10k
508
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
509
+ ;;
510
+ zsh-defer)
511
+ reinstall_zsh_defer
512
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
513
+ ;;
514
+ zsh-autosuggestions)
515
+ reinstall_zsh_autosuggestions
516
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
517
+ ;;
518
+ zsh-syntax-highlighting)
519
+ reinstall_zsh_syntax_highlighting
520
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
521
+ ;;
522
+ history-substring)
523
+ reinstall_history_substring
524
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
525
+ ;;
526
+ zsh-completions)
527
+ reinstall_zsh_completions
528
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
529
+ ;;
530
+ fzf-tab)
531
+ reinstall_fzf_tab
532
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
533
+ ;;
534
+ you-should-use)
535
+ reinstall_you_should_use
536
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
537
+ ;;
538
+ zsh-autopair)
539
+ reinstall_zsh_autopair
540
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
541
+ ;;
542
+ better-npm)
543
+ reinstall_better_npm
544
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
545
+ ;;
546
+ *)
547
+ log_warn "Unknown plugin: --$tool"
548
+ ;;
549
+ esac
550
+ done
551
+
552
+ echo
553
+ if [[ $reinstalled_count -gt 0 ]]; then
554
+ log_success "$reinstalled_count plugin(s) reinstalled"
555
+ fi
556
+ if [[ $failed_count -gt 0 ]]; then
557
+ log_warn "$failed_count plugin(s) failed to reinstall"
558
+ fi
559
+ echo
560
+ ;;
561
+ editor)
562
+ import "@/tools/editor/all"
563
+ local reinstalled_count=0
564
+ local failed_count=0
565
+
566
+ for tool in "${tools[@]}"; do
567
+ case "$tool" in
568
+ neovim)
569
+ reinstall_neovim
570
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
571
+ ;;
572
+ nvchad)
573
+ reinstall_nvchad
574
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
575
+ ;;
576
+ *)
577
+ log_warn "Unknown editor component: --$tool"
578
+ ;;
579
+ esac
580
+ done
581
+
582
+ echo
583
+ if [[ $reinstalled_count -gt 0 ]]; then
584
+ log_success "$reinstalled_count editor component(s) reinstalled"
585
+ fi
586
+ if [[ $failed_count -gt 0 ]]; then
587
+ log_warn "$failed_count component(s) failed to reinstall"
588
+ fi
589
+ echo
590
+ ;;
591
+ ui)
592
+ import "@/tools/ui/all"
593
+ local reinstalled_count=0
594
+ local failed_count=0
595
+
596
+ for tool in "${tools[@]}"; do
597
+ case "$tool" in
598
+ font)
599
+ reinstall_font
600
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
601
+ ;;
602
+ extra-keys)
603
+ reinstall_extra_keys
604
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
605
+ ;;
606
+ cursor)
607
+ reinstall_cursor
608
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
609
+ ;;
610
+ banner)
611
+ reinstall_banner
612
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
613
+ ;;
614
+ *)
615
+ log_warn "Unknown UI component: --$tool"
616
+ ;;
617
+ esac
618
+ done
619
+
620
+ echo
621
+ if [[ $reinstalled_count -gt 0 ]]; then
622
+ log_success "$reinstalled_count UI component(s) reinstalled"
623
+ fi
624
+ if [[ $failed_count -gt 0 ]]; then
625
+ log_warn "$failed_count component(s) failed to reinstall"
626
+ fi
627
+ echo
628
+ ;;
629
+ auto)
630
+ import "@/tools/auto/all"
631
+ local reinstalled_count=0
632
+ local failed_count=0
633
+
634
+ for tool in "${tools[@]}"; do
635
+ case "$tool" in
636
+ n8n)
637
+ reinstall_n8n
638
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
639
+ ;;
640
+ *)
641
+ log_warn "Unknown automation tool: --$tool"
642
+ ;;
643
+ esac
644
+ done
645
+
646
+ echo
647
+ if [[ $reinstalled_count -gt 0 ]]; then
648
+ log_success "$reinstalled_count automation tool(s) reinstalled"
649
+ fi
650
+ if [[ $failed_count -gt 0 ]]; then
651
+ log_warn "$failed_count tool(s) failed to reinstall"
652
+ fi
653
+ echo
654
+ ;;
655
+ deploy)
656
+ import "@/tools/deploy/all"
657
+ local reinstalled_count=0
658
+ local failed_count=0
659
+
660
+ for tool in "${tools[@]}"; do
661
+ case "$tool" in
662
+ vercel)
663
+ reinstall_vercel
664
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
665
+ ;;
666
+ railway)
667
+ reinstall_railway
668
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
669
+ ;;
670
+ netlify)
671
+ reinstall_netlify
672
+ case $? in 0) ((reinstalled_count++));; 1) ((failed_count++));; esac
673
+ ;;
674
+ *)
675
+ log_warn "Unknown deploy tool: --$tool"
676
+ ;;
677
+ esac
678
+ done
679
+
680
+ echo
681
+ if [[ $reinstalled_count -gt 0 ]]; then
682
+ log_success "$reinstalled_count deploy CLI(s) reinstalled"
683
+ fi
684
+ if [[ $failed_count -gt 0 ]]; then
685
+ log_warn "$failed_count CLI(s) failed to reinstall"
686
+ fi
687
+ echo
688
+ ;;
689
+ *)
690
+ log_warn "Unknown reinstall target: $module"
691
+ echo "Run 'omni reinstall' to see available targets"
692
+ ;;
693
+ esac
694
+ }