vmlive 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vmlive",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Local development VM for custom Serverless PaaS",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -62,7 +62,10 @@ const buildProxyDispatcher = (functions, workspaceId, projectId, includeDashboar
62
62
  const status = res.status;
63
63
  const color = status >= 500 ? "\\x1b[31m" : status >= 400 ? "\\x1b[33m" : "\\x1b[32m";
64
64
 
65
+ const isMuted = path.startsWith('/.internal/') || path.includes('devtools');
66
+ if (!isMuted) {
65
67
  console.log(\`\\x1b[90m[\${targetName}]\\x1b[0m \${method} \${path} \${color}\${status}\\x1b[0m\`);
68
+ }
66
69
  return res;
67
70
  }
68
71
  }
@@ -94,7 +97,7 @@ const runInit = async () => {
94
97
  process.exit(1);
95
98
  }
96
99
 
97
- const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'http://localhost:8787';
100
+ const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'https://api.vm.live';
98
101
 
99
102
  // 2. Extract Workspace Architecture
100
103
  console.log('\x1b[36mFetching workspaces...\x1b[0m');
@@ -576,7 +579,7 @@ const runDeploy = async () => {
576
579
 
577
580
  const code = fs.readFileSync(outPath, 'utf8');
578
581
 
579
- const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'http://localhost:8787';
582
+ const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'https://api.vm.live';
580
583
  const target = `${GATEKEEPER_URL}/api/${workspaceId}/projects/${projectId}/functions/${fn.name}/deploy`;
581
584
 
582
585
  console.log(`\x1b[36m[POST]\x1b[0m Uploading...`);
@@ -607,7 +610,7 @@ const runLogin = async () => {
607
610
  const codeVerifier = crypto.randomBytes(32).toString('base64url');
608
611
  const codeChallenge = crypto.createHash('sha256').update(codeVerifier).digest('base64url');
609
612
 
610
- const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'http://localhost:8787';
613
+ const GATEKEEPER_URL = process.env.GATEKEEPER_URL || 'https://api.vm.live';
611
614
 
612
615
  const server = http.createServer(async (req, res) => {
613
616
  const url = new URL(req.url, `http://127.0.0.1:${server.address().port}`);
@@ -694,7 +697,7 @@ const main = async () => {
694
697
  console.log(`vmlive CLI v${pkg.version}`);
695
698
  } else {
696
699
  console.error(`\x1b[31m❌ Unknown command: ${command || 'missing'}\x1b[0m`);
697
- console.log('Usage: vm init | vm add | vm dev | vm login | vm deploy | vm which');
700
+ console.log('Usage: vmlive init | vmlive add | vmlive dev | vmlive login | vmlive deploy | vmlive which');
698
701
  process.exit(1);
699
702
  }
700
703
  };