🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@rajinthan17/dot-cli

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rajinthan17/dot-cli - npm Package Compare versions

Comparing version
1.0.9
to
1.0.10
+5
-29
index.js

@@ -222,13 +222,2 @@ #!/usr/bin/env node

console.log(
chalk.yellow("\n--- Code review (tags only) ---\n"),
);
console.log(chalk.blue(`ℹ Staged files: ${stagedFiles.length}`));
console.log(
chalk.blue(`ℹ Guidelines: ${path.relative(cwd, codeReviewPath)}`),
);
console.log(
chalk.blue("ℹ Opening Cursor Chat and tagging files...\n"),
);
if (process.platform === "darwin") {

@@ -250,31 +239,18 @@ try {

for (const fileName of filesToTag) {
// Perform tagging sequence: @ -> wait -> filename -> wait -> enter
lines.push('keystroke "@"');
lines.push("delay 0.4");
lines.push("delay 0.5");
lines.push(`keystroke ${JSON.stringify(fileName)}`);
lines.push("delay 0.6");
lines.push("delay 0.7");
lines.push("key code 36"); // Enter to select from picker
lines.push('keystroke " "'); // Space after chip
lines.push("delay 0.1");
lines.push("delay 0.2");
}
lines.push("key code 36"); // Final Enter to submit chat
lines.push("end tell");
const chatProcess = spawn("osascript", lines.flatMap((l) => ["-e", l]), {
spawn("osascript", lines.flatMap((l) => ["-e", l]), {
stdio: "inherit",
});
chatProcess.on("exit", (code) => {
if (code === 0) {
console.log(chalk.green(`✔ Cursor Chat triggered with tags.\n`));
} else {
console.log(
chalk.red(
`✖ Couldn't trigger Cursor Chat (osascript exit code ${code}).\n`,
),
);
}
});
} else {
console.log(chalk.yellow("ℹ Tagging is currently only supported on macOS.\n"));
spawn("cursor", [], { stdio: "inherit" });

@@ -281,0 +257,0 @@ }

+1
-1
{
"name": "@rajinthan17/dot-cli",
"version": "1.0.9",
"version": "1.0.10",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",