vibelet 1.2.141 → 1.2.143

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.
@@ -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.141"}var a=l();process.stdout.write(`${a}
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.143"}var a=l();process.stdout.write(`${a}
2
2
  `);
package/dist/vibelet.mjs CHANGED
@@ -11768,7 +11768,7 @@ __nccwpck_require__.d(__webpack_exports__, {
11768
11768
  gJ: () => (/* binding */ terminalControlTokenPath)
11769
11769
  });
11770
11770
 
11771
- // UNUSED EXPORTS: buildClaudeSessionIdArgs, buildClaudeTerminalArgs, buildResumeNativeArgs, cleanupClaudeTerminalHookFiles, collectProcessTreePids, connectTerminalControl, createClaudeTerminalHookFiles, createTerminalModeState, exitCodeFromChildExit, extractInitialSessionId, formatTerminalControlScreen, hasClaudeContinueArg, hasClaudeResumePickerArg, hasClaudeSettingsArg, monitorTerminalControlUntilChildExit, requestSwitchBackWhenReady, resolveNativeAgentCommand, stopNativeChild
11771
+ // UNUSED EXPORTS: buildClaudeSessionIdArgs, buildClaudeTerminalArgs, buildResumeNativeArgs, cleanupClaudeTerminalHookFiles, collectProcessTreePids, connectTerminalControl, createClaudeTerminalHookFiles, createTerminalModeState, exitCodeFromChildExit, extractInitialSessionId, formatTerminalControlScreen, hasClaudeContinueArg, hasClaudeResumePickerArg, hasClaudeSettingsArg, monitorTerminalControlUntilChildExit, normalizeTerminalScreenForTty, requestSwitchBackWhenReady, resolveNativeAgentCommand, stopNativeChild, waitForRemoteMonitorInput
11772
11772
 
11773
11773
  // EXTERNAL MODULE: external "node:child_process"
11774
11774
  var external_node_child_process_ = __nccwpck_require__(1421);
@@ -12337,12 +12337,16 @@ function formatTerminalControlScreen({
12337
12337
  return `${'\n'.repeat(verticalPadding)}${block.join('\n')}\n`;
12338
12338
  }
12339
12339
 
12340
+ function normalizeTerminalScreenForTty(screen) {
12341
+ return `\r${String(screen).replace(/\r?\n/g, '\r\n')}`;
12342
+ }
12343
+
12340
12344
  function renderTerminalControlScreen(stream, options) {
12341
12345
  const columns = Number(stream?.columns) || 80;
12342
12346
  const rows = Number(stream?.rows) || 24;
12343
12347
  const screen = formatTerminalControlScreen({ ...options, columns, rows, color: Boolean(stream?.isTTY) });
12344
12348
  if (stream?.isTTY) {
12345
- stream.write(`${ANSI_CLEAR_SCREEN}${ANSI_HIDE_CURSOR}${screen}`);
12349
+ stream.write(`${ANSI_CLEAR_SCREEN}${ANSI_HIDE_CURSOR}${normalizeTerminalScreenForTty(screen)}`);
12346
12350
  return;
12347
12351
  }
12348
12352
  stream.write(`\n${screen}`);
@@ -12398,12 +12402,11 @@ function waitForRemoteMonitorInput(signalExit, stdin = process.stdin) {
12398
12402
  }
12399
12403
  return new Promise((resolve) => {
12400
12404
  let settled = false;
12401
- const wasRaw = Boolean(stdin.isRaw);
12402
12405
  const finish = (result) => {
12403
12406
  if (settled) return;
12404
12407
  settled = true;
12405
12408
  stdin.off('data', onData);
12406
- if (!wasRaw) stdin.setRawMode(false);
12409
+ stdin.setRawMode(false);
12407
12410
  if (typeof stdin.pause === 'function') stdin.pause();
12408
12411
  resolve(result);
12409
12412
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibelet",
3
- "version": "1.2.141",
3
+ "version": "1.2.143",
4
4
  "description": "Cross-platform CLI for installing and running the Vibelet daemon",
5
5
  "homepage": "https://vibelet.icu",
6
6
  "files": [