chore: symbol link describe can used everywhere
Browse files- .gitignore +1 -1
- README.md +20 -1
- install.sh +3 -3
- scripts/build.ts +2 -2
.gitignore
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
node_modules/
|
| 2 |
dist/
|
| 3 |
cli
|
| 4 |
-
|
|
|
|
| 1 |
node_modules/
|
| 2 |
dist/
|
| 3 |
cli
|
| 4 |
+
VersperClaw
|
README.md
CHANGED
|
@@ -11,7 +11,26 @@
|
|
| 11 |
curl -fsSL https://raw.githubusercontent.com/versperai/VersperClaw/main/install.sh | bash
|
| 12 |
|
| 13 |
# source install
|
| 14 |
-
git clone https://github.com/versperai/VersperClaw.git && cd VersperClaw && bun install && bun run build:dev:full && ./
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
```
|
| 16 |
|
| 17 |
## WebSearch & WebFetch Tools - 100% local free no remote api fee
|
|
|
|
| 11 |
curl -fsSL https://raw.githubusercontent.com/versperai/VersperClaw/main/install.sh | bash
|
| 12 |
|
| 13 |
# source install
|
| 14 |
+
git clone https://github.com/versperai/VersperClaw.git && cd VersperClaw && bun install && bun run build:dev:full && ./VersperClaw
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
# make symbol link
|
| 19 |
+
ln -sf "$(pwd)/VersperClaw" "$HOME/.local/bin/VersperClaw"
|
| 20 |
+
|
| 21 |
+
# make sure `~/.local/bin` in PATH
|
| 22 |
+
# check if have in path
|
| 23 |
+
echo $PATH | grep -q "$HOME/.local/bin" && echo "In PATH" || echo "Out PATH"
|
| 24 |
+
|
| 25 |
+
# if not in PATH ,need add to your shell configuration
|
| 26 |
+
|
| 27 |
+
# for bash
|
| 28 |
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
|
| 29 |
+
source ~/.bashrc
|
| 30 |
+
|
| 31 |
+
# for zsh
|
| 32 |
+
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
|
| 33 |
+
source ~/.zshrc
|
| 34 |
```
|
| 35 |
|
| 36 |
## WebSearch & WebFetch Tools - 100% local free no remote api fee
|
install.sh
CHANGED
|
@@ -128,14 +128,14 @@ build_binary() {
|
|
| 128 |
info "Building VersperClaw (all experimental features enabled)..."
|
| 129 |
cd "$INSTALL_DIR"
|
| 130 |
bun run build:dev:full
|
| 131 |
-
ok "Binary built: $INSTALL_DIR/
|
| 132 |
}
|
| 133 |
|
| 134 |
link_binary() {
|
| 135 |
local link_dir="$HOME/.local/bin"
|
| 136 |
mkdir -p "$link_dir"
|
| 137 |
|
| 138 |
-
ln -sf "$INSTALL_DIR/
|
| 139 |
ok "Symlinked: $link_dir/versperclaw"
|
| 140 |
|
| 141 |
if ! echo "$PATH" | tr ':' '\n' | grep -qx "$link_dir"; then
|
|
@@ -179,6 +179,6 @@ printf " ${BOLD}Or log in with Claude.ai:${RESET}\n"
|
|
| 179 |
printf " ${CYAN}versperclaw /login${RESET}\n"
|
| 180 |
echo ""
|
| 181 |
printf " ${DIM}Source: $INSTALL_DIR${RESET}\n"
|
| 182 |
-
printf " ${DIM}Binary: $INSTALL_DIR/
|
| 183 |
printf " ${DIM}Link: ~/.local/bin/versperclaw${RESET}\n"
|
| 184 |
echo ""
|
|
|
|
| 128 |
info "Building VersperClaw (all experimental features enabled)..."
|
| 129 |
cd "$INSTALL_DIR"
|
| 130 |
bun run build:dev:full
|
| 131 |
+
ok "Binary built: $INSTALL_DIR/VersperClaw"
|
| 132 |
}
|
| 133 |
|
| 134 |
link_binary() {
|
| 135 |
local link_dir="$HOME/.local/bin"
|
| 136 |
mkdir -p "$link_dir"
|
| 137 |
|
| 138 |
+
ln -sf "$INSTALL_DIR/VersperClaw" "$link_dir/versperclaw"
|
| 139 |
ok "Symlinked: $link_dir/versperclaw"
|
| 140 |
|
| 141 |
if ! echo "$PATH" | tr ':' '\n' | grep -qx "$link_dir"; then
|
|
|
|
| 179 |
printf " ${CYAN}versperclaw /login${RESET}\n"
|
| 180 |
echo ""
|
| 181 |
printf " ${DIM}Source: $INSTALL_DIR${RESET}\n"
|
| 182 |
+
printf " ${DIM}Binary: $INSTALL_DIR/VersperClaw${RESET}\n"
|
| 183 |
printf " ${DIM}Link: ~/.local/bin/versperclaw${RESET}\n"
|
| 184 |
echo ""
|
scripts/build.ts
CHANGED
|
@@ -113,10 +113,10 @@ const features = [...featureSet]
|
|
| 113 |
|
| 114 |
const outfile = compile
|
| 115 |
? dev
|
| 116 |
-
? './dist/
|
| 117 |
: './dist/cli'
|
| 118 |
: dev
|
| 119 |
-
? './
|
| 120 |
: './cli'
|
| 121 |
const buildTime = new Date().toISOString()
|
| 122 |
const version = dev ? getDevVersion(pkg.version) : pkg.version
|
|
|
|
| 113 |
|
| 114 |
const outfile = compile
|
| 115 |
? dev
|
| 116 |
+
? './dist/VersperClaw'
|
| 117 |
: './dist/cli'
|
| 118 |
: dev
|
| 119 |
+
? './VersperClaw'
|
| 120 |
: './cli'
|
| 121 |
const buildTime = new Date().toISOString()
|
| 122 |
const version = dev ? getDevVersion(pkg.version) : pkg.version
|