🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
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.4
to
1.0.5
+12
-16
index.js

@@ -201,15 +201,11 @@ #!/usr/bin/env node

const guidelines = await readFile(codeReviewPath, "utf8");
const prompt = `Review the following staged changes against our code review guidelines.
const reviewFileTag = `@${path.basename(codeReviewPath)}`;
const stagedFileTags = stagedFiles.map((f) => `@${f}`).join(" ");
## Code review guidelines (from code-review.md)
const prompt = `Review the staged changes against the guidelines in ${reviewFileTag}.
${guidelines}
## Files to review
${stagedFileTags}
## Staged files
${stagedFiles.join("\n")}
## Staged diff
\`\`\`diff

@@ -219,3 +215,3 @@ ${stagedDiff}

Please review the diff against the guidelines above and list any issues or suggestions.`;
Please review the diff against the guidelines in ${reviewFileTag} and list any issues or suggestions.`;

@@ -258,7 +254,7 @@ console.log(

? {
db: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/specs/db-schema.md`,
api: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/specs/api-collection.json`,
html: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/tasks/${encodeURIComponent(taskId)}/specs/index.html`,
screenshot: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/tasks/${encodeURIComponent(taskId)}/specs/screenshot.png`,
}
db: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/specs/db-schema.md`,
api: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/specs/api-collection.json`,
html: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/tasks/${encodeURIComponent(taskId)}/specs/index.html`,
screenshot: `${baseUrl.replace(/\/$/, "")}/projects/${encodeURIComponent(projectId)}/tasks/${encodeURIComponent(taskId)}/specs/screenshot.png`,
}
: { db: null, api: null, html: null, screenshot: null };

@@ -339,3 +335,3 @@

"Note: no download URL was configured, so empty placeholder files were created.\n" +
"Set DOT_SPECS_BASE_URL, run `dot config base-url <url>`, or pass --base-url.\n",
"Set DOT_SPECS_BASE_URL, run `dot config base-url <url>`, or pass --base-url.\n",
),

@@ -342,0 +338,0 @@ );

{
"name": "@rajinthan17/dot-cli",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

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