Jelajahi Sumber

Fix next steps to use npx instead of global codegraph command

Users running via npx don't have the codegraph command installed
globally. Update installer message and README to use
npx @colbymchenry/codegraph init -i instead.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Colby McHenry 5 bulan lalu
induk
melakukan
26f8f2f59f
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      README.md
  2. 1 1
      package.json
  3. 1 1
      src/installer/banner.ts

+ 1 - 1
README.md

@@ -172,7 +172,7 @@ For each project you want to use CodeGraph with:
 
 
 ```bash
 ```bash
 cd your-project
 cd your-project
-codegraph init -i
+npx @colbymchenry/codegraph init -i
 ```
 ```
 
 
 That's it! Claude Code will now use CodeGraph tools automatically when a `.codegraph/` directory exists.
 That's it! Claude Code will now use CodeGraph tools automatically when a `.codegraph/` directory exists.

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "@colbymchenry/codegraph",
   "name": "@colbymchenry/codegraph",
-  "version": "0.2.2",
+  "version": "0.2.3",
   "description": "A local-first code intelligence system that builds a semantic knowledge graph from any codebase",
   "description": "A local-first code intelligence system that builds a semantic knowledge graph from any codebase",
   "main": "dist/index.js",
   "main": "dist/index.js",
   "types": "dist/index.d.ts",
   "types": "dist/index.d.ts",

+ 1 - 1
src/installer/banner.ts

@@ -121,7 +121,7 @@ export function showNextSteps(location: 'global' | 'local'): void {
   if (location === 'global') {
   if (location === 'global') {
     console.log(chalk.dim('  Quick start:'));
     console.log(chalk.dim('  Quick start:'));
     console.log(chalk.dim('    cd your-project'));
     console.log(chalk.dim('    cd your-project'));
-    console.log(chalk.cyan('    codegraph init -i'));
+    console.log(chalk.cyan('    npx @colbymchenry/codegraph init -i'));
   } else {
   } else {
     console.log(chalk.dim('  CodeGraph is ready to use in this project!'));
     console.log(chalk.dim('  CodeGraph is ready to use in this project!'));
   }
   }