code-graph-builder 0.23.0 → 0.25.0

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/bin/cli.mjs +9 -8
  2. package/package.json +1 -1
package/bin/cli.mjs CHANGED
@@ -21,7 +21,8 @@ const MODULE_PATH = "code_graph_builder.mcp.server";
21
21
  const WORKSPACE_DIR = join(homedir(), ".code-graph-builder");
22
22
  const ENV_FILE = join(WORKSPACE_DIR, ".env");
23
23
  const IS_WIN = platform() === "win32";
24
- const PYPI_INDEX = "https://pypi.org/simple";
24
+ // Removed hardcoded PyPI index — pip will use the user's configured source
25
+ // (e.g. mirrors in pip.conf / pip.ini)
25
26
 
26
27
  // ---------------------------------------------------------------------------
27
28
  // Tree-style UI helpers
@@ -585,7 +586,7 @@ async function runSetup() {
585
586
  if (pip) {
586
587
  try {
587
588
  execSync(
588
- [...pip, "install", "--upgrade", "-i", PYPI_INDEX, PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
589
+ [...pip, "install", "--upgrade", PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
589
590
  { stdio: "pipe", shell: true }
590
591
  );
591
592
  } catch { /* handled below */ }
@@ -596,7 +597,7 @@ async function runSetup() {
596
597
  if (pip) {
597
598
  try {
598
599
  execSync(
599
- [...pip, "install", "--upgrade", "-i", PYPI_INDEX, PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
600
+ [...pip, "install", "--upgrade", PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
600
601
  { stdio: "pipe", shell: true }
601
602
  );
602
603
  } catch { /* upgrade is best-effort */ }
@@ -608,7 +609,7 @@ async function runSetup() {
608
609
  log(` ${T.BRANCH} ${T.OK} ${PYTHON_PACKAGE} ${ver || ""}`);
609
610
  } else {
610
611
  log(` ${T.BRANCH} ${T.FAIL} Package not installed`);
611
- log(` ${T.LAST} Run manually: pip install -i ${PYPI_INDEX} ${PYTHON_PACKAGE}`);
612
+ log(` ${T.LAST} Run manually: pip install ${PYTHON_PACKAGE}`);
612
613
  log();
613
614
  return;
614
615
  }
@@ -783,13 +784,13 @@ function autoInstallAndStart(extraArgs) {
783
784
 
784
785
  try {
785
786
  execSync(
786
- [...pip, "install", "-i", PYPI_INDEX, PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
787
+ [...pip, "install", PYTHON_PACKAGE].map(s => `"${s}"`).join(" "),
787
788
  { stdio: "inherit", shell: true }
788
789
  );
789
790
  } catch (err) {
790
791
  process.stderr.write(
791
792
  `\nFailed to install ${PYTHON_PACKAGE}.\n` +
792
- `Try manually: ${pip.join(" ")} install -i ${PYPI_INDEX} ${PYTHON_PACKAGE}\n`
793
+ `Try manually: ${pip.join(" ")} install ${PYTHON_PACKAGE}\n`
793
794
  );
794
795
  process.exit(1);
795
796
  }
@@ -797,7 +798,7 @@ function autoInstallAndStart(extraArgs) {
797
798
  if (!pythonPackageInstalled()) {
798
799
  process.stderr.write(
799
800
  `\nInstallation completed but package not importable.\n` +
800
- `Try manually: ${pip.join(" ")} install -i ${PYPI_INDEX} ${PYTHON_PACKAGE}\n`
801
+ `Try manually: ${pip.join(" ")} install ${PYTHON_PACKAGE}\n`
801
802
  );
802
803
  process.exit(1);
803
804
  }
@@ -924,7 +925,7 @@ if (mode === "--setup") {
924
925
  if (!PYTHON_CMD || !pythonPackageInstalled()) {
925
926
  process.stderr.write(
926
927
  `Error: Python package '${PYTHON_PACKAGE}' is not installed.\n` +
927
- `Run: pip install -i ${PYPI_INDEX} ${PYTHON_PACKAGE}\n`
928
+ `Run: pip install ${PYTHON_PACKAGE}\n`
928
929
  );
929
930
  process.exit(1);
930
931
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-graph-builder",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "description": "Code knowledge graph builder with MCP server for AI-assisted code navigation",
5
5
  "license": "MIT",
6
6
  "bin": {