claude-use 11.66.0 → 11.66.1

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/cli.cjs CHANGED
@@ -37176,7 +37176,7 @@ var init_package = __esm({
37176
37176
  "package.json"() {
37177
37177
  package_default = {
37178
37178
  name: "claude-use",
37179
- version: "11.66.0",
37179
+ version: "11.66.1",
37180
37180
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
37181
37181
  license: "MIT",
37182
37182
  author: "Joseph Mearman <joseph@mearman.co.uk>",
@@ -140397,18 +140397,18 @@ function sweepStaleRunDirectories(root) {
140397
140397
  }
140398
140398
  }
140399
140399
  }
140400
- function runProgram(runRoot, file2, args, cwd, options = {}) {
140401
- return options.outputInFile === true ? runWithOutputInFile(runRoot, file2, args, cwd) : runWithPipe(file2, args, cwd);
140400
+ function runProgram(runRoot, timeoutMs, file2, args, cwd, options = {}) {
140401
+ return options.outputInFile === true ? runWithOutputInFile(runRoot, timeoutMs, file2, args, cwd) : runWithPipe(timeoutMs, file2, args, cwd);
140402
140402
  }
140403
- function runWithPipe(file2, args, cwd) {
140403
+ function runWithPipe(timeoutMs, file2, args, cwd) {
140404
140404
  try {
140405
- const result = spawnSyncBlocking("a statusline command", file2, args, { cwd, encoding: "utf8", timeout: RUN_TIMEOUT_MS, killSignal: "SIGKILL", maxBuffer: RUN_MAX_OUTPUT_BYTES, stdio: ["ignore", "pipe", "ignore"], windowsHide: true });
140405
+ const result = spawnSyncBlocking("a statusline command", file2, args, { cwd, encoding: "utf8", timeout: timeoutMs, killSignal: "SIGKILL", maxBuffer: RUN_MAX_OUTPUT_BYTES, stdio: ["ignore", "pipe", "ignore"], windowsHide: true });
140406
140406
  return result.error === void 0 && result.status === 0 ? result.stdout : void 0;
140407
140407
  } catch {
140408
140408
  return void 0;
140409
140409
  }
140410
140410
  }
140411
- function runWithOutputInFile(runRoot, file2, args, cwd) {
140411
+ function runWithOutputInFile(runRoot, timeoutMs, file2, args, cwd) {
140412
140412
  let directory;
140413
140413
  try {
140414
140414
  sweepStaleRunDirectories(runRoot);
@@ -140417,7 +140417,7 @@ function runWithOutputInFile(runRoot, file2, args, cwd) {
140417
140417
  const descriptor = import_node_fs23.default.openSync(import_node_path56.default.join(directory, "stdout"), "wx+", RUN_FILE_MODE);
140418
140418
  try {
140419
140419
  const limited = process.platform === "win32" ? { command: file2, args } : fileSizeLimitedCommand("/bin/sh", file2, args);
140420
- const result = spawnSyncBlocking("a statusline command", limited.command, limited.args, { cwd, timeout: RUN_TIMEOUT_MS, killSignal: "SIGKILL", stdio: ["ignore", descriptor, "ignore"], windowsHide: true });
140420
+ const result = spawnSyncBlocking("a statusline command", limited.command, limited.args, { cwd, timeout: timeoutMs, killSignal: "SIGKILL", stdio: ["ignore", descriptor, "ignore"], windowsHide: true });
140421
140421
  return result.error === void 0 && result.status === 0 ? readOutput(descriptor) : void 0;
140422
140422
  } finally {
140423
140423
  import_node_fs23.default.closeSync(descriptor);
@@ -140447,7 +140447,7 @@ function discard(target) {
140447
140447
  function readMemoryUse() {
140448
140448
  const totalBytes = import_node_os12.default.totalmem();
140449
140449
  if (process.platform === "darwin") {
140450
- const output2 = runWithPipe("/usr/bin/vm_stat", [], process.cwd());
140450
+ const output2 = runWithPipe(RUN_TIMEOUT_MS, "/usr/bin/vm_stat", [], process.cwd());
140451
140451
  const usedBytes = output2 === void 0 ? void 0 : usedBytesFromVmStat(output2);
140452
140452
  return usedBytes === void 0 ? void 0 : { usedBytes, totalBytes };
140453
140453
  }
@@ -140457,7 +140457,7 @@ function readMemoryUse() {
140457
140457
  }
140458
140458
  return { usedBytes: totalBytes - import_node_os12.default.freemem(), totalBytes };
140459
140459
  }
140460
- function realStatuslinePorts(env, stateDirectory) {
140460
+ function realStatuslinePorts(env, stateDirectory, runTimeoutMs = RUN_TIMEOUT_MS) {
140461
140461
  const { locale, timeZone } = Intl.DateTimeFormat().resolvedOptions();
140462
140462
  return {
140463
140463
  env,
@@ -140480,7 +140480,7 @@ function realStatuslinePorts(env, stateDirectory) {
140480
140480
  return void 0;
140481
140481
  }
140482
140482
  },
140483
- run: (file2, args, cwd, options) => runProgram(import_node_path56.default.join(stateDirectory, RUN_DIRECTORY), file2, args, cwd, options),
140483
+ run: (file2, args, cwd, options) => runProgram(import_node_path56.default.join(stateDirectory, RUN_DIRECTORY), runTimeoutMs, file2, args, cwd, options),
140484
140484
  entryKind: (target) => {
140485
140485
  try {
140486
140486
  return import_node_fs23.default.lstatSync(target).isDirectory() ? "directory" : "other";
package/dist/index.cjs CHANGED
@@ -4751,7 +4751,7 @@ var init_package = __esm({
4751
4751
  "package.json"() {
4752
4752
  package_default = {
4753
4753
  name: "claude-use",
4754
- version: "11.66.0",
4754
+ version: "11.66.1",
4755
4755
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4756
4756
  license: "MIT",
4757
4757
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/dist/index.mjs CHANGED
@@ -4727,7 +4727,7 @@ var init_package = __esm({
4727
4727
  "package.json"() {
4728
4728
  package_default = {
4729
4729
  name: "claude-use",
4730
- version: "11.66.0",
4730
+ version: "11.66.1",
4731
4731
  description: "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
4732
4732
  license: "MIT",
4733
4733
  author: "Joseph Mearman <joseph@mearman.co.uk>",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-use",
3
- "version": "11.66.0",
3
+ "version": "11.66.1",
4
4
  "description": "A profile manager and launcher for Claude Code that lets one person run multiple logins from one machine while controlling what gets shared between them.",
5
5
  "license": "MIT",
6
6
  "author": "Joseph Mearman <joseph@mearman.co.uk>",