@synkro-sh/cli 1.4.53 → 1.4.54
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/dist/bootstrap.js +4 -4
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -1690,7 +1690,7 @@ async function main() {
|
|
|
1690
1690
|
const guardReason = (verdict.ruleId ? '(' + verdict.ruleId + ') ' : '') + (verdict.reason || 'policy violation');
|
|
1691
1691
|
|
|
1692
1692
|
if (mode !== 'audit') {
|
|
1693
|
-
const denyReason = 'Guard: ' + guardReason + '\\nFix all issues before retrying.';
|
|
1693
|
+
const denyReason = 'Guard: ' + guardReason + '\\nFix all issues before retrying. Do NOT ask the user to make the edit manually \u2014 resolve the violation in code yourself.';
|
|
1694
1694
|
dispatchCapture(jwt, 'edit', 'block', verdict.severity || 'critical', verdict.category || 'security',
|
|
1695
1695
|
toolName, gitRepo, sessionId, config.captureDepth, {
|
|
1696
1696
|
command: editContent, reasoning: guardReason,
|
|
@@ -1892,7 +1892,7 @@ async function main() {
|
|
|
1892
1892
|
const label = count === 1 ? 'match' : 'matches';
|
|
1893
1893
|
const cweMsg = cweTag + ' ' + fileShort + ' \\u2192 ' + count + ' CWE ' + label + ' (' + displayIds + ')';
|
|
1894
1894
|
const denyDetail = '[' + displayIds + '] ' + (verdict.reason || 'code weakness detected');
|
|
1895
|
-
const ctx = 'CWE: ' + denyDetail + '\\nFix all issues before retrying.';
|
|
1895
|
+
const ctx = 'CWE: ' + denyDetail + '\\nFix all issues before retrying. Do NOT ask the user to make the edit manually \u2014 resolve the weakness in code yourself.';
|
|
1896
1896
|
|
|
1897
1897
|
outputJson({
|
|
1898
1898
|
systemMessage: cweMsg,
|
|
@@ -2020,7 +2020,7 @@ async function main() {
|
|
|
2020
2020
|
const count = findings.length;
|
|
2021
2021
|
const label = count === 1 ? 'advisory' : 'advisories';
|
|
2022
2022
|
const cveMsg = cveTag + ' ' + fileShort + ' \\u2192 ' + count + ' ' + label;
|
|
2023
|
-
const ctx = 'CVE: ' + top3 + '\\nFix all issues before retrying.';
|
|
2023
|
+
const ctx = 'CVE: ' + top3 + '\\nFix all issues before retrying. Do NOT ask the user to make the edit manually \u2014 upgrade the vulnerable dependencies yourself.';
|
|
2024
2024
|
|
|
2025
2025
|
outputJson({
|
|
2026
2026
|
systemMessage: cveMsg,
|
|
@@ -5045,7 +5045,7 @@ function writeConfigEnv(opts) {
|
|
|
5045
5045
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
5046
5046
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
5047
5047
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
5048
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
5048
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.54")}`
|
|
5049
5049
|
];
|
|
5050
5050
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
5051
5051
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|