@merlean/analyzer 1.1.0 → 1.1.1
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/bin/cli.js +11 -14
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -51,10 +51,11 @@ function printHelp() {
|
|
|
51
51
|
Merlean Analyzer - AI-powered codebase analysis
|
|
52
52
|
|
|
53
53
|
Usage:
|
|
54
|
+
npx @merlean/analyzer --name <name>
|
|
54
55
|
npx @merlean/analyzer <path> --name <name>
|
|
55
56
|
|
|
56
57
|
Arguments:
|
|
57
|
-
<path> Path to codebase
|
|
58
|
+
<path> Path to codebase (default: current directory)
|
|
58
59
|
|
|
59
60
|
Options:
|
|
60
61
|
--name, -n <name> Site name (required)
|
|
@@ -63,14 +64,14 @@ Options:
|
|
|
63
64
|
--help, -h Show this help
|
|
64
65
|
|
|
65
66
|
Examples:
|
|
66
|
-
# Analyze
|
|
67
|
-
npx @merlean/analyzer
|
|
67
|
+
# Analyze current directory
|
|
68
|
+
npx @merlean/analyzer --name "My App"
|
|
68
69
|
|
|
69
|
-
#
|
|
70
|
-
npx @merlean/analyzer ./my-app --name "My App"
|
|
70
|
+
# Analyze specific path
|
|
71
|
+
npx @merlean/analyzer ./my-app --name "My App"
|
|
71
72
|
|
|
72
|
-
#
|
|
73
|
-
npx @merlean/analyzer
|
|
73
|
+
# Use custom backend (for local dev)
|
|
74
|
+
npx @merlean/analyzer --name "My App" --backend http://localhost:3004
|
|
74
75
|
`);
|
|
75
76
|
}
|
|
76
77
|
|
|
@@ -80,18 +81,14 @@ async function main() {
|
|
|
80
81
|
const options = parseArgs();
|
|
81
82
|
|
|
82
83
|
// Validate required args
|
|
83
|
-
if (!options.path) {
|
|
84
|
-
console.error('❌ Error: Path to codebase is required');
|
|
85
|
-
console.log(' Run with --help for usage');
|
|
86
|
-
process.exit(1);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
84
|
if (!options.name) {
|
|
90
85
|
console.error('❌ Error: --name is required');
|
|
86
|
+
console.log(' Run with --help for usage');
|
|
91
87
|
process.exit(1);
|
|
92
88
|
}
|
|
93
89
|
|
|
94
|
-
|
|
90
|
+
// Default to current directory if no path provided
|
|
91
|
+
const codebasePath = path.resolve(options.path || '.');
|
|
95
92
|
|
|
96
93
|
if (!fs.existsSync(codebasePath)) {
|
|
97
94
|
console.error(`❌ Error: Path does not exist: ${codebasePath}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merlean/analyzer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "AI Bot codebase analyzer - generates site maps for AI assistant integration",
|
|
5
5
|
"keywords": ["ai", "bot", "analyzer", "claude", "anthropic", "widget"],
|
|
6
6
|
"author": "zmaren",
|