@mariozechner/pi 0.1.2 → 0.1.3
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/package.json +4 -4
- package/{pi → pi.js} +13 -0
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mariozechner/pi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "CLI tool for managing vLLM deployments on GPU pods from Prime Intellect, Vast.ai, etc.",
|
|
5
|
-
"main": "pi",
|
|
5
|
+
"main": "pi.js",
|
|
6
6
|
"bin": {
|
|
7
|
-
"pi": "pi"
|
|
7
|
+
"pi": "pi.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"preferGlobal": true,
|
|
35
35
|
"files": [
|
|
36
|
-
"pi",
|
|
36
|
+
"pi.js",
|
|
37
37
|
"pod_setup.sh",
|
|
38
38
|
"vllm_manager.py",
|
|
39
39
|
"README.md",
|
package/{pi → pi.js}
RENAMED
|
@@ -769,6 +769,19 @@ class PrimeIntellectCLI {
|
|
|
769
769
|
async run() {
|
|
770
770
|
const [,, command, ...args] = process.argv;
|
|
771
771
|
|
|
772
|
+
// Handle --version flag
|
|
773
|
+
if (command === '--version' || command === '-v') {
|
|
774
|
+
const packageJsonPath = path.join(__dirname, 'package.json');
|
|
775
|
+
try {
|
|
776
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
777
|
+
console.log(packageJson.version);
|
|
778
|
+
} catch (error) {
|
|
779
|
+
console.error('Error reading version:', error.message);
|
|
780
|
+
process.exit(1);
|
|
781
|
+
}
|
|
782
|
+
return;
|
|
783
|
+
}
|
|
784
|
+
|
|
772
785
|
switch (command) {
|
|
773
786
|
case 'setup': {
|
|
774
787
|
if (args.length < 2) {
|