repomap-cli 0.1.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.
- package/dist/analyzer/imports-analyzer.d.ts +27 -0
- package/dist/analyzer/imports-analyzer.d.ts.map +1 -0
- package/dist/analyzer/imports-analyzer.js +74 -0
- package/dist/analyzer/imports-analyzer.js.map +1 -0
- package/dist/analyzer/tree-sitter-analyzer.d.ts +37 -0
- package/dist/analyzer/tree-sitter-analyzer.d.ts.map +1 -0
- package/dist/analyzer/tree-sitter-analyzer.js +531 -0
- package/dist/analyzer/tree-sitter-analyzer.js.map +1 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +202 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/login.d.ts +9 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +106 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/mcp.d.ts +4 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +511 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/snapshot.d.ts +8 -0
- package/dist/commands/snapshot.d.ts.map +1 -0
- package/dist/commands/snapshot.js +314 -0
- package/dist/commands/snapshot.js.map +1 -0
- package/dist/commands/status.d.ts +5 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +108 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/watch.d.ts +5 -0
- package/dist/commands/watch.d.ts.map +1 -0
- package/dist/commands/watch.js +367 -0
- package/dist/commands/watch.js.map +1 -0
- package/dist/generator/claude-md.d.ts +19 -0
- package/dist/generator/claude-md.d.ts.map +1 -0
- package/dist/generator/claude-md.js +656 -0
- package/dist/generator/claude-md.js.map +1 -0
- package/dist/generator/map-json.d.ts +35 -0
- package/dist/generator/map-json.d.ts.map +1 -0
- package/dist/generator/map-json.js +130 -0
- package/dist/generator/map-json.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +91 -0
- package/dist/index.js.map +1 -0
- package/dist/scanner/file-scanner.d.ts +9 -0
- package/dist/scanner/file-scanner.d.ts.map +1 -0
- package/dist/scanner/file-scanner.js +76 -0
- package/dist/scanner/file-scanner.js.map +1 -0
- package/dist/scanner/stack-detector.d.ts +10 -0
- package/dist/scanner/stack-detector.d.ts.map +1 -0
- package/dist/scanner/stack-detector.js +153 -0
- package/dist/scanner/stack-detector.js.map +1 -0
- package/dist/utils/credentials.d.ts +11 -0
- package/dist/utils/credentials.d.ts.map +1 -0
- package/dist/utils/credentials.js +34 -0
- package/dist/utils/credentials.js.map +1 -0
- package/dist/utils/health-score.d.ts +10 -0
- package/dist/utils/health-score.d.ts.map +1 -0
- package/dist/utils/health-score.js +44 -0
- package/dist/utils/health-score.js.map +1 -0
- package/dist/utils/ui.d.ts +14 -0
- package/dist/utils/ui.d.ts.map +1 -0
- package/dist/utils/ui.js +45 -0
- package/dist/utils/ui.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface Credentials {
|
|
2
|
+
access_token: string;
|
|
3
|
+
refresh_token?: string;
|
|
4
|
+
email: string;
|
|
5
|
+
expires_at?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function saveCredentials(creds: Credentials): void;
|
|
8
|
+
export declare function loadCredentials(): Credentials | null;
|
|
9
|
+
export declare function clearCredentials(): void;
|
|
10
|
+
export declare function getCredentialsPath(): string;
|
|
11
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/utils/credentials.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAGxD;AAED,wBAAgB,eAAe,IAAI,WAAW,GAAG,IAAI,CAepD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import os from 'os';
|
|
4
|
+
const CREDENTIALS_DIR = path.join(os.homedir(), '.repomap');
|
|
5
|
+
const CREDENTIALS_FILE = path.join(CREDENTIALS_DIR, 'credentials.json');
|
|
6
|
+
export function saveCredentials(creds) {
|
|
7
|
+
fs.mkdirSync(CREDENTIALS_DIR, { recursive: true });
|
|
8
|
+
fs.writeFileSync(CREDENTIALS_FILE, JSON.stringify(creds, null, 2), 'utf-8');
|
|
9
|
+
}
|
|
10
|
+
export function loadCredentials() {
|
|
11
|
+
try {
|
|
12
|
+
if (!fs.existsSync(CREDENTIALS_FILE))
|
|
13
|
+
return null;
|
|
14
|
+
const raw = fs.readFileSync(CREDENTIALS_FILE, 'utf-8');
|
|
15
|
+
const creds = JSON.parse(raw);
|
|
16
|
+
// Check token expiry if available
|
|
17
|
+
if (creds.expires_at && Date.now() / 1000 > creds.expires_at) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return creds;
|
|
21
|
+
}
|
|
22
|
+
catch {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export function clearCredentials() {
|
|
27
|
+
if (fs.existsSync(CREDENTIALS_FILE)) {
|
|
28
|
+
fs.rmSync(CREDENTIALS_FILE);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function getCredentialsPath() {
|
|
32
|
+
return CREDENTIALS_FILE;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @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,CAAC,EAAE,CAAC;QACpC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FileAnalysis } from '../analyzer/imports-analyzer.js';
|
|
2
|
+
import type { MapModule } from '../generator/map-json.js';
|
|
3
|
+
/**
|
|
4
|
+
* Health score (0-100):
|
|
5
|
+
* - Coverage of files in map (40%)
|
|
6
|
+
* - Clarity of module structure (30%)
|
|
7
|
+
* - Depth of dependency analysis (30%)
|
|
8
|
+
*/
|
|
9
|
+
export declare function calculateHealthScore(analyzedFiles: FileAnalysis[], totalFilesFound: number, modules: MapModule[]): number;
|
|
10
|
+
//# sourceMappingURL=health-score.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-score.d.ts","sourceRoot":"","sources":["../../src/utils/health-score.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,aAAa,EAAE,YAAY,EAAE,EAC7B,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,SAAS,EAAE,GACnB,MAAM,CAqCR"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Health score (0-100):
|
|
3
|
+
* - Coverage of files in map (40%)
|
|
4
|
+
* - Clarity of module structure (30%)
|
|
5
|
+
* - Depth of dependency analysis (30%)
|
|
6
|
+
*/
|
|
7
|
+
export function calculateHealthScore(analyzedFiles, totalFilesFound, modules) {
|
|
8
|
+
// 1. Coverage score (40 pts)
|
|
9
|
+
const coverage = totalFilesFound > 0
|
|
10
|
+
? Math.min(analyzedFiles.length / totalFilesFound, 1)
|
|
11
|
+
: 0;
|
|
12
|
+
const coverageScore = Math.round(coverage * 40);
|
|
13
|
+
// 2. Module clarity score (30 pts)
|
|
14
|
+
// Good: modules have < 20 files each, > 2 modules total
|
|
15
|
+
const moduleCount = modules.length;
|
|
16
|
+
const avgModuleSize = moduleCount > 0
|
|
17
|
+
? analyzedFiles.length / moduleCount
|
|
18
|
+
: 0;
|
|
19
|
+
let clarityScore = 0;
|
|
20
|
+
if (moduleCount >= 3)
|
|
21
|
+
clarityScore += 15;
|
|
22
|
+
else if (moduleCount >= 2)
|
|
23
|
+
clarityScore += 8;
|
|
24
|
+
else if (moduleCount >= 1)
|
|
25
|
+
clarityScore += 4;
|
|
26
|
+
if (avgModuleSize > 0 && avgModuleSize <= 20)
|
|
27
|
+
clarityScore += 15;
|
|
28
|
+
else if (avgModuleSize <= 50)
|
|
29
|
+
clarityScore += 8;
|
|
30
|
+
else
|
|
31
|
+
clarityScore += 3;
|
|
32
|
+
// 3. Dependency analysis depth score (30 pts)
|
|
33
|
+
const filesWithImports = analyzedFiles.filter((f) => f.imports.length > 0).length;
|
|
34
|
+
const filesWithExports = analyzedFiles.filter((f) => f.exports.length > 0).length;
|
|
35
|
+
const importCoverage = analyzedFiles.length > 0
|
|
36
|
+
? filesWithImports / analyzedFiles.length
|
|
37
|
+
: 0;
|
|
38
|
+
const exportCoverage = analyzedFiles.length > 0
|
|
39
|
+
? filesWithExports / analyzedFiles.length
|
|
40
|
+
: 0;
|
|
41
|
+
const depScore = Math.round((importCoverage * 0.6 + exportCoverage * 0.4) * 30);
|
|
42
|
+
return Math.min(100, coverageScore + clarityScore + depScore);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=health-score.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-score.js","sourceRoot":"","sources":["../../src/utils/health-score.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAClC,aAA6B,EAC7B,eAAuB,EAC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7C,CAAC,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM;QACzC,CAAC,CAAC,CAAC,CAAC;IACN,MAAM,cAAc,GAAG,aAAa,CAAC,MAAM,GAAG,CAAC;QAC7C,CAAC,CAAC,gBAAgB,GAAG,aAAa,CAAC,MAAM;QACzC,CAAC,CAAC,CAAC,CAAC;IAEN,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,cAAc,GAAG,GAAG,GAAG,cAAc,GAAG,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;IAEhF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,aAAa,GAAG,YAAY,GAAG,QAAQ,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const c: {
|
|
2
|
+
emerald: import("chalk").ChalkInstance;
|
|
3
|
+
amber: import("chalk").ChalkInstance;
|
|
4
|
+
red: import("chalk").ChalkInstance;
|
|
5
|
+
dim: import("chalk").ChalkInstance;
|
|
6
|
+
bold: import("chalk").ChalkInstance;
|
|
7
|
+
white: import("chalk").ChalkInstance;
|
|
8
|
+
cyan: import("chalk").ChalkInstance;
|
|
9
|
+
gray: import("chalk").ChalkInstance;
|
|
10
|
+
};
|
|
11
|
+
export declare function printBanner(): void;
|
|
12
|
+
export declare function healthBar(score: number, width?: number): string;
|
|
13
|
+
export declare function summaryBox(content: string): string;
|
|
14
|
+
//# sourceMappingURL=ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,CAAC;;;;;;;;;CASb,CAAC;AAIF,wBAAgB,WAAW,IAAI,IAAI,CAelC;AAID,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,SAAK,GAAG,MAAM,CAI3D;AAID,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMlD"}
|
package/dist/utils/ui.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
import boxen from 'boxen';
|
|
3
|
+
// ─── Color palette ────────────────────────────────────────────────────────────
|
|
4
|
+
export const c = {
|
|
5
|
+
emerald: chalk.hex('#10b981'),
|
|
6
|
+
amber: chalk.hex('#f59e0b'),
|
|
7
|
+
red: chalk.red,
|
|
8
|
+
dim: chalk.dim,
|
|
9
|
+
bold: chalk.bold,
|
|
10
|
+
white: chalk.white,
|
|
11
|
+
cyan: chalk.cyan,
|
|
12
|
+
gray: chalk.gray,
|
|
13
|
+
};
|
|
14
|
+
// ─── Banner ───────────────────────────────────────────────────────────────────
|
|
15
|
+
export function printBanner() {
|
|
16
|
+
const lines = [
|
|
17
|
+
' ██████╗ ███████╗██████╗ ██████╗ ███╗ ███╗ █████╗ ██████╗ ',
|
|
18
|
+
' ██╔══██╗██╔════╝██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██╔══██╗',
|
|
19
|
+
' ██████╔╝█████╗ ██████╔╝██║ ██║██╔████╔██║███████║██████╔╝ ',
|
|
20
|
+
' ██╔══██╗██╔══╝ ██╔═══╝ ██║ ██║██║╚██╔╝██║██╔══██║██╔═══╝ ',
|
|
21
|
+
' ██║ ██║███████╗██║ ╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ',
|
|
22
|
+
' ╚═╝ ╚═╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ',
|
|
23
|
+
];
|
|
24
|
+
console.log('');
|
|
25
|
+
for (const line of lines) {
|
|
26
|
+
console.log(c.emerald(line));
|
|
27
|
+
}
|
|
28
|
+
console.log(' ' + c.dim('Context manager for Claude Code — v0.1.0'));
|
|
29
|
+
console.log('');
|
|
30
|
+
}
|
|
31
|
+
// ─── Health bar ───────────────────────────────────────────────────────────────
|
|
32
|
+
export function healthBar(score, width = 10) {
|
|
33
|
+
const filled = Math.round((score / 100) * width);
|
|
34
|
+
const empty = width - filled;
|
|
35
|
+
return c.emerald('█'.repeat(filled)) + c.dim('░'.repeat(empty));
|
|
36
|
+
}
|
|
37
|
+
// ─── Summary box ─────────────────────────────────────────────────────────────
|
|
38
|
+
export function summaryBox(content) {
|
|
39
|
+
return boxen(content, {
|
|
40
|
+
padding: { top: 0, bottom: 0, left: 1, right: 1 },
|
|
41
|
+
borderStyle: 'round',
|
|
42
|
+
borderColor: 'green',
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../src/utils/ui.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,iFAAiF;AAEjF,MAAM,CAAC,MAAM,CAAC,GAAG;IACf,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC,GAAG;IACd,GAAG,EAAE,KAAK,CAAC,GAAG;IACd,IAAI,EAAE,KAAK,CAAC,IAAI;IAChB,KAAK,EAAE,KAAK,CAAC,KAAK;IAClB,IAAI,EAAE,KAAK,CAAC,IAAI;IAChB,IAAI,EAAE,KAAK,CAAC,IAAI;CACjB,CAAC;AAEF,iFAAiF;AAEjF,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAG;QACZ,gEAAgE;QAChE,gEAAgE;QAChE,iEAAiE;QACjE,iEAAiE;QACjE,iEAAiE;QACjE,iEAAiE;KAClE,CAAC;IACF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAClB,CAAC;AAED,iFAAiF;AAEjF,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,KAAK,GAAG,EAAE;IACjD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAClE,CAAC;AAED,gFAAgF;AAEhF,MAAM,UAAU,UAAU,CAAC,OAAe;IACxC,OAAO,KAAK,CAAC,OAAO,EAAE;QACpB,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;QACjD,WAAW,EAAE,OAAO;QACpB,WAAW,EAAE,OAAO;KACrB,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "repomap-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Context manager for Claude Code — generate and manage repo maps",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/josusanz/repomap.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://repomap.app",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"claude",
|
|
14
|
+
"claude-code",
|
|
15
|
+
"context",
|
|
16
|
+
"repomap",
|
|
17
|
+
"ai",
|
|
18
|
+
"mcp",
|
|
19
|
+
"codebase",
|
|
20
|
+
"developer-tools"
|
|
21
|
+
],
|
|
22
|
+
"bin": {
|
|
23
|
+
"repomap": "dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/index.js",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc",
|
|
28
|
+
"dev": "tsc --watch",
|
|
29
|
+
"start": "node dist/index.js"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@inquirer/prompts": "^7.4.0",
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
34
|
+
"boxen": "^8.0.1",
|
|
35
|
+
"chalk": "^5.4.1",
|
|
36
|
+
"commander": "^13.1.0",
|
|
37
|
+
"ignore": "^5.3.2",
|
|
38
|
+
"ora": "^8.2.0"
|
|
39
|
+
},
|
|
40
|
+
"optionalDependencies": {
|
|
41
|
+
"web-tree-sitter": "^0.22.6",
|
|
42
|
+
"tree-sitter-wasms": "^0.1.12"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^20",
|
|
46
|
+
"typescript": "^5"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist"
|
|
50
|
+
],
|
|
51
|
+
"engines": {
|
|
52
|
+
"node": ">=18.0.0"
|
|
53
|
+
}
|
|
54
|
+
}
|