@synkro-sh/cli 1.6.1 → 1.6.3
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 -6
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -2011,6 +2011,7 @@ async function main() {
|
|
|
2011
2011
|
'Last user prompt: ' + (lastPrompt || 'none'),
|
|
2012
2012
|
'Org rules: ' + JSON.stringify(config.rules),
|
|
2013
2013
|
'IMPORTANT: If a rule is violated, ALWAYS return ok=false with the rule_id and reason, regardless of the rule mode. Do NOT pass a command just because the rule mode is "fix". The enforcement layer handles ask vs fix \u2014 your job is only to detect violations.',
|
|
2014
|
+
'When passing (ok=true), for EVERY rule: state whether it is relevant to this edit, and if relevant, why it passes. Format: "R001 (not relevant: no deployment). R003 relevant: no hardcoded secrets in file." Cover ALL rules \u2014 do not skip any. Be terse but specific per rule.',
|
|
2014
2015
|
].join('\\n');
|
|
2015
2016
|
|
|
2016
2017
|
let gradeResp: string;
|
|
@@ -3087,7 +3088,7 @@ async function main() {
|
|
|
3087
3088
|
'Last user prompt: ' + (lastPrompt || 'none'),
|
|
3088
3089
|
'Org rules: ' + JSON.stringify(config.rules),
|
|
3089
3090
|
'IMPORTANT: If a rule is violated, ALWAYS return ok=false with the rule_id and reason, regardless of the rule mode. Do NOT pass a command just because the rule mode is "fix". The enforcement layer handles ask vs fix — your job is only to detect violations.',
|
|
3090
|
-
'When passing (ok=true),
|
|
3091
|
+
'When passing (ok=true), for EVERY rule: state whether it is relevant to this command, and if relevant, why it passes. Format: "R001 (not relevant: no deployment). R003 relevant: no secrets in grep args. R005 relevant: in-repo path only." Cover ALL rules — do not skip any. Be terse but specific per rule.',
|
|
3091
3092
|
'Rules with preconditions (e.g. "run X before Y") are CONSUMED after the protected action completes. Use the session history timestamps to determine ordering: a precondition satisfied before the last occurrence of the protected action does NOT satisfy the next occurrence. Each new protected action needs its precondition re-satisfied.',
|
|
3092
3093
|
].filter(Boolean).join('\\n');
|
|
3093
3094
|
|
|
@@ -3121,9 +3122,7 @@ async function main() {
|
|
|
3121
3122
|
recentUserMessages: transcript.recentUserMessages, ccModel: transcript.ccModel,
|
|
3122
3123
|
});
|
|
3123
3124
|
} else {
|
|
3124
|
-
const
|
|
3125
|
-
const fixNote = fixRuleIds.length > 0 ? ' (fix rules checked: ' + fixRuleIds.join(', ') + ')' : '';
|
|
3126
|
-
const reason = tagStr + ' bashGuard → pass: ' + (verdict.reason || 'no policy violations detected') + fixNote;
|
|
3125
|
+
const reason = tagStr + ' bashGuard → pass: ' + (verdict.reason || 'no policy violations detected');
|
|
3127
3126
|
const combined = (installScanMsg ? installScanMsg + '\\n' : '') + reason;
|
|
3128
3127
|
outputJson({ systemMessage: combined, hookSpecificOutput: { hookEventName: 'PreToolUse', additionalContext: combined } });
|
|
3129
3128
|
dispatchCapture(jwt, 'bash', 'pass', 'clean', verdict.category || 'trivial_utility',
|
|
@@ -6000,7 +5999,7 @@ function writeConfigEnv(opts) {
|
|
|
6000
5999
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
6001
6000
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
6002
6001
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
6003
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.6.
|
|
6002
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.6.3")}`
|
|
6004
6003
|
];
|
|
6005
6004
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
6006
6005
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -7452,7 +7451,7 @@ var args = process.argv.slice(2);
|
|
|
7452
7451
|
var cmd = args[0] || "";
|
|
7453
7452
|
var subArgs = args.slice(1);
|
|
7454
7453
|
function printVersion() {
|
|
7455
|
-
console.log("1.6.
|
|
7454
|
+
console.log("1.6.3");
|
|
7456
7455
|
}
|
|
7457
7456
|
function printHelp() {
|
|
7458
7457
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|