@synkro-sh/cli 1.3.48 → 1.3.49

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
@@ -605,9 +605,7 @@ SYNKRO_INFERENCE_TIER="\${SYNKRO_INFERENCE_TIER:-fast}"
605
605
  SYNKRO_CAPTURE_DEPTH="\${SYNKRO_CAPTURE_DEPTH:-full}"
606
606
 
607
607
  USE_LOCAL=false
608
- if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && command -v claude >/dev/null 2>&1; then
609
- USE_LOCAL=true
610
- elif [ "$SYNKRO_INFERENCE_TIER" = "free" ] && command -v claude >/dev/null 2>&1; then
608
+ if command -v claude >/dev/null 2>&1; then
611
609
  USE_LOCAL=true
612
610
  fi
613
611
 
@@ -828,6 +826,8 @@ if [ "$USE_LOCAL" = "true" ] && [ -n "$VERDICT_KIND" ]; then
828
826
  --arg command "$COMMAND" \\
829
827
  --arg reasoning "$REASONING" \\
830
828
  --arg alternative "$ALTERNATIVE" \\
829
+ --argjson rules_checked "\${ORG_RULES:-[]}" \\
830
+ --argjson recent_user_messages "\${RECENT_USER_MESSAGES:-[]}" \\
831
831
  '{
832
832
  event_id: $event_id,
833
833
  timestamp: $timestamp,
@@ -838,12 +838,13 @@ if [ "$USE_LOCAL" = "true" ] && [ -n "$VERDICT_KIND" ]; then
838
838
  category: $category,
839
839
  model: $model,
840
840
  tool_name: $tool_name,
841
- capture_depth: $capture_depth
841
+ capture_depth: $capture_depth,
842
+ rules_checked: $rules_checked
842
843
  } + (if $repo != "" then {repo: $repo} else {} end)
843
844
  + (if $session_id != "" then {session_id: $session_id} else {} end)
844
845
  + (if $mech_cat != "" then {mechanism_category: $mech_cat} else {} end)
845
846
  + (if $biz_cat != "" then {business_category: $biz_cat} else {} end)
846
- + (if $capture_depth != "local_only" then {command: $command, reasoning: $reasoning} + (if $alternative != "" then {alternative: $alternative} else {} end) else {} end)')
847
+ + (if $capture_depth != "local_only" then {command: $command, reasoning: $reasoning, recent_user_messages: $recent_user_messages} + (if $alternative != "" then {alternative: $alternative} else {} end) else {} end)')
847
848
  curl -sS -X POST "\${GATEWAY_URL}/api/v1/events/local-verdict" \\
848
849
  -H "Content-Type: application/json" \\
849
850
  -H "Authorization: Bearer $JWT" \\
@@ -1107,9 +1108,7 @@ SYNKRO_INFERENCE_TIER="\${SYNKRO_INFERENCE_TIER:-fast}"
1107
1108
  SYNKRO_CAPTURE_DEPTH="\${SYNKRO_CAPTURE_DEPTH:-full}"
1108
1109
 
1109
1110
  USE_LOCAL=false
1110
- if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && command -v claude >/dev/null 2>&1; then
1111
- USE_LOCAL=true
1112
- elif [ "$SYNKRO_INFERENCE_TIER" = "free" ] && command -v claude >/dev/null 2>&1; then
1111
+ if command -v claude >/dev/null 2>&1; then
1113
1112
  USE_LOCAL=true
1114
1113
  fi
1115
1114
 
@@ -1540,9 +1539,7 @@ SYNKRO_INFERENCE_TIER="\${SYNKRO_INFERENCE_TIER:-fast}"
1540
1539
  SYNKRO_CAPTURE_DEPTH="\${SYNKRO_CAPTURE_DEPTH:-full}"
1541
1540
 
1542
1541
  USE_LOCAL=false
1543
- if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && command -v claude >/dev/null 2>&1; then
1544
- USE_LOCAL=true
1545
- elif [ "$SYNKRO_INFERENCE_TIER" = "free" ] && command -v claude >/dev/null 2>&1; then
1542
+ if command -v claude >/dev/null 2>&1; then
1546
1543
  USE_LOCAL=true
1547
1544
  fi
1548
1545
 
@@ -3860,7 +3857,7 @@ function writeConfigEnv(opts) {
3860
3857
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3861
3858
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3862
3859
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3863
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.48")}`
3860
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.49")}`
3864
3861
  ];
3865
3862
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3866
3863
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);