@synkro-sh/cli 1.3.46 → 1.3.47

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
@@ -592,7 +592,7 @@ SYNKRO_CAPTURE_DEPTH=""
592
592
  if find "$TIER_CACHE_FILE" -mmin -60 2>/dev/null | grep -q .; then
593
593
  SYNKRO_INFERENCE_TIER=$(cat "$TIER_CACHE_FILE" 2>/dev/null)
594
594
  fi
595
- if [ -z "$SYNKRO_INFERENCE_TIER" ]; then
595
+ if [ -z "$SYNKRO_INFERENCE_TIER" ] || [ -z "$SYNKRO_CAPTURE_DEPTH" ]; then
596
596
  ME_RESP=$(curl -sS "\${GATEWAY_URL}/api/v1/cli/me" -H "Authorization: Bearer $JWT" --max-time 2 2>/dev/null || echo "")
597
597
  if [ -n "$ME_RESP" ]; then
598
598
  SYNKRO_INFERENCE_TIER=$(echo "$ME_RESP" | jq -r '.tier // empty' 2>/dev/null)
@@ -1088,7 +1088,7 @@ SYNKRO_CAPTURE_DEPTH=""
1088
1088
  if find "$TIER_CACHE_FILE" -mmin -60 2>/dev/null | grep -q .; then
1089
1089
  SYNKRO_INFERENCE_TIER=$(cat "$TIER_CACHE_FILE" 2>/dev/null)
1090
1090
  fi
1091
- if [ -z "$SYNKRO_INFERENCE_TIER" ]; then
1091
+ if [ -z "$SYNKRO_INFERENCE_TIER" ] || [ -z "$SYNKRO_CAPTURE_DEPTH" ]; then
1092
1092
  ME_RESP=$(curl -sS "\${GATEWAY_URL}/api/v1/cli/me" -H "Authorization: Bearer $JWT" --max-time 2 2>/dev/null || echo "")
1093
1093
  if [ -n "$ME_RESP" ]; then
1094
1094
  SYNKRO_INFERENCE_TIER=$(echo "$ME_RESP" | jq -r '.tier // empty' 2>/dev/null)
@@ -1521,7 +1521,7 @@ if find "$TIER_CACHE_FILE" -mmin -60 2>/dev/null | grep -q .; then
1521
1521
  SYNKRO_INFERENCE_TIER=$(cat "$TIER_CACHE_FILE" 2>/dev/null || true)
1522
1522
  SYNKRO_CAPTURE_DEPTH=$(cat "$CD_CACHE_FILE" 2>/dev/null || true)
1523
1523
  fi
1524
- if [ -z "$SYNKRO_INFERENCE_TIER" ]; then
1524
+ if [ -z "$SYNKRO_INFERENCE_TIER" ] || [ -z "$SYNKRO_CAPTURE_DEPTH" ]; then
1525
1525
  ME_RESP=$(curl -sS "\${GATEWAY_URL}/api/v1/cli/me" -H "Authorization: Bearer $JWT" --max-time 2 2>/dev/null || echo "")
1526
1526
  if [ -n "$ME_RESP" ]; then
1527
1527
  SYNKRO_INFERENCE_TIER=$(echo "$ME_RESP" | jq -r '.tier // empty' 2>/dev/null || true)
@@ -3854,7 +3854,7 @@ function writeConfigEnv(opts) {
3854
3854
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3855
3855
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3856
3856
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3857
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.46")}`
3857
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.47")}`
3858
3858
  ];
3859
3859
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3860
3860
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);