waitad 0.0.7 → 0.0.9
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 +10 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15615,7 +15615,15 @@ if ! command -v jq &>/dev/null; then
|
|
|
15615
15615
|
exit 0
|
|
15616
15616
|
fi
|
|
15617
15617
|
|
|
15618
|
-
|
|
15618
|
+
UUID_RE='^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
|
|
15619
|
+
|
|
15620
|
+
# Parse NDJSON, filter to valid events only (skip lines with unknown/missing UUIDs), cap at 100
|
|
15621
|
+
EVENTS=$(jq -s '[.[] | select(
|
|
15622
|
+
(.event_id | test("'"$UUID_RE"'"; "i")) and
|
|
15623
|
+
(.user_id | test("'"$UUID_RE"'"; "i")) and
|
|
15624
|
+
(.campaign_id | test("'"$UUID_RE"'"; "i")) and
|
|
15625
|
+
(.ts // "" | . != "")
|
|
15626
|
+
)] | .[0:100]' "$FLUSH" 2>>"$LOG")
|
|
15619
15627
|
if [ -z "$EVENTS" ] || [ "$EVENTS" = "[]" ]; then
|
|
15620
15628
|
rm -f "$FLUSH"
|
|
15621
15629
|
exit 0
|
|
@@ -15838,7 +15846,7 @@ Queue: ${lines} pending impression(s)`);
|
|
|
15838
15846
|
});
|
|
15839
15847
|
|
|
15840
15848
|
// package.json
|
|
15841
|
-
var version2 = "0.0.
|
|
15849
|
+
var version2 = "0.0.8";
|
|
15842
15850
|
|
|
15843
15851
|
// src/index.ts
|
|
15844
15852
|
var program = new import_commander5.Command().name("waitad").version(version2).description("Status-line ad marketplace for CLI coding agents");
|