waitad 0.0.5 → 0.0.6

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/cli.js CHANGED
@@ -15618,18 +15618,18 @@ PAYLOAD=$(jq -n \\
15618
15618
  --argjson events "$EVENTS" \\
15619
15619
  '{"events": $events, "signature": $sig, "install_key_id": $kid}')
15620
15620
 
15621
- RESULT=$(curl -sf --max-time 15 \\
15621
+ RESULT=$(curl -s --max-time 15 \\
15622
15622
  -X POST \\
15623
15623
  -H "Content-Type: application/json" \\
15624
15624
  -d "$PAYLOAD" \\
15625
15625
  "$API_BASE/api/events/impression" 2>>"$LOG" || true)
15626
15626
 
15627
- if [ -n "$RESULT" ]; then
15627
+ if printf '%s' "$RESULT" | grep -q '"ok":true'; then
15628
15628
  EVENT_COUNT=$(printf '%s' "$EVENTS" | jq 'length')
15629
15629
  log "Flushed $EVENT_COUNT events: $RESULT"
15630
15630
  rm -f "$FLUSH"
15631
15631
  else
15632
- log "Flush failed \u2014 restoring queue"
15632
+ log "Flush failed: $RESULT"
15633
15633
  cat "$FLUSH" >> "$QUEUE"
15634
15634
  rm -f "$FLUSH"
15635
15635
  fi
@@ -15824,7 +15824,7 @@ Queue: ${lines} pending impression(s)`);
15824
15824
  });
15825
15825
 
15826
15826
  // package.json
15827
- var version2 = "0.0.4";
15827
+ var version2 = "0.0.6";
15828
15828
 
15829
15829
  // src/index.ts
15830
15830
  var program = new import_commander5.Command().name("waitad").version(version2).description("Status-line ad marketplace for CLI coding agents");