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 +7 -6
- package/dist/cli/index.js +1297 -350
- package/dist/cli/index.mjs +1299 -352
- package/dist/index.d.mts +52 -1
- package/dist/index.d.ts +52 -1
- package/dist/index.js +16 -5
- package/dist/index.mjs +16 -5
- package/dist/repo/apps/play-runner-workers/src/entry.ts +141 -63
- package/dist/repo/sdk/src/client.ts +8 -0
- package/dist/repo/sdk/src/play.ts +59 -9
- package/dist/repo/sdk/src/plays/harness-stub.ts +1 -0
- package/dist/repo/sdk/src/release.ts +3 -3
- package/dist/repo/sdk/src/worker-play-entry.ts +39 -3
- package/dist/repo/shared_libs/play-runtime/cell-staleness.ts +88 -0
- package/dist/repo/shared_libs/play-runtime/step-program-dataset-builder.ts +130 -0
- package/dist/repo/shared_libs/plays/row-identity.ts +0 -40
- package/package.json +1 -1
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()`
|
|
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,
|
|
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(
|
|
271
|
-
|
|
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
|