@synkro-sh/cli 1.6.88 → 1.6.89

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 CHANGED
@@ -2799,6 +2799,12 @@ export function filePathFromToolInput(toolInput: any): string {
2799
2799
  }
2800
2800
 
2801
2801
  export function reconstructContent(toolName: string, toolInput: any, filePath: string, cwd?: string): string {
2802
+ // Cap the grade payload (64KB ~= 16K tokens) so a huge Write/whole-file edit
2803
+ // cannot push grader inference past its 45s budget. Applies UNIFORMLY to every
2804
+ // path, including the previously-uncapped Write/StrReplace/default branches.
2805
+ return reconstructContentInner(toolName, toolInput, filePath, cwd).slice(0, 65536);
2806
+ }
2807
+ function reconstructContentInner(toolName: string, toolInput: any, filePath: string, cwd?: string): string {
2802
2808
  const canRead = filePath && cwd && isPathUnder(filePath, cwd);
2803
2809
  switch (toolName) {
2804
2810
  case 'ApplyPatch':
@@ -10951,7 +10957,7 @@ function writeConfigEnv(opts) {
10951
10957
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
10952
10958
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
10953
10959
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
10954
- `SYNKRO_VERSION=${shellQuoteSingle("1.6.88")}`
10960
+ `SYNKRO_VERSION=${shellQuoteSingle("1.6.89")}`
10955
10961
  ];
10956
10962
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
10957
10963
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
@@ -14994,7 +15000,7 @@ var args = process.argv.slice(2);
14994
15000
  var cmd = args[0] || "";
14995
15001
  var subArgs = args.slice(1);
14996
15002
  function printVersion() {
14997
- console.log("1.6.88");
15003
+ console.log("1.6.89");
14998
15004
  }
14999
15005
  function printHelp2() {
15000
15006
  console.log(`Synkro CLI \u2014 runtime safety for AI coding agents