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,170 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
import "@/utils/colors"
|
|
5
|
+
|
|
6
|
+
voice_help() {
|
|
7
|
+
echo
|
|
8
|
+
box "CORE VOICE — Speech-to-Agent"
|
|
9
|
+
echo
|
|
10
|
+
log_info "Capture voice from the microphone, review it in nvim, copy to clipboard, and launch an AI agent."
|
|
11
|
+
echo
|
|
12
|
+
log_info "Usage: omni voice [agent]"
|
|
13
|
+
echo
|
|
14
|
+
separator_section "Agents"
|
|
15
|
+
echo
|
|
16
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "kilo" "kilo --prompt \"prompt\""
|
|
17
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "opencode" "opencode run \"prompt\""
|
|
18
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "claude-code" "claude -p \"prompt\""
|
|
19
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "codex" "codex \"prompt\""
|
|
20
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "gemini-cli" "gemini -p \"prompt\""
|
|
21
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "hermes-agent" "hermes chat -q \"prompt\""
|
|
22
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "kimi-code" "kimi -p \"prompt\""
|
|
23
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "mimocode" "mimo run \"prompt\""
|
|
24
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "mistral-vibe" "vibe --prompt \"prompt\""
|
|
25
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "openclaude" "openclaude --bg \"prompt\""
|
|
26
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "pi" "pi -p \"prompt\""
|
|
27
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "qwen-code" "qwen -p \"prompt\""
|
|
28
|
+
printf " ${D_CYAN}%-16s${NC} %s\n" "text" "Print prompt to stdout"
|
|
29
|
+
echo
|
|
30
|
+
separator_section "Examples"
|
|
31
|
+
echo
|
|
32
|
+
printf " ${D_CYAN}omni voice${NC} # Show this help\n"
|
|
33
|
+
printf " ${D_CYAN}omni voice opencode${NC} # Capture → nvim → opencode\n"
|
|
34
|
+
printf " ${D_CYAN}omni voice claude-code${NC} # Capture → nvim → claude -p\n"
|
|
35
|
+
printf " ${D_CYAN}omni voice text${NC} # Capture → nvim → print to stdout\n"
|
|
36
|
+
printf " ${D_CYAN}omni voice !${NC} # Alias for 'text'\n"
|
|
37
|
+
echo
|
|
38
|
+
separator_section "Requirements"
|
|
39
|
+
echo
|
|
40
|
+
list_item "Termux:API package: ${D_CYAN}pkg install termux-api${NC}"
|
|
41
|
+
list_item "Neovim for editing: ${D_CYAN}omni install editor${NC}"
|
|
42
|
+
list_item "Termux:API app: ${D_CYAN}https://omni-site-eight.vercel.app/termux/api${NC}"
|
|
43
|
+
echo
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
voice_main() {
|
|
47
|
+
local agent="$1"
|
|
48
|
+
|
|
49
|
+
if [[ -z "$agent" ]] || [[ "$agent" == "--help" ]] || [[ "$agent" == "-h" ]]; then
|
|
50
|
+
voice_help
|
|
51
|
+
return
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# ── dependency checks ──
|
|
55
|
+
if ! command -v termux-dialog &>/dev/null; then
|
|
56
|
+
log_error "Termux:API is not installed"
|
|
57
|
+
list_item "Install the package: ${D_CYAN}pkg install termux-api${NC}"
|
|
58
|
+
list_item "Install the app from: https://omni-site-eight.vercel.app/termux/api"
|
|
59
|
+
separator
|
|
60
|
+
exit 1
|
|
61
|
+
fi
|
|
62
|
+
|
|
63
|
+
if ! command -v nvim &>/dev/null; then
|
|
64
|
+
log_error "Neovim (nvim) is not installed"
|
|
65
|
+
list_item "Install the editor: ${D_CYAN}omni install editor${NC}"
|
|
66
|
+
separator
|
|
67
|
+
exit 1
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
# ── start Termux API activity ──
|
|
71
|
+
termux-api-start &>/dev/null
|
|
72
|
+
|
|
73
|
+
local is_text=false
|
|
74
|
+
[[ "$agent" == "text" || "$agent" == "!" ]] && is_text=true
|
|
75
|
+
|
|
76
|
+
# ── capture voice ──
|
|
77
|
+
$is_text || log_info "Listening through the microphone..."
|
|
78
|
+
local raw
|
|
79
|
+
raw="$(termux-dialog speech 2>/dev/null | grep -i "text" | cut -d '"' -f 4)"
|
|
80
|
+
|
|
81
|
+
if [[ -z "$raw" ]]; then
|
|
82
|
+
log_error "No speech detected or dialog cancelled"
|
|
83
|
+
separator
|
|
84
|
+
exit 1
|
|
85
|
+
fi
|
|
86
|
+
|
|
87
|
+
# ── edit prompt in nvim (skip if no TTY) ──
|
|
88
|
+
local tmpfile prompt
|
|
89
|
+
tmpfile="$(mktemp)"
|
|
90
|
+
echo "$raw" >"$tmpfile"
|
|
91
|
+
|
|
92
|
+
if [[ -t 0 ]] && [[ -t 1 ]]; then
|
|
93
|
+
$is_text || log_info "Review the prompt in nvim, fix mistakes, then save and quit"
|
|
94
|
+
nvim "$tmpfile" </dev/tty >/dev/tty || true
|
|
95
|
+
else
|
|
96
|
+
$is_text || log_warn "No TTY available, skipping editor — using raw capture"
|
|
97
|
+
fi
|
|
98
|
+
|
|
99
|
+
prompt="$(cat "$tmpfile" | xargs)"
|
|
100
|
+
rm -f "$tmpfile"
|
|
101
|
+
|
|
102
|
+
if [[ -z "$prompt" ]]; then
|
|
103
|
+
log_error "Prompt is empty after editing"
|
|
104
|
+
separator
|
|
105
|
+
exit 1
|
|
106
|
+
fi
|
|
107
|
+
|
|
108
|
+
# ── copy to clipboard ──
|
|
109
|
+
if command -v termux-clipboard-set &>/dev/null; then
|
|
110
|
+
echo "$prompt" | termux-clipboard-set
|
|
111
|
+
if [[ "$agent" != "text" && "$agent" != "!" ]]; then
|
|
112
|
+
log_info "Prompt copied to clipboard"
|
|
113
|
+
fi
|
|
114
|
+
fi
|
|
115
|
+
|
|
116
|
+
# ── "text" or "!" → just print ──
|
|
117
|
+
if [[ "$agent" == "text" ]] || [[ "$agent" == "!" ]]; then
|
|
118
|
+
echo "$prompt"
|
|
119
|
+
return
|
|
120
|
+
fi
|
|
121
|
+
|
|
122
|
+
# ── dispatch to agent ──
|
|
123
|
+
log_info "Launching ${D_CYAN}$agent${NC} with prompt…"
|
|
124
|
+
echo
|
|
125
|
+
|
|
126
|
+
case "$agent" in
|
|
127
|
+
opencode)
|
|
128
|
+
opencode run "$prompt"
|
|
129
|
+
;;
|
|
130
|
+
claude-code)
|
|
131
|
+
claude -p "$prompt"
|
|
132
|
+
;;
|
|
133
|
+
codex)
|
|
134
|
+
codex "$prompt"
|
|
135
|
+
;;
|
|
136
|
+
gemini-cli)
|
|
137
|
+
gemini -p "$prompt"
|
|
138
|
+
;;
|
|
139
|
+
hermes-agent)
|
|
140
|
+
hermes chat -q "$prompt"
|
|
141
|
+
;;
|
|
142
|
+
kimi-code)
|
|
143
|
+
kimi -p "$prompt"
|
|
144
|
+
;;
|
|
145
|
+
mimocode)
|
|
146
|
+
mimo run "$prompt"
|
|
147
|
+
;;
|
|
148
|
+
mistral-vibe)
|
|
149
|
+
vibe --prompt "$prompt"
|
|
150
|
+
;;
|
|
151
|
+
openclaude)
|
|
152
|
+
openclaude --bg "$prompt"
|
|
153
|
+
;;
|
|
154
|
+
pi)
|
|
155
|
+
pi -p "$prompt"
|
|
156
|
+
;;
|
|
157
|
+
qwen-code)
|
|
158
|
+
qwen -p "$prompt"
|
|
159
|
+
;;
|
|
160
|
+
*)
|
|
161
|
+
log_error "Unknown agent: $agent"
|
|
162
|
+
echo
|
|
163
|
+
log_info "Supported agents:"
|
|
164
|
+
echo " opencode, claude-code, codex, gemini-cli, hermes-agent,"
|
|
165
|
+
echo " kimi-code, mimocode, mistral-vibe, openclaude, pi, qwen-code"
|
|
166
|
+
separator
|
|
167
|
+
exit 1
|
|
168
|
+
;;
|
|
169
|
+
esac
|
|
170
|
+
}
|
package/core/cli/core.sh
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Importar funciones de log y colores para el help
|
|
4
|
+
import "@/utils/log"
|
|
5
|
+
import "@/utils/colors"
|
|
6
|
+
|
|
7
|
+
omni_main() {
|
|
8
|
+
local cmd="$1"
|
|
9
|
+
shift || true
|
|
10
|
+
|
|
11
|
+
# si no se pasa comando
|
|
12
|
+
if [[ -z "$cmd" ]]; then
|
|
13
|
+
omni_help
|
|
14
|
+
return
|
|
15
|
+
fi
|
|
16
|
+
|
|
17
|
+
local command_file="$OMNI_PATH/cli/commands/$cmd.sh"
|
|
18
|
+
|
|
19
|
+
# verificar si existe el comando
|
|
20
|
+
if [[ -f "$command_file" ]]; then
|
|
21
|
+
import "@/cli/commands/$cmd"
|
|
22
|
+
"${cmd}_main" "$@"
|
|
23
|
+
else
|
|
24
|
+
log_error "Command not found: $cmd"
|
|
25
|
+
echo
|
|
26
|
+
omni_help
|
|
27
|
+
exit 1
|
|
28
|
+
fi
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
omni_help() {
|
|
32
|
+
echo
|
|
33
|
+
box "◈ OMNI v${OMNI_VERSION} ◈"
|
|
34
|
+
echo
|
|
35
|
+
log_info "Usage: omni <command> [options]"
|
|
36
|
+
echo
|
|
37
|
+
separator_section "Available Commands"
|
|
38
|
+
echo
|
|
39
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "--version" "Show current version"
|
|
40
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "brain" "Second brain — save and search memories"
|
|
41
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "env" "Manage environment variables"
|
|
42
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "install" "Install modules and packages"
|
|
43
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "show" "Show tool documentation"
|
|
44
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "update" "Update modules or framework"
|
|
45
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "uninstall" "Remove installed modules"
|
|
46
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "reinstall" "Uninstall + install modules"
|
|
47
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "open" "Open documentation in browser"
|
|
48
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "list" "List available tools in modules"
|
|
49
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "pg" "PostgreSQL database manager"
|
|
50
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "doctor" "Diagnose and fix environment"
|
|
51
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "init" "Configure existing projects"
|
|
52
|
+
printf " ${D_CYAN}%-12s${NC} %s\n" "voice" "Speech-to-agent via microphone"
|
|
53
|
+
echo
|
|
54
|
+
separator_section "Quick Start"
|
|
55
|
+
echo
|
|
56
|
+
list_item "Run: ${D_CYAN}omni${NC} to see available commands"
|
|
57
|
+
list_item "Run: ${D_CYAN}omni open${NC} for official documentation"
|
|
58
|
+
list_item "Run: ${D_CYAN}omni install <module>${NC} to install modules"
|
|
59
|
+
echo
|
|
60
|
+
separator_section "Module Targets"
|
|
61
|
+
echo
|
|
62
|
+
log_info "Install, update, reinstall, uninstall, list, show or open:"
|
|
63
|
+
echo
|
|
64
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "lang" "Node, Python, Perl, PHP, Rust, C/C++, Go"
|
|
65
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "db" "PostgreSQL, MariaDB, SQLite, MongoDB"
|
|
66
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "ai" "OpenCode, Gentle AI, Claude Code, etc."
|
|
67
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "editor" "Neovim + NvChad + Plugins"
|
|
68
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "dev" "GitHub CLI, wget, curl, fzf, etc."
|
|
69
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "npm" "Node.js global npm packages"
|
|
70
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "shell" "ZSH + Oh My Zsh + 10 plugins"
|
|
71
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "ui" "Font, Cursor, Extra-keys, Banner"
|
|
72
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "auto" "Automation Tools (n8n)"
|
|
73
|
+
printf " ${D_GREEN}%-10s${NC} %s\n" "deploy" "Vercel, Railway, Netlify CLIs"
|
|
74
|
+
|
|
75
|
+
echo
|
|
76
|
+
separator_section "Help"
|
|
77
|
+
echo
|
|
78
|
+
list_item "Run ${D_CYAN}omni <command>${NC} for command-specific help"
|
|
79
|
+
list_item "Example: ${D_CYAN}omni pg${NC}, ${D_CYAN}omni init${NC}"
|
|
80
|
+
list_item "Docs: ${D_CYAN}omni open${NC} — israel marques 🇧🇷 (12y)"
|
|
81
|
+
echo
|
|
82
|
+
}
|