Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
]

[workspace.package]
version = "0.2.5"
version = "0.2.6"
edition = "2021"
rust-version = "1.88"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
| You want | Run | What happens |
| :--- | :--- | :--- |
| **npm** | `npm install -g cli-box-skill` | Binaries + skill installed automatically |
| **Shell** | `bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)` | Downloads to `~/.cli-box/bin/`, installs skill |
| **Shell** | `bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)` | Downloads to `~/.cli-box/bin/`, installs skill |
| **Manual** | [GitHub Releases](https://github.com/Shadow-Azure/cli-box/releases) | Download and extract manually |

### For Humans
Expand Down
2 changes: 1 addition & 1 deletion README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
| 你想 | 运行 | 效果 |
| :--- | :--- | :--- |
| **npm** | `npm install -g cli-box-skill` | 自动安装二进制 + skill |
| **Shell** | `bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)` | 下载到 `~/.cli-box/bin/`,安装 skill |
| **Shell** | `bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)` | 下载到 `~/.cli-box/bin/`,安装 skill |
| **手动** | [GitHub Releases](https://github.com/Shadow-Azure/cli-box/releases) | 手动下载解压 |

### 给人类用户
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ npm automatically installs the correct binaries for your platform.
### Option B: Direct download

```bash
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)
```

## Step 3: Verify Installation
Expand Down
2 changes: 1 addition & 1 deletion electron-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-box-electron",
"version": "0.2.5",
"version": "0.2.6",
"private": true,
"main": "./out/main/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-box-skill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cli-box close <id> # Close sandbox
## No npm?

```bash
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)
```

## Links
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-box-skill/bin/cli-box-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ child.on('exit', (code) => process.exit(code ?? 1));
child.on('error', (err) => {
console.error(`Failed to run cli-box: ${err.message}`);
console.error('Install via: npm install -g cli-box-skill');
console.error('Or: bash <(curl -fsSL https://raw.githubusercontent.com/ZN-Ice/cli-box/main/skill/install.sh)');
console.error('Or: bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)');
process.exit(1);
});
13 changes: 6 additions & 7 deletions packages/cli-box-skill/postinstall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ try {
ok(`Found platform package: ${platformPkgName}`);
} catch (e) {
warn(`Platform package ${platformPkgName} not found. Skipping binary setup.`);
warn('You can install binaries manually via: bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)');
warn('You can install binaries manually via: bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)');
process.exit(0);
}

Expand Down Expand Up @@ -74,13 +74,12 @@ const targets = [

for (const target of targets) {
try {
if (fs.existsSync(path.dirname(target))) {
fs.mkdirSync(target, { recursive: true });
fs.copyFileSync(skillSrc, path.join(target, 'SKILL.md'));
ok(`SKILL.md → ${target}/`);
}
fs.mkdirSync(target, { recursive: true });
fs.copyFileSync(skillSrc, path.join(target, 'SKILL.md'));
ok(`SKILL.md → ${target}/`);
} catch (e) {
// Silent — target harness may not be installed
// Non-fatal — target location may be read-only or unavailable
warn(`Could not install SKILL.md to ${target}: ${e.message}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cli-box-skill/skill/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ npm install -g cli-box-skill
Or via GitHub Release:

```bash
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/packages/cli-box-skill/skill/install.sh)
```

## Quick Start
Expand Down
20 changes: 8 additions & 12 deletions packages/cli-box-skill/skill/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,16 @@ chmod +x "$INSTALL_DIR/cli-box" "$INSTALL_DIR/cli-box-daemon"
ok "Binaries installed"

# Install skill to Claude Code
if [ -d "$(dirname "$SKILL_CLAUDE_DIR")" ]; then
info "Installing skill to Claude Code..."
mkdir -p "$SKILL_CLAUDE_DIR"
cp "$TMPDIR/SKILL.md" "$SKILL_CLAUDE_DIR/"
ok "Skill installed to $SKILL_CLAUDE_DIR"
fi
info "Installing skill to Claude Code..."
mkdir -p "$SKILL_CLAUDE_DIR"
cp "$TMPDIR/SKILL.md" "$SKILL_CLAUDE_DIR/"
ok "Skill installed to $SKILL_CLAUDE_DIR"

# Install skill to OpenCode
if [ -d "$(dirname "$SKILL_OPENCODE_DIR")" ]; then
info "Installing skill to OpenCode..."
mkdir -p "$SKILL_OPENCODE_DIR"
cp "$TMPDIR/SKILL.md" "$SKILL_OPENCODE_DIR/"
ok "Skill installed to $SKILL_OPENCODE_DIR"
fi
info "Installing skill to OpenCode..."
mkdir -p "$SKILL_OPENCODE_DIR"
cp "$TMPDIR/SKILL.md" "$SKILL_OPENCODE_DIR/"
ok "Skill installed to $SKILL_OPENCODE_DIR"

# Check PATH
if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"

RELEASE_DIR="$SCRIPT_DIR/release"
VERSION="0.2.5"
VERSION="0.2.6"
APP_NAME="CLI Box"

# --- helpers ---
Expand Down
Loading
Loading