ghost-bridge 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +21 -7
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5474,7 +5474,7 @@ function getServerPath() {
5474
5474
  return path.resolve(currentDir, "../dist/server.js");
5475
5475
  }
5476
5476
  function getUserExtensionDir() {
5477
- return path.join(os2.homedir(), ".ghost-bridge", "extension");
5477
+ return path.join(os2.homedir(), "ghost-bridge", "extension");
5478
5478
  }
5479
5479
  var init_utils = __esm({
5480
5480
  "lib/utils.js"() {
@@ -5487,6 +5487,18 @@ __export(init_exports, {
5487
5487
  init: () => init
5488
5488
  });
5489
5489
  import path2 from "path";
5490
+ import { exec } from "child_process";
5491
+ import os3 from "os";
5492
+ function openFolder(folderPath) {
5493
+ const platform = os3.platform();
5494
+ let command = "";
5495
+ if (platform === "darwin") command = `open "${folderPath}"`;
5496
+ else if (platform === "win32") command = `start "" "${folderPath}"`;
5497
+ else command = `xdg-open "${folderPath}"`;
5498
+ exec(command, (err) => {
5499
+ if (err) console.error(source_default.dim("Failed to open folder:", err.message));
5500
+ });
5501
+ }
5490
5502
  async function init(options) {
5491
5503
  console.log(source_default.bold("\u{1F47B} Ghost Bridge Initialization"));
5492
5504
  const configPath = getClaudeConfigPath();
@@ -5539,6 +5551,8 @@ async function init(options) {
5539
5551
  console.log(`4. Select the folder: ${source_default.bold(targetExt)}`);
5540
5552
  if (!isDryRun) {
5541
5553
  await import_fs_extra.default.outputFile(path2.join(targetExt, ".ghost-bridge-managed"), "This folder is managed by ghost-bridge CLI. Do not edit manually.");
5554
+ console.log(source_default.dim("\n\u{1F4C2} Opening extension folder..."));
5555
+ openFolder(targetExt);
5542
5556
  }
5543
5557
  }
5544
5558
  var import_fs_extra;
@@ -5555,15 +5569,15 @@ var extension_exports = {};
5555
5569
  __export(extension_exports, {
5556
5570
  showExtension: () => showExtension
5557
5571
  });
5558
- import { exec } from "child_process";
5559
- import os3 from "os";
5560
- function openFolder(path4) {
5561
- const platform = os3.platform();
5572
+ import { exec as exec2 } from "child_process";
5573
+ import os4 from "os";
5574
+ function openFolder2(path4) {
5575
+ const platform = os4.platform();
5562
5576
  let command = "";
5563
5577
  if (platform === "darwin") command = `open "${path4}"`;
5564
5578
  else if (platform === "win32") command = `start "" "${path4}"`;
5565
5579
  else command = `xdg-open "${path4}"`;
5566
- exec(command, (err) => {
5580
+ exec2(command, (err) => {
5567
5581
  if (err) console.error("Failed to open folder:", err);
5568
5582
  });
5569
5583
  }
@@ -5583,7 +5597,7 @@ async function showExtension(options) {
5583
5597
  console.log('3. Click "Load unpacked" and select the directory above.');
5584
5598
  if (options.open) {
5585
5599
  console.log(source_default.dim("Opening folder..."));
5586
- openFolder(extDir);
5600
+ openFolder2(extDir);
5587
5601
  }
5588
5602
  }
5589
5603
  var import_fs_extra2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghost-bridge",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Ghost Bridge: Zero-restart Chrome debugger bridge for Claude MCP. Includes CLI for easy setup.",