deepline 0.1.47 → 0.1.49
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 +14 -14
- package/dist/cli/index.js +863 -260
- package/dist/cli/index.mjs +863 -260
- package/dist/index.d.mts +44 -34
- package/dist/index.d.ts +44 -34
- package/dist/index.js +57 -16
- package/dist/index.mjs +57 -16
- package/dist/repo/apps/play-runner-workers/src/coordinator-entry.ts +5 -2
- package/dist/repo/apps/play-runner-workers/src/entry.ts +383 -305
- package/dist/repo/apps/play-runner-workers/src/runtime/receipts.ts +51 -21
- package/dist/repo/sdk/src/client.ts +29 -4
- package/dist/repo/sdk/src/play.ts +35 -42
- package/dist/repo/sdk/src/plays/harness-stub.ts +1 -1
- package/dist/repo/sdk/src/version.ts +1 -1
- package/dist/repo/sdk/src/worker-play-entry.ts +17 -67
- package/dist/repo/shared_libs/play-runtime/tool-result.ts +34 -3
- package/dist/repo/shared_libs/plays/row-identity.ts +5 -59
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,10 +50,10 @@ cd sdk && bun run build # or: npm run sdk:build from root
|
|
|
50
50
|
|
|
51
51
|
## Env files
|
|
52
52
|
|
|
53
|
-
| File | Set by | Contains
|
|
54
|
-
| ------------------------------------ | ------------------- |
|
|
55
|
-
| `~/.local/deepline/<host-slug>/.env` | SDK `auth register` | `DEEPLINE_HOST_URL`, `DEEPLINE_API_KEY`
|
|
56
|
-
| `.env.deepline` | Developer/agent | `DEEPLINE_HOST_URL`, `DEEPLINE_API_KEY`
|
|
53
|
+
| File | Set by | Contains |
|
|
54
|
+
| ------------------------------------ | ------------------- | --------------------------------------- |
|
|
55
|
+
| `~/.local/deepline/<host-slug>/.env` | SDK `auth register` | `DEEPLINE_HOST_URL`, `DEEPLINE_API_KEY` |
|
|
56
|
+
| `.env.deepline` | Developer/agent | `DEEPLINE_HOST_URL`, `DEEPLINE_API_KEY` |
|
|
57
57
|
|
|
58
58
|
The SDK CLI env contract is only `DEEPLINE_HOST_URL` and `DEEPLINE_API_KEY`.
|
|
59
59
|
Do not route the SDK CLI through `.env`, `.env.local`, or `.env.worktree`.
|
|
@@ -257,27 +257,27 @@ export default definePlay('rate-limit-waterfall', async (ctx) => {
|
|
|
257
257
|
|
|
258
258
|
const probeFallback = steps<{ lead_id: string; row_number: number }>()
|
|
259
259
|
.step("primary_probe", (row, ctx) =>
|
|
260
|
-
ctx.
|
|
260
|
+
ctx.tools.execute({
|
|
261
261
|
id: 'rate_limit_probe',
|
|
262
262
|
tool: 'test_rate_limit',
|
|
263
263
|
input: {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
key: 'redis-shared-scenario',
|
|
265
|
+
lead_id: row.lead_id,
|
|
266
|
+
row_number: row.row_number,
|
|
267
|
+
},
|
|
268
268
|
description: 'Exercise primary rate-limit behavior.',
|
|
269
269
|
}))
|
|
270
270
|
.step("backup_probe", when(
|
|
271
271
|
(row) => !row.primary_probe,
|
|
272
272
|
(row, ctx) =>
|
|
273
|
-
ctx.
|
|
273
|
+
ctx.tools.execute({
|
|
274
274
|
id: 'rate_limit_probe_backup',
|
|
275
275
|
tool: 'test_rate_limit',
|
|
276
276
|
input: {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
key: 'redis-shared-scenario',
|
|
278
|
+
lead_id: row.lead_id,
|
|
279
|
+
row_number: row.row_number,
|
|
280
|
+
},
|
|
281
281
|
description: 'Exercise fallback rate-limit behavior.',
|
|
282
282
|
}),
|
|
283
283
|
))
|