cli-box-skill 0.0.1 → 0.2.1
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/README.md +4 -4
- package/package.json +5 -5
- package/postinstall.mjs +1 -1
- package/skill/SKILL.md +11 -12
- package/skill/install.sh +1 -1
package/README.md
CHANGED
|
@@ -25,14 +25,14 @@ cli-box close <id> # Close sandbox
|
|
|
25
25
|
## No npm?
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
bash <(curl -fsSL https://raw.githubusercontent.com/
|
|
28
|
+
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Links
|
|
32
32
|
|
|
33
|
-
- [GitHub](https://github.com/
|
|
34
|
-
- [Full README](https://github.com/
|
|
35
|
-
- [Installation Guide](https://github.com/
|
|
33
|
+
- [GitHub](https://github.com/Shadow-Azure/cli-box)
|
|
34
|
+
- [Full README](https://github.com/Shadow-Azure/cli-box#readme)
|
|
35
|
+
- [Installation Guide](https://github.com/Shadow-Azure/cli-box/blob/main/docs/guide/installation.md)
|
|
36
36
|
|
|
37
37
|
## License
|
|
38
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cli-box-skill",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "macOS desktop automation sandbox for AI agents",
|
|
5
5
|
"main": "postinstall.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"postinstall": "node postinstall.mjs"
|
|
11
11
|
},
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"cli-box-darwin-arm64": "0.
|
|
14
|
-
"cli-box-electron-darwin-arm64": "0.
|
|
13
|
+
"cli-box-darwin-arm64": "0.2.1",
|
|
14
|
+
"cli-box-electron-darwin-arm64": "0.2.1"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"skill/SKILL.md",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/Shadow-Azure/cli-box.git"
|
|
37
37
|
},
|
|
38
|
-
"author": "
|
|
38
|
+
"author": "Shadow-Azure",
|
|
39
39
|
"license": "Apache-2.0"
|
|
40
40
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -38,7 +38,7 @@ try {
|
|
|
38
38
|
ok(`Found platform package: ${platformPkgName}`);
|
|
39
39
|
} catch (e) {
|
|
40
40
|
warn(`Platform package ${platformPkgName} not found. Skipping binary setup.`);
|
|
41
|
-
warn('You can install binaries manually via: bash <(curl -fsSL https://raw.githubusercontent.com/
|
|
41
|
+
warn('You can install binaries manually via: bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)');
|
|
42
42
|
process.exit(0);
|
|
43
43
|
}
|
|
44
44
|
|
package/skill/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ npm install -g cli-box-skill
|
|
|
24
24
|
Or via GitHub Release:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
bash <(curl -fsSL https://raw.githubusercontent.com/
|
|
27
|
+
bash <(curl -fsSL https://raw.githubusercontent.com/Shadow-Azure/cli-box/main/skill/install.sh)
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## Quick Start
|
|
@@ -42,11 +42,11 @@ cli-box list
|
|
|
42
42
|
# Take a screenshot of a sandbox
|
|
43
43
|
cli-box screenshot --id <sandbox-id> -o screenshot.png
|
|
44
44
|
|
|
45
|
-
# Type text into a sandbox (
|
|
46
|
-
cli-box type --id <sandbox-id>
|
|
45
|
+
# Type text into a sandbox (auto-detects input mode)
|
|
46
|
+
cli-box type --id <sandbox-id> "hello world"
|
|
47
47
|
|
|
48
48
|
# Press Enter to send
|
|
49
|
-
cli-box key --id <sandbox-id>
|
|
49
|
+
cli-box key --id <sandbox-id> Return
|
|
50
50
|
|
|
51
51
|
# Close a sandbox
|
|
52
52
|
cli-box close <sandbox-id>
|
|
@@ -69,10 +69,10 @@ cli-box close <sandbox-id>
|
|
|
69
69
|
|
|
70
70
|
| Command | Description |
|
|
71
71
|
|---------|-------------|
|
|
72
|
-
| `cli-box type --id <id>
|
|
73
|
-
| `cli-box key --id <id>
|
|
74
|
-
| `cli-box key --id <id>
|
|
75
|
-
| `cli-box key --id <id>
|
|
72
|
+
| `cli-box type --id <id> "text"` | Type text (auto-detects PTY vs CGEvent) |
|
|
73
|
+
| `cli-box key --id <id> Return` | Press a key (auto-detects PTY vs CGEvent) |
|
|
74
|
+
| `cli-box key --id <id> ctrl+c` | Send Ctrl+C |
|
|
75
|
+
| `cli-box key --id <id> up` | Arrow keys |
|
|
76
76
|
| `cli-box click --id <id> 100 200` | Mouse click at coordinates (CGEvent) |
|
|
77
77
|
|
|
78
78
|
### Screenshots
|
|
@@ -113,8 +113,8 @@ sleep 10
|
|
|
113
113
|
cli-box screenshot --id abc123 -o state.png
|
|
114
114
|
|
|
115
115
|
# 4. Interact
|
|
116
|
-
cli-box type --id abc123
|
|
117
|
-
cli-box key --id abc123
|
|
116
|
+
cli-box type --id abc123 "Write a hello world function"
|
|
117
|
+
cli-box key --id abc123 Return
|
|
118
118
|
|
|
119
119
|
# 5. Wait and screenshot again
|
|
120
120
|
sleep 15
|
|
@@ -126,7 +126,6 @@ cli-box close abc123
|
|
|
126
126
|
|
|
127
127
|
## Notes
|
|
128
128
|
|
|
129
|
-
- CLI tools
|
|
130
|
-
- CGEvent mode (no `--pty`) is for GUI app sandboxes only
|
|
129
|
+
- Input mode is auto-detected: CLI tools use PTY, GUI apps use CGEvent
|
|
131
130
|
- Each sandbox gets its own Electron tab and HTTP port
|
|
132
131
|
- The daemon auto-starts on first `cli-box start` and manages all sandboxes
|
package/skill/install.sh
CHANGED
|
@@ -4,7 +4,7 @@ set -euo pipefail
|
|
|
4
4
|
# cli-box skill installer
|
|
5
5
|
# Downloads binaries from GitHub Release and sets up skill files
|
|
6
6
|
|
|
7
|
-
REPO="
|
|
7
|
+
REPO="Shadow-Azure/cli-box"
|
|
8
8
|
VERSION="${CLI_BOX_VERSION:-latest}"
|
|
9
9
|
INSTALL_DIR="$HOME/.cli-box/bin"
|
|
10
10
|
SKILL_CLAUDE_DIR="$HOME/.claude/skills/cli-box"
|