Skip to content

Commit a987aa6

Browse files
authored
Merge pull request #7 from ardelperal/feat/rename-to-codegraph-vba
feat(brand): rename package, commands, and MCP servers to codegraph-vba
2 parents b777f90 + 6347265 commit a987aa6

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "@colbymchenry/codegraph",
2+
"name": "codegraph-vba",
33
"version": "1.1.2",
44
"description": "Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"bin": {
8-
"codegraph": "./dist/bin/codegraph.js"
8+
"codegraph-vba": "./dist/bin/codegraph.js"
99
},
1010
"files": [
1111
"dist",

src/bin/codegraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const chalk = {
159159
};
160160

161161
program
162-
.name('codegraph')
162+
.name('codegraph-vba')
163163
.description('Code intelligence and knowledge graph for any codebase')
164164
.version(packageJson.version);
165165

src/installer/targets/antigravity.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ function preferredMcpConfigPath(): string {
118118
* nvm-managed tools like ours.
119119
*/
120120
function resolveCodegraphCommand(): string {
121-
if (process.platform !== 'darwin') return 'codegraph';
121+
if (process.platform !== 'darwin') return 'codegraph-vba';
122122
try {
123-
const resolved = execSync('command -v codegraph || which codegraph', {
123+
const resolved = execSync('command -v codegraph-vba || which codegraph-vba', {
124124
encoding: 'utf-8',
125125
stdio: ['ignore', 'pipe', 'ignore'],
126126
shell: '/bin/bash',
@@ -130,7 +130,7 @@ function resolveCodegraphCommand(): string {
130130
} catch {
131131
/* fall through to bare name */
132132
}
133-
return 'codegraph';
133+
return 'codegraph-vba';
134134
}
135135

136136
/**

src/installer/targets/hermes.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ function escapeRegExp(value: string): string {
251251

252252
function renderCodeGraphMcpChild(): string[] {
253253
return [
254-
' codegraph:',
255-
' command: codegraph',
254+
' codegraph-vba:',
255+
' command: codegraph-vba',
256256
' args:',
257257
' - serve',
258258
' - --mcp',
@@ -269,13 +269,13 @@ function renderCodeGraphMcpBlock(): string[] {
269269
function hasCodeGraphMcpServer(content: string): boolean {
270270
const lines = splitLines(content);
271271
const parent = topLevelRange(lines, 'mcp_servers');
272-
return !!parent && !!childRange(lines, parent, 'codegraph');
272+
return !!parent && !!childRange(lines, parent, 'codegraph-vba');
273273
}
274274

275275
function upsertCodeGraphMcpServer(content: string): string {
276276
const lines = splitLines(content);
277277
const parent = topLevelRange(lines, 'mcp_servers');
278-
const child = parent ? childRange(lines, parent, 'codegraph') : null;
278+
const child = parent ? childRange(lines, parent, 'codegraph-vba') : null;
279279
const replacement = renderCodeGraphMcpChild();
280280

281281
if (!parent) {
@@ -299,7 +299,7 @@ function upsertCodeGraphMcpServer(content: string): string {
299299
function removeCodeGraphMcpServer(content: string): string {
300300
const lines = splitLines(content);
301301
const parent = topLevelRange(lines, 'mcp_servers');
302-
const child = parent ? childRange(lines, parent, 'codegraph') : null;
302+
const child = parent ? childRange(lines, parent, 'codegraph-vba') : null;
303303
if (!child) return content;
304304
lines.splice(child.start, child.end - child.start);
305305
return joinLines(lines);

src/installer/targets/opencode.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function parseConfig(text: string): Record<string, any> {
118118
function getOpencodeServerEntry(): { type: string; command: string[]; enabled: boolean } {
119119
return {
120120
type: 'local',
121-
command: ['codegraph', 'serve', '--mcp'],
121+
command: ['codegraph-vba', 'serve', '--mcp'],
122122
enabled: true,
123123
};
124124
}
@@ -199,7 +199,7 @@ function writeMcpEntry(loc: Location): WriteResult['files'][number] {
199199
}
200200

201201
const config = parseConfig(text);
202-
const before = config.mcp?.codegraph;
202+
const before = config.mcp?.['codegraph-vba'];
203203
const after = getOpencodeServerEntry();
204204

205205
if (jsonDeepEqual(before, after)) {
@@ -216,7 +216,7 @@ function writeMcpEntry(loc: Location): WriteResult['files'][number] {
216216

217217
// Surgical edit — preserves comments, formatting, and order of
218218
// every key we don't touch.
219-
const edits = modify(text, ['mcp', 'codegraph'], after, {
219+
const edits = modify(text, ['mcp', 'codegraph-vba'], after, {
220220
formattingOptions: FORMATTING,
221221
});
222222
const updated = applyEdits(text, edits);
@@ -226,17 +226,17 @@ function writeMcpEntry(loc: Location): WriteResult['files'][number] {
226226
}
227227

228228
/**
229-
* Surgically drop `mcp.codegraph` from one config file. Leaves sibling
229+
* Surgically drop `mcp.codegraph-vba` from one config file. Leaves sibling
230230
* servers, comments, and formatting untouched; drops an emptied `mcp`
231231
* wrapper too. Shared by uninstall and the legacy-%APPDATA% sweep.
232232
*/
233233
function removeMcpEntryAt(file: string): WriteResult['files'][number] {
234234
if (!fs.existsSync(file)) return { path: file, action: 'not-found' };
235235
const text = readConfigText(file);
236236
const config = parseConfig(text);
237-
if (!config.mcp?.codegraph) return { path: file, action: 'not-found' };
237+
if (!config.mcp?.['codegraph-vba']) return { path: file, action: 'not-found' };
238238

239-
let edits = modify(text, ['mcp', 'codegraph'], undefined, {
239+
let edits = modify(text, ['mcp', 'codegraph-vba'], undefined, {
240240
formattingOptions: FORMATTING,
241241
});
242242
let updated = applyEdits(text, edits);

src/installer/targets/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
export function getMcpServerConfig(): { type: string; command: string; args: string[] } {
2525
return {
2626
type: 'stdio',
27-
command: 'codegraph',
27+
command: 'codegraph-vba',
2828
args: ['serve', '--mcp'],
2929
};
3030
}

src/mcp/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { getTelemetry, ClientInfo } from '../telemetry';
2828
// Exported so the proxy can answer `initialize` locally with the IDENTICAL
2929
// payload the daemon would send — no drift between the two handshake paths.
3030
export const SERVER_INFO = {
31-
name: 'codegraph',
31+
name: 'codegraph-vba',
3232
version: CodeGraphPackageVersion,
3333
};
3434

src/upgrade/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import * as https from 'https';
3030
import { spawnSync } from 'child_process';
3131

3232
export const REPO = 'ardelperal/codegraph';
33-
export const NPM_PACKAGE = '@colbymchenry/codegraph';
33+
export const NPM_PACKAGE = 'codegraph-vba';
3434
const RAW_BASE = `https://raw.githubusercontent.com/${REPO}/main`;
3535
export const INSTALL_SH_URL = `${RAW_BASE}/install.sh`;
3636

0 commit comments

Comments
 (0)