vibelet 0.1.19 → 0.1.21
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/bin/vibelet.mjs +21 -1
- package/dist/index.cjs +41 -41
- package/package.json +19 -1
package/bin/vibelet.mjs
CHANGED
|
@@ -608,10 +608,30 @@ function printHelp() {
|
|
|
608
608
|
process.stdout.write(`\n`);
|
|
609
609
|
process.stdout.write(`You can also invoke the published alias with:\n`);
|
|
610
610
|
process.stdout.write(` npx ${packageJson.name === 'vibelet' ? '@vibelet/cli' : 'vibelet'}\n`);
|
|
611
|
-
process.stdout.write(` vibelet\n`);
|
|
611
|
+
process.stdout.write(` vibelet\n\n`);
|
|
612
|
+
process.stdout.write(`Remote access (relay):\n`);
|
|
613
|
+
process.stdout.write(` Start a tunnel with one of these tools, then copy the generated URL:\n\n`);
|
|
614
|
+
process.stdout.write(` # Cloudflare Tunnel (free, no account needed)\n`);
|
|
615
|
+
process.stdout.write(` npx cloudflared tunnel --protocol http2 --url http://localhost:${port}\n\n`);
|
|
616
|
+
process.stdout.write(` # ngrok (free, requires sign-up)\n`);
|
|
617
|
+
process.stdout.write(` ngrok http ${port}\n\n`);
|
|
618
|
+
process.stdout.write(` Then start vibelet with the tunnel URL:\n`);
|
|
619
|
+
process.stdout.write(` npx ${packageJson.name} --relay=https://<your-tunnel-url>\n\n`);
|
|
620
|
+
process.stdout.write(` # Tailscale (P2P VPN, no tunnel needed)\n`);
|
|
621
|
+
process.stdout.write(` Install Tailscale on both your computer and phone, then use your\n`);
|
|
622
|
+
process.stdout.write(` Tailscale IP directly — no relay required:\n`);
|
|
623
|
+
process.stdout.write(` npx ${packageJson.name} --host=<tailscale-ip>\n`);
|
|
612
624
|
}
|
|
613
625
|
|
|
614
626
|
function parseNamedArg(name, errorHint) {
|
|
627
|
+
const inlinePrefix = `--${name}=`;
|
|
628
|
+
const inlineArg = process.argv.find((arg) => arg.startsWith(inlinePrefix));
|
|
629
|
+
if (inlineArg) {
|
|
630
|
+
const idx = process.argv.indexOf(inlineArg);
|
|
631
|
+
process.argv.splice(idx, 1);
|
|
632
|
+
return inlineArg.slice(inlinePrefix.length);
|
|
633
|
+
}
|
|
634
|
+
|
|
615
635
|
const idx = process.argv.indexOf(`--${name}`);
|
|
616
636
|
if (idx === -1) return null;
|
|
617
637
|
const value = process.argv[idx + 1];
|