deepline 0.1.73 → 0.1.76

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/README.md CHANGED
@@ -242,12 +242,12 @@ deepline play run --file rate-limit-repro.play.ts --watch
242
242
 
243
243
  ### 4. Fallback variant (multi-step with rate limits)
244
244
 
245
- Use `steps()` and `runIf()` to express row-level fallback sequences. Skipped
246
- conditional steps yield `null`.
245
+ Use `steps()` with `{ runIf }` options to express row-level fallback sequences.
246
+ Skipped conditional steps yield `null`.
247
247
 
248
248
  ```bash
249
249
  cat > rate-limit-waterfall.play.ts << 'TS'
250
- import { definePlay, runIf, steps } from 'deepline';
250
+ import { definePlay, steps } from 'deepline';
251
251
 
252
252
  export default definePlay('rate-limit-waterfall', async (ctx) => {
253
253
  const leads = Array.from({ length: 24 }, (_, i) => ({
@@ -267,8 +267,8 @@ export default definePlay('rate-limit-waterfall', async (ctx) => {
267
267
  },
268
268
  description: 'Exercise primary rate-limit behavior.',
269
269
  }))
270
- .step("backup_probe", runIf(
271
- (row) => !row.primary_probe,
270
+ .step(
271
+ "backup_probe",
272
272
  (row, ctx) =>
273
273
  ctx.tools.execute({
274
274
  id: 'rate_limit_probe_backup',
@@ -280,7 +280,8 @@ export default definePlay('rate-limit-waterfall', async (ctx) => {
280
280
  },
281
281
  description: 'Exercise fallback rate-limit behavior.',
282
282
  }),
283
- ))
283
+ { runIf: (row) => !row.primary_probe },
284
+ )
284
285
  .return((row) => row.primary_probe ?? row.backup_probe ?? null);
285
286
 
286
287
  // Fan out over leads — each gets a row-level fallback sequence