create-claude-code-visualizer 0.1.0 → 0.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/index.js +2 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -99,19 +99,8 @@ async function main() {
|
|
|
99
99
|
console.log(`${BLUE}╚══════════════════════════════════════════════════╝${NC}`);
|
|
100
100
|
console.log("");
|
|
101
101
|
|
|
102
|
-
// Determine project directory from CLI arg
|
|
103
|
-
let projectDir = process.argv[2];
|
|
104
|
-
|
|
105
|
-
if (!projectDir) {
|
|
106
|
-
const res = await prompts({
|
|
107
|
-
type: "text",
|
|
108
|
-
name: "dir",
|
|
109
|
-
message: "Project directory",
|
|
110
|
-
initial: "my-claude-visualizer",
|
|
111
|
-
});
|
|
112
|
-
if (!res.dir) process.exit(0);
|
|
113
|
-
projectDir = res.dir;
|
|
114
|
-
}
|
|
102
|
+
// Determine project directory from CLI arg, default to current directory
|
|
103
|
+
let projectDir = process.argv[2] || ".";
|
|
115
104
|
|
|
116
105
|
const projectRoot = path.resolve(projectDir);
|
|
117
106
|
const isExisting = fs.existsSync(projectRoot) && fs.existsSync(path.join(projectRoot, ".claude"));
|