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,134 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_ai.log"
|
|
6
|
+
|
|
7
|
+
_seedance_dependencies() {
|
|
8
|
+
loading "Installing dependencies" _seedance_dependencies_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_seedance_dependencies_impl() {
|
|
12
|
+
declare -A DEPS=(
|
|
13
|
+
["python"]="python3"
|
|
14
|
+
["pip"]="pip"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
local pkg_name bin_name
|
|
18
|
+
for pkg_name in "${!DEPS[@]}"; do
|
|
19
|
+
bin_name="${DEPS[$pkg_name]}"
|
|
20
|
+
if ! command -v "$bin_name" &>/dev/null; then
|
|
21
|
+
if ! pkg install "$pkg_name" -y &>>"$LOG_FILE"; then
|
|
22
|
+
log_error "Failed to install $pkg_name"
|
|
23
|
+
return 1
|
|
24
|
+
fi
|
|
25
|
+
fi
|
|
26
|
+
done
|
|
27
|
+
|
|
28
|
+
return 0
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
_install_seedance_pip() {
|
|
32
|
+
loading "Installing Seedance CLI" _install_seedance_pip_impl
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
_install_seedance_pip_impl() {
|
|
36
|
+
local pip_cmd
|
|
37
|
+
if command -v pip &>/dev/null; then
|
|
38
|
+
pip_cmd="pip"
|
|
39
|
+
else
|
|
40
|
+
pip_cmd="python3 -m pip"
|
|
41
|
+
fi
|
|
42
|
+
if ! $pip_cmd install seedance-cli &>>"$LOG_FILE"; then
|
|
43
|
+
log_warn "Failed to install seedance-cli via pip"
|
|
44
|
+
log_warn "Try: pip install seedance-cli (manual)"
|
|
45
|
+
return 1
|
|
46
|
+
fi
|
|
47
|
+
return 0
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
install_seedance() {
|
|
51
|
+
local pip_cmd
|
|
52
|
+
if command -v pip &>/dev/null; then
|
|
53
|
+
pip_cmd="pip"
|
|
54
|
+
else
|
|
55
|
+
pip_cmd="python3 -m pip"
|
|
56
|
+
fi
|
|
57
|
+
if $pip_cmd show seedance-cli &>/dev/null; then
|
|
58
|
+
log_info "Seedance CLI is already installed"
|
|
59
|
+
return 2
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
log_info "Installing Seedance CLI..."
|
|
63
|
+
|
|
64
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
65
|
+
|
|
66
|
+
_seedance_dependencies || return 1
|
|
67
|
+
_install_seedance_pip || return 1
|
|
68
|
+
|
|
69
|
+
log_success "Seedance CLI installed successfully"
|
|
70
|
+
return 0
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
_seedance_pip_cmd() {
|
|
74
|
+
if command -v pip &>/dev/null; then
|
|
75
|
+
echo "pip"
|
|
76
|
+
else
|
|
77
|
+
echo "python3 -m pip"
|
|
78
|
+
fi
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
uninstall_seedance() {
|
|
82
|
+
local pip_cmd; pip_cmd="$(_seedance_pip_cmd)"
|
|
83
|
+
if ! $pip_cmd show seedance-cli &>/dev/null; then
|
|
84
|
+
log_info "Seedance CLI is not installed"
|
|
85
|
+
return 2
|
|
86
|
+
fi
|
|
87
|
+
|
|
88
|
+
log_info "Uninstalling Seedance CLI..."
|
|
89
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
90
|
+
|
|
91
|
+
loading "Removing Seedance CLI" _uninstall_seedance_impl
|
|
92
|
+
|
|
93
|
+
log_success "Seedance CLI uninstalled"
|
|
94
|
+
return 0
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
_uninstall_seedance_impl() {
|
|
98
|
+
local pip_cmd; pip_cmd="$(_seedance_pip_cmd)"
|
|
99
|
+
if ! $pip_cmd uninstall seedance-cli -y &>>"$LOG_FILE"; then
|
|
100
|
+
log_error "Failed to uninstall Seedance CLI"
|
|
101
|
+
return 1
|
|
102
|
+
fi
|
|
103
|
+
return 0
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
update_seedance() {
|
|
107
|
+
local pip_cmd; pip_cmd="$(_seedance_pip_cmd)"
|
|
108
|
+
if ! $pip_cmd show seedance-cli &>/dev/null; then
|
|
109
|
+
log_error "Seedance CLI is not installed"
|
|
110
|
+
return 1
|
|
111
|
+
fi
|
|
112
|
+
|
|
113
|
+
log_info "Updating Seedance CLI..."
|
|
114
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
115
|
+
|
|
116
|
+
loading "Updating Seedance CLI" _update_seedance_impl
|
|
117
|
+
|
|
118
|
+
log_success "Seedance CLI updated"
|
|
119
|
+
return 0
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
_update_seedance_impl() {
|
|
123
|
+
local pip_cmd; pip_cmd="$(_seedance_pip_cmd)"
|
|
124
|
+
if ! $pip_cmd install --upgrade seedance-cli &>>"$LOG_FILE"; then
|
|
125
|
+
log_error "Failed to update Seedance CLI"
|
|
126
|
+
return 1
|
|
127
|
+
fi
|
|
128
|
+
return 0
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
reinstall_seedance() {
|
|
132
|
+
uninstall_seedance
|
|
133
|
+
install_seedance
|
|
134
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Veo 3 SDK
|
|
2
|
+
|
|
3
|
+
Google's most advanced video generation model. Python SDK for the Gemini API / Vertex AI.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
omni install ai --veo3
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from google import genai
|
|
15
|
+
client = genai.Client()
|
|
16
|
+
response = client.models.generate_videos(
|
|
17
|
+
model="veo-3.1",
|
|
18
|
+
prompt="A golden retriever running on a beach"
|
|
19
|
+
)
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Command (CLI):** `veo3` (SDK wrapper)
|
|
23
|
+
|
|
24
|
+
**Links:**
|
|
25
|
+
- Google AI Studio: https://aistudio.google.com
|
|
26
|
+
- Vertex AI: https://console.cloud.google.com/vertex-ai
|
|
27
|
+
- SDK: `pip install google-genai`
|
|
28
|
+
|
|
29
|
+
## Authentication
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
gcloud auth application-default login
|
|
33
|
+
# or set GOOGLE_API_KEY environment variable
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** Veo 3 requires a Google Cloud project with billing enabled and the Vertex AI API enabled.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_ai.log"
|
|
6
|
+
|
|
7
|
+
_veo3_dependencies() {
|
|
8
|
+
loading "Installing dependencies" _veo3_dependencies_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_veo3_dependencies_impl() {
|
|
12
|
+
if ! command -v python3 &>/dev/null; then
|
|
13
|
+
if ! pkg install python -y &>>"$LOG_FILE"; then
|
|
14
|
+
log_error "Failed to install python"
|
|
15
|
+
return 1
|
|
16
|
+
fi
|
|
17
|
+
fi
|
|
18
|
+
|
|
19
|
+
if ! command -v pip &>/dev/null && ! python3 -m pip --version &>/dev/null; then
|
|
20
|
+
python3 -m ensurepip --upgrade &>>"$LOG_FILE" 2>/dev/null || true
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
local build_deps=(binutils clang make)
|
|
24
|
+
local need_install=()
|
|
25
|
+
for dep in "${build_deps[@]}"; do
|
|
26
|
+
if ! dpkg -s "$dep" &>/dev/null 2>&1; then
|
|
27
|
+
need_install+=("$dep")
|
|
28
|
+
fi
|
|
29
|
+
done
|
|
30
|
+
if [[ ${#need_install[@]} -gt 0 ]]; then
|
|
31
|
+
loading "Installing build dependencies (${need_install[*]})" _install_veo3_build_deps
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
return 0
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_install_veo3_build_deps() {
|
|
38
|
+
if ! pkg install "${need_install[@]}" -y &>>"$LOG_FILE"; then
|
|
39
|
+
log_warn "Failed to install some build dependencies"
|
|
40
|
+
return 0
|
|
41
|
+
fi
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
_install_veo3_python() {
|
|
45
|
+
loading "Installing Veo 3 SDK" _install_veo3_python_impl
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
_install_veo3_python_impl() {
|
|
49
|
+
local pip_cmd
|
|
50
|
+
if command -v pip &>/dev/null; then
|
|
51
|
+
pip_cmd="pip"
|
|
52
|
+
else
|
|
53
|
+
pip_cmd="python3 -m pip"
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
if ! $pip_cmd install google-genai --only-binary :all: &>>"$LOG_FILE"; then
|
|
57
|
+
log_warn "google-genai pip install failed - package may not exist for this platform"
|
|
58
|
+
log_warn "Veo 3 SDK requires: pip install google-genai (manual)"
|
|
59
|
+
log_warn "If build deps are missing, try: pkg install binutils clang make && pip install google-genai"
|
|
60
|
+
return 0
|
|
61
|
+
fi
|
|
62
|
+
return 0
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
install_veo3() {
|
|
66
|
+
local pip_cmd
|
|
67
|
+
if command -v pip &>/dev/null; then
|
|
68
|
+
pip_cmd="pip"
|
|
69
|
+
else
|
|
70
|
+
pip_cmd="python3 -m pip"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
if $pip_cmd show google-genai &>/dev/null 2>&1; then
|
|
74
|
+
log_info "Veo 3 SDK is already installed"
|
|
75
|
+
return 2
|
|
76
|
+
fi
|
|
77
|
+
|
|
78
|
+
log_info "Installing Veo 3 SDK..."
|
|
79
|
+
|
|
80
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
81
|
+
|
|
82
|
+
_veo3_dependencies || return 1
|
|
83
|
+
_install_veo3_python || return 1
|
|
84
|
+
|
|
85
|
+
log_success "Veo 3 SDK installed successfully"
|
|
86
|
+
log_info "Authenticate with: gcloud auth application-default login"
|
|
87
|
+
return 0
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
_veo3_pip_cmd() {
|
|
91
|
+
if command -v pip &>/dev/null; then
|
|
92
|
+
echo "pip"
|
|
93
|
+
else
|
|
94
|
+
echo "python3 -m pip"
|
|
95
|
+
fi
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
uninstall_veo3() {
|
|
99
|
+
local pip_cmd; pip_cmd="$(_veo3_pip_cmd)"
|
|
100
|
+
if ! $pip_cmd show google-genai &>/dev/null 2>&1; then
|
|
101
|
+
log_info "Veo 3 SDK is not installed"
|
|
102
|
+
return 2
|
|
103
|
+
fi
|
|
104
|
+
|
|
105
|
+
log_info "Uninstalling Veo 3 SDK..."
|
|
106
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
107
|
+
|
|
108
|
+
loading "Removing Veo 3 SDK" _uninstall_veo3_impl
|
|
109
|
+
|
|
110
|
+
log_success "Veo 3 SDK uninstalled"
|
|
111
|
+
return 0
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
_uninstall_veo3_impl() {
|
|
115
|
+
local pip_cmd; pip_cmd="$(_veo3_pip_cmd)"
|
|
116
|
+
if ! $pip_cmd uninstall google-genai -y &>>"$LOG_FILE"; then
|
|
117
|
+
log_error "Failed to uninstall Veo 3 SDK"
|
|
118
|
+
return 1
|
|
119
|
+
fi
|
|
120
|
+
return 0
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
update_veo3() {
|
|
124
|
+
local pip_cmd; pip_cmd="$(_veo3_pip_cmd)"
|
|
125
|
+
if ! $pip_cmd show google-genai &>/dev/null 2>&1; then
|
|
126
|
+
log_error "Veo 3 SDK is not installed"
|
|
127
|
+
return 1
|
|
128
|
+
fi
|
|
129
|
+
|
|
130
|
+
log_info "Updating Veo 3 SDK..."
|
|
131
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
132
|
+
|
|
133
|
+
loading "Updating Veo 3 SDK" _update_veo3_impl
|
|
134
|
+
|
|
135
|
+
log_success "Veo 3 SDK updated"
|
|
136
|
+
return 0
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
_update_veo3_impl() {
|
|
140
|
+
local pip_cmd; pip_cmd="$(_veo3_pip_cmd)"
|
|
141
|
+
if ! $pip_cmd install --upgrade google-genai &>>"$LOG_FILE"; then
|
|
142
|
+
log_warn "Failed to update google-genai"
|
|
143
|
+
return 0
|
|
144
|
+
fi
|
|
145
|
+
return 0
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
reinstall_veo3() {
|
|
149
|
+
uninstall_veo3
|
|
150
|
+
install_veo3
|
|
151
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_auto.log"
|
|
6
|
+
|
|
7
|
+
AUTOMATION_TOOLS=(
|
|
8
|
+
"n8n"
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
for _tool in "${AUTOMATION_TOOLS[@]}"; do
|
|
12
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
13
|
+
done
|
|
14
|
+
unset _tool
|
|
15
|
+
|
|
16
|
+
_batch_auto() {
|
|
17
|
+
local action="$1"
|
|
18
|
+
local action_past="$2"
|
|
19
|
+
local count_var="$3"
|
|
20
|
+
local count=0
|
|
21
|
+
local failed=0
|
|
22
|
+
local total=${#AUTOMATION_TOOLS[@]}
|
|
23
|
+
local current=0
|
|
24
|
+
local func_name
|
|
25
|
+
|
|
26
|
+
progress_start "$total" "${action_past}ing automation tools..."
|
|
27
|
+
|
|
28
|
+
for tool in "${AUTOMATION_TOOLS[@]}"; do
|
|
29
|
+
func_name="${action}_${tool//-/_}"
|
|
30
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
31
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
32
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
33
|
+
fi
|
|
34
|
+
((current++))
|
|
35
|
+
progress_update "$current" "$total"
|
|
36
|
+
done
|
|
37
|
+
|
|
38
|
+
progress_done "$total"
|
|
39
|
+
eval "$count_var=$count"
|
|
40
|
+
return $failed
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
install_all_auto_tools() {
|
|
44
|
+
_batch_auto "install" "install" "installed_count"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
uninstall_all_auto_tools() {
|
|
48
|
+
_batch_auto "uninstall" "uninstall" "uninstalled_count"
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
update_all_auto_tools() {
|
|
52
|
+
_batch_auto "update" "update" "updated_count"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
reinstall_all_auto_tools() {
|
|
56
|
+
_batch_auto "reinstall" "reinstall" "reinstalled_count"
|
|
57
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# n8n
|
|
2
|
+
|
|
3
|
+
Workflow automation tool for connecting services
|
|
4
|
+
|
|
5
|
+
**Package:** n8n
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://n8n.io
|
|
9
|
+
**Type:** Automation tool (npm global package)
|
|
10
|
+
**License:** Sustainable Use License (fair-code)
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
n8n is a powerful workflow automation tool that connects various services and APIs through a visual editor. It supports 400+ integrations including HTTP requests, databases, AI services, and more, allowing you to create complex automations without code.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Node.js LTS (nodejs-lts)
|
|
19
|
+
- npm
|
|
20
|
+
- python, sqlite, build-essential, binutils, make, clang
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
core install auto --n8n
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Uninstall
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
core uninstall auto --n8n
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Update
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
core update auto --n8n
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Notes
|
|
41
|
+
|
|
42
|
+
- Installed as a global npm package: `n8n`
|
|
43
|
+
- Command: `n8n`
|
|
44
|
+
- Web UI at http://localhost:5678
|
|
45
|
+
- 400+ integrations available
|
|
46
|
+
- Supports custom JavaScript code nodes
|
|
47
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_auto.log"
|
|
6
|
+
|
|
7
|
+
_n8n_dependencies() {
|
|
8
|
+
declare -A DEPS=(
|
|
9
|
+
["nodejs-lts"]="node"
|
|
10
|
+
["python"]="python"
|
|
11
|
+
["sqlite"]="sqlite"
|
|
12
|
+
["build-essential"]=""
|
|
13
|
+
["binutils"]=""
|
|
14
|
+
["make"]="make"
|
|
15
|
+
["clang"]="clang"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
local pkg_name bin_name
|
|
19
|
+
for pkg_name in "${!DEPS[@]}"; do
|
|
20
|
+
bin_name="${DEPS[$pkg_name]}"
|
|
21
|
+
if [[ -n "$bin_name" ]] && command -v "$bin_name" &>/dev/null; then
|
|
22
|
+
continue
|
|
23
|
+
fi
|
|
24
|
+
if ! pkg install "$pkg_name" -y &>>"$LOG_FILE"; then
|
|
25
|
+
log_error "Failed to install $pkg_name"
|
|
26
|
+
return 1
|
|
27
|
+
fi
|
|
28
|
+
done
|
|
29
|
+
|
|
30
|
+
log_success "n8n dependencies installed"
|
|
31
|
+
return 0
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_install_n8n_impl() {
|
|
35
|
+
_n8n_dependencies
|
|
36
|
+
|
|
37
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
38
|
+
export GYP_DEFINES="android_ndk_path=''"
|
|
39
|
+
export ANDROID_API_LEVEL=24
|
|
40
|
+
|
|
41
|
+
if npm install -g n8n &>>"$LOG_FILE"; then
|
|
42
|
+
log_success "n8n installed"
|
|
43
|
+
return 0
|
|
44
|
+
else
|
|
45
|
+
log_error "Failed to install n8n"
|
|
46
|
+
return 1
|
|
47
|
+
fi
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
install_n8n() {
|
|
51
|
+
if command -v n8n &>/dev/null; then
|
|
52
|
+
log_info "n8n is already installed"
|
|
53
|
+
return 0
|
|
54
|
+
fi
|
|
55
|
+
log_info "Installing n8n..."
|
|
56
|
+
loading "Installing n8n" _install_n8n_impl
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
_uninstall_n8n_impl() {
|
|
60
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
61
|
+
|
|
62
|
+
if npm uninstall -g n8n &>>"$LOG_FILE"; then
|
|
63
|
+
log_success "n8n uninstalled"
|
|
64
|
+
return 0
|
|
65
|
+
else
|
|
66
|
+
log_error "Failed to uninstall n8n"
|
|
67
|
+
return 1
|
|
68
|
+
fi
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
uninstall_n8n() {
|
|
72
|
+
if ! command -v n8n &>/dev/null; then
|
|
73
|
+
log_info "n8n is not installed"
|
|
74
|
+
return 0
|
|
75
|
+
fi
|
|
76
|
+
log_info "Uninstalling n8n..."
|
|
77
|
+
loading "Uninstalling n8n" _uninstall_n8n_impl
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
_update_n8n_impl() {
|
|
81
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
82
|
+
export GYP_DEFINES="android_ndk_path=''"
|
|
83
|
+
export ANDROID_API_LEVEL=24
|
|
84
|
+
|
|
85
|
+
if npm update -g n8n &>>"$LOG_FILE"; then
|
|
86
|
+
log_success "n8n updated"
|
|
87
|
+
return 0
|
|
88
|
+
else
|
|
89
|
+
log_error "Failed to update n8n"
|
|
90
|
+
return 1
|
|
91
|
+
fi
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
update_n8n() {
|
|
95
|
+
log_info "Updating n8n..."
|
|
96
|
+
loading "Updating n8n" _update_n8n_impl
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
reinstall_n8n() {
|
|
100
|
+
uninstall_n8n
|
|
101
|
+
install_n8n
|
|
102
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_db.log"
|
|
6
|
+
|
|
7
|
+
DB_TOOLS=(
|
|
8
|
+
"postgresql"
|
|
9
|
+
"mariadb"
|
|
10
|
+
"sqlite"
|
|
11
|
+
"mongodb"
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
for _tool in "${DB_TOOLS[@]}"; do
|
|
15
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
16
|
+
done
|
|
17
|
+
unset _tool
|
|
18
|
+
|
|
19
|
+
_batch_db() {
|
|
20
|
+
local action="$1"
|
|
21
|
+
local action_past="$2"
|
|
22
|
+
local count_var="$3"
|
|
23
|
+
local count=0
|
|
24
|
+
local failed=0
|
|
25
|
+
local total=${#DB_TOOLS[@]}
|
|
26
|
+
local current=0
|
|
27
|
+
local func_name
|
|
28
|
+
|
|
29
|
+
progress_start "$total" "${action_past}ing DB tools..."
|
|
30
|
+
|
|
31
|
+
for tool in "${DB_TOOLS[@]}"; do
|
|
32
|
+
func_name="${action}_${tool//-/_}"
|
|
33
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
34
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
35
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
36
|
+
fi
|
|
37
|
+
((current++))
|
|
38
|
+
progress_update "$current" "$total"
|
|
39
|
+
done
|
|
40
|
+
|
|
41
|
+
progress_done "$total"
|
|
42
|
+
eval "$count_var=$count"
|
|
43
|
+
return $failed
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
install_all_db_tools() {
|
|
47
|
+
_batch_db "install" "install" "installed_count"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
uninstall_all_db_tools() {
|
|
51
|
+
_batch_db "uninstall" "uninstall" "uninstalled_count"
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
update_all_db_tools() {
|
|
55
|
+
_batch_db "update" "update" "updated_count"
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
reinstall_all_db_tools() {
|
|
59
|
+
_batch_db "reinstall" "reinstall" "reinstalled_count"
|
|
60
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# MariaDB
|
|
2
|
+
|
|
3
|
+
Community-developed fork of MySQL relational database
|
|
4
|
+
|
|
5
|
+
**Package:** mariadb
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://mariadb.org
|
|
9
|
+
**Type:** Database (pkg)
|
|
10
|
+
**License:** GPL-2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
MariaDB is a community-developed, commercially supported fork of the MySQL relational database management system. It offers enhanced performance, storage engines, and features compared to MySQL while maintaining full compatibility.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install db --mariadb
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall db --mariadb
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update db --mariadb
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Full MySQL compatible
|
|
41
|
+
- Command: `mysql`, `mariadb`
|
|
42
|
+
- Data directory: `$PREFIX/var/lib/mysql/`
|
|
43
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_db.log"
|
|
6
|
+
|
|
7
|
+
_install_mariadb_impl() {
|
|
8
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
9
|
+
if pkg install mariadb -y &>>"$LOG_FILE"; then
|
|
10
|
+
log_success "MariaDB installed"
|
|
11
|
+
return 0
|
|
12
|
+
else
|
|
13
|
+
return 1
|
|
14
|
+
fi
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
install_mariadb() {
|
|
18
|
+
if command -v mariadbd &>/dev/null; then
|
|
19
|
+
log_info "MariaDB is already installed"
|
|
20
|
+
return 2
|
|
21
|
+
fi
|
|
22
|
+
log_info "Installing MariaDB..."
|
|
23
|
+
loading "Installing MariaDB" _install_mariadb_impl
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_uninstall_mariadb_impl() {
|
|
27
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
28
|
+
if pkg uninstall mariadb -y &>>"$LOG_FILE"; then
|
|
29
|
+
log_success "MariaDB uninstalled"
|
|
30
|
+
return 0
|
|
31
|
+
else
|
|
32
|
+
log_error "Failed to uninstall MariaDB"
|
|
33
|
+
return 1
|
|
34
|
+
fi
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
uninstall_mariadb() {
|
|
38
|
+
if ! command -v mariadbd &>/dev/null; then
|
|
39
|
+
log_info "MariaDB is not installed"
|
|
40
|
+
return 2
|
|
41
|
+
fi
|
|
42
|
+
log_info "Uninstalling MariaDB..."
|
|
43
|
+
loading "Uninstalling MariaDB" _uninstall_mariadb_impl
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_update_mariadb_impl() {
|
|
47
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
48
|
+
if pkg upgrade mariadb -y &>>"$LOG_FILE"; then
|
|
49
|
+
log_success "MariaDB updated"
|
|
50
|
+
return 0
|
|
51
|
+
else
|
|
52
|
+
log_error "Failed to update MariaDB"
|
|
53
|
+
return 1
|
|
54
|
+
fi
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
update_mariadb() {
|
|
58
|
+
log_info "Updating MariaDB..."
|
|
59
|
+
loading "Updating MariaDB" _update_mariadb_impl
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
reinstall_mariadb() {
|
|
63
|
+
uninstall_mariadb
|
|
64
|
+
install_mariadb
|
|
65
|
+
}
|