@synkro-sh/cli 1.7.1 → 1.7.2
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 -5
- package/dist/bootstrap.js.map +1 -1
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -1966,7 +1966,7 @@ export async function filterRules(commandText: string, allRules: Rule[]): Promis
|
|
|
1966
1966
|
if (allRules.length <= 3) return allRules;
|
|
1967
1967
|
|
|
1968
1968
|
// Cloud: the embedding index lives server-side (the container grade path can't
|
|
1969
|
-
// reach 127.0.0.1), so ask the gateway for the top-
|
|
1969
|
+
// reach 127.0.0.1), so ask the gateway for the top-5 relevant rules \u2014 same
|
|
1970
1970
|
// CF/BYOK bge-base vectors, same behavior as local. Without this, cloud grades
|
|
1971
1971
|
// dumped EVERY rule into the prompt (9KB+), the dominant cause of grade
|
|
1972
1972
|
// timeouts. Any failure falls back to all rules (status quo), never blocks.
|
|
@@ -1977,7 +1977,7 @@ export async function filterRules(commandText: string, allRules: Rule[]): Promis
|
|
|
1977
1977
|
const resp = await fetch(GATEWAY_URL + '/api/v1/hook/filter-rules', {
|
|
1978
1978
|
method: 'POST',
|
|
1979
1979
|
headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ' + jwt },
|
|
1980
|
-
body: JSON.stringify({ text: commandText, top_k:
|
|
1980
|
+
body: JSON.stringify({ text: commandText, top_k: 5 }),
|
|
1981
1981
|
signal: AbortSignal.timeout(2000),
|
|
1982
1982
|
});
|
|
1983
1983
|
if (!resp.ok) return allRules;
|
|
@@ -1996,7 +1996,7 @@ export async function filterRules(commandText: string, allRules: Rule[]): Promis
|
|
|
1996
1996
|
const resp = await fetch('http://127.0.0.1:' + mcpPort + '/api/local/filter-rules', {
|
|
1997
1997
|
method: 'POST',
|
|
1998
1998
|
headers: { 'Content-Type': 'application/json' },
|
|
1999
|
-
body: JSON.stringify({ text: commandText, top_k:
|
|
1999
|
+
body: JSON.stringify({ text: commandText, top_k: 5 }),
|
|
2000
2000
|
signal: AbortSignal.timeout(500),
|
|
2001
2001
|
});
|
|
2002
2002
|
if (!resp.ok) return allRules;
|
|
@@ -11538,7 +11538,7 @@ function writeConfigEnv(opts) {
|
|
|
11538
11538
|
`SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
|
|
11539
11539
|
`SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
|
|
11540
11540
|
`SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
|
|
11541
|
-
`SYNKRO_VERSION=${shellQuoteSingle("1.7.
|
|
11541
|
+
`SYNKRO_VERSION=${shellQuoteSingle("1.7.2")}`
|
|
11542
11542
|
];
|
|
11543
11543
|
if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
|
|
11544
11544
|
if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
|
|
@@ -15601,7 +15601,7 @@ var args = process.argv.slice(2);
|
|
|
15601
15601
|
var cmd = args[0] || "";
|
|
15602
15602
|
var subArgs = args.slice(1);
|
|
15603
15603
|
function printVersion() {
|
|
15604
|
-
console.log("1.7.
|
|
15604
|
+
console.log("1.7.2");
|
|
15605
15605
|
}
|
|
15606
15606
|
function printHelp2() {
|
|
15607
15607
|
console.log(`Synkro CLI \u2014 runtime safety for AI coding agents
|