@sellable/install 0.1.90 → 0.1.91

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.
@@ -444,6 +444,9 @@ function codexPluginMcp(opts) {
444
444
  type: "stdio",
445
445
  command,
446
446
  args,
447
+ env: {
448
+ SELLABLE_WATCH_MODE_DRIVER: "codex",
449
+ },
447
450
  },
448
451
  },
449
452
  };
@@ -455,6 +458,9 @@ function codexPluginMcp(opts) {
455
458
  type: "stdio",
456
459
  command: "npx",
457
460
  args: ["-y", opts.mcpPackage],
461
+ env: {
462
+ SELLABLE_WATCH_MODE_DRIVER: "codex",
463
+ },
458
464
  },
459
465
  },
460
466
  };
@@ -1518,6 +1524,10 @@ exec npx -y ${INSTALL_PACKAGE_SPEC} "$@"
1518
1524
  writeFile(binPath, shim, opts, 0o755);
1519
1525
  }
1520
1526
 
1527
+ function withWatchModeDriver(command, args, driver) {
1528
+ return ["env", [`SELLABLE_WATCH_MODE_DRIVER=${driver}`, command, ...args]];
1529
+ }
1530
+
1521
1531
  function mcpCommand(opts) {
1522
1532
  if (opts.server === "package") {
1523
1533
  return ["npx", ["-y", opts.mcpPackage]];
@@ -1536,6 +1546,12 @@ function mcpCommand(opts) {
1536
1546
  return ["hosted", [opts.hostedUrl]];
1537
1547
  }
1538
1548
 
1549
+ function mcpCommandForHost(opts, driver) {
1550
+ const [command, args] = mcpCommand(opts);
1551
+ if (command === "hosted") return [command, args];
1552
+ return withWatchModeDriver(command, args, driver);
1553
+ }
1554
+
1539
1555
  function installClaude(opts) {
1540
1556
  if (!commandExists("claude")) {
1541
1557
  const message =
@@ -1556,7 +1572,7 @@ function installClaude(opts) {
1556
1572
  patchClaudeAlwaysLoad(opts);
1557
1573
  return true;
1558
1574
  }
1559
- const [command, args] = mcpCommand(opts);
1575
+ const [command, args] = mcpCommandForHost(opts, "claude");
1560
1576
  run("claude", ["mcp", "remove", "sellable"], {
1561
1577
  ...opts,
1562
1578
  dryRun: opts.dryRun,
@@ -1638,7 +1654,7 @@ function installCodex(opts) {
1638
1654
  const info = installCodexDesktopPlugin(opts);
1639
1655
  return { installed: true, ...info };
1640
1656
  }
1641
- const [command, args] = mcpCommand(opts);
1657
+ const [command, args] = mcpCommandForHost(opts, "codex");
1642
1658
  run("codex", ["mcp", "remove", "sellable"], {
1643
1659
  ...opts,
1644
1660
  dryRun: opts.dryRun,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellable/install",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "type": "module",
5
5
  "description": "One-command installer for Sellable MCP in Claude Code and Codex",
6
6
  "bin": {