@codacy/gate-cli 0.10.0 → 0.10.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/bin/gate.js +4 -7
- package/package.json +1 -1
package/bin/gate.js
CHANGED
|
@@ -11926,7 +11926,7 @@ function computeDiff(oldContent, newContent, filePath) {
|
|
|
11926
11926
|
(0, import_node_fs8.writeFileSync)(tmpOld, oldContent);
|
|
11927
11927
|
(0, import_node_fs8.writeFileSync)(tmpNew, newContent);
|
|
11928
11928
|
const result = (0, import_node_child_process7.execSync)(
|
|
11929
|
-
`git diff --no-index --unified=
|
|
11929
|
+
`git diff --no-index --unified=10 -- "${tmpOld}" "${tmpNew}"`,
|
|
11930
11930
|
{ encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] }
|
|
11931
11931
|
);
|
|
11932
11932
|
return result || null;
|
|
@@ -12047,11 +12047,8 @@ function isGitOnlyPrompt(prompt) {
|
|
|
12047
12047
|
return true;
|
|
12048
12048
|
}
|
|
12049
12049
|
function detectAnalysisMode(noFilesChanged, assistantResponse, conversationPrompts) {
|
|
12050
|
-
if (conversationPrompts.length > 0) {
|
|
12051
|
-
|
|
12052
|
-
if (isGitOnlyPrompt(latestPrompt)) {
|
|
12053
|
-
return "skip";
|
|
12054
|
-
}
|
|
12050
|
+
if (conversationPrompts.length > 0 && conversationPrompts.every(isGitOnlyPrompt)) {
|
|
12051
|
+
return "skip";
|
|
12055
12052
|
}
|
|
12056
12053
|
if (noFilesChanged && !!assistantResponse) {
|
|
12057
12054
|
return "plan";
|
|
@@ -12619,7 +12616,7 @@ function registerInitCommand(program2) {
|
|
|
12619
12616
|
}
|
|
12620
12617
|
|
|
12621
12618
|
// src/cli.ts
|
|
12622
|
-
program.name("gate").description("CLI for GATE.md quality gate service").version("0.10.
|
|
12619
|
+
program.name("gate").description("CLI for GATE.md quality gate service").version("0.10.1").option("--token <token>", "Override authentication token").option("--service-url <url>", "Override service URL").option("--verbose", "Log HTTP requests/responses to stderr");
|
|
12623
12620
|
registerAuthCommands(program);
|
|
12624
12621
|
registerHooksCommands(program);
|
|
12625
12622
|
registerIntentCommands(program);
|