@synkro-sh/cli 1.4.22 → 1.4.23

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
@@ -512,8 +512,10 @@ synkro_load_config() {
512
512
  SYNKRO_CAPTURE_DEPTH=$(echo "$resp" | jq -r '.capture_depth // "local_only"' 2>/dev/null)
513
513
  SYNKRO_TIER=$(echo "$resp" | jq -r '.tier // "standard"' 2>/dev/null)
514
514
  SYNKRO_RULES=$(echo "$resp" | jq -c '[.rules[]? | select(.hook_stage == "pre" or .hook_stage == "both" or .hook_stage == null) | {rule_id,text,severity,category,mode}]' 2>/dev/null || echo "[]")
515
- # Cache the values
516
- printf 'SYNKRO_CAPTURE_DEPTH="%s"\\nSYNKRO_TIER="%s"\\n' "$SYNKRO_CAPTURE_DEPTH" "$SYNKRO_TIER" > "$cache" 2>/dev/null || true
515
+ # Cache the values (SYNKRO_RULES uses single quotes to avoid expansion issues with JSON)
516
+ { printf 'SYNKRO_CAPTURE_DEPTH="%s"\\nSYNKRO_TIER="%s"\\n' "$SYNKRO_CAPTURE_DEPTH" "$SYNKRO_TIER"
517
+ printf "SYNKRO_RULES='%s'\\n" "$SYNKRO_RULES"
518
+ } > "$cache" 2>/dev/null || true
517
519
  }
518
520
 
519
521
  # Decide routing: "local" (grade on device) or "cloud" (POST to server)
@@ -3606,7 +3608,7 @@ function writeConfigEnv(opts) {
3606
3608
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3607
3609
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3608
3610
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3609
- `SYNKRO_VERSION=${shellQuoteSingle("1.4.22")}`
3611
+ `SYNKRO_VERSION=${shellQuoteSingle("1.4.23")}`
3610
3612
  ];
3611
3613
  if (safeSynkroBin) lines.push(`SYNKRO_CLI_BIN=${shellQuoteSingle(safeSynkroBin)}`);
3612
3614
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);