@synkro-sh/cli 1.6.83 → 1.6.84
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 +10 -5
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -1570,7 +1570,12 @@ export async function loadConfig(jwt: string, query?: string): Promise<HookConfi
|
|
|
1570
1570
|
.filter((e: any) => e && typeof e.path === 'string')
|
|
1571
1571
|
.map((e: any) => ({ path: e.path, cwe_id: e.cwe_id || '' }));
|
|
1572
1572
|
}
|
|
1573
|
-
|
|
1573
|
+
// Trust the local result as authoritative ONLY when it actually carried a
|
|
1574
|
+
// policy (or we're in local storage mode, where no cloud fallback exists).
|
|
1575
|
+
// A transient empty local read (policy:null) must NOT short-circuit the
|
|
1576
|
+
// gateway fallback \u2014 otherwise the grade runs ruleless and the tag flaps to
|
|
1577
|
+
// "[\u2026:all:\u2026] no org rules to evaluate" on a repo that DOES have rules.
|
|
1578
|
+
if (policy || isLocalStorageMode()) return config;
|
|
1574
1579
|
}
|
|
1575
1580
|
} catch {}
|
|
1576
1581
|
|
|
@@ -3027,7 +3032,7 @@ export async function syncConversationTranscript(
|
|
|
3027
3032
|
const b = c as Record<string, unknown>;
|
|
3028
3033
|
return {
|
|
3029
3034
|
name: b.name,
|
|
3030
|
-
input: JSON.stringify(b.input || b.arguments || {}).slice(0,
|
|
3035
|
+
input: JSON.stringify(b.input || b.arguments || {}).slice(0, 20000),
|
|
3031
3036
|
id: b.id,
|
|
3032
3037
|
};
|
|
3033
3038
|
});
|
|
@@ -10839,7 +10844,7 @@ function writeConfigEnv(opts) {
|
|
|
10839
10844
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
10840
10845
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
10841
10846
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
10842
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.6.
|
|
10847
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.6.84")}`
|
|
10843
10848
|
];
|
|
10844
10849
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
10845
10850
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -14299,7 +14304,7 @@ function parseSession(filePath, sessionId) {
|
|
|
14299
14304
|
const msgObj = e.message;
|
|
14300
14305
|
const text = extractText(msgObj?.content ?? e.content);
|
|
14301
14306
|
const blocks = kind === "assistant" && Array.isArray(msgObj?.content) ? msgObj.content : [];
|
|
14302
|
-
const toolCalls = blocks.filter((b) => b?.type === "tool_use").map((b) => ({ name: b.name, input: JSON.stringify(b.input || {}).slice(0,
|
|
14307
|
+
const toolCalls = blocks.filter((b) => b?.type === "tool_use").map((b) => ({ name: b.name, input: JSON.stringify(b.input || {}).slice(0, 2e4), id: b.id }));
|
|
14303
14308
|
if (!text.trim() && toolCalls.length === 0) continue;
|
|
14304
14309
|
const msg = {
|
|
14305
14310
|
message_index: i,
|
|
@@ -14700,7 +14705,7 @@ var args = process.argv.slice(2);
|
|
|
14700
14705
|
var cmd = args[0] || "";
|
|
14701
14706
|
var subArgs = args.slice(1);
|
|
14702
14707
|
function printVersion() {
|
|
14703
|
-
console.log("1.6.
|
|
14708
|
+
console.log("1.6.84");
|
|
14704
14709
|
}
|
|
14705
14710
|
function printHelp2() {
|
|
14706
14711
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|