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,122 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
LOG_FILE="$OMNI_CACHE/install_npm.log"
|
|
7
|
+
|
|
8
|
+
install_npm() {
|
|
9
|
+
separator
|
|
10
|
+
box "Installing Node.js Modules"
|
|
11
|
+
separator
|
|
12
|
+
echo
|
|
13
|
+
|
|
14
|
+
log_info "Installing Node.js global modules..."
|
|
15
|
+
|
|
16
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
17
|
+
|
|
18
|
+
_install_npm_wrapper
|
|
19
|
+
log_success "Node.js global modules installed"
|
|
20
|
+
echo
|
|
21
|
+
list_item "TypeScript"
|
|
22
|
+
list_item "NestJS CLI"
|
|
23
|
+
list_item "Prettier"
|
|
24
|
+
list_item "Live Server"
|
|
25
|
+
list_item "Localtunnel"
|
|
26
|
+
list_item "Vercel CLI"
|
|
27
|
+
list_item "Markserv"
|
|
28
|
+
list_item "PSQL Format"
|
|
29
|
+
list_item "NPM Check Updates"
|
|
30
|
+
list_item "Ngrok"
|
|
31
|
+
echo
|
|
32
|
+
separator
|
|
33
|
+
log_success "Node.js modules installation completed"
|
|
34
|
+
separator
|
|
35
|
+
echo
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_install_npm_wrapper() {
|
|
39
|
+
import "@/tools/npm/all"
|
|
40
|
+
install_all_npm_packages
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
uninstall_npm() {
|
|
44
|
+
if ! command -v tsc &>/dev/null; then
|
|
45
|
+
log_info "Node.js Modules are not installed"
|
|
46
|
+
return 0
|
|
47
|
+
fi
|
|
48
|
+
separator
|
|
49
|
+
box "Uninstalling Node.js Modules"
|
|
50
|
+
separator
|
|
51
|
+
echo
|
|
52
|
+
|
|
53
|
+
log_info "Uninstalling Node.js global modules..."
|
|
54
|
+
|
|
55
|
+
_uninstall_npm_wrapper
|
|
56
|
+
log_success "Node.js global modules uninstalled"
|
|
57
|
+
echo
|
|
58
|
+
separator
|
|
59
|
+
log_success "Node.js modules uninstallation completed"
|
|
60
|
+
separator
|
|
61
|
+
echo
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_uninstall_npm_wrapper() {
|
|
65
|
+
import "@/tools/npm/all"
|
|
66
|
+
uninstall_all_npm_packages
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
update_npm() {
|
|
70
|
+
separator
|
|
71
|
+
box "Updating Node.js Modules"
|
|
72
|
+
separator
|
|
73
|
+
echo
|
|
74
|
+
|
|
75
|
+
log_info "Updating Node.js global modules..."
|
|
76
|
+
|
|
77
|
+
_update_npm_wrapper
|
|
78
|
+
log_success "Node.js global modules updated"
|
|
79
|
+
echo
|
|
80
|
+
separator
|
|
81
|
+
log_success "Node.js modules update completed"
|
|
82
|
+
separator
|
|
83
|
+
echo
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
_update_npm_wrapper() {
|
|
87
|
+
import "@/tools/npm/all"
|
|
88
|
+
update_all_npm_packages
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
reinstall_npm() {
|
|
92
|
+
separator
|
|
93
|
+
box "Reinstalling Node.js Modules"
|
|
94
|
+
separator
|
|
95
|
+
echo
|
|
96
|
+
|
|
97
|
+
log_info "Reinstalling Node.js global modules..."
|
|
98
|
+
|
|
99
|
+
_reinstall_npm_wrapper
|
|
100
|
+
log_success "Node.js global modules reinstalled"
|
|
101
|
+
echo
|
|
102
|
+
list_item "TypeScript"
|
|
103
|
+
list_item "NestJS CLI"
|
|
104
|
+
list_item "Prettier"
|
|
105
|
+
list_item "Live Server"
|
|
106
|
+
list_item "Localtunnel"
|
|
107
|
+
list_item "Vercel CLI"
|
|
108
|
+
list_item "Markserv"
|
|
109
|
+
list_item "PSQL Format"
|
|
110
|
+
list_item "NPM Check Updates"
|
|
111
|
+
list_item "Ngrok"
|
|
112
|
+
echo
|
|
113
|
+
separator
|
|
114
|
+
log_success "Node.js modules reinstallation completed"
|
|
115
|
+
separator
|
|
116
|
+
echo
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
_reinstall_npm_wrapper() {
|
|
120
|
+
import "@/tools/npm/all"
|
|
121
|
+
reinstall_all_npm_packages
|
|
122
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
ZSH_PLUGINS_DIR="$HOME/.zsh-plugins"
|
|
7
|
+
OH_MY_ZSH_DIR="$HOME/.oh-my-zsh"
|
|
8
|
+
LOG_FILE="$OMNI_CACHE/install_shell.log"
|
|
9
|
+
|
|
10
|
+
install_termux_packages() {
|
|
11
|
+
log_info "Installing dependencies..."
|
|
12
|
+
|
|
13
|
+
if pkg install -y zsh lsd bat fzf zoxide &>>"$LOG_FILE"; then
|
|
14
|
+
log_success "Dependencies installed successfully"
|
|
15
|
+
return 0
|
|
16
|
+
else
|
|
17
|
+
log_error "Failed to install dependencies"
|
|
18
|
+
return 1
|
|
19
|
+
fi
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
install_oh_my_zsh() {
|
|
23
|
+
if [[ -d "$OH_MY_ZSH_DIR" ]]; then
|
|
24
|
+
log_warn "Oh My Zsh already installed"
|
|
25
|
+
return 0
|
|
26
|
+
fi
|
|
27
|
+
|
|
28
|
+
log_info "Downloading Oh My Zsh..."
|
|
29
|
+
log_info "When prompted, enter (Y/n) to set ZSH as your default shell"
|
|
30
|
+
echo
|
|
31
|
+
|
|
32
|
+
local temp_dir="${PREFIX:-/tmp}/tmp"
|
|
33
|
+
mkdir -p "$temp_dir"
|
|
34
|
+
local temp_file="$temp_dir/omz_install.sh"
|
|
35
|
+
|
|
36
|
+
if curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -o "$temp_file" &>>"$LOG_FILE"; then
|
|
37
|
+
sed -i '/exec zsh -l/s/^/#/' "$temp_file"
|
|
38
|
+
sh "$temp_file" &>>"$LOG_FILE"
|
|
39
|
+
rm "$temp_file"
|
|
40
|
+
log_success "Oh My Zsh installed successfully"
|
|
41
|
+
return 0
|
|
42
|
+
else
|
|
43
|
+
log_error "Failed to download Oh My Zsh"
|
|
44
|
+
return 1
|
|
45
|
+
fi
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
add_to_zshrc() {
|
|
49
|
+
local line="$1"
|
|
50
|
+
if ! grep -qxF "$line" ~/.zshrc 2>/dev/null; then
|
|
51
|
+
echo "$line" >>~/.zshrc
|
|
52
|
+
fi
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
setup_zsh_aliases() {
|
|
56
|
+
log_info "Setting up ZSH aliases..."
|
|
57
|
+
|
|
58
|
+
add_to_zshrc "alias ls=\"lsd\""
|
|
59
|
+
add_to_zshrc 'alias cat="bat --theme=Dracula --style=plain --paging=never"'
|
|
60
|
+
add_to_zshrc 'eval "$(zoxide init zsh)"'
|
|
61
|
+
|
|
62
|
+
log_success "ZSH aliases configured"
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
setup_shell_env() {
|
|
66
|
+
log_info "Setting up shell environment..."
|
|
67
|
+
|
|
68
|
+
add_to_zshrc "unalias gga 2>/dev/null"
|
|
69
|
+
add_to_zshrc "export GOPATH=\"\$HOME/.local/go\""
|
|
70
|
+
add_to_zshrc "export GOCACHE=\"\$HOME/.cache/go\""
|
|
71
|
+
add_to_zshrc "export GOMODCACHE=\"\$GOPATH/pkg/mod\""
|
|
72
|
+
add_to_zshrc "export PATH=\$PATH:\$HOME/go/bin"
|
|
73
|
+
add_to_zshrc "export OPENCLAW_DISABLE_BONJOUR=1"
|
|
74
|
+
|
|
75
|
+
log_success "Shell environment configured"
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setupPersistentSession() {
|
|
79
|
+
log_info "Configuring persistent session..."
|
|
80
|
+
|
|
81
|
+
mkdir -p "$OMNI_CACHE" 2>/dev/null || mkdir -p ~/.cache/omni
|
|
82
|
+
|
|
83
|
+
echo "$HOME" > ~/.cache/omni/last_dir
|
|
84
|
+
|
|
85
|
+
if grep -q "# ===== Persistent Directory =====" ~/.zshrc 2>/dev/null; then
|
|
86
|
+
log_warn "Persistent session already configured"
|
|
87
|
+
return 0
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
cat >>~/.zshrc <<'EOF'
|
|
91
|
+
|
|
92
|
+
# ===== Persistent Directory =====
|
|
93
|
+
LAST_DIR_FILE="$HOME/.cache/omni/last_dir"
|
|
94
|
+
SESSION_TIMESTAMP="$HOME/.cache/omni/.session_time"
|
|
95
|
+
SESSION_TIMEOUT=5
|
|
96
|
+
|
|
97
|
+
save_dir() {
|
|
98
|
+
mkdir -p ~/.cache/omni 2>/dev/null
|
|
99
|
+
pwd > "$LAST_DIR_FILE"
|
|
100
|
+
date +%s > "$SESSION_TIMESTAMP"
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
restore_dir() {
|
|
104
|
+
if [[ -f "$SESSION_TIMESTAMP" ]] && [[ -f "$LAST_DIR_FILE" ]]; then
|
|
105
|
+
local current_time
|
|
106
|
+
local last_time
|
|
107
|
+
current_time=$(date +%s)
|
|
108
|
+
last_time=$(cat "$SESSION_TIMESTAMP" 2>/dev/null || echo 0)
|
|
109
|
+
local diff=$((current_time - last_time))
|
|
110
|
+
|
|
111
|
+
if [[ $diff -lt $SESSION_TIMEOUT ]]; then
|
|
112
|
+
local dir
|
|
113
|
+
dir=$(cat "$LAST_DIR_FILE" 2>/dev/null)
|
|
114
|
+
if [[ -d "$dir" ]] && [[ "$dir" != "$HOME" ]]; then
|
|
115
|
+
cd "$dir" 2>/dev/null
|
|
116
|
+
fi
|
|
117
|
+
fi
|
|
118
|
+
fi
|
|
119
|
+
date +%s > "$SESSION_TIMESTAMP"
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if typeset -f add-zsh-hook &>/dev/null; then
|
|
123
|
+
add-zsh-hook precmd save_dir
|
|
124
|
+
restore_dir
|
|
125
|
+
else
|
|
126
|
+
restore_dir
|
|
127
|
+
trap 'save_dir' EXIT
|
|
128
|
+
fi
|
|
129
|
+
echo
|
|
130
|
+
EOF
|
|
131
|
+
|
|
132
|
+
log_success "Persistent session configured"
|
|
133
|
+
log_info "New sessions within Termux will restore last directory"
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
install_shell() {
|
|
137
|
+
separator
|
|
138
|
+
box "Installing ZSH Shell Environment"
|
|
139
|
+
separator
|
|
140
|
+
echo
|
|
141
|
+
|
|
142
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
143
|
+
|
|
144
|
+
loading "Installing base packages" install_termux_packages
|
|
145
|
+
log_success "Base packages installed"
|
|
146
|
+
echo
|
|
147
|
+
|
|
148
|
+
install_oh_my_zsh
|
|
149
|
+
echo
|
|
150
|
+
|
|
151
|
+
_install_shell_plugins_wrapper
|
|
152
|
+
log_success "ZSH plugins installed"
|
|
153
|
+
echo
|
|
154
|
+
|
|
155
|
+
setup_zsh_aliases
|
|
156
|
+
echo
|
|
157
|
+
|
|
158
|
+
setup_shell_env
|
|
159
|
+
echo
|
|
160
|
+
|
|
161
|
+
setupPersistentSession
|
|
162
|
+
echo
|
|
163
|
+
|
|
164
|
+
separator
|
|
165
|
+
log_success "ZSH shell environment setup completed"
|
|
166
|
+
separator
|
|
167
|
+
echo
|
|
168
|
+
log_warn "Please restart Termux or run: exec zsh"
|
|
169
|
+
echo
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
_install_shell_plugins_wrapper() {
|
|
173
|
+
import "@/tools/shell/all"
|
|
174
|
+
install_all_shell_plugins
|
|
175
|
+
|
|
176
|
+
if [[ -d "$ZSH_PLUGINS_DIR/powerlevel10k" ]]; then
|
|
177
|
+
add_to_zshrc 'source ~/.zsh-plugins/powerlevel10k/powerlevel10k.zsh-theme'
|
|
178
|
+
fi
|
|
179
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-defer" ]]; then
|
|
180
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-defer/zsh-defer.plugin.zsh'
|
|
181
|
+
fi
|
|
182
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-autosuggestions" ]]; then
|
|
183
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-autosuggestions/zsh-autosuggestions.zsh'
|
|
184
|
+
fi
|
|
185
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-syntax-highlighting" ]]; then
|
|
186
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh'
|
|
187
|
+
fi
|
|
188
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-history-substring-search" ]]; then
|
|
189
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-history-substring-search/zsh-history-substring-search.zsh'
|
|
190
|
+
add_to_zshrc "bindkey '^[[A' history-substring-search-up"
|
|
191
|
+
add_to_zshrc "bindkey '^[[B' history-substring-search-down"
|
|
192
|
+
fi
|
|
193
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-completions" ]]; then
|
|
194
|
+
add_to_zshrc 'fpath+=~/.zsh-plugins/zsh-completions'
|
|
195
|
+
fi
|
|
196
|
+
if [[ -d "$ZSH_PLUGINS_DIR/fzf-tab" ]]; then
|
|
197
|
+
add_to_zshrc 'source ~/.zsh-plugins/fzf-tab/fzf-tab.plugin.zsh'
|
|
198
|
+
add_to_zshrc "zstyle ':completion:*' menu-select yes"
|
|
199
|
+
add_to_zshrc "zstyle ':fzf-tab:*' switch-word yes"
|
|
200
|
+
fi
|
|
201
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-you-should-use" ]]; then
|
|
202
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-you-should-use/you-should-use.plugin.zsh'
|
|
203
|
+
fi
|
|
204
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-autopair" ]]; then
|
|
205
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-autopair/autopair.zsh'
|
|
206
|
+
fi
|
|
207
|
+
if [[ -d "$ZSH_PLUGINS_DIR/zsh-better-npm-completion" ]]; then
|
|
208
|
+
add_to_zshrc 'source ~/.zsh-plugins/zsh-better-npm-completion/zsh-better-npm-completion.plugin.zsh'
|
|
209
|
+
fi
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
uninstall_oh_my_zsh() {
|
|
213
|
+
if [[ ! -d "$OH_MY_ZSH_DIR" ]]; then
|
|
214
|
+
log_warn "Oh My Zsh not installed"
|
|
215
|
+
return 0
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
log_info "Uninstalling Oh My Zsh..."
|
|
219
|
+
|
|
220
|
+
if rm -rf "$OH_MY_ZSH_DIR" &>>"$LOG_FILE"; then
|
|
221
|
+
log_success "Oh My Zsh uninstalled"
|
|
222
|
+
else
|
|
223
|
+
log_error "Failed to uninstall Oh My Zsh"
|
|
224
|
+
return 1
|
|
225
|
+
fi
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
uninstall_shell() {
|
|
229
|
+
if [[ ! -d "$OH_MY_ZSH_DIR" ]]; then
|
|
230
|
+
log_info "ZSH Shell Environment is not installed"
|
|
231
|
+
return 0
|
|
232
|
+
fi
|
|
233
|
+
separator
|
|
234
|
+
box "Uninstalling ZSH Shell Environment"
|
|
235
|
+
separator
|
|
236
|
+
echo
|
|
237
|
+
|
|
238
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
239
|
+
|
|
240
|
+
_uninstall_shell_plugins_wrapper
|
|
241
|
+
loading "Removing Oh My Zsh" uninstall_oh_my_zsh
|
|
242
|
+
|
|
243
|
+
echo
|
|
244
|
+
separator
|
|
245
|
+
log_success "ZSH shell environment uninstalled"
|
|
246
|
+
separator
|
|
247
|
+
echo
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
_uninstall_shell_plugins_wrapper() {
|
|
251
|
+
import "@/tools/shell/all"
|
|
252
|
+
uninstall_all_shell_plugins
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
update_shell() {
|
|
256
|
+
separator
|
|
257
|
+
box "Updating ZSH Shell Environment"
|
|
258
|
+
separator
|
|
259
|
+
echo
|
|
260
|
+
|
|
261
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
262
|
+
|
|
263
|
+
_update_shell_plugins_wrapper
|
|
264
|
+
log_success "ZSH shell environment updated"
|
|
265
|
+
|
|
266
|
+
setup_shell_env
|
|
267
|
+
echo
|
|
268
|
+
|
|
269
|
+
separator
|
|
270
|
+
log_success "ZSH update completed"
|
|
271
|
+
separator
|
|
272
|
+
echo
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
_update_shell_plugins_wrapper() {
|
|
276
|
+
import "@/tools/shell/all"
|
|
277
|
+
update_all_shell_plugins
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
reinstall_shell() {
|
|
281
|
+
separator
|
|
282
|
+
box "Reinstalling ZSH Shell Environment"
|
|
283
|
+
separator
|
|
284
|
+
echo
|
|
285
|
+
|
|
286
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
287
|
+
|
|
288
|
+
_reinstall_shell_plugins_wrapper
|
|
289
|
+
log_success "ZSH plugins reinstalled"
|
|
290
|
+
echo
|
|
291
|
+
|
|
292
|
+
setup_zsh_aliases
|
|
293
|
+
echo
|
|
294
|
+
|
|
295
|
+
setup_shell_env
|
|
296
|
+
echo
|
|
297
|
+
|
|
298
|
+
setupPersistentSession
|
|
299
|
+
echo
|
|
300
|
+
|
|
301
|
+
separator
|
|
302
|
+
log_success "ZSH shell environment reinstallation completed"
|
|
303
|
+
separator
|
|
304
|
+
echo
|
|
305
|
+
log_warn "Please restart Termux or run: exec zsh"
|
|
306
|
+
echo
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
_reinstall_shell_plugins_wrapper() {
|
|
310
|
+
import "@/tools/shell/all"
|
|
311
|
+
reinstall_all_shell_plugins
|
|
312
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
TERMUX_DIR="$HOME/.termux"
|
|
7
|
+
TERMUX_ASSETS_DIR="$(dirname "$OMNI_PATH")/assets"
|
|
8
|
+
LOG_FILE="$OMNI_CACHE/install_ui.log"
|
|
9
|
+
|
|
10
|
+
setup_ui() {
|
|
11
|
+
separator
|
|
12
|
+
box "Configuring Termux UI"
|
|
13
|
+
separator
|
|
14
|
+
echo
|
|
15
|
+
|
|
16
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
17
|
+
|
|
18
|
+
if [[ ! -d "$TERMUX_DIR" ]]; then
|
|
19
|
+
mkdir -p "$TERMUX_DIR"
|
|
20
|
+
log_info "Created Termux directory: $TERMUX_DIR"
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
_setup_ui_wrapper
|
|
24
|
+
separator
|
|
25
|
+
log_success "Termux UI configuration completed"
|
|
26
|
+
separator
|
|
27
|
+
echo
|
|
28
|
+
list_item "Cursor: Green (#00FF00)"
|
|
29
|
+
list_item "Extra-keys: Custom layout with navigation"
|
|
30
|
+
list_item "Font: Meslo Nerd Font"
|
|
31
|
+
list_item "Banner: Omni startup banner"
|
|
32
|
+
echo
|
|
33
|
+
log_warn "Please restart Termux to apply all changes"
|
|
34
|
+
echo
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_setup_ui_wrapper() {
|
|
38
|
+
import "@/tools/ui/all"
|
|
39
|
+
install_all_ui_components
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
uninstall_ui() {
|
|
43
|
+
if [[ ! -d "$TERMUX_DIR" ]]; then
|
|
44
|
+
log_info "Termux UI Configuration is not installed"
|
|
45
|
+
return 0
|
|
46
|
+
fi
|
|
47
|
+
separator
|
|
48
|
+
box "Uninstalling Termux UI Configuration"
|
|
49
|
+
separator
|
|
50
|
+
echo
|
|
51
|
+
|
|
52
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
53
|
+
|
|
54
|
+
_uninstall_ui_wrapper
|
|
55
|
+
echo
|
|
56
|
+
separator
|
|
57
|
+
log_success "Termux UI configuration uninstalled"
|
|
58
|
+
separator
|
|
59
|
+
echo
|
|
60
|
+
log_warn "Please restart Termux to apply changes"
|
|
61
|
+
echo
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
_uninstall_ui_wrapper() {
|
|
65
|
+
import "@/tools/ui/all"
|
|
66
|
+
uninstall_all_ui_components
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
update_ui() {
|
|
70
|
+
separator
|
|
71
|
+
box "Updating Termux UI Configuration"
|
|
72
|
+
separator
|
|
73
|
+
echo
|
|
74
|
+
|
|
75
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
76
|
+
|
|
77
|
+
_update_ui_wrapper
|
|
78
|
+
echo
|
|
79
|
+
separator
|
|
80
|
+
log_success "Termux UI configuration updated"
|
|
81
|
+
separator
|
|
82
|
+
echo
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
_update_ui_wrapper() {
|
|
86
|
+
import "@/tools/ui/all"
|
|
87
|
+
update_all_ui_components
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
reinstall_ui() {
|
|
91
|
+
separator
|
|
92
|
+
box "Reinstalling Termux UI Configuration"
|
|
93
|
+
separator
|
|
94
|
+
echo
|
|
95
|
+
|
|
96
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
97
|
+
|
|
98
|
+
_reinstall_ui_wrapper
|
|
99
|
+
separator
|
|
100
|
+
log_success "Termux UI configuration reinstalled"
|
|
101
|
+
separator
|
|
102
|
+
echo
|
|
103
|
+
list_item "Cursor: Green (#00FF00)"
|
|
104
|
+
list_item "Extra-keys: Custom layout with navigation"
|
|
105
|
+
list_item "Font: Meslo Nerd Font"
|
|
106
|
+
list_item "Banner: Omni startup banner"
|
|
107
|
+
echo
|
|
108
|
+
log_warn "Please restart Termux to apply all changes"
|
|
109
|
+
echo
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
_reinstall_ui_wrapper() {
|
|
113
|
+
import "@/tools/ui/all"
|
|
114
|
+
reinstall_all_ui_components
|
|
115
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_ai.log"
|
|
6
|
+
|
|
7
|
+
AI_TOOLS=(
|
|
8
|
+
"qwen-code" "gemini-cli" "claude-code" "mistral-vibe"
|
|
9
|
+
"openclaude" "openclaw" "ollama" "codex"
|
|
10
|
+
"opencode" "mimocode" "engram" "codegraph"
|
|
11
|
+
"pi" "antigravity-cli" "gentle-ai" "minimax-cli"
|
|
12
|
+
"gga" "hermes-agent" "kimi-code" "command-code"
|
|
13
|
+
"freebuff" "kilocode-cli" "kiro-cli" "heygen" "seedance"
|
|
14
|
+
"veo3" "odysseus" "kimchi-code"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
for _tool in "${AI_TOOLS[@]}"; do
|
|
18
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
19
|
+
done
|
|
20
|
+
unset _tool
|
|
21
|
+
|
|
22
|
+
_batch_ai() {
|
|
23
|
+
local action="$1"
|
|
24
|
+
local action_past="$2"
|
|
25
|
+
local count_var="$3"
|
|
26
|
+
local count=0
|
|
27
|
+
local failed=0
|
|
28
|
+
local total=${#AI_TOOLS[@]}
|
|
29
|
+
local current=0
|
|
30
|
+
local func_name
|
|
31
|
+
|
|
32
|
+
progress_start "$total" "${action_past}ing AI tools..."
|
|
33
|
+
|
|
34
|
+
for tool in "${AI_TOOLS[@]}"; do
|
|
35
|
+
func_name="${action}_${tool//-/_}"
|
|
36
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
37
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
38
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
39
|
+
fi
|
|
40
|
+
((current++))
|
|
41
|
+
progress_update "$current" "$total"
|
|
42
|
+
done
|
|
43
|
+
|
|
44
|
+
progress_done "$total"
|
|
45
|
+
eval "$count_var=$count"
|
|
46
|
+
return $failed
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
install_all_ai_tools() {
|
|
50
|
+
_batch_ai "install" "install" "installed_count"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
uninstall_all_ai_tools() {
|
|
54
|
+
_batch_ai "uninstall" "uninstall" "uninstalled_count"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
update_all_ai_tools() {
|
|
58
|
+
_batch_ai "update" "update" "updated_count"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
reinstall_all_ai_tools() {
|
|
62
|
+
_batch_ai "reinstall" "reinstall" "reinstalled_count"
|
|
63
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Antigravity CLI
|
|
2
|
+
|
|
3
|
+
Lightweight, terminal-first surface for Antigravity agents
|
|
4
|
+
|
|
5
|
+
**Package:** antigravity-cli
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://antigravity.google
|
|
9
|
+
**Type:** AI workflow assistant (Binary + glibc bootstrapper)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Antigravity CLI is the lightweight, fast, terminal-first surface to work with Antigravity agents. It uses VA39 memory patches for Android ARM64 compatibility and runs via a glibc bootstrapper for native performance.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- glibc-repo, glibc, clang, python, jq, curl, tar
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install ai --antigravity-cli
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall ai --antigravity-cli
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update ai --antigravity-cli
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Binary downloaded from official Antigravity manifest
|
|
41
|
+
- VA39 memory patches applied automatically for Android ARM64 compatibility
|
|
42
|
+
- C bootstrapper compiles via clang for ELF loading
|
|
43
|
+
- Data directory: `~/.local/share/omni-data/antigravity-cli/`
|
|
44
|
+
- Command: `agy`
|
|
45
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/data/data/com.termux/files/usr/bin/bash
|
|
2
|
+
|
|
3
|
+
UBUNTU_ROOTFS="__UBUNTU_ROOTFS__"
|
|
4
|
+
|
|
5
|
+
EXCLUDE_REGEX="^(PATH|LD_PRELOAD|LD_LIBRARY_PATH|PREFIX|HOME|PWD|OLDPWD|SHELL|IFS|_|SHLVL|PROMPT_COMMAND|TERMCAP|LS_COLORS|TERM)="
|
|
6
|
+
|
|
7
|
+
ENV_ARGS=()
|
|
8
|
+
while IFS= read -r line; do
|
|
9
|
+
if [[ -n "$line" && ! "$line" =~ $EXCLUDE_REGEX ]]; then
|
|
10
|
+
ENV_ARGS+=("--env" "$line")
|
|
11
|
+
fi
|
|
12
|
+
done < <(env)
|
|
13
|
+
|
|
14
|
+
ENV_ARGS+=(
|
|
15
|
+
"--env" "SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
|
|
16
|
+
"--env" "TERM=$TERM"
|
|
17
|
+
"--env" "HOME=/root"
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
unset LD_PRELOAD
|
|
21
|
+
proot-distro login \
|
|
22
|
+
"${ENV_ARGS[@]}" \
|
|
23
|
+
--termux-home \
|
|
24
|
+
--shared-tmp \
|
|
25
|
+
--bind "$UBUNTU_ROOTFS/root/.local:/root/.local" \
|
|
26
|
+
--work-dir "$PWD" \
|
|
27
|
+
ubuntu \
|
|
28
|
+
-- /root/.local/bin/agy.va39 "$@"
|