@vibelet/cli 1.2.105 → 1.2.106
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/dist/index.cjs +1 -1
- package/dist/runtime-version.cjs +1 -1
- package/dist/vibelet.mjs +23 -3
- package/package.json +1 -1
package/dist/runtime-version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var c=require("node:fs"),n=require("node:path"),p="@vibelet/cli";function i(r){try{let e=JSON.parse((0,c.readFileSync)(r,"utf8"));if(e.name===p&&typeof e.version=="string"&&e.version.length>0)return e.version}catch{}return null}function l(){return"1.2.
|
|
1
|
+
var c=require("node:fs"),n=require("node:path"),p="@vibelet/cli";function i(r){try{let e=JSON.parse((0,c.readFileSync)(r,"utf8"));if(e.name===p&&typeof e.version=="string"&&e.version.length>0)return e.version}catch{}return null}function l(){return"1.2.106"}var a=l();process.stdout.write(`${a}
|
|
2
2
|
`);
|
package/dist/vibelet.mjs
CHANGED
|
@@ -13936,6 +13936,7 @@ function createDarwinBackend() {
|
|
|
13936
13936
|
if (process.env.VIBELET_CANONICAL_HOST) envVars.VIBELET_CANONICAL_HOST = process.env.VIBELET_CANONICAL_HOST;
|
|
13937
13937
|
if (process.env.VIBELET_FALLBACK_HOSTS) envVars.VIBELET_FALLBACK_HOSTS = process.env.VIBELET_FALLBACK_HOSTS;
|
|
13938
13938
|
if (process.env.VIBELET_LOCAL_ONLY) envVars.VIBELET_LOCAL_ONLY = process.env.VIBELET_LOCAL_ONLY;
|
|
13939
|
+
if (process.env.VIBE_CLAUDE_DRIVER) envVars.VIBE_CLAUDE_DRIVER = process.env.VIBE_CLAUDE_DRIVER;
|
|
13939
13940
|
if (process.env.CODEX_PATH) envVars.CODEX_PATH = process.env.CODEX_PATH;
|
|
13940
13941
|
if (process.env.CLAUDE_PATH) envVars.CLAUDE_PATH = process.env.CLAUDE_PATH;
|
|
13941
13942
|
const envSection =
|
|
@@ -14071,7 +14072,7 @@ RestartSec=3
|
|
|
14071
14072
|
StandardOutput=append:${stdoutLogPath}
|
|
14072
14073
|
StandardError=append:${stderrLogPath}
|
|
14073
14074
|
Environment=PATH=${servicePath}
|
|
14074
|
-
Environment=VIBE_PORT=${port}${process.env.VIBELET_RELAY_URL ? `\nEnvironment=VIBELET_RELAY_URL=${process.env.VIBELET_RELAY_URL}` : ''}${process.env.VIBELET_CANONICAL_HOST ? `\nEnvironment=VIBELET_CANONICAL_HOST=${process.env.VIBELET_CANONICAL_HOST}` : ''}${process.env.VIBELET_FALLBACK_HOSTS ? `\nEnvironment=VIBELET_FALLBACK_HOSTS=${process.env.VIBELET_FALLBACK_HOSTS}` : ''}${process.env.VIBELET_LOCAL_ONLY ? `\nEnvironment=VIBELET_LOCAL_ONLY=${process.env.VIBELET_LOCAL_ONLY}` : ''}
|
|
14075
|
+
Environment=VIBE_PORT=${port}${process.env.VIBELET_RELAY_URL ? `\nEnvironment=VIBELET_RELAY_URL=${process.env.VIBELET_RELAY_URL}` : ''}${process.env.VIBELET_CANONICAL_HOST ? `\nEnvironment=VIBELET_CANONICAL_HOST=${process.env.VIBELET_CANONICAL_HOST}` : ''}${process.env.VIBELET_FALLBACK_HOSTS ? `\nEnvironment=VIBELET_FALLBACK_HOSTS=${process.env.VIBELET_FALLBACK_HOSTS}` : ''}${process.env.VIBELET_LOCAL_ONLY ? `\nEnvironment=VIBELET_LOCAL_ONLY=${process.env.VIBELET_LOCAL_ONLY}` : ''}${process.env.VIBE_CLAUDE_DRIVER ? `\nEnvironment=VIBE_CLAUDE_DRIVER=${process.env.VIBE_CLAUDE_DRIVER}` : ''}
|
|
14075
14076
|
|
|
14076
14077
|
[Install]
|
|
14077
14078
|
WantedBy=default.target
|
|
@@ -14470,6 +14471,9 @@ function printHelp() {
|
|
|
14470
14471
|
process.stdout.write(` npx ${packageJson.name} --access=https://<url> Use a custom tunnel URL for remote access\n`);
|
|
14471
14472
|
process.stdout.write(` npx ${packageJson.name} --access=<host> Set the primary LAN/Tailscale host/IP address\n`);
|
|
14472
14473
|
process.stdout.write(` npx ${packageJson.name} --port <port> Start or query the daemon on a custom port\n`);
|
|
14474
|
+
process.stdout.write(
|
|
14475
|
+
` npx ${packageJson.name} --claude-driver tui Drive the interactive Claude TUI (subscription) instead of \`claude -p\`\n`,
|
|
14476
|
+
);
|
|
14473
14477
|
process.stdout.write(` npx ${packageJson.name} --access=<host>,<fallbacks> Set fallback LAN/Tailscale hosts\n`);
|
|
14474
14478
|
process.stdout.write(` npx ${packageJson.name} stop Stop the daemon\n`);
|
|
14475
14479
|
process.stdout.write(` npx ${packageJson.name} restart Restart the daemon\n`);
|
|
@@ -14519,7 +14523,14 @@ function parsePortArg() {
|
|
|
14519
14523
|
}
|
|
14520
14524
|
|
|
14521
14525
|
function parseCommandArg(argv) {
|
|
14522
|
-
const namedArgsWithValues = new Set([
|
|
14526
|
+
const namedArgsWithValues = new Set([
|
|
14527
|
+
'--access',
|
|
14528
|
+
'--relay',
|
|
14529
|
+
'--host',
|
|
14530
|
+
'--fallback-hosts',
|
|
14531
|
+
'--port',
|
|
14532
|
+
'--claude-driver',
|
|
14533
|
+
]);
|
|
14523
14534
|
for (let i = 2; i < argv.length; i += 1) {
|
|
14524
14535
|
const arg = argv[i];
|
|
14525
14536
|
if (namedArgsWithValues.has(arg)) {
|
|
@@ -14531,7 +14542,8 @@ function parseCommandArg(argv) {
|
|
|
14531
14542
|
arg.startsWith('--relay=') ||
|
|
14532
14543
|
arg.startsWith('--host=') ||
|
|
14533
14544
|
arg.startsWith('--fallback-hosts=') ||
|
|
14534
|
-
arg.startsWith('--port=')
|
|
14545
|
+
arg.startsWith('--port=') ||
|
|
14546
|
+
arg.startsWith('--claude-driver=')
|
|
14535
14547
|
) {
|
|
14536
14548
|
continue;
|
|
14537
14549
|
}
|
|
@@ -14578,6 +14590,14 @@ async function main() {
|
|
|
14578
14590
|
process.env.VIBE_PORT = String(portArg);
|
|
14579
14591
|
}
|
|
14580
14592
|
|
|
14593
|
+
// Select the Claude driver: 'print' (claude -p, default) or 'tui' (interactive
|
|
14594
|
+
// TUI). Forwarded to the daemon via env so every backend (detached/launchd/
|
|
14595
|
+
// systemd) picks it up.
|
|
14596
|
+
const claudeDriverArg = parseNamedArg('claude-driver', 'tui');
|
|
14597
|
+
if (claudeDriverArg !== null) {
|
|
14598
|
+
process.env.VIBE_CLAUDE_DRIVER = claudeDriverArg;
|
|
14599
|
+
}
|
|
14600
|
+
|
|
14581
14601
|
let command = parseCommandArg(process.argv);
|
|
14582
14602
|
|
|
14583
14603
|
if (command === '--help' || command === '-h' || command === 'help') {
|