• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

futpib / slopd / 25628443091
85%

Build:
DEFAULT BRANCH: master
Ran 10 May 2026 12:18PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 May 2026 12:09PM UTC coverage: 85.409% (+0.05%) from 85.356%
25628443091

push

github

futpib
feat: jq-style payload paths for --until and new --where

The --until predicate on `wait` (and existing payload_match wire field
on EventFilter) only handled flat key-equality. That made cases like
"the next assistant message that contains a text block" unworkable,
since `message.content` is an array and the text block's index
depends on whether Claude emitted thinking blocks first.

The path syntax now mirrors a useful subset of jq:
- `foo` or `.foo` — object key (leading `.` optional)
- `foo.bar` — nested object access
- `foo[]` — any element of an array (succeeds if any element matches
  the rest of the path)
- `foo[3]` — specific index
- combinations: `messages[].content[].type`

Comparison stays string-equal against the reachable scalar; arrays
and objects never match a scalar value. Added scalar normalisation
for null/bool/numbers so users can write --until 'b=true' or
--until 'n=42' without surprises.

Same syntax is now exposed as `--where KEY=VALUE` on both `listen`
and `wait`. --where pushes the predicate down to slopd via a new
EventFilter::payload_path_match wire field (additive, defaults to
empty so old daemons and clients keep working). Use --where when you
want non-matching events filtered out at the daemon; use --until on
wait when you want to see every event but stop on a specific one.

Path validation runs before the daemon connection so a typo'd
predicate now produces a clear error rather than the misleading "no
such socket".

Tests: 11 new libslop unit tests for the path parser/matcher; 3
integration tests covering the motivating array-path case for
--until, server-side enforcement of --where, and pre-connection
predicate validation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

182 of 186 new or added lines in 3 files covered. (97.85%)

205 existing lines in 5 files now uncovered.

3360 of 3934 relevant lines covered (85.41%)

1091963.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
87.85
0.75% libslopctl/src/lib.rs

Coverage Regressions

Lines Coverage ∆ File
82
87.8
0.23% slopd/src/main.rs
66
87.85
0.75% libslopctl/src/lib.rs
30
88.44
-7.44% libsloptest/src/lib.rs
16
92.83
1.74% libslop/src/lib.rs
11
68.89
-2.53% slopd/src/bin/mock_claude.rs
Jobs
ID Job ID Ran Files Coverage
1 25628443091.1 10 May 2026 12:18PM UTC 8
85.41
GitHub Action Run
Source Files on build 25628443091
  • Tree
  • List 8
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25628443091
  • 725f21d7 on github
  • Prev Build on master (#25015463121)
  • Next Build on master (#25628461134)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc