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
package/install.sh
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
readonly P_BORDER='\e[38;5;33m'
|
|
6
|
+
readonly P_PRIMARY='\e[38;5;39m'
|
|
7
|
+
readonly P_DIM='\e[38;5;244m'
|
|
8
|
+
readonly P_OK='\e[38;5;42m'
|
|
9
|
+
readonly P_FAIL='\e[1;31m'
|
|
10
|
+
readonly P_HL='\e[38;5;213m'
|
|
11
|
+
readonly P_NC='\e[0m'
|
|
12
|
+
|
|
13
|
+
REPO="https://github.com/israel676767/omni"
|
|
14
|
+
BRANCH="main"
|
|
15
|
+
OMNI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/omni"
|
|
16
|
+
OMNI_TOOL_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/omni-data"
|
|
17
|
+
OMNI_CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/omni"
|
|
18
|
+
OMNI_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/omni"
|
|
19
|
+
|
|
20
|
+
TOTAL_STEPS=6
|
|
21
|
+
CURRENT_STEP=0
|
|
22
|
+
|
|
23
|
+
_cols() {
|
|
24
|
+
if command -v tput &>/dev/null; then
|
|
25
|
+
tput cols
|
|
26
|
+
else
|
|
27
|
+
echo 80
|
|
28
|
+
fi
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
progress_bar() {
|
|
32
|
+
local current=$1
|
|
33
|
+
local total=$2
|
|
34
|
+
local width=${3:-40}
|
|
35
|
+
local percentage=$((current * 100 / total))
|
|
36
|
+
local filled=$((current * width / total))
|
|
37
|
+
local empty=$((width - filled))
|
|
38
|
+
|
|
39
|
+
printf -v bar "%*s" "$filled" ""
|
|
40
|
+
bar="${bar// /█}"
|
|
41
|
+
printf -v space "%*s" "$empty" ""
|
|
42
|
+
space="${space// /░}"
|
|
43
|
+
|
|
44
|
+
printf "\r ${P_BORDER}│${P_NC}${P_OK}%s${P_NC}${P_DIM}%s${P_NC}${P_BORDER}│${P_NC} ${P_PRIMARY}%3d%%${P_NC}" "${bar}" "${space}" "$percentage"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
log_step() {
|
|
48
|
+
local step="$1"
|
|
49
|
+
local desc="$2"
|
|
50
|
+
CURRENT_STEP=$((CURRENT_STEP + 1))
|
|
51
|
+
printf "\r%*s\r" "$(_cols)" ""
|
|
52
|
+
echo -e "\n ${P_BORDER}◆${P_NC} ${P_PRIMARY}${CURRENT_STEP}/${TOTAL_STEPS}${P_NC} ${desc}"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
log_ok() {
|
|
56
|
+
echo -e " ${P_OK}✔${P_NC} $1"
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
log_fail() {
|
|
60
|
+
echo -e " ${P_FAIL}✖${P_NC} $1" >&2
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
log_info() {
|
|
64
|
+
echo -e " ${P_BORDER}→${P_NC} $1"
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
separator() {
|
|
68
|
+
local cols=$(_cols)
|
|
69
|
+
local line=$(printf "%${cols}s")
|
|
70
|
+
echo -e "${P_DIM}${line// /─}${P_NC}"
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
banner() {
|
|
74
|
+
echo
|
|
75
|
+
echo -e " ${P_BORDER}┌────────────────────────────────────┐${P_NC}"
|
|
76
|
+
echo -e " ${P_BORDER}│${P_NC} ${P_PRIMARY} ◈ OMNI CATALYST ◈${P_NC} ${P_BORDER}│${P_NC}"
|
|
77
|
+
echo -e " ${P_BORDER}│${P_NC} ${P_DIM}Modular Dev Environment for Termux${P_NC} ${P_BORDER}│${P_NC}"
|
|
78
|
+
echo -e " ${P_BORDER}└────────────────────────────────────┘${P_NC}"
|
|
79
|
+
echo
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
bootstrap_dependencies() {
|
|
83
|
+
local needed_tput=0
|
|
84
|
+
local needed_git=0
|
|
85
|
+
local needed_glow=0
|
|
86
|
+
local needed_gh=0
|
|
87
|
+
local needed_rg=0
|
|
88
|
+
|
|
89
|
+
command -v tput &>/dev/null || needed_tput=1
|
|
90
|
+
command -v git &>/dev/null || needed_git=1
|
|
91
|
+
command -v glow &>/dev/null || needed_glow=1
|
|
92
|
+
command -v gh &>/dev/null || needed_gh=1
|
|
93
|
+
command -v rg &>/dev/null || needed_rg=1
|
|
94
|
+
|
|
95
|
+
if [[ $needed_tput -eq 1 || $needed_git -eq 1 || $needed_glow -eq 1 || $needed_gh -eq 1 || $needed_rg -eq 1 ]]; then
|
|
96
|
+
banner
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
if [[ $needed_tput -eq 1 ]]; then
|
|
100
|
+
echo -e " ${P_BORDER}→${P_NC} Installing ncurses-utils..."
|
|
101
|
+
pkg install -y ncurses-utils &>/dev/null
|
|
102
|
+
echo -e " ${P_OK}✔${P_NC} ncurses-utils installed"
|
|
103
|
+
echo
|
|
104
|
+
fi
|
|
105
|
+
|
|
106
|
+
if [[ $needed_git -eq 1 ]]; then
|
|
107
|
+
log_info "Installing git..."
|
|
108
|
+
progress_bar 0 10
|
|
109
|
+
pkg install -y git &>/dev/null
|
|
110
|
+
progress_bar 10 10
|
|
111
|
+
echo
|
|
112
|
+
log_ok "git installed"
|
|
113
|
+
fi
|
|
114
|
+
|
|
115
|
+
if [[ $needed_glow -eq 1 ]]; then
|
|
116
|
+
log_info "Installing glow..."
|
|
117
|
+
progress_bar 0 10
|
|
118
|
+
pkg install -y glow &>/dev/null
|
|
119
|
+
progress_bar 10 10
|
|
120
|
+
echo
|
|
121
|
+
log_ok "glow installed"
|
|
122
|
+
fi
|
|
123
|
+
|
|
124
|
+
if [[ $needed_gh -eq 1 ]]; then
|
|
125
|
+
log_info "Installing gh (GitHub CLI)..."
|
|
126
|
+
progress_bar 0 10
|
|
127
|
+
pkg install -y gh &>/dev/null
|
|
128
|
+
progress_bar 10 10
|
|
129
|
+
echo
|
|
130
|
+
log_ok "gh installed"
|
|
131
|
+
fi
|
|
132
|
+
|
|
133
|
+
if [[ $needed_rg -eq 1 ]]; then
|
|
134
|
+
log_info "Installing ripgrep..."
|
|
135
|
+
progress_bar 0 10
|
|
136
|
+
pkg install -y ripgrep &>/dev/null
|
|
137
|
+
progress_bar 10 10
|
|
138
|
+
echo
|
|
139
|
+
log_ok "ripgrep installed"
|
|
140
|
+
fi
|
|
141
|
+
|
|
142
|
+
if [[ $needed_tput -eq 1 || $needed_git -eq 1 || $needed_glow -eq 1 || $needed_gh -eq 1 || $needed_rg -eq 1 ]]; then
|
|
143
|
+
echo
|
|
144
|
+
clear
|
|
145
|
+
fi
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
install_dependencies() {
|
|
149
|
+
log_step 1 "Verifying dependencies"
|
|
150
|
+
progress_bar 5 10
|
|
151
|
+
progress_bar 10 10
|
|
152
|
+
echo
|
|
153
|
+
log_ok "Dependencies ready (git, ncurses-utils, glow, gh, ripgrep)"
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
setup_directories() {
|
|
157
|
+
log_step 2 "Setting up directories"
|
|
158
|
+
|
|
159
|
+
mkdir -p "$OMNI_DATA" "$OMNI_TOOL_DATA" "$OMNI_CACHE" "$OMNI_CONFIG"
|
|
160
|
+
|
|
161
|
+
log_info "Repo $OMNI_DATA"
|
|
162
|
+
log_info "Data $OMNI_TOOL_DATA"
|
|
163
|
+
log_info "Cache $OMNI_CACHE"
|
|
164
|
+
log_info "Config $OMNI_CONFIG"
|
|
165
|
+
log_ok "Directories created"
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
clone_repo() {
|
|
169
|
+
log_step 3 "Cloning repository"
|
|
170
|
+
|
|
171
|
+
local script_dir
|
|
172
|
+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
173
|
+
local is_dev_install=0
|
|
174
|
+
|
|
175
|
+
if [[ -d "$script_dir/.git" ]] && [[ "$script_dir" != "$OMNI_DATA" ]]; then
|
|
176
|
+
is_dev_install=1
|
|
177
|
+
fi
|
|
178
|
+
|
|
179
|
+
if [[ $is_dev_install -eq 1 ]]; then
|
|
180
|
+
OMNI_DATA="$script_dir"
|
|
181
|
+
log_info "Developer installation detected"
|
|
182
|
+
log_ok "Using local repository"
|
|
183
|
+
elif [[ -d "$OMNI_DATA/.git" ]]; then
|
|
184
|
+
progress_bar 3 10
|
|
185
|
+
git -C "$OMNI_DATA" pull origin "$BRANCH" &>/dev/null
|
|
186
|
+
progress_bar 10 10
|
|
187
|
+
echo
|
|
188
|
+
log_ok "Repository updated"
|
|
189
|
+
else
|
|
190
|
+
progress_bar 0 10
|
|
191
|
+
git clone --depth=1 -b "$BRANCH" "$REPO" "$OMNI_DATA" &>/dev/null &
|
|
192
|
+
local pid=$!
|
|
193
|
+
while kill -0 "$pid" 2>/dev/null; do
|
|
194
|
+
for i in $(seq 0 10); do
|
|
195
|
+
progress_bar $i 10
|
|
196
|
+
sleep 0.1
|
|
197
|
+
done
|
|
198
|
+
done
|
|
199
|
+
wait "$pid"
|
|
200
|
+
progress_bar 10 10
|
|
201
|
+
echo
|
|
202
|
+
log_ok "Repository cloned"
|
|
203
|
+
fi
|
|
204
|
+
|
|
205
|
+
export OMNI_DATA
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
create_symlink() {
|
|
209
|
+
log_step 4 "Creating symlinks"
|
|
210
|
+
|
|
211
|
+
rm -f "$PREFIX/bin/core" "$PREFIX/bin/omni"
|
|
212
|
+
ln -sf "$OMNI_DATA/core/bin/core" "$PREFIX/bin/core"
|
|
213
|
+
ln -sf "$OMNI_DATA/core/bin/omni" "$PREFIX/bin/omni"
|
|
214
|
+
|
|
215
|
+
if [[ -L "$PREFIX/bin/core" ]]; then
|
|
216
|
+
log_ok "Symlinks created: core, omni → ${OMNI_DATA}/core/bin/"
|
|
217
|
+
else
|
|
218
|
+
log_fail "Failed to create symlinks"
|
|
219
|
+
return 1
|
|
220
|
+
fi
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
save_config() {
|
|
224
|
+
log_step 5 "Saving configuration"
|
|
225
|
+
|
|
226
|
+
cat >"$OMNI_CONFIG/config" <<EOF
|
|
227
|
+
omni_data='$OMNI_DATA'
|
|
228
|
+
omni_cache='$OMNI_CACHE'
|
|
229
|
+
omni_config='$OMNI_CONFIG'
|
|
230
|
+
omni_source='$OMNI_DATA'
|
|
231
|
+
omni_tool_data='$OMNI_TOOL_DATA'
|
|
232
|
+
EOF
|
|
233
|
+
|
|
234
|
+
log_ok "Configuration saved"
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
show_final_message() {
|
|
238
|
+
echo
|
|
239
|
+
separator
|
|
240
|
+
echo -e " ${P_OK}◆${P_NC} ${P_PRIMARY}Omni Installed${P_NC}"
|
|
241
|
+
separator
|
|
242
|
+
echo
|
|
243
|
+
echo -e " ${P_DIM}Author:${P_NC} ${P_HL}israel marques${P_NC}"
|
|
244
|
+
echo
|
|
245
|
+
echo -e " ${P_DIM}Run${P_NC} ${P_HL}omni${P_NC} ${P_DIM}to get started${P_NC}"
|
|
246
|
+
echo
|
|
247
|
+
echo -e " ${P_DIM}Install modules:${P_NC}"
|
|
248
|
+
echo
|
|
249
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install lang" "Programming languages"
|
|
250
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install db" "Databases"
|
|
251
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install ai" "AI tools"
|
|
252
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install editor" "Code editor"
|
|
253
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install dev" "Dev tools"
|
|
254
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install npm" "Node.js tools"
|
|
255
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install shell" "ZSH shell"
|
|
256
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install ui" "Termux UI"
|
|
257
|
+
printf " ${P_PRIMARY}%-20s${P_NC} ${P_DIM}%s${P_NC}\n" "omni install auto" "n8n"
|
|
258
|
+
echo
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
main() {
|
|
262
|
+
bootstrap_dependencies
|
|
263
|
+
banner
|
|
264
|
+
install_dependencies
|
|
265
|
+
setup_directories
|
|
266
|
+
clone_repo
|
|
267
|
+
create_symlink
|
|
268
|
+
save_config
|
|
269
|
+
show_final_message
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
main
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "omni-catalyst",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Modular Dev Environment for Termux — install languages, databases, AI agents, editors, and more with one command",
|
|
5
|
+
"bin": {
|
|
6
|
+
"omni": "core/bin/omni",
|
|
7
|
+
"core": "core/bin/core"
|
|
8
|
+
},
|
|
9
|
+
"main": "core/bin/core",
|
|
10
|
+
"files": [
|
|
11
|
+
"core/",
|
|
12
|
+
"install.sh",
|
|
13
|
+
"README.md",
|
|
14
|
+
"LICENSE"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"postinstall": "node scripts/npm-install.js"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=14.0.0"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/israel676767/omni.git"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"termux",
|
|
28
|
+
"dev-environment",
|
|
29
|
+
"cli",
|
|
30
|
+
"modular",
|
|
31
|
+
"android",
|
|
32
|
+
"developer-tools"
|
|
33
|
+
],
|
|
34
|
+
"author": "israel marques",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/israel676767/omni/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://omni-catalyst.vercel.app",
|
|
40
|
+
"os": [
|
|
41
|
+
"android"
|
|
42
|
+
]
|
|
43
|
+
}
|