@ulpi/codemap 0.3.10 → 0.3.11
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.
- package/dist/index.js +19 -0
- package/package.json +2 -4
- package/scripts/postinstall.js +0 -36
package/dist/index.js
CHANGED
|
@@ -5980,6 +5980,25 @@ symbol lookup, dependency analysis, and PageRank file ranking.
|
|
|
5980
5980
|
console.log();
|
|
5981
5981
|
console.log(chalk3.dim("\u2500".repeat(60)));
|
|
5982
5982
|
console.log(chalk3.dim("Copy the above into your CLAUDE.md, .cursorrules, or agent config."));
|
|
5983
|
+
console.log();
|
|
5984
|
+
console.log(chalk3.bold("Multi-project setup"));
|
|
5985
|
+
console.log();
|
|
5986
|
+
console.log("You can give your AI agent code intelligence across multiple codebases.");
|
|
5987
|
+
console.log("Run " + chalk3.cyan("codemap init") + " + " + chalk3.cyan("codemap index") + " in each project, then register");
|
|
5988
|
+
console.log("one MCP server per project:");
|
|
5989
|
+
console.log();
|
|
5990
|
+
console.log(chalk3.dim(" // .mcp.json"));
|
|
5991
|
+
console.log(chalk3.dim(" {"));
|
|
5992
|
+
console.log(chalk3.dim(' "mcpServers": {'));
|
|
5993
|
+
console.log(chalk3.dim(' "codemap": {'));
|
|
5994
|
+
console.log(chalk3.dim(' "command": "codemap", "args": ["serve"]') + chalk3.dim(" \u2190 this project"));
|
|
5995
|
+
console.log(chalk3.dim(" },"));
|
|
5996
|
+
console.log(chalk3.dim(' "codemap-frontend": {'));
|
|
5997
|
+
console.log(chalk3.dim(' "command": "codemap",'));
|
|
5998
|
+
console.log(chalk3.dim(' "args": ["serve", "--cwd", "/path/to/frontend"]') + chalk3.dim(" \u2190 another project"));
|
|
5999
|
+
console.log(chalk3.dim(" }"));
|
|
6000
|
+
console.log(chalk3.dim(" }"));
|
|
6001
|
+
console.log(chalk3.dim(" }"));
|
|
5983
6002
|
}
|
|
5984
6003
|
var ULPI_API_BASE = "https://codemap.ulpi.io";
|
|
5985
6004
|
var ULPI_AUTH_BASE = "https://codemap.ulpi.io/api/v1";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulpi/codemap",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Standalone code intelligence CLI — hybrid vector + BM25 search, dependency analysis, PageRank",
|
|
6
6
|
"bin": {
|
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
".": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
"scripts/postinstall.js"
|
|
13
|
+
"dist"
|
|
15
14
|
],
|
|
16
15
|
"scripts": {
|
|
17
|
-
"postinstall": "node scripts/postinstall.js",
|
|
18
16
|
"build": "tsup && node --import tsx scripts/copy-grammars.ts",
|
|
19
17
|
"typecheck": "tsc --noEmit",
|
|
20
18
|
"test": "vitest run",
|
package/scripts/postinstall.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
// Postinstall welcome message for `npm install -g @ulpi/codemap`
|
|
2
|
-
const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
|
|
3
|
-
const dim = (s) => `\x1b[2m${s}\x1b[0m`;
|
|
4
|
-
const bold = (s) => `\x1b[1m${s}\x1b[0m`;
|
|
5
|
-
|
|
6
|
-
console.warn();
|
|
7
|
-
console.warn(bold("codemap") + " installed successfully.");
|
|
8
|
-
console.warn();
|
|
9
|
-
console.warn("Get started:");
|
|
10
|
-
console.warn(` ${cyan("codemap init")} ${dim("# Choose embedding provider + model")}`);
|
|
11
|
-
console.warn(` ${cyan("codemap index")} ${dim("# Index your project")}`);
|
|
12
|
-
console.warn(` ${cyan("codemap search")} ${dim('"query"')} ${dim("# Search your code")}`);
|
|
13
|
-
console.warn();
|
|
14
|
-
console.warn("Add as an MCP server to give your AI agent code intelligence:");
|
|
15
|
-
console.warn(` ${cyan("codemap serve")} ${dim("# Start MCP server (stdio)")}`);
|
|
16
|
-
console.warn();
|
|
17
|
-
console.warn("Multi-project: Index each codebase, then register one MCP server per project.");
|
|
18
|
-
console.warn("Your AI agent gets code intelligence across your entire stack.");
|
|
19
|
-
console.warn();
|
|
20
|
-
console.warn(` ${dim("# Index each project once:")}`);
|
|
21
|
-
console.warn(` ${dim("$")} ${cyan("codemap init")} && ${cyan("codemap index")} ${dim("# current project")}`);
|
|
22
|
-
console.warn(` ${dim("$")} cd ~/projects/frontend && ${cyan("codemap init")} && ${cyan("codemap index")}`);
|
|
23
|
-
console.warn();
|
|
24
|
-
console.warn(` ${dim("# .mcp.json — add to the project where you use your AI agent:")}`);
|
|
25
|
-
console.warn(` ${dim("{")}`)
|
|
26
|
-
console.warn(` ${dim(' "mcpServers": {')}`);
|
|
27
|
-
console.warn(` ${dim(' "codemap": {')}`);
|
|
28
|
-
console.warn(` ${dim(' "command": "codemap", "args": ["serve"]')} ${dim("← this project")}`);
|
|
29
|
-
console.warn(` ${dim(' },')}`);
|
|
30
|
-
console.warn(` ${dim(' "codemap-frontend": {')}`);
|
|
31
|
-
console.warn(` ${dim(' "command": "codemap", "args": ["serve", "--cwd",')}`);
|
|
32
|
-
console.warn(` ${dim(' "/path/to/frontend"]')} ${dim("← another project")}`);
|
|
33
|
-
console.warn(` ${dim(' }')}`);
|
|
34
|
-
console.warn(` ${dim(" }")}`);
|
|
35
|
-
console.warn(` ${dim("}")}`);
|
|
36
|
-
console.warn();
|