codesummary 1.0.2 → 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/CHANGELOG.md +191 -0
- package/README.md +242 -51
- package/bin/codesummary.js +12 -12
- package/package.json +95 -84
- package/rag-schema.json +114 -0
- package/src/cli.js +540 -391
- package/src/configManager.js +827 -427
- package/src/errorHandler.js +477 -342
- package/src/index.js +25 -25
- package/src/pdfGenerator.js +475 -426
- package/src/ragConfig.js +373 -0
- package/src/ragGenerator.js +1758 -0
- package/src/scanner.js +467 -329
- package/RELEASE.md +0 -412
package/src/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import CLI from './cli.js';
|
|
4
|
-
import ErrorHandler from './errorHandler.js';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* CodeSummary - Main Entry Point
|
|
8
|
-
* A cross-platform CLI tool for generating PDF documentation from source code
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
async function main() {
|
|
12
|
-
try {
|
|
13
|
-
// Setup global error handlers and validate environment
|
|
14
|
-
ErrorHandler.setupGlobalHandlers();
|
|
15
|
-
ErrorHandler.validateEnvironment();
|
|
16
|
-
|
|
17
|
-
const cli = new CLI();
|
|
18
|
-
const args = process.argv.slice(2);
|
|
19
|
-
await cli.run(args);
|
|
20
|
-
} catch (error) {
|
|
21
|
-
ErrorHandler.handleError(error, 'Main Application');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Execute main function
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import CLI from './cli.js';
|
|
4
|
+
import ErrorHandler from './errorHandler.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* CodeSummary - Main Entry Point
|
|
8
|
+
* A cross-platform CLI tool for generating PDF documentation from source code
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
async function main() {
|
|
12
|
+
try {
|
|
13
|
+
// Setup global error handlers and validate environment
|
|
14
|
+
ErrorHandler.setupGlobalHandlers();
|
|
15
|
+
await ErrorHandler.validateEnvironment();
|
|
16
|
+
|
|
17
|
+
const cli = new CLI();
|
|
18
|
+
const args = process.argv.slice(2);
|
|
19
|
+
await cli.run(args);
|
|
20
|
+
} catch (error) {
|
|
21
|
+
ErrorHandler.handleError(error, 'Main Application');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Execute main function
|
|
26
26
|
main();
|