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,43 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
|
|
3
|
+
Systems programming language with memory safety guarantees
|
|
4
|
+
|
|
5
|
+
**Package:** rust
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://www.rust-lang.org
|
|
9
|
+
**Type:** Language (pkg)
|
|
10
|
+
**License:** MIT / Apache 2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Rust is a multi-paradigm, high-level, general-purpose programming language designed for performance and safety, especially safe concurrency. It enforces memory safety without a garbage collector, making it ideal for systems programming.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Installed via pkg
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install lang --rust
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall lang --rust
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update lang --rust
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Commands: `rustc`, `cargo`, `rustup`
|
|
41
|
+
- Includes Cargo package manager
|
|
42
|
+
- rustup allows managing multiple toolchains
|
|
43
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_lang.log"
|
|
6
|
+
|
|
7
|
+
_install_rust_pkg() {
|
|
8
|
+
loading "Installing Rust" _install_rust_pkg_impl
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
_install_rust_pkg_impl() {
|
|
12
|
+
if ! pkg install rust -y &>>"$LOG_FILE"; then
|
|
13
|
+
log_error "Failed to install Rust"
|
|
14
|
+
return 1
|
|
15
|
+
fi
|
|
16
|
+
return 0
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
install_rust() {
|
|
20
|
+
if command -v rust &>/dev/null; then
|
|
21
|
+
log_info "Rust is already installed"
|
|
22
|
+
return 2
|
|
23
|
+
fi
|
|
24
|
+
log_info "Installing Rust..."
|
|
25
|
+
|
|
26
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
27
|
+
_install_rust_pkg || return 1
|
|
28
|
+
log_success "Rust installed"
|
|
29
|
+
return 0
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
_uninstall_rust_pkg() {
|
|
33
|
+
loading "Uninstalling Rust" _uninstall_rust_pkg_impl
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
_uninstall_rust_pkg_impl() {
|
|
37
|
+
if ! pkg uninstall rust -y &>>"$LOG_FILE"; then
|
|
38
|
+
log_error "Failed to uninstall Rust"
|
|
39
|
+
return 1
|
|
40
|
+
fi
|
|
41
|
+
return 0
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
uninstall_rust() {
|
|
45
|
+
if ! command -v rustc &>/dev/null; then
|
|
46
|
+
log_info "Rust is not installed"
|
|
47
|
+
return 2
|
|
48
|
+
fi
|
|
49
|
+
log_info "Uninstalling Rust..."
|
|
50
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
51
|
+
_uninstall_rust_pkg || return 1
|
|
52
|
+
log_success "Rust uninstalled"
|
|
53
|
+
return 0
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
_update_rust_pkg() {
|
|
57
|
+
loading "Updating Rust" _update_rust_pkg_impl
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
_update_rust_pkg_impl() {
|
|
61
|
+
if ! pkg upgrade rust -y &>>"$LOG_FILE"; then
|
|
62
|
+
log_error "Failed to update Rust"
|
|
63
|
+
return 1
|
|
64
|
+
fi
|
|
65
|
+
return 0
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
update_rust() {
|
|
69
|
+
log_info "Updating Rust..."
|
|
70
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
71
|
+
_update_rust_pkg || return 1
|
|
72
|
+
log_success "Rust updated"
|
|
73
|
+
return 0
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
reinstall_rust() {
|
|
77
|
+
uninstall_rust
|
|
78
|
+
install_rust
|
|
79
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_npm.log"
|
|
6
|
+
|
|
7
|
+
NODE_PACKAGES=(
|
|
8
|
+
"typescript"
|
|
9
|
+
"nestjs"
|
|
10
|
+
"prettier"
|
|
11
|
+
"live-server"
|
|
12
|
+
"localtunnel"
|
|
13
|
+
"vercel"
|
|
14
|
+
"markserv"
|
|
15
|
+
"psqlformat"
|
|
16
|
+
"ncu"
|
|
17
|
+
"ngrok"
|
|
18
|
+
"turbopack"
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
for _tool in "${NODE_PACKAGES[@]}"; do
|
|
22
|
+
source "$(dirname "$BASH_SOURCE")/$_tool/install.sh"
|
|
23
|
+
done
|
|
24
|
+
unset _tool
|
|
25
|
+
|
|
26
|
+
_batch_npm() {
|
|
27
|
+
local action="$1"
|
|
28
|
+
local action_past="$2"
|
|
29
|
+
local count_var="$3"
|
|
30
|
+
local count=0
|
|
31
|
+
local failed=0
|
|
32
|
+
local total=${#NODE_PACKAGES[@]}
|
|
33
|
+
local current=0
|
|
34
|
+
local func_name
|
|
35
|
+
|
|
36
|
+
progress_start "$total" "${action_past}ing npm packages..."
|
|
37
|
+
|
|
38
|
+
for tool in "${NODE_PACKAGES[@]}"; do
|
|
39
|
+
func_name="${action}_${tool//-/_}"
|
|
40
|
+
if declare -f "$func_name" &>/dev/null; then
|
|
41
|
+
loading "${action_past^}ing ${tool}" "$func_name"
|
|
42
|
+
case $? in 0) ((count++));; 1) ((failed++));; esac
|
|
43
|
+
fi
|
|
44
|
+
((current++))
|
|
45
|
+
progress_update "$current" "$total"
|
|
46
|
+
done
|
|
47
|
+
|
|
48
|
+
progress_done "$total"
|
|
49
|
+
eval "$count_var=$count"
|
|
50
|
+
return $failed
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
install_all_npm_packages() {
|
|
54
|
+
_batch_npm "install" "install" "installed_count"
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_all_npm_packages() {
|
|
58
|
+
_batch_npm "uninstall" "uninstall" "uninstalled_count"
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
update_all_npm_packages() {
|
|
62
|
+
_batch_npm "update" "update" "updated_count"
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
reinstall_all_npm_packages() {
|
|
66
|
+
_batch_npm "reinstall" "reinstall" "reinstalled_count"
|
|
67
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Live Server
|
|
2
|
+
|
|
3
|
+
Development server with live reload capability
|
|
4
|
+
|
|
5
|
+
**Package:** live-server
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/tapio/live-server
|
|
9
|
+
**Type:** Node.js global module (npm)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Live Server is a simple development HTTP server with live reload capability. It watches for file changes and automatically reloads the browser, making it ideal for front-end web development.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Node.js LTS (nodejs-lts)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install npm --live-server
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall npm --live-server
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update npm --live-server
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `live-server`
|
|
41
|
+
- Automatically opens browser on file changes
|
|
42
|
+
- Supports custom ports and SSL
|
|
43
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_npm.log"
|
|
6
|
+
|
|
7
|
+
_live_server_dependencies() {
|
|
8
|
+
if command -v node &>/dev/null && command -v npm &>/dev/null; then
|
|
9
|
+
log_info "Node.js and npm are already installed"
|
|
10
|
+
return 0
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
log_info "Installing Nodejs..."
|
|
14
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
15
|
+
pkg install nodejs-lts -y &>>"$LOG_FILE"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
_install_live_server_npm() {
|
|
19
|
+
loading "Installing Live Server" _install_live_server_npm_impl
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
_install_live_server_npm_impl() {
|
|
23
|
+
if ! npm install -g live-server &>>"$LOG_FILE"; then
|
|
24
|
+
log_error "Failed to install Live Server"
|
|
25
|
+
return 1
|
|
26
|
+
fi
|
|
27
|
+
return 0
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
install_live_server() {
|
|
31
|
+
if command -v live-server &>/dev/null; then
|
|
32
|
+
return 0
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
log_info "Installing Live Server..."
|
|
36
|
+
|
|
37
|
+
_live_server_dependencies
|
|
38
|
+
|
|
39
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
40
|
+
|
|
41
|
+
_install_live_server_npm || return 1
|
|
42
|
+
log_success "Live Server installed"
|
|
43
|
+
return 0
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
_uninstall_live_server_npm() {
|
|
47
|
+
loading "Uninstalling Live Server" _uninstall_live_server_npm_impl
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
_uninstall_live_server_npm_impl() {
|
|
51
|
+
if ! npm uninstall -g live-server &>>"$LOG_FILE"; then
|
|
52
|
+
log_error "Failed to uninstall Live Server"
|
|
53
|
+
return 1
|
|
54
|
+
fi
|
|
55
|
+
return 0
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
uninstall_live_server() {
|
|
59
|
+
if ! command -v live-server &>/dev/null; then
|
|
60
|
+
log_info "Live Server is not installed"
|
|
61
|
+
return 0
|
|
62
|
+
fi
|
|
63
|
+
log_info "Uninstalling Live Server..."
|
|
64
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
65
|
+
|
|
66
|
+
_uninstall_live_server_npm || return 1
|
|
67
|
+
log_success "Live Server uninstalled"
|
|
68
|
+
return 0
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
_update_live_server_npm() {
|
|
72
|
+
loading "Updating Live Server" _update_live_server_npm_impl
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
_update_live_server_npm_impl() {
|
|
76
|
+
if ! npm update -g live-server &>>"$LOG_FILE"; then
|
|
77
|
+
log_error "Failed to update Live Server"
|
|
78
|
+
return 1
|
|
79
|
+
fi
|
|
80
|
+
return 0
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
update_live_server() {
|
|
84
|
+
log_info "Updating Live Server..."
|
|
85
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
86
|
+
|
|
87
|
+
_update_live_server_npm || return 1
|
|
88
|
+
log_success "Live Server updated"
|
|
89
|
+
return 0
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
reinstall_live_server() {
|
|
93
|
+
uninstall_live_server
|
|
94
|
+
install_live_server
|
|
95
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Localtunnel
|
|
2
|
+
|
|
3
|
+
Expose localhost to the internet securely
|
|
4
|
+
|
|
5
|
+
**Package:** localtunnel
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/localtunnel/localtunnel
|
|
9
|
+
**Type:** Node.js global module (npm)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Localtunnel exposes your local development server to the internet with a public URL. It's perfect for testing webhooks, sharing progress with clients, and mobile testing. Includes an Android fix to use `termux-open-url` instead of `openurl`.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Node.js LTS (nodejs-lts)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install npm --localtunnel
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall npm --localtunnel
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update npm --localtunnel
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `lt`
|
|
41
|
+
- Android fix applied automatically to use `termux-open-url`
|
|
42
|
+
- No configuration required
|
|
43
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_npm.log"
|
|
6
|
+
|
|
7
|
+
_localtunnel_fix_openurl() {
|
|
8
|
+
local openurl_js
|
|
9
|
+
openurl_js="$(npm root -g)/localtunnel/node_modules/openurl/openurl.js"
|
|
10
|
+
if [[ ! -f "$openurl_js" ]]; then
|
|
11
|
+
openurl_js="$(npm root -g)/openurl/openurl.js"
|
|
12
|
+
fi
|
|
13
|
+
if [[ -f "$openurl_js" ]]; then
|
|
14
|
+
sed -i "/default:/i\\
|
|
15
|
+
case 'android':\\
|
|
16
|
+
command = 'termux-open-url';\\
|
|
17
|
+
break;" "$openurl_js"
|
|
18
|
+
fi
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
_localtunnel_dependencies() {
|
|
22
|
+
if command -v node &>/dev/null && command -v npm &>/dev/null; then
|
|
23
|
+
log_info "Node.js and npm are already installed"
|
|
24
|
+
return 0
|
|
25
|
+
fi
|
|
26
|
+
|
|
27
|
+
log_info "Installing Nodejs..."
|
|
28
|
+
|
|
29
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
30
|
+
pkg install nodejs-lts -y &>>"$LOG_FILE"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
_install_localtunnel_npm() {
|
|
34
|
+
loading "Installing Localtunnel" _install_localtunnel_npm_impl
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_install_localtunnel_npm_impl() {
|
|
38
|
+
if ! npm install -g localtunnel &>>"$LOG_FILE"; then
|
|
39
|
+
log_error "Failed to install Localtunnel"
|
|
40
|
+
return 1
|
|
41
|
+
fi
|
|
42
|
+
log_info "Applying localtunnel fix for Android..."
|
|
43
|
+
_localtunnel_fix_openurl &>>"$LOG_FILE"
|
|
44
|
+
return 0
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
install_localtunnel() {
|
|
48
|
+
if command -v lt &>/dev/null; then
|
|
49
|
+
return 0
|
|
50
|
+
fi
|
|
51
|
+
log_info "Installing Localtunnel..."
|
|
52
|
+
|
|
53
|
+
_localtunnel_dependencies
|
|
54
|
+
|
|
55
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
56
|
+
|
|
57
|
+
_install_localtunnel_npm || return 1
|
|
58
|
+
log_success "Localtunnel installed"
|
|
59
|
+
return 0
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
_uninstall_localtunnel_npm() {
|
|
63
|
+
loading "Uninstalling Localtunnel" _uninstall_localtunnel_npm_impl
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
_uninstall_localtunnel_npm_impl() {
|
|
67
|
+
if ! npm uninstall -g localtunnel &>>"$LOG_FILE"; then
|
|
68
|
+
log_error "Failed to uninstall Localtunnel"
|
|
69
|
+
return 1
|
|
70
|
+
fi
|
|
71
|
+
return 0
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
uninstall_localtunnel() {
|
|
75
|
+
if ! command -v lt &>/dev/null; then
|
|
76
|
+
log_info "Localtunnel is not installed"
|
|
77
|
+
return 0
|
|
78
|
+
fi
|
|
79
|
+
log_info "Uninstalling Localtunnel..."
|
|
80
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
81
|
+
|
|
82
|
+
_uninstall_localtunnel_npm || return 1
|
|
83
|
+
log_success "Localtunnel uninstalled"
|
|
84
|
+
return 0
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
_update_localtunnel_npm() {
|
|
88
|
+
loading "Updating Localtunnel" _update_localtunnel_npm_impl
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
_update_localtunnel_npm_impl() {
|
|
92
|
+
if ! npm update -g localtunnel &>>"$LOG_FILE"; then
|
|
93
|
+
log_error "Failed to update Localtunnel"
|
|
94
|
+
return 1
|
|
95
|
+
fi
|
|
96
|
+
return 0
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
update_localtunnel() {
|
|
100
|
+
log_info "Updating Localtunnel..."
|
|
101
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
102
|
+
|
|
103
|
+
_update_localtunnel_npm || return 1
|
|
104
|
+
log_success "Localtunnel updated"
|
|
105
|
+
return 0
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
reinstall_localtunnel() {
|
|
109
|
+
uninstall_localtunnel
|
|
110
|
+
install_localtunnel
|
|
111
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Markserv
|
|
2
|
+
|
|
3
|
+
Markdown live-preview server
|
|
4
|
+
|
|
5
|
+
**Package:** markserv
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/nice-registry/markserv
|
|
9
|
+
**Type:** Node.js global module (npm)
|
|
10
|
+
**License:** MIT
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
Markserv is a live-preview server for Markdown files. It renders Markdown as HTML in the browser with automatic reloading when the file changes, making it perfect for writing documentation, notes, or README files.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Node.js LTS (nodejs-lts)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install npm --markserv
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall npm --markserv
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update npm --markserv
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `markserv`
|
|
41
|
+
- Supports custom ports and themes
|
|
42
|
+
- Live reload on file changes
|
|
43
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
import "@/utils/log"
|
|
4
|
+
|
|
5
|
+
LOG_FILE="$OMNI_CACHE/install_npm.log"
|
|
6
|
+
|
|
7
|
+
_markserv_dependencies() {
|
|
8
|
+
if command -v node &>/dev/null && command -v npm &>/dev/null; then
|
|
9
|
+
log_info "Node.js and npm are already installed"
|
|
10
|
+
return 0
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
log_info "Installing Nodejs..."
|
|
14
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
15
|
+
pkg install nodejs-lts -y &>>"$LOG_FILE"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
_install_markserv_npm() {
|
|
19
|
+
loading "Installing Markserv" _install_markserv_npm_impl
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
_install_markserv_npm_impl() {
|
|
23
|
+
if ! npm install -g markserv &>>"$LOG_FILE"; then
|
|
24
|
+
log_error "Failed to install Markserv"
|
|
25
|
+
return 1
|
|
26
|
+
fi
|
|
27
|
+
return 0
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
install_markserv() {
|
|
31
|
+
if command -v markserv &>/dev/null; then
|
|
32
|
+
return 0
|
|
33
|
+
fi
|
|
34
|
+
log_info "Installing Markserv..."
|
|
35
|
+
|
|
36
|
+
_markserv_dependencies
|
|
37
|
+
|
|
38
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
39
|
+
|
|
40
|
+
_install_markserv_npm || return 1
|
|
41
|
+
log_success "Markserv installed"
|
|
42
|
+
return 0
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
_uninstall_markserv_npm() {
|
|
46
|
+
loading "Uninstalling Markserv" _uninstall_markserv_npm_impl
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
_uninstall_markserv_npm_impl() {
|
|
50
|
+
if ! npm uninstall -g markserv &>>"$LOG_FILE"; then
|
|
51
|
+
log_error "Failed to uninstall Markserv"
|
|
52
|
+
return 1
|
|
53
|
+
fi
|
|
54
|
+
return 0
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
uninstall_markserv() {
|
|
58
|
+
if ! command -v markserv &>/dev/null; then
|
|
59
|
+
log_info "Markserv is not installed"
|
|
60
|
+
return 0
|
|
61
|
+
fi
|
|
62
|
+
log_info "Uninstalling Markserv..."
|
|
63
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
64
|
+
|
|
65
|
+
_uninstall_markserv_npm || return 1
|
|
66
|
+
log_success "Markserv uninstalled"
|
|
67
|
+
return 0
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
_update_markserv_npm() {
|
|
71
|
+
loading "Updating Markserv" _update_markserv_npm_impl
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
_update_markserv_npm_impl() {
|
|
75
|
+
if ! npm update -g markserv &>>"$LOG_FILE"; then
|
|
76
|
+
log_error "Failed to update Markserv"
|
|
77
|
+
return 1
|
|
78
|
+
fi
|
|
79
|
+
return 0
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
update_markserv() {
|
|
83
|
+
log_info "Updating Markserv..."
|
|
84
|
+
mkdir -p "$(dirname "$LOG_FILE")"
|
|
85
|
+
|
|
86
|
+
_update_markserv_npm || return 1
|
|
87
|
+
log_success "Markserv updated"
|
|
88
|
+
return 0
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
reinstall_markserv() {
|
|
92
|
+
uninstall_markserv
|
|
93
|
+
install_markserv
|
|
94
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# npm-check-updates
|
|
2
|
+
|
|
3
|
+
Find and update outdated npm dependencies
|
|
4
|
+
|
|
5
|
+
**Package:** npm-check-updates
|
|
6
|
+
**Author:** israel676767
|
|
7
|
+
**Repository:** https://github.com/israel676767/omni
|
|
8
|
+
**Official:** https://github.com/raineorshine/npm-check-updates
|
|
9
|
+
**Type:** Node.js global module (npm)
|
|
10
|
+
**License:** Apache 2.0
|
|
11
|
+
|
|
12
|
+
## Description
|
|
13
|
+
|
|
14
|
+
npm-check-updates (ncu) upgrades your package.json dependencies to the latest versions, ignoring specified versions. It provides interactive mode for selective updates and supports filtering, targeting, and more.
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
- Node.js LTS (nodejs-lts)
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
core install npm --ncu
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Uninstall
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
core uninstall npm --ncu
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Update
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
core update npm --ncu
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Notes
|
|
39
|
+
|
|
40
|
+
- Command: `ncu`
|
|
41
|
+
- Supports interactive mode with `--interactive`
|
|
42
|
+
- Can upgrade global packages with `-g` flag
|
|
43
|
+
|