contextswitch 0.1.8 → 0.1.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.
@@ -401,7 +401,7 @@ ${psScript}`);
401
401
  const output = execSync("where claude", { encoding: "utf-8" }).trim();
402
402
  const candidates = output.split(/\r?\n/).map((l) => l.trim()).filter(Boolean);
403
403
  debug("process", `'where claude' returned ${candidates.length} result(s): ${candidates.join(", ")}`);
404
- const cliIndicators = ["npm", "node_modules", "bun", "nvm", ".volta", "Roaming"];
404
+ const cliIndicators = ["npm", "node_modules", "bun", "nvm", ".volta", "Roaming", ".local\\bin", ".local/bin"];
405
405
  const guiIndicators = ["Program Files", "AppData\\Local\\claude", "AppData\\Local\\Programs\\claude"];
406
406
  for (const candidate of candidates) {
407
407
  const isLikelyCLI = cliIndicators.some((ind) => candidate.toLowerCase().includes(ind.toLowerCase()));
@@ -430,6 +430,8 @@ ${psScript}`);
430
430
  // npm global installs
431
431
  join(process.env.APPDATA || "", "npm", "claude.cmd"),
432
432
  join(process.env.APPDATA || "", "npm", "claude"),
433
+ // .local/bin (common default for Claude Code CLI)
434
+ join(process.env.USERPROFILE || "", ".local", "bin", "claude.exe"),
433
435
  // bun installs
434
436
  join(process.env.USERPROFILE || "", ".bun", "bin", "claude.exe"),
435
437
  // Volta
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ function getVersion() {
24
24
  const packageJson = JSON.parse(readFileSync(packagePath, "utf-8"));
25
25
  return packageJson.version;
26
26
  } catch {
27
- return "0.1.8";
27
+ return "0.1.9";
28
28
  }
29
29
  }
30
30
  function processSessionFallbackMarker() {
@@ -193,7 +193,7 @@ program.command("switch <domain>").description("Switch to a domain and launch Cl
193
193
  console.error(pc.red(`\u274C Invalid launch mode '${options.mode}'. Must be: window, tab, or inline`));
194
194
  process.exit(1);
195
195
  }
196
- const { switchCommand } = await import("./switch-HUW2NAZD.js");
196
+ const { switchCommand } = await import("./switch-IAY2Z3NL.js");
197
197
  await switchCommand(domain, options);
198
198
  });
199
199
  program.command("reset <domain>").description("Reset a domain session (archives current session by default)").option("--skip-archive", "Skip archiving the current session").option("-f, --force", "Skip confirmation prompt").action(async (domain, options) => {
@@ -299,7 +299,7 @@ domainCmd.command("remove <name>").alias("rm").description("Remove a domain from
299
299
  }
300
300
  });
301
301
  program.command("doctor").description("Check system configuration and diagnose issues").action(async () => {
302
- const { processManager } = await import("./process-AKHWPKQE.js");
302
+ const { processManager } = await import("./process-U5LACM4X.js");
303
303
  console.log(pc.cyan("\u{1FA7A} Running diagnostics...\n"));
304
304
  const failures = [];
305
305
  const claudeInstalled = processManager.verifyClaudeInstalled();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ProcessManager,
3
3
  processManager
4
- } from "./chunk-7GF2GND2.js";
4
+ } from "./chunk-V2PINWUG.js";
5
5
  import "./chunk-F36TGFK2.js";
6
6
  export {
7
7
  ProcessManager,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MGIXKKM6.js";
4
4
  import {
5
5
  processManager
6
- } from "./chunk-7GF2GND2.js";
6
+ } from "./chunk-V2PINWUG.js";
7
7
  import {
8
8
  LAUNCH_MODES,
9
9
  configManager,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contextswitch",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Domain-based context management for Claude Code CLI",
5
5
  "main": "dist/cli.js",
6
6
  "type": "module",