@synkro-sh/cli 1.4.51 → 1.4.52
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 +65 -32
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -5049,7 +5049,7 @@ function writeConfigEnv(opts) {
|
|
|
5049
5049
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
5050
5050
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
5051
5051
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
5052
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.4.
|
|
5052
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.4.52")}`
|
|
5053
5053
|
];
|
|
5054
5054
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
5055
5055
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -5909,7 +5909,8 @@ async function statusCommand() {
|
|
|
5909
5909
|
const config = readConfigEnv();
|
|
5910
5910
|
const gatewayUrl = (config.SYNKRO_GATEWAY_URL || "https://api.synkro.sh").replace(/^['"]|['"]$/g, "");
|
|
5911
5911
|
let serverTier = config.SYNKRO_TIER || "(unset)";
|
|
5912
|
-
let serverInference = config.SYNKRO_INFERENCE || "
|
|
5912
|
+
let serverInference = config.SYNKRO_INFERENCE || "(unset)";
|
|
5913
|
+
let localInference = false;
|
|
5913
5914
|
await ensureValidToken();
|
|
5914
5915
|
const token = getAccessToken();
|
|
5915
5916
|
if (token) {
|
|
@@ -5921,6 +5922,7 @@ async function statusCommand() {
|
|
|
5921
5922
|
if (resp.ok) {
|
|
5922
5923
|
const data = await resp.json();
|
|
5923
5924
|
serverInference = data.fast_inference ? "fast" : "standard";
|
|
5925
|
+
localInference = !!data.local_inference;
|
|
5924
5926
|
serverTier = data.plan_tier ?? data.tier ?? serverTier;
|
|
5925
5927
|
}
|
|
5926
5928
|
} catch {
|
|
@@ -5930,7 +5932,7 @@ async function statusCommand() {
|
|
|
5930
5932
|
console.log(` gateway: ${gatewayUrl}`);
|
|
5931
5933
|
console.log(` credentials: ${config.SYNKRO_CREDENTIALS_PATH ?? "(unset)"}`);
|
|
5932
5934
|
console.log(` tier: ${serverTier}`);
|
|
5933
|
-
const inferenceLabel =
|
|
5935
|
+
const inferenceLabel = localInference ? "'local' (grading via Claude Code channels)" : "'server' (grading via provider keys)";
|
|
5934
5936
|
console.log(` inference: ${inferenceLabel}`);
|
|
5935
5937
|
console.log(` version: ${config.SYNKRO_VERSION ?? "(unset)"}`);
|
|
5936
5938
|
console.log();
|
|
@@ -5946,10 +5948,10 @@ async function statusCommand() {
|
|
|
5946
5948
|
const hooks = inspectCCHooks(a.settingsPath);
|
|
5947
5949
|
console.log(` hooks installed: ${hooks.installed ? "\u2713" : "\u2717"}`);
|
|
5948
5950
|
if (hooks.installed) {
|
|
5949
|
-
console.log(` \u2022 PreToolUse Bash:
|
|
5950
|
-
console.log(` \u2022
|
|
5951
|
-
console.log(` \u2022 SessionEnd summary:
|
|
5952
|
-
console.log(` \u2022 SessionStart:
|
|
5951
|
+
console.log(` \u2022 PreToolUse Bash: ${hooks.preToolUseBash ? "\u2713" : "\u2717"}`);
|
|
5952
|
+
console.log(` \u2022 PreToolUse Edit: ${hooks.postToolUseEdit ? "\u2713" : "\u2717"}`);
|
|
5953
|
+
console.log(` \u2022 SessionEnd summary: ${hooks.sessionEnd ? "\u2713" : "\u2717"}`);
|
|
5954
|
+
console.log(` \u2022 SessionStart: ${hooks.sessionStart ? "\u2713" : "\u2717"}`);
|
|
5953
5955
|
}
|
|
5954
5956
|
} else if (a.kind === "cursor") {
|
|
5955
5957
|
const hooks = inspectCursorHooks(a.settingsPath);
|
|
@@ -5964,30 +5966,57 @@ async function statusCommand() {
|
|
|
5964
5966
|
}
|
|
5965
5967
|
}
|
|
5966
5968
|
console.log();
|
|
5967
|
-
const
|
|
5968
|
-
const
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
console.log(
|
|
5988
|
-
|
|
5989
|
-
|
|
5969
|
+
const HOOKS_DIR2 = join12(SYNKRO_DIR3, "hooks");
|
|
5970
|
+
const ccHooks = [
|
|
5971
|
+
"cc-bash-judge.ts",
|
|
5972
|
+
"cc-bash-followup.ts",
|
|
5973
|
+
"cc-edit-precheck.ts",
|
|
5974
|
+
"cc-cwe-precheck.ts",
|
|
5975
|
+
"cc-cve-precheck.ts",
|
|
5976
|
+
"cc-plan-judge.ts",
|
|
5977
|
+
"cc-stop-summary.ts",
|
|
5978
|
+
"cc-session-start.ts",
|
|
5979
|
+
"cc-transcript-sync.ts",
|
|
5980
|
+
"cc-user-prompt-submit.ts",
|
|
5981
|
+
"_synkro-common.ts"
|
|
5982
|
+
];
|
|
5983
|
+
const cursorHooks = [
|
|
5984
|
+
"cursor-bash-judge.sh",
|
|
5985
|
+
"cursor-edit-precheck.sh",
|
|
5986
|
+
"cursor-bash-followup.sh",
|
|
5987
|
+
"_synkro-common.sh"
|
|
5988
|
+
];
|
|
5989
|
+
console.log("Hook scripts (Claude Code):");
|
|
5990
|
+
for (const f of ccHooks) {
|
|
5991
|
+
const p = join12(HOOKS_DIR2, f);
|
|
5992
|
+
console.log(` ${existsSync12(p) ? "\u2713" : "\u2717"} ${p}`);
|
|
5993
|
+
}
|
|
5994
|
+
console.log("Hook scripts (Cursor):");
|
|
5995
|
+
for (const f of cursorHooks) {
|
|
5996
|
+
const p = join12(HOOKS_DIR2, f);
|
|
5997
|
+
console.log(` ${existsSync12(p) ? "\u2713" : "\u2717"} ${p}`);
|
|
5998
|
+
}
|
|
5990
5999
|
console.log();
|
|
6000
|
+
if (localInference) {
|
|
6001
|
+
console.log("Local-CC channels:");
|
|
6002
|
+
try {
|
|
6003
|
+
const t1 = findTask(CHANNEL_PRIMARY);
|
|
6004
|
+
if (t1) {
|
|
6005
|
+
console.log(` Channel 1 (org rules): pueue id=${t1.id} status=${t1.status}`);
|
|
6006
|
+
} else {
|
|
6007
|
+
console.log(" Channel 1 (org rules): not running");
|
|
6008
|
+
}
|
|
6009
|
+
const t2 = findTask(CHANNEL_SECONDARY);
|
|
6010
|
+
if (t2) {
|
|
6011
|
+
console.log(` Channel 2 (CWE scan): pueue id=${t2.id} status=${t2.status}`);
|
|
6012
|
+
} else {
|
|
6013
|
+
console.log(" Channel 2 (CWE scan): not running");
|
|
6014
|
+
}
|
|
6015
|
+
} catch {
|
|
6016
|
+
console.log(" (pueue not available)");
|
|
6017
|
+
}
|
|
6018
|
+
console.log();
|
|
6019
|
+
}
|
|
5991
6020
|
const mcp = inspectMcpConfig();
|
|
5992
6021
|
console.log("Guardrails MCP server (Claude Code):");
|
|
5993
6022
|
if (mcp.installed) {
|
|
@@ -6007,6 +6036,7 @@ var init_status = __esm({
|
|
|
6007
6036
|
init_ccHookConfig();
|
|
6008
6037
|
init_cursorHookConfig();
|
|
6009
6038
|
init_mcpConfig();
|
|
6039
|
+
init_pueue();
|
|
6010
6040
|
SYNKRO_DIR3 = join12(homedir11(), ".synkro");
|
|
6011
6041
|
CONFIG_PATH4 = join12(SYNKRO_DIR3, "config.env");
|
|
6012
6042
|
}
|
|
@@ -6945,11 +6975,14 @@ import { join as join15 } from "path";
|
|
|
6945
6975
|
function tearDownLocalCC() {
|
|
6946
6976
|
let hadTask = false;
|
|
6947
6977
|
try {
|
|
6948
|
-
|
|
6978
|
+
const t1 = findTask();
|
|
6979
|
+
const t2 = findTask(CHANNEL_SECONDARY);
|
|
6980
|
+
hadTask = !!(t1 || t2);
|
|
6949
6981
|
stopTask();
|
|
6982
|
+
stopTask(CHANNEL_SECONDARY);
|
|
6950
6983
|
} catch {
|
|
6951
6984
|
}
|
|
6952
|
-
console.log(`${hadTask ? "\u2713" : "\xB7"} local-cc runtime: ${hadTask ? "stopped
|
|
6985
|
+
console.log(`${hadTask ? "\u2713" : "\xB7"} local-cc runtime: ${hadTask ? "stopped both channels" : "no live tasks"}`);
|
|
6953
6986
|
uninstallLocalCC();
|
|
6954
6987
|
console.log("\u2713 local-cc config: cleaned ~/.claude.json entries");
|
|
6955
6988
|
}
|