@synkro-sh/cli 1.6.16 → 1.6.18
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 +5 -4
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -3220,9 +3220,10 @@ async function main() {
|
|
|
3220
3220
|
command, reasoning: scan.blockContext.slice(0, 200),
|
|
3221
3221
|
violatedRules: scan.violatedIds,
|
|
3222
3222
|
});
|
|
3223
|
+
const denyReason = '[synkro:installScan] BLOCKED: ' + scan.summary + '\\nDo not retry this install. Suggest a safe version to the user instead.';
|
|
3223
3224
|
outputJson({
|
|
3224
|
-
systemMessage:
|
|
3225
|
-
hookSpecificOutput: { hookEventName: 'PreToolUse',
|
|
3225
|
+
systemMessage: denyReason,
|
|
3226
|
+
hookSpecificOutput: { hookEventName: 'PreToolUse', permissionDecision: 'deny', permissionDecisionReason: denyReason, additionalContext: denyReason },
|
|
3226
3227
|
});
|
|
3227
3228
|
} else if (scan.action === 'warn') {
|
|
3228
3229
|
outputJson({
|
|
@@ -6649,7 +6650,7 @@ function writeConfigEnv(opts) {
|
|
|
6649
6650
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
6650
6651
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
6651
6652
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
6652
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.6.
|
|
6653
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.6.18")}`
|
|
6653
6654
|
];
|
|
6654
6655
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
6655
6656
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -9316,7 +9317,7 @@ var args = process.argv.slice(2);
|
|
|
9316
9317
|
var cmd = args[0] || "";
|
|
9317
9318
|
var subArgs = args.slice(1);
|
|
9318
9319
|
function printVersion() {
|
|
9319
|
-
console.log("1.6.
|
|
9320
|
+
console.log("1.6.18");
|
|
9320
9321
|
}
|
|
9321
9322
|
function printHelp2() {
|
|
9322
9323
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|