pyre-cli 1.2.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/install.sh ADDED
@@ -0,0 +1,35 @@
1
+ #!/bin/bash
2
+ # pyre install script - curl installation for macOS
3
+ set -euo pipefail
4
+
5
+ REPO="somalip/pyre"
6
+ TOOL="pyre"
7
+ BIN_DIR="${BIN_DIR:-/usr/local/bin}"
8
+
9
+ RED='\033[0;31m'
10
+ GREEN='\033[0;32m'
11
+ NC='\033[0m'
12
+
13
+ info() { echo -e "${GREEN}[pyre]${NC} $1"; }
14
+ err() { echo -e "${RED}[pyre]${NC} $1" >&2; }
15
+
16
+ if [[ "$(uname)" != "Darwin" ]]; then
17
+ err "pyre requires macOS. Detected $(uname)."
18
+ exit 1
19
+ fi
20
+
21
+ if ! command -v npm &> /dev/null; then
22
+ err "Node.js/npm is required. Install from https://nodejs.org"
23
+ exit 1
24
+ fi
25
+
26
+ info "Installing ${TOOL} via npm..."
27
+ npm install -g "@$REPO"
28
+
29
+ info "Verifying installation..."
30
+ if command -v "$TOOL" &> /dev/null; then
31
+ info "${TOOL} installed successfully!"
32
+ info "Run ${TOOL} --help to get started."
33
+ else
34
+ info "Installation complete. If the command is not found, restart your shell."
35
+ fi
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "pyre-cli",
3
+ "version": "1.2.0",
4
+ "description": "CLI Mac monitoring tool: temps, system stats, live dashboard, and export",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "bin": {
8
+ "pyre": "./dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "install.sh",
13
+ "Formula/pyre.rb",
14
+ "README.md"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsup src/index.ts --format esm --clean",
18
+ "start": "node dist/index.js",
19
+ "dev": "tsx src/index.ts",
20
+ "test": "node dist/index.js --help >/dev/null && echo 'OK'"
21
+ },
22
+ "engines": {
23
+ "node": ">=18.0.0"
24
+ },
25
+ "keywords": [
26
+ "mac",
27
+ "monitoring",
28
+ "temperature",
29
+ "cli",
30
+ "system-stats"
31
+ ],
32
+ "author": "somalip",
33
+ "license": "MIT",
34
+ "dependencies": {
35
+ "chalk": "^5.3.0",
36
+ "commander": "^11.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^20.10.0",
40
+ "tsup": "^8.0.1",
41
+ "tsx": "^4.7.0",
42
+ "typescript": "^5.3.3"
43
+ }
44
+ }