mcp-aws-manager 0.4.5 → 0.4.6
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/mcp-aws-manager.js +6 -1
- package/package.json +1 -1
package/bin/mcp-aws-manager.js
CHANGED
|
@@ -681,6 +681,11 @@ function resolveDefaultHtmlOutPath() {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
|
|
684
|
+
const cwd = path.resolve(process.cwd());
|
|
685
|
+
if (!isLikelyProtectedInstallDir(cwd) && isWritableDirectory(cwd)) {
|
|
686
|
+
return path.join(cwd, DEFAULT_HTML_REPORT_NAME);
|
|
687
|
+
}
|
|
688
|
+
|
|
684
689
|
const home = os.homedir();
|
|
685
690
|
if (isWritableDirectory(home)) {
|
|
686
691
|
return path.join(home, DEFAULT_HTML_REPORT_NAME);
|
|
@@ -915,7 +920,7 @@ function usageText() {
|
|
|
915
920
|
" --ssh-bastion-user <user>",
|
|
916
921
|
" --ssh-bastion-port <port> (default: 22)",
|
|
917
922
|
" --ssh-bastion-pem-path <path> (optional bastion-only key path)",
|
|
918
|
-
" --html-out <path> (default: auto -> workspace/home aws-inventory.html)",
|
|
923
|
+
" --html-out <path> (default: auto -> workspace/cwd/home aws-inventory.html)",
|
|
919
924
|
" --topology-out <path> (default: auto -> workspace/home aws-topology.json)",
|
|
920
925
|
" --relationships-out <path> (default: auto -> workspace/home aws-relationships.json)",
|
|
921
926
|
" --governance-log <path> (default: auto -> workspace/home mcp-aws-governance-log.jsonl)",
|
package/package.json
CHANGED