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.
- package/LICENSE +21 -0
- package/README.md +1137 -0
- package/core/bin/core +85 -0
- package/core/bin/omni +21 -0
- package/core/cli/commands/--version.sh +8 -0
- package/core/cli/commands/brain.sh +1549 -0
- package/core/cli/commands/doctor.sh +834 -0
- package/core/cli/commands/env.sh +226 -0
- package/core/cli/commands/init.sh +1266 -0
- package/core/cli/commands/install.sh +759 -0
- package/core/cli/commands/list.sh +397 -0
- package/core/cli/commands/open.sh +71 -0
- package/core/cli/commands/pg.sh +761 -0
- package/core/cli/commands/reinstall.sh +694 -0
- package/core/cli/commands/show.sh +90 -0
- package/core/cli/commands/uninstall.sh +700 -0
- package/core/cli/commands/update.sh +754 -0
- package/core/cli/commands/voice.sh +170 -0
- package/core/cli/core.sh +82 -0
- package/core/cli/omni.sh +634 -0
- package/core/modules/ai.sh +152 -0
- package/core/modules/auto.sh +90 -0
- package/core/modules/db.sh +94 -0
- package/core/modules/deploy.sh +50 -0
- package/core/modules/dev.sh +126 -0
- package/core/modules/editor.sh +101 -0
- package/core/modules/lang.sh +100 -0
- package/core/modules/npm.sh +122 -0
- package/core/modules/shell.sh +312 -0
- package/core/modules/ui.sh +115 -0
- package/core/tools/ai/all.sh +63 -0
- package/core/tools/ai/antigravity-cli/README.md +45 -0
- package/core/tools/ai/antigravity-cli/bin/agy +28 -0
- package/core/tools/ai/antigravity-cli/helper/agy_helper.c +39 -0
- package/core/tools/ai/antigravity-cli/install.sh +469 -0
- package/core/tools/ai/claude-code/README.md +45 -0
- package/core/tools/ai/claude-code/bin/claude +29 -0
- package/core/tools/ai/claude-code/helper/claude_helper.c +42 -0
- package/core/tools/ai/claude-code/install.sh +278 -0
- package/core/tools/ai/codegraph/README.md +43 -0
- package/core/tools/ai/codegraph/bin/codegraph +3 -0
- package/core/tools/ai/codegraph/install.sh +149 -0
- package/core/tools/ai/codex/README.md +44 -0
- package/core/tools/ai/codex/install.sh +104 -0
- package/core/tools/ai/command-code/README.md +62 -0
- package/core/tools/ai/command-code/install.sh +136 -0
- package/core/tools/ai/engram/README.md +44 -0
- package/core/tools/ai/engram/install.sh +127 -0
- package/core/tools/ai/freebuff/README.md +52 -0
- package/core/tools/ai/freebuff/bin/freebuff +28 -0
- package/core/tools/ai/freebuff/helper/freebuff_helper.c +47 -0
- package/core/tools/ai/freebuff/install.sh +301 -0
- package/core/tools/ai/gemini-cli/README.md +46 -0
- package/core/tools/ai/gemini-cli/install.sh +111 -0
- package/core/tools/ai/gentle-ai/README.md +42 -0
- package/core/tools/ai/gentle-ai/install.sh +253 -0
- package/core/tools/ai/gentle-ai/termux-patches.go +256 -0
- package/core/tools/ai/gga/README.md +49 -0
- package/core/tools/ai/gga/install.sh +134 -0
- package/core/tools/ai/hermes-agent/README.md +50 -0
- package/core/tools/ai/hermes-agent/install.sh +80 -0
- package/core/tools/ai/heygen/README.md +24 -0
- package/core/tools/ai/heygen/install.sh +126 -0
- package/core/tools/ai/kilocode-cli/README.md +45 -0
- package/core/tools/ai/kilocode-cli/bin/kilocode +21 -0
- package/core/tools/ai/kilocode-cli/helper/kilocode_helper.c +47 -0
- package/core/tools/ai/kilocode-cli/install.sh +179 -0
- package/core/tools/ai/kimchi-code/README.md +8 -0
- package/core/tools/ai/kimchi-code/install.sh +120 -0
- package/core/tools/ai/kimi-code/README.md +45 -0
- package/core/tools/ai/kimi-code/install.sh +111 -0
- package/core/tools/ai/kiro-cli/README.md +23 -0
- package/core/tools/ai/kiro-cli/install.sh +127 -0
- package/core/tools/ai/mimocode/README.md +43 -0
- package/core/tools/ai/mimocode/bin/mimo +28 -0
- package/core/tools/ai/mimocode/helper/mimocode_helper.c +47 -0
- package/core/tools/ai/mimocode/install.sh +287 -0
- package/core/tools/ai/minimax-cli/README.md +45 -0
- package/core/tools/ai/minimax-cli/install.sh +111 -0
- package/core/tools/ai/mistral-vibe/README.md +46 -0
- package/core/tools/ai/mistral-vibe/install.sh +119 -0
- package/core/tools/ai/odysseus/README.md +35 -0
- package/core/tools/ai/odysseus/install.sh +163 -0
- package/core/tools/ai/ollama/README.md +44 -0
- package/core/tools/ai/ollama/install.sh +78 -0
- package/core/tools/ai/openclaude/README.md +46 -0
- package/core/tools/ai/openclaude/install.sh +110 -0
- package/core/tools/ai/openclaw/README.md +47 -0
- package/core/tools/ai/openclaw/install.sh +112 -0
- package/core/tools/ai/opencode/README.md +51 -0
- package/core/tools/ai/opencode/bin/opencode +28 -0
- package/core/tools/ai/opencode/helper/opencode_helper.c +57 -0
- package/core/tools/ai/opencode/install.sh +290 -0
- package/core/tools/ai/pi/README.md +46 -0
- package/core/tools/ai/pi/install.sh +104 -0
- package/core/tools/ai/qwen-code/README.md +45 -0
- package/core/tools/ai/qwen-code/install.sh +111 -0
- package/core/tools/ai/seedance/README.md +22 -0
- package/core/tools/ai/seedance/install.sh +134 -0
- package/core/tools/ai/veo3/README.md +36 -0
- package/core/tools/ai/veo3/install.sh +151 -0
- package/core/tools/auto/all.sh +57 -0
- package/core/tools/auto/n8n/README.md +47 -0
- package/core/tools/auto/n8n/install.sh +102 -0
- package/core/tools/db/all.sh +60 -0
- package/core/tools/db/mariadb/README.md +43 -0
- package/core/tools/db/mariadb/install.sh +65 -0
- package/core/tools/db/mongodb/README.md +42 -0
- package/core/tools/db/mongodb/install.sh +73 -0
- package/core/tools/db/postgresql/README.md +45 -0
- package/core/tools/db/postgresql/install.sh +65 -0
- package/core/tools/db/sqlite/README.md +44 -0
- package/core/tools/db/sqlite/install.sh +65 -0
- package/core/tools/deploy/all.sh +39 -0
- package/core/tools/deploy/netlify/install.sh +41 -0
- package/core/tools/deploy/railway/install.sh +47 -0
- package/core/tools/deploy/vercel/install.sh +43 -0
- package/core/tools/dev/all.sh +75 -0
- package/core/tools/dev/bat/README.md +44 -0
- package/core/tools/dev/bat/install.sh +82 -0
- package/core/tools/dev/bc/README.md +44 -0
- package/core/tools/dev/bc/install.sh +82 -0
- package/core/tools/dev/cloudflared/README.md +43 -0
- package/core/tools/dev/cloudflared/install.sh +82 -0
- package/core/tools/dev/curl/README.md +43 -0
- package/core/tools/dev/curl/install.sh +82 -0
- package/core/tools/dev/fzf/README.md +44 -0
- package/core/tools/dev/fzf/install.sh +82 -0
- package/core/tools/dev/gh/README.md +43 -0
- package/core/tools/dev/gh/install.sh +82 -0
- package/core/tools/dev/html2text/README.md +44 -0
- package/core/tools/dev/html2text/install.sh +82 -0
- package/core/tools/dev/imagemagick/README.md +44 -0
- package/core/tools/dev/imagemagick/install.sh +82 -0
- package/core/tools/dev/jq/README.md +44 -0
- package/core/tools/dev/jq/install.sh +82 -0
- package/core/tools/dev/lsd/README.md +44 -0
- package/core/tools/dev/lsd/install.sh +82 -0
- package/core/tools/dev/make/README.md +44 -0
- package/core/tools/dev/make/install.sh +82 -0
- package/core/tools/dev/ncurses/README.md +42 -0
- package/core/tools/dev/ncurses/install.sh +82 -0
- package/core/tools/dev/proot/README.md +43 -0
- package/core/tools/dev/proot/install.sh +82 -0
- package/core/tools/dev/shfmt/README.md +44 -0
- package/core/tools/dev/shfmt/install.sh +82 -0
- package/core/tools/dev/tmate/README.md +44 -0
- package/core/tools/dev/tmate/install.sh +82 -0
- package/core/tools/dev/translate/README.md +44 -0
- package/core/tools/dev/translate/install.sh +82 -0
- package/core/tools/dev/tree/README.md +44 -0
- package/core/tools/dev/tree/install.sh +82 -0
- package/core/tools/dev/udocker/README.md +44 -0
- package/core/tools/dev/udocker/install.sh +82 -0
- package/core/tools/dev/wget/README.md +44 -0
- package/core/tools/dev/wget/install.sh +82 -0
- package/core/tools/editor/all.sh +58 -0
- package/core/tools/editor/neovim/README.md +43 -0
- package/core/tools/editor/neovim/install.sh +66 -0
- package/core/tools/editor/nvchad/README.md +45 -0
- package/core/tools/editor/nvchad/install.sh +110 -0
- package/core/tools/lang/all.sh +63 -0
- package/core/tools/lang/clang/README.md +43 -0
- package/core/tools/lang/clang/install.sh +79 -0
- package/core/tools/lang/golang/README.md +43 -0
- package/core/tools/lang/golang/install.sh +79 -0
- package/core/tools/lang/nodejs/README.md +43 -0
- package/core/tools/lang/nodejs/install.sh +79 -0
- package/core/tools/lang/perl/README.md +43 -0
- package/core/tools/lang/perl/install.sh +79 -0
- package/core/tools/lang/php/README.md +43 -0
- package/core/tools/lang/php/install.sh +79 -0
- package/core/tools/lang/python/README.md +43 -0
- package/core/tools/lang/python/install.sh +79 -0
- package/core/tools/lang/rust/README.md +43 -0
- package/core/tools/lang/rust/install.sh +79 -0
- package/core/tools/npm/all.sh +67 -0
- package/core/tools/npm/live-server/README.md +43 -0
- package/core/tools/npm/live-server/install.sh +95 -0
- package/core/tools/npm/localtunnel/README.md +43 -0
- package/core/tools/npm/localtunnel/install.sh +111 -0
- package/core/tools/npm/markserv/README.md +43 -0
- package/core/tools/npm/markserv/install.sh +94 -0
- package/core/tools/npm/ncu/README.md +43 -0
- package/core/tools/npm/ncu/install.sh +94 -0
- package/core/tools/npm/nestjs/README.md +43 -0
- package/core/tools/npm/nestjs/install.sh +94 -0
- package/core/tools/npm/ngrok/README.md +44 -0
- package/core/tools/npm/ngrok/install.sh +94 -0
- package/core/tools/npm/prettier/README.md +43 -0
- package/core/tools/npm/prettier/install.sh +94 -0
- package/core/tools/npm/psqlformat/README.md +43 -0
- package/core/tools/npm/psqlformat/install.sh +94 -0
- package/core/tools/npm/turbopack/README.md +8 -0
- package/core/tools/npm/turbopack/install.sh +41 -0
- package/core/tools/npm/typescript/README.md +43 -0
- package/core/tools/npm/typescript/install.sh +94 -0
- package/core/tools/npm/vercel/README.md +43 -0
- package/core/tools/npm/vercel/install.sh +94 -0
- package/core/tools/shell/all.sh +67 -0
- package/core/tools/shell/better-npm/README.md +43 -0
- package/core/tools/shell/better-npm/install.sh +85 -0
- package/core/tools/shell/fzf-tab/README.md +44 -0
- package/core/tools/shell/fzf-tab/install.sh +85 -0
- package/core/tools/shell/history-substring/README.md +43 -0
- package/core/tools/shell/history-substring/install.sh +85 -0
- package/core/tools/shell/powerlevel10k/README.md +43 -0
- package/core/tools/shell/powerlevel10k/install.sh +85 -0
- package/core/tools/shell/you-should-use/README.md +43 -0
- package/core/tools/shell/you-should-use/install.sh +85 -0
- package/core/tools/shell/zsh-autopair/README.md +44 -0
- package/core/tools/shell/zsh-autopair/install.sh +85 -0
- package/core/tools/shell/zsh-autosuggestions/README.md +43 -0
- package/core/tools/shell/zsh-autosuggestions/install.sh +85 -0
- package/core/tools/shell/zsh-completions/README.md +43 -0
- package/core/tools/shell/zsh-completions/install.sh +85 -0
- package/core/tools/shell/zsh-defer/README.md +43 -0
- package/core/tools/shell/zsh-defer/install.sh +85 -0
- package/core/tools/shell/zsh-syntax-highlighting/README.md +43 -0
- package/core/tools/shell/zsh-syntax-highlighting/install.sh +72 -0
- package/core/tools/ui/all.sh +61 -0
- package/core/tools/ui/banner/README.md +42 -0
- package/core/tools/ui/banner/install.sh +151 -0
- package/core/tools/ui/cursor/README.md +42 -0
- package/core/tools/ui/cursor/install.sh +58 -0
- package/core/tools/ui/extra-keys/README.md +43 -0
- package/core/tools/ui/extra-keys/install.sh +62 -0
- package/core/tools/ui/font/README.md +43 -0
- package/core/tools/ui/font/install.sh +63 -0
- package/core/utils/banner.sh +519 -0
- package/core/utils/bootstrap.sh +25 -0
- package/core/utils/colors.sh +31 -0
- package/core/utils/dialogrc +30 -0
- package/core/utils/env.sh +53 -0
- package/core/utils/log.sh +598 -0
- package/install.sh +272 -0
- package/package.json +43 -0
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
list_main() {
|
|
7
|
+
|
|
8
|
+
if [[ $# -eq 0 ]]; then
|
|
9
|
+
echo
|
|
10
|
+
box "Omni List"
|
|
11
|
+
echo
|
|
12
|
+
log_info "Usage: omni list <target>"
|
|
13
|
+
echo
|
|
14
|
+
log_info "Available targets:"
|
|
15
|
+
echo
|
|
16
|
+
list_item "lang - List language packages"
|
|
17
|
+
list_item "db - List database packages"
|
|
18
|
+
list_item "ai - List AI tools"
|
|
19
|
+
list_item "editor - List code editor components"
|
|
20
|
+
list_item "dev - List development tools"
|
|
21
|
+
list_item "npm - List Node.js global modules"
|
|
22
|
+
list_item "shell - List ZSH plugins"
|
|
23
|
+
list_item "ui - List Termux UI components"
|
|
24
|
+
list_item "auto - List automation tools"
|
|
25
|
+
echo
|
|
26
|
+
return
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
for arg in "$@"; do
|
|
30
|
+
case "$arg" in
|
|
31
|
+
lang)
|
|
32
|
+
_list_lang
|
|
33
|
+
;;
|
|
34
|
+
db)
|
|
35
|
+
_list_db
|
|
36
|
+
;;
|
|
37
|
+
ai)
|
|
38
|
+
_list_ai
|
|
39
|
+
;;
|
|
40
|
+
editor)
|
|
41
|
+
_list_editor
|
|
42
|
+
;;
|
|
43
|
+
dev)
|
|
44
|
+
_list_dev
|
|
45
|
+
;;
|
|
46
|
+
npm)
|
|
47
|
+
_list_npm
|
|
48
|
+
;;
|
|
49
|
+
shell)
|
|
50
|
+
_list_shell
|
|
51
|
+
;;
|
|
52
|
+
ui)
|
|
53
|
+
_list_ui
|
|
54
|
+
;;
|
|
55
|
+
auto)
|
|
56
|
+
_list_auto
|
|
57
|
+
;;
|
|
58
|
+
deploy)
|
|
59
|
+
_list_deploy
|
|
60
|
+
;;
|
|
61
|
+
*)
|
|
62
|
+
log_warn "Unknown list target: $arg"
|
|
63
|
+
echo "Run 'omni list' to see available targets"
|
|
64
|
+
;;
|
|
65
|
+
esac
|
|
66
|
+
done
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
# ===== LIST DEPLOY =====
|
|
70
|
+
_list_deploy() {
|
|
71
|
+
echo
|
|
72
|
+
box "Deploy CLIs"
|
|
73
|
+
echo
|
|
74
|
+
printf " ${D_GREEN}%-18s${NC} %s\n" "vercel" "Frontend & serverless deployment"
|
|
75
|
+
printf " ${D_GREEN}%-18s${NC} %s\n" "railway" "Full-stack with databases"
|
|
76
|
+
printf " ${D_GREEN}%-18s${NC} %s\n" "netlify" "Static sites & edge functions"
|
|
77
|
+
echo
|
|
78
|
+
list_item "Usage: ${D_CYAN}omni install deploy${NC} to install all"
|
|
79
|
+
list_item "Usage: ${D_CYAN}omni install deploy --vercel${NC} for specific"
|
|
80
|
+
list_item "After install: ${D_CYAN}vercel deploy --prod${NC} or ${D_CYAN}railway up${NC}"
|
|
81
|
+
echo
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
# ===== LIST LANGUAGE =====
|
|
85
|
+
_list_lang() {
|
|
86
|
+
echo
|
|
87
|
+
box "Language Packages"
|
|
88
|
+
echo
|
|
89
|
+
log_info "Available packages and install commands:"
|
|
90
|
+
echo
|
|
91
|
+
|
|
92
|
+
table_start "Package" "Install Flag" "Status"
|
|
93
|
+
table_row "Node.js LTS" "--nodejs" "$(_check_pkg "nodejs-lts")"
|
|
94
|
+
table_row "Python" "--python" "$(_check_pkg "python")"
|
|
95
|
+
table_row "Perl" "--perl" "$(_check_pkg "perl")"
|
|
96
|
+
table_row "PHP" "--php" "$(_check_pkg "php")"
|
|
97
|
+
table_row "Rust" "--rust" "$(_check_pkg "rust")"
|
|
98
|
+
table_row "C/C++ (clang)" "--clang" "$(_check_pkg "clang")"
|
|
99
|
+
table_row "Go (golang)" "--golang" "$(_check_pkg "golang")"
|
|
100
|
+
table_end
|
|
101
|
+
|
|
102
|
+
echo
|
|
103
|
+
log_info "Install specific: ${D_CYAN}omni install lang --nodejs --python${NC}"
|
|
104
|
+
log_info "Install all: ${D_CYAN}omni install lang${NC}"
|
|
105
|
+
echo
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
# ===== LIST DB =====
|
|
109
|
+
_list_db() {
|
|
110
|
+
echo
|
|
111
|
+
box "Database Packages"
|
|
112
|
+
echo
|
|
113
|
+
log_info "Available packages and install commands:"
|
|
114
|
+
echo
|
|
115
|
+
|
|
116
|
+
table_start "Database" "Install Flag" "Status"
|
|
117
|
+
table_row "PostgreSQL" "--postgresql" "$(_check_pkg "postgresql")"
|
|
118
|
+
table_row "MariaDB" "--mariadb" "$(_check_pkg "mariadb")"
|
|
119
|
+
table_row "SQLite" "--sqlite" "$(_check_pkg "sqlite")"
|
|
120
|
+
table_row "MongoDB" "--mongodb" "$(_check_pkg "mongodb")"
|
|
121
|
+
table_end
|
|
122
|
+
|
|
123
|
+
echo
|
|
124
|
+
log_info "Install specific: ${D_CYAN}omni install db --postgresql --sqlite${NC}"
|
|
125
|
+
log_info "Install all: ${D_CYAN}omni install db${NC}"
|
|
126
|
+
echo
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
# ===== LIST AI =====
|
|
130
|
+
_list_ai() {
|
|
131
|
+
echo
|
|
132
|
+
box "AI Tools"
|
|
133
|
+
echo
|
|
134
|
+
log_info "Available AI tools and install commands:"
|
|
135
|
+
echo
|
|
136
|
+
|
|
137
|
+
table_start "Tool" "Install Flag" "Command" "Status"
|
|
138
|
+
table_row "Qwen Code" "--qwen-code" "qwen" "$(_check_cmd "qwen")"
|
|
139
|
+
table_row "Gemini CLI" "--gemini-cli" "gemini" "$(_check_cmd "gemini")"
|
|
140
|
+
table_row "Claude Code" "--claude-code" "claude" "$(_check_cmd "claude")"
|
|
141
|
+
table_row "Mistral Vibe" "--mistral-vibe" "vibe" "$(_check_cmd "vibe")"
|
|
142
|
+
table_row "OpenClaude" "--openclaude" "openclaude" "$(_check_cmd "openclaude")"
|
|
143
|
+
table_row "OpenClaw" "--openclaw" "openclaw" "$(_check_cmd "openclaw")"
|
|
144
|
+
table_row "Ollama" "--ollama" "ollama" "$(_check_pkg "ollama")"
|
|
145
|
+
table_row "Codex CLI" "--codex" "codex" "$(_check_cmd "codex")"
|
|
146
|
+
table_row "OpenCode" "--opencode" "opencode" "$(_check_cmd "opencode")"
|
|
147
|
+
table_row "MiMoCode" "--mimocode" "mimo" "$(_check_cmd "mimo")"
|
|
148
|
+
table_row "Engram" "--engram" "engram" "$(_check_cmd "engram")"
|
|
149
|
+
table_row "CodeGraph" "--codegraph" "codegraph" "$(_check_cmd "codegraph")"
|
|
150
|
+
table_row "Pi Coding Agent" "--pi" "pi" "$(_check_cmd "pi")"
|
|
151
|
+
table_row "Antigravity CLI" "--antigravity-cli" "agy" "$(_check_cmd "agy")"
|
|
152
|
+
table_row "Minimax CLI" "--minimax-cli" "mmx" "$(_check_cmd "mmx")"
|
|
153
|
+
table_row "Gentle AI" "--gentle-ai" "gentle-ai" "$(_check_cmd "gentle-ai")"
|
|
154
|
+
table_row "GGA" "--gga" "gga" "$(_check_cmd "gga")"
|
|
155
|
+
table_row "Hermes Agent" "--hermes-agent" "hermes" "$(_check_cmd "hermes")"
|
|
156
|
+
table_row "Kimi Code" "--kimi-code" "kimi" "$(_check_cmd "kimi")"
|
|
157
|
+
table_row "Command Code" "--command-code" "cmdc" "$(_check_cmd "command-code")"
|
|
158
|
+
table_row "Freebuff" "--freebuff" "freebuff" "$(_check_cmd "freebuff")"
|
|
159
|
+
table_row "Kilo Code CLI" "--kilocode-cli" "kilo" "$(_check_cmd "kilo")"
|
|
160
|
+
table_row "Kiro CLI" "--kiro-cli" "kiro" "$(_check_cmd "kiro")"
|
|
161
|
+
table_row "HeyGen CLI" "--heygen" "heygen" "$(_check_cmd "heygen")"
|
|
162
|
+
table_row "Seedance CLI" "--seedance" "seedance" "$(_check_cmd "seedance")"
|
|
163
|
+
table_row "Veo 3 SDK" "--veo3" "veo3" "$(_check_cmd "veo3")"
|
|
164
|
+
table_row "Odysseus" "--odysseus" "odysseus" "$(_check_cmd "odysseus")"
|
|
165
|
+
table_row "Kimchi AI" "--kimchi-code" "kimchi" "$(_check_cmd "kimchi")"
|
|
166
|
+
table_end
|
|
167
|
+
|
|
168
|
+
echo
|
|
169
|
+
log_info "Install specific: ${D_CYAN}omni install ai --opencode --engram${NC}"
|
|
170
|
+
log_info "Install all: ${D_CYAN}omni install ai${NC}"
|
|
171
|
+
echo
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
# ===== LIST EDITOR =====
|
|
175
|
+
_list_editor() {
|
|
176
|
+
echo
|
|
177
|
+
box "Code Editor"
|
|
178
|
+
echo
|
|
179
|
+
log_info "Available components and install commands:"
|
|
180
|
+
echo
|
|
181
|
+
|
|
182
|
+
table_start "Component" "Install Flag" "Status"
|
|
183
|
+
table_row "Neovim" "--neovim" "$(_check_pkg "neovim")"
|
|
184
|
+
table_row "NvChad Config" "--nvchad" "$(_check_dir "$HOME/.config/nvim")"
|
|
185
|
+
table_end
|
|
186
|
+
|
|
187
|
+
echo
|
|
188
|
+
log_info "Install specific: ${D_CYAN}omni install editor --neovim${NC}"
|
|
189
|
+
log_info "Install all: ${D_CYAN}omni install editor${NC}"
|
|
190
|
+
echo
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
# ===== LIST TOOLS =====
|
|
194
|
+
_list_dev() {
|
|
195
|
+
echo
|
|
196
|
+
box "Development Tools"
|
|
197
|
+
echo
|
|
198
|
+
log_info "Available tools and install commands:"
|
|
199
|
+
echo
|
|
200
|
+
|
|
201
|
+
table_start "Tool" "Install Flag" "Status"
|
|
202
|
+
table_row "GitHub CLI" "--gh" "$(_check_pkg "gh")"
|
|
203
|
+
table_row "Wget" "--wget" "$(_check_pkg "wget")"
|
|
204
|
+
table_row "Curl" "--curl" "$(_check_pkg "curl")"
|
|
205
|
+
table_row "LSD" "--lsd" "$(_check_pkg "lsd")"
|
|
206
|
+
table_row "Bat" "--bat" "$(_check_pkg "bat")"
|
|
207
|
+
table_row "Proot" "--proot" "$(_check_pkg "proot")"
|
|
208
|
+
table_row "Ncurses Utils" "--ncurses" "$(_check_pkg "ncurses-utils")"
|
|
209
|
+
table_row "Tmate" "--tmate" "$(_check_pkg "tmate")"
|
|
210
|
+
table_row "Cloudflared" "--cloudflared" "$(_check_pkg "cloudflared")"
|
|
211
|
+
table_row "Translate Shell" "--translate" "$(_check_pkg "translate-shell")"
|
|
212
|
+
table_row "html2text" "--html2text" "$(_check_pkg "html2text")"
|
|
213
|
+
table_row "jq" "--jq" "$(_check_pkg "jq")"
|
|
214
|
+
table_row "bc" "--bc" "$(_check_pkg "bc")"
|
|
215
|
+
table_row "Tree" "--tree" "$(_check_pkg "tree")"
|
|
216
|
+
table_row "Fzf" "--fzf" "$(_check_pkg "fzf")"
|
|
217
|
+
table_row "ImageMagick" "--imagemagick" "$(_check_pkg "imagemagick")"
|
|
218
|
+
table_row "Shfmt" "--shfmt" "$(_check_pkg "shfmt")"
|
|
219
|
+
table_row "Make" "--make" "$(_check_pkg "make")"
|
|
220
|
+
table_row "Udocker" "--udocker" "$(_check_pkg "udocker")"
|
|
221
|
+
table_end
|
|
222
|
+
|
|
223
|
+
echo
|
|
224
|
+
log_info "Install specific: ${D_CYAN}omni install dev --gh --fzf --jq${NC}"
|
|
225
|
+
log_info "Install all: ${D_CYAN}omni install dev${NC}"
|
|
226
|
+
echo
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
# ===== LIST NODE =====
|
|
230
|
+
_list_npm() {
|
|
231
|
+
echo
|
|
232
|
+
box "Node.js Global Modules"
|
|
233
|
+
echo
|
|
234
|
+
log_info "Available modules and install commands:"
|
|
235
|
+
echo
|
|
236
|
+
|
|
237
|
+
table_start "Module" "Install Flag" "Command" "Status"
|
|
238
|
+
table_row "TypeScript" "--typescript" "tsc" "$(_check_cmd "tsc")"
|
|
239
|
+
table_row "NestJS CLI" "--nestjs" "nest" "$(_check_cmd "nest")"
|
|
240
|
+
table_row "Prettier" "--prettier" "prettier" "$(_check_cmd "prettier")"
|
|
241
|
+
table_row "Live Server" "--live-server" "live-server" "$(_check_cmd "live-server")"
|
|
242
|
+
table_row "Localtunnel" "--localtunnel" "lt" "$(_check_cmd "lt")"
|
|
243
|
+
table_row "Vercel CLI" "--vercel" "vercel" "$(_check_cmd "vercel")"
|
|
244
|
+
table_row "Markserv" "--markserv" "markserv" "$(_check_cmd "markserv")"
|
|
245
|
+
table_row "PSQL Format" "--psqlformat" "psqlformat" "$(_check_cmd "psqlformat")"
|
|
246
|
+
table_row "NPM Check Updates" "--ncu" "ncu" "$(_check_cmd "ncu")"
|
|
247
|
+
table_row "Ngrok" "--ngrok" "ngrok" "$(_check_cmd "ngrok")"
|
|
248
|
+
table_row "Turbopack" "--turbopack" "turbo" "$(_check_cmd "turbo")"
|
|
249
|
+
table_end
|
|
250
|
+
|
|
251
|
+
echo
|
|
252
|
+
log_info "Install specific: ${D_CYAN}omni install npm --typescript --prettier${NC}"
|
|
253
|
+
log_info "Install all: ${D_CYAN}omni install npm${NC}"
|
|
254
|
+
echo
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
# ===== LIST SHELL =====
|
|
258
|
+
_list_shell() {
|
|
259
|
+
echo
|
|
260
|
+
box "ZSH Shell Plugins"
|
|
261
|
+
echo
|
|
262
|
+
log_info "Available plugins and install commands:"
|
|
263
|
+
echo
|
|
264
|
+
|
|
265
|
+
table_start "Plugin" "Install Flag" "Status"
|
|
266
|
+
table_row "powerlevel10k" "--powerlevel10k" "$(_check_plugin "powerlevel10k")"
|
|
267
|
+
table_row "zsh-defer" "--zsh-defer" "$(_check_plugin "zsh-defer")"
|
|
268
|
+
table_row "zsh-autosuggestions" "--zsh-autosuggestions" "$(_check_plugin "zsh-autosuggestions")"
|
|
269
|
+
table_row "zsh-syntax-highlighting" "--zsh-syntax-highlighting" "$(_check_plugin "zsh-syntax-highlighting")"
|
|
270
|
+
table_row "zsh-history-substring-search" "--history-substring" "$(_check_plugin "zsh-history-substring-search")"
|
|
271
|
+
table_row "zsh-completions" "--zsh-completions" "$(_check_plugin "zsh-completions")"
|
|
272
|
+
table_row "fzf-tab" "--fzf-tab" "$(_check_plugin "fzf-tab")"
|
|
273
|
+
table_row "zsh-you-should-use" "--you-should-use" "$(_check_plugin "zsh-you-should-use")"
|
|
274
|
+
table_row "zsh-autopair" "--zsh-autopair" "$(_check_plugin "zsh-autopair")"
|
|
275
|
+
table_row "zsh-better-npm-completion" "--better-npm" "$(_check_plugin "zsh-better-npm-completion")"
|
|
276
|
+
table_end
|
|
277
|
+
|
|
278
|
+
echo
|
|
279
|
+
log_info "Install specific: ${D_CYAN}omni install shell --powerlevel10k --fzf-tab${NC}"
|
|
280
|
+
log_info "Install all: ${D_CYAN}omni install shell${NC}"
|
|
281
|
+
echo
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
# ===== LIST UI =====
|
|
285
|
+
_list_ui() {
|
|
286
|
+
echo
|
|
287
|
+
box "Termux UI Components"
|
|
288
|
+
echo
|
|
289
|
+
log_info "Available components and install commands:"
|
|
290
|
+
echo
|
|
291
|
+
|
|
292
|
+
table_start "Component" "Install Flag" "Status"
|
|
293
|
+
table_row "Meslo Nerd Font" "--font" "$(_check_file "$HOME/.termux/font.ttf")"
|
|
294
|
+
table_row "Extra Keys" "--extra-keys" "$(_check_extra_keys)"
|
|
295
|
+
table_row "Cursor Color" "--cursor" "$(_check_file "$HOME/.termux/colors.properties")"
|
|
296
|
+
table_row "Startup Banner" "--banner" "$(_grep_config "$HOME/.zshrc" "# ===== Omni Banner =====" "$HOME/.bashrc")"
|
|
297
|
+
table_end
|
|
298
|
+
|
|
299
|
+
echo
|
|
300
|
+
log_info "Install specific: ${D_CYAN}omni install ui --font --extra-keys${NC}"
|
|
301
|
+
log_info "Install all: ${D_CYAN}omni install ui${NC}"
|
|
302
|
+
echo
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
# ===== LIST AUTOMATION =====
|
|
306
|
+
_list_auto() {
|
|
307
|
+
echo
|
|
308
|
+
box "Automation Tools"
|
|
309
|
+
echo
|
|
310
|
+
log_info "Available tools and install commands:"
|
|
311
|
+
echo
|
|
312
|
+
|
|
313
|
+
table_start "Tool" "Install Flag" "Command" "Status"
|
|
314
|
+
table_row "n8n" "--n8n" "n8n" "$(_check_cmd "n8n")"
|
|
315
|
+
table_end
|
|
316
|
+
|
|
317
|
+
echo
|
|
318
|
+
log_info "Install specific: ${D_CYAN}omni install auto --n8n${NC}"
|
|
319
|
+
log_info "Install all: ${D_CYAN}omni install auto${NC}"
|
|
320
|
+
echo
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
# ===== HELPER FUNCTIONS =====
|
|
324
|
+
|
|
325
|
+
# Check if command exists
|
|
326
|
+
_check_cmd() {
|
|
327
|
+
local cmd="$1"
|
|
328
|
+
if command -v "$cmd" &>/dev/null; then
|
|
329
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
330
|
+
else
|
|
331
|
+
echo -e "${D_RED}not installed${NC}"
|
|
332
|
+
fi
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
# Check if package is installed via pkg
|
|
336
|
+
_check_pkg() {
|
|
337
|
+
local pkg="$1"
|
|
338
|
+
if dpkg -s "$pkg" 2>/dev/null | grep -q "Status: install ok installed"; then
|
|
339
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
340
|
+
else
|
|
341
|
+
echo -e "${D_RED}not installed${NC}"
|
|
342
|
+
fi
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
# Check if directory exists
|
|
346
|
+
_check_dir() {
|
|
347
|
+
local dir="$1"
|
|
348
|
+
if [[ -d "$dir" ]]; then
|
|
349
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
350
|
+
else
|
|
351
|
+
echo -e "${D_RED}not installed${NC}"
|
|
352
|
+
fi
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
# Check if file exists
|
|
356
|
+
_check_file() {
|
|
357
|
+
local file="$1"
|
|
358
|
+
if [[ -f "$file" ]]; then
|
|
359
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
360
|
+
else
|
|
361
|
+
echo -e "${D_RED}not installed${NC}"
|
|
362
|
+
fi
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
# Check if extra-keys are configured by omni
|
|
366
|
+
_check_extra_keys() {
|
|
367
|
+
if grep -qF "terminal-cursor-blink-rate=500" "$HOME/.termux/termux.properties" 2>/dev/null; then
|
|
368
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
369
|
+
else
|
|
370
|
+
echo -e "${D_RED}not installed${NC}"
|
|
371
|
+
fi
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
# Check if ZSH plugin exists
|
|
375
|
+
_check_plugin() {
|
|
376
|
+
local plugin="$1"
|
|
377
|
+
if [[ -d "$HOME/.zsh-plugins/$plugin" ]]; then
|
|
378
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
379
|
+
else
|
|
380
|
+
echo -e "${D_RED}not installed${NC}"
|
|
381
|
+
fi
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
# Check if pattern exists in config file (with fallback)
|
|
385
|
+
_grep_config() {
|
|
386
|
+
local primary="$1"
|
|
387
|
+
local pattern="$2"
|
|
388
|
+
local fallback="$3"
|
|
389
|
+
|
|
390
|
+
if [[ -f "$primary" ]] && grep -qF "$pattern" "$primary" 2>/dev/null; then
|
|
391
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
392
|
+
elif [[ -n "$fallback" && -f "$fallback" ]] && grep -qF "$pattern" "$fallback" 2>/dev/null; then
|
|
393
|
+
echo -e "${D_GREEN}installed${NC}"
|
|
394
|
+
else
|
|
395
|
+
echo -e "${D_RED}not installed${NC}"
|
|
396
|
+
fi
|
|
397
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
OPEN_BASE_URL="https://omni-catalyst.vercel.app"
|
|
7
|
+
|
|
8
|
+
open_main() {
|
|
9
|
+
if [[ $# -eq 0 ]]; then
|
|
10
|
+
open_help
|
|
11
|
+
return
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
local target="$1"
|
|
15
|
+
local url=""
|
|
16
|
+
|
|
17
|
+
case "$target" in
|
|
18
|
+
omni | help)
|
|
19
|
+
url="$OPEN_BASE_URL"
|
|
20
|
+
;;
|
|
21
|
+
lang | db | ai | editor | dev | npm | shell | ui | auto | deploy)
|
|
22
|
+
url="$OPEN_BASE_URL/omni/$target"
|
|
23
|
+
;;
|
|
24
|
+
--help | -h)
|
|
25
|
+
open_help
|
|
26
|
+
return
|
|
27
|
+
;;
|
|
28
|
+
*)
|
|
29
|
+
log_error "Unknown target: $target"
|
|
30
|
+
echo
|
|
31
|
+
open_help
|
|
32
|
+
return 1
|
|
33
|
+
;;
|
|
34
|
+
esac
|
|
35
|
+
|
|
36
|
+
if ! command -v termux-open-url &>/dev/null; then
|
|
37
|
+
log_error "termux-open-url not found. Are you running in Termux?"
|
|
38
|
+
return 1
|
|
39
|
+
fi
|
|
40
|
+
|
|
41
|
+
termux-open-url "$url"
|
|
42
|
+
log_success "Opening: ${D_CYAN}$url${NC}"
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
open_help() {
|
|
46
|
+
echo
|
|
47
|
+
box "Omni Open"
|
|
48
|
+
echo
|
|
49
|
+
log_info "Usage: omni open <target>"
|
|
50
|
+
echo
|
|
51
|
+
log_info "Open official documentation in browser"
|
|
52
|
+
echo
|
|
53
|
+
separator_section "Targets"
|
|
54
|
+
echo
|
|
55
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "omni" "Omni website"
|
|
56
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "lang" "Language modules"
|
|
57
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "db" "Database modules"
|
|
58
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "ai" "AI tools"
|
|
59
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "editor" "Code editor"
|
|
60
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "dev" "Dev tools"
|
|
61
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "npm" "Node.js tools"
|
|
62
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "shell" "ZSH shell"
|
|
63
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "ui" "Termux UI"
|
|
64
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "auto" "Automation tools"
|
|
65
|
+
printf " ${D_GREEN}%-14s${NC} ${D_DIM}%s${NC}\n" "deploy" "Deploy CLIs"
|
|
66
|
+
echo
|
|
67
|
+
separator_section "Website"
|
|
68
|
+
echo
|
|
69
|
+
list_item "${D_CYAN}$OPEN_BASE_URL${NC}"
|
|
70
|
+
echo
|
|
71
|
+
}
|