@synkro-sh/cli 1.4.71 → 1.4.72
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 +14 -1
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -147,6 +147,11 @@ function installCCHooks(settingsPath, config) {
|
|
|
147
147
|
command: config.editPrecheckScriptPath,
|
|
148
148
|
timeout: 30
|
|
149
149
|
},
|
|
150
|
+
{
|
|
151
|
+
type: "command",
|
|
152
|
+
command: config.cwePrecheckScriptPath,
|
|
153
|
+
timeout: 30
|
|
154
|
+
},
|
|
150
155
|
{
|
|
151
156
|
type: "command",
|
|
152
157
|
command: config.cvePrecheckScriptPath,
|
|
@@ -6249,6 +6254,7 @@ function writeHookScripts() {
|
|
|
6249
6254
|
const bashScriptPath = join11(HOOKS_DIR, "cc-bash-judge.ts");
|
|
6250
6255
|
const bashFollowupScriptPath = join11(HOOKS_DIR, "cc-bash-followup.ts");
|
|
6251
6256
|
const editPrecheckScriptPath = join11(HOOKS_DIR, "cc-edit-precheck.ts");
|
|
6257
|
+
const cwePrecheckScriptPath = join11(HOOKS_DIR, "cc-cwe-precheck.ts");
|
|
6252
6258
|
const cvePrecheckScriptPath = join11(HOOKS_DIR, "cc-cve-precheck.ts");
|
|
6253
6259
|
const planJudgeScriptPath = join11(HOOKS_DIR, "cc-plan-judge.ts");
|
|
6254
6260
|
const agentJudgeScriptPath = join11(HOOKS_DIR, "cc-agent-judge.ts");
|
|
@@ -6264,6 +6270,7 @@ function writeHookScripts() {
|
|
|
6264
6270
|
writeFileSync7(bashScriptPath, BASH_JUDGE_TS, "utf-8");
|
|
6265
6271
|
writeFileSync7(bashFollowupScriptPath, BASH_FOLLOWUP_TS, "utf-8");
|
|
6266
6272
|
writeFileSync7(editPrecheckScriptPath, EDIT_PRECHECK_TS, "utf-8");
|
|
6273
|
+
writeFileSync7(cwePrecheckScriptPath, CWE_PRECHECK_TS, "utf-8");
|
|
6267
6274
|
writeFileSync7(cvePrecheckScriptPath, CVE_PRECHECK_TS, "utf-8");
|
|
6268
6275
|
writeFileSync7(planJudgeScriptPath, PLAN_JUDGE_TS, "utf-8");
|
|
6269
6276
|
writeFileSync7(agentJudgeScriptPath, AGENT_JUDGE_TS, "utf-8");
|
|
@@ -7079,6 +7086,7 @@ console.log(\`[synkro] local MCP guardrails server listening on http://127.0.0.1
|
|
|
7079
7086
|
chmodSync2(bashScriptPath, 493);
|
|
7080
7087
|
chmodSync2(bashFollowupScriptPath, 493);
|
|
7081
7088
|
chmodSync2(editPrecheckScriptPath, 493);
|
|
7089
|
+
chmodSync2(cwePrecheckScriptPath, 493);
|
|
7082
7090
|
chmodSync2(cvePrecheckScriptPath, 493);
|
|
7083
7091
|
chmodSync2(planJudgeScriptPath, 493);
|
|
7084
7092
|
chmodSync2(agentJudgeScriptPath, 493);
|
|
@@ -7095,6 +7103,7 @@ console.log(\`[synkro] local MCP guardrails server listening on http://127.0.0.1
|
|
|
7095
7103
|
bashScript: bashScriptPath,
|
|
7096
7104
|
bashFollowupScript: bashFollowupScriptPath,
|
|
7097
7105
|
editPrecheckScript: editPrecheckScriptPath,
|
|
7106
|
+
cwePrecheckScript: cwePrecheckScriptPath,
|
|
7098
7107
|
cvePrecheckScript: cvePrecheckScriptPath,
|
|
7099
7108
|
planJudgeScript: planJudgeScriptPath,
|
|
7100
7109
|
agentJudgeScript: agentJudgeScriptPath,
|
|
@@ -7136,7 +7145,7 @@ function writeConfigEnv(opts) {
|
|
|
7136
7145
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
7137
7146
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
7138
7147
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
7139
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
7148
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.72")}`
|
|
7140
7149
|
];
|
|
7141
7150
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
7142
7151
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -7536,6 +7545,8 @@ async function installCommand(opts = {}) {
|
|
|
7536
7545
|
console.log(` ${scripts.bashScript}`);
|
|
7537
7546
|
console.log(` ${scripts.bashFollowupScript}`);
|
|
7538
7547
|
console.log(` ${scripts.editPrecheckScript}`);
|
|
7548
|
+
console.log(` ${scripts.cwePrecheckScript}`);
|
|
7549
|
+
console.log(` ${scripts.cvePrecheckScript}`);
|
|
7539
7550
|
console.log(` ${scripts.planJudgeScript}`);
|
|
7540
7551
|
console.log(` ${scripts.agentJudgeScript}`);
|
|
7541
7552
|
console.log(` ${scripts.stopSummaryScript}`);
|
|
@@ -7571,6 +7582,7 @@ async function installCommand(opts = {}) {
|
|
|
7571
7582
|
bashJudgeScriptPath: scripts.bashScript,
|
|
7572
7583
|
bashFollowupScriptPath: scripts.bashFollowupScript,
|
|
7573
7584
|
editPrecheckScriptPath: scripts.editPrecheckScript,
|
|
7585
|
+
cwePrecheckScriptPath: scripts.cwePrecheckScript,
|
|
7574
7586
|
cvePrecheckScriptPath: scripts.cvePrecheckScript,
|
|
7575
7587
|
planJudgeScriptPath: scripts.planJudgeScript,
|
|
7576
7588
|
agentJudgeScriptPath: scripts.agentJudgeScript,
|
|
@@ -7588,6 +7600,7 @@ async function installCommand(opts = {}) {
|
|
|
7588
7600
|
editCaptureScriptPath: scripts.cursorEditCaptureScript,
|
|
7589
7601
|
bashFollowupScriptPath: scripts.bashFollowupScript,
|
|
7590
7602
|
editPrecheckScriptPath: scripts.editPrecheckScript,
|
|
7603
|
+
cwePrecheckScriptPath: scripts.cwePrecheckScript,
|
|
7591
7604
|
cvePrecheckScriptPath: scripts.cvePrecheckScript,
|
|
7592
7605
|
planJudgeScriptPath: scripts.planJudgeScript,
|
|
7593
7606
|
agentJudgeScriptPath: scripts.agentJudgeScript,
|