@plusonelabs/cue 0.0.8
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/.eslintignore +6 -0
- package/cue-v0.0.8.tar.gz +0 -0
- package/dist/cli.mjs +868 -0
- package/install.sh +47 -0
- package/package.json +40 -0
package/install.sh
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
echo "Installing Cue CLI..."
|
|
3
|
+
|
|
4
|
+
# Prefer local installation for auto-update support
|
|
5
|
+
# Check if --global flag is explicitly passed
|
|
6
|
+
if [[ "$1" == "--global" ]]; then
|
|
7
|
+
if command -v sudo >/dev/null 2>&1 && ([ -w /usr/local/bin ] || sudo -n true 2>/dev/null); then
|
|
8
|
+
echo "Installing globally (requires sudo)..."
|
|
9
|
+
sudo mkdir -p /usr/local/bin
|
|
10
|
+
sudo cp dist/cli.mjs /usr/local/bin/cue.mjs
|
|
11
|
+
sudo chmod +x /usr/local/bin/cue.mjs
|
|
12
|
+
# Create wrapper script
|
|
13
|
+
sudo tee /usr/local/bin/cue > /dev/null << 'WRAPPER'
|
|
14
|
+
#!/bin/bash
|
|
15
|
+
exec node /usr/local/bin/cue.mjs "$@"
|
|
16
|
+
WRAPPER
|
|
17
|
+
sudo chmod +x /usr/local/bin/cue
|
|
18
|
+
echo "Cue CLI installed globally!"
|
|
19
|
+
echo "Run 'cue' from anywhere."
|
|
20
|
+
echo ""
|
|
21
|
+
echo "Note: Global installation prevents auto-updates due to permission requirements."
|
|
22
|
+
else
|
|
23
|
+
echo "Error: Global installation requires sudo access."
|
|
24
|
+
echo "Try: ./install.sh (for local install with auto-update support)"
|
|
25
|
+
exit 1
|
|
26
|
+
fi
|
|
27
|
+
else
|
|
28
|
+
echo "Installing locally to ~/bin (recommended for auto-updates)..."
|
|
29
|
+
mkdir -p ~/bin
|
|
30
|
+
cp dist/cli.mjs ~/bin/cue.mjs
|
|
31
|
+
chmod +x ~/bin/cue.mjs
|
|
32
|
+
# Create wrapper script
|
|
33
|
+
cat > ~/bin/cue << 'WRAPPER'
|
|
34
|
+
#!/bin/bash
|
|
35
|
+
exec node ~/bin/cue.mjs "$@"
|
|
36
|
+
WRAPPER
|
|
37
|
+
chmod +x ~/bin/cue
|
|
38
|
+
echo "Cue CLI installed to ~/bin/cue"
|
|
39
|
+
echo ""
|
|
40
|
+
echo "To use globally, add ~/bin to your PATH:"
|
|
41
|
+
echo " export PATH=\"\$HOME/bin:\$PATH\""
|
|
42
|
+
echo " # Add the above line to ~/.bashrc or ~/.zshrc to make it permanent"
|
|
43
|
+
echo ""
|
|
44
|
+
echo "Or run directly: ~/bin/cue"
|
|
45
|
+
echo ""
|
|
46
|
+
echo "Auto-updates will work with this installation method."
|
|
47
|
+
fi
|
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plusonelabs/cue",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "Cue CLI",
|
|
5
|
+
"main": "./dist/cli.mjs",
|
|
6
|
+
"bin": {
|
|
7
|
+
"cue": "dist/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"dev": "NODE_OPTIONS='--disable-warning=DEP0040' tsx src/cli.tsx",
|
|
13
|
+
"test": "NODE_OPTIONS='--disable-warning=DEP0040' vitest",
|
|
14
|
+
"typecheck": "tsc --noEmit",
|
|
15
|
+
"format": "prettier --write .",
|
|
16
|
+
"lint": "eslint ."
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@cue/core": "file:../core",
|
|
20
|
+
"axios": "^1.11.0",
|
|
21
|
+
"chalk": "^5.4.1",
|
|
22
|
+
"cli-highlight": "^2.1.11",
|
|
23
|
+
"dotenv": "^17.2.1",
|
|
24
|
+
"ink": "^6.0.1",
|
|
25
|
+
"inquirer": "^12.8.2",
|
|
26
|
+
"marked": "^16.1.1",
|
|
27
|
+
"qrcode-terminal": "^0.12.0",
|
|
28
|
+
"react": "^19.1.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/inquirer": "^9.0.8",
|
|
32
|
+
"@types/node": "^24.1.0",
|
|
33
|
+
"@types/qrcode-terminal": "^0.12.2",
|
|
34
|
+
"@types/react": "^19.1.8",
|
|
35
|
+
"prettier": "^3.2.5",
|
|
36
|
+
"tsx": "^4.20.3",
|
|
37
|
+
"typescript": "^5.1.6",
|
|
38
|
+
"vitest": "^3.2.4"
|
|
39
|
+
}
|
|
40
|
+
}
|