@synkro-sh/cli 1.3.36 → 1.3.37

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
@@ -790,6 +790,7 @@ if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && [ -n "$VERDICT_KIND" ]; then
790
790
  --arg category "$CATEGORY" \\
791
791
  --arg model "\${CC_MODEL:-claude-sonnet-4-6}" \\
792
792
  --arg tool_name "$TOOL_NAME" \\
793
+ --arg repo "\${GIT_REPO:-}" \\
793
794
  '{
794
795
  event_id: $event_id,
795
796
  timestamp: $timestamp,
@@ -800,7 +801,7 @@ if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && [ -n "$VERDICT_KIND" ]; then
800
801
  category: $category,
801
802
  model: $model,
802
803
  tool_name: $tool_name
803
- }')
804
+ } + (if $repo != "" then {repo: $repo} else {} end)')
804
805
  curl -sS -X POST "\${GATEWAY_URL}/api/v1/events/local-verdict" \\
805
806
  -H "Content-Type: application/json" \\
806
807
  -H "Authorization: Bearer $JWT" \\
@@ -1267,6 +1268,7 @@ if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && [ -n "$DECISION" ]; then
1267
1268
  --arg category "$LOCAL_CATEGORY" \\
1268
1269
  --arg model "\${CC_MODEL:-claude-sonnet-4-6}" \\
1269
1270
  --arg tool_name "$TOOL_NAME" \\
1271
+ --arg repo "\${GIT_REPO:-}" \\
1270
1272
  '{
1271
1273
  event_id: $event_id,
1272
1274
  timestamp: $timestamp,
@@ -1276,7 +1278,7 @@ if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ] && [ -n "$DECISION" ]; then
1276
1278
  category: $category,
1277
1279
  model: $model,
1278
1280
  tool_name: $tool_name
1279
- }')
1281
+ } + (if $repo != "" then {repo: $repo} else {} end)')
1280
1282
  curl -sS -X POST "\${GATEWAY_URL}/api/v1/events/local-verdict" \\
1281
1283
  -H "Content-Type: application/json" \\
1282
1284
  -H "Authorization: Bearer $JWT" \\
@@ -1573,11 +1575,12 @@ if [ "$SYNKRO_CAPTURE_DEPTH" = "local_only" ]; then
1573
1575
  --arg category "$CATEGORY" \\
1574
1576
  --arg model "\${CC_MODEL:-claude-sonnet-4-6}" \\
1575
1577
  --arg tool_name "$TOOL_NAME" \\
1578
+ --arg repo "\${GIT_REPO:-}" \\
1576
1579
  '{
1577
1580
  event_id: $event_id, timestamp: $timestamp, hook_type: $hook_type,
1578
1581
  verdict: $verdict, severity: $severity, risk_level: $risk_level,
1579
1582
  category: $category, model: $model, tool_name: $tool_name
1580
- }')
1583
+ } + (if $repo != "" then {repo: $repo} else {} end)')
1581
1584
  curl -sS -X POST "\${GATEWAY_URL}/api/v1/events/local-verdict" \\
1582
1585
  -H "Content-Type: application/json" \\
1583
1586
  -H "Authorization: Bearer $JWT" \\
@@ -3715,7 +3718,7 @@ function writeConfigEnv(opts) {
3715
3718
  `SYNKRO_CREDENTIALS_PATH=${shellQuoteSingle(credsPath)}`,
3716
3719
  `SYNKRO_TIER=${shellQuoteSingle(safeTier)}`,
3717
3720
  `SYNKRO_INFERENCE=${shellQuoteSingle(safeInference)}`,
3718
- `SYNKRO_VERSION=${shellQuoteSingle("1.3.36")}`
3721
+ `SYNKRO_VERSION=${shellQuoteSingle("1.3.37")}`
3719
3722
  ];
3720
3723
  if (safeUserId) lines.push(`SYNKRO_USER_ID=${shellQuoteSingle(safeUserId)}`);
3721
3724
  if (safeOrgId) lines.push(`SYNKRO_ORG_ID=${shellQuoteSingle(safeOrgId)}`);