deepline 0.1.11 → 0.1.19
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 +18 -10
- package/dist/cli/index.js +1795 -1052
- package/dist/cli/index.mjs +1795 -1053
- package/dist/index.d.mts +427 -308
- package/dist/index.d.ts +427 -308
- package/dist/index.js +391 -326
- package/dist/index.mjs +391 -325
- package/dist/repo/apps/play-runner-workers/src/coordinator-entry.ts +88 -22
- package/dist/repo/apps/play-runner-workers/src/entry.ts +804 -1253
- package/dist/repo/sdk/src/client.ts +287 -47
- package/dist/repo/sdk/src/config.ts +125 -8
- package/dist/repo/sdk/src/http.ts +10 -2
- package/dist/repo/sdk/src/index.ts +7 -16
- package/dist/repo/sdk/src/play.ts +105 -140
- package/dist/repo/sdk/src/plays/bundle-play-file.ts +23 -6
- package/dist/repo/sdk/src/plays/local-file-discovery.ts +207 -160
- package/dist/repo/sdk/src/tool-output.ts +0 -146
- package/dist/repo/sdk/src/types.ts +27 -0
- package/dist/repo/sdk/src/version.ts +2 -2
- package/dist/repo/sdk/src/worker-play-entry.ts +3 -0
- package/dist/repo/shared_libs/play-runtime/csv-rename.ts +180 -0
- package/dist/repo/shared_libs/play-runtime/tool-result.ts +250 -133
- package/dist/repo/shared_libs/plays/bundling/index.ts +274 -234
- package/dist/repo/shared_libs/plays/dataset.ts +29 -1
- package/package.json +5 -4
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/index.mjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/repo/apps/play-runner-workers/src/runtime/README.md +0 -21
- package/dist/repo/apps/play-runner-workers/src/runtime/batching.ts +0 -177
- package/dist/repo/apps/play-runner-workers/src/runtime/execution-plan.ts +0 -52
- package/dist/repo/apps/play-runner-workers/src/runtime/tool-batch.ts +0 -100
- package/dist/repo/apps/play-runner-workers/src/runtime/tool-result.ts +0 -184
- package/dist/repo/sdk/src/cli/commands/auth.ts +0 -500
- package/dist/repo/sdk/src/cli/commands/billing.ts +0 -188
- package/dist/repo/sdk/src/cli/commands/csv.ts +0 -123
- package/dist/repo/sdk/src/cli/commands/db.ts +0 -119
- package/dist/repo/sdk/src/cli/commands/feedback.ts +0 -40
- package/dist/repo/sdk/src/cli/commands/org.ts +0 -117
- package/dist/repo/sdk/src/cli/commands/play.ts +0 -3307
- package/dist/repo/sdk/src/cli/commands/tools.ts +0 -687
- package/dist/repo/sdk/src/cli/dataset-stats.ts +0 -341
- package/dist/repo/sdk/src/cli/index.ts +0 -148
- package/dist/repo/sdk/src/cli/progress.ts +0 -149
- package/dist/repo/sdk/src/cli/skills-sync.ts +0 -141
- package/dist/repo/sdk/src/cli/trace.ts +0 -61
- package/dist/repo/sdk/src/cli/utils.ts +0 -145
- package/dist/repo/sdk/src/compat.ts +0 -77
- package/dist/repo/shared_libs/observability/node-tracing.ts +0 -129
- package/dist/repo/shared_libs/observability/tracing.ts +0 -98
- package/dist/repo/shared_libs/play-runtime/context.ts +0 -3999
- package/dist/repo/shared_libs/play-runtime/ctx-contract.ts +0 -250
- package/dist/repo/shared_libs/play-runtime/ctx-types.ts +0 -713
- package/dist/repo/shared_libs/play-runtime/dataset-id.ts +0 -10
- package/dist/repo/shared_libs/play-runtime/db-session-crypto.ts +0 -304
- package/dist/repo/shared_libs/play-runtime/db-session.ts +0 -462
- package/dist/repo/shared_libs/play-runtime/live-events.ts +0 -214
- package/dist/repo/shared_libs/play-runtime/live-state-contract.ts +0 -50
- package/dist/repo/shared_libs/play-runtime/map-execution-frame.ts +0 -114
- package/dist/repo/shared_libs/play-runtime/map-row-identity.ts +0 -158
- package/dist/repo/shared_libs/play-runtime/progress-emitter.ts +0 -172
- package/dist/repo/shared_libs/play-runtime/protocol.ts +0 -121
- package/dist/repo/shared_libs/play-runtime/public-play-contract.ts +0 -42
- package/dist/repo/shared_libs/play-runtime/result-normalization.ts +0 -33
- package/dist/repo/shared_libs/play-runtime/runtime-api.ts +0 -1873
- package/dist/repo/shared_libs/play-runtime/runtime-constraints.ts +0 -2
- package/dist/repo/shared_libs/play-runtime/runtime-pg-driver-neon-serverless.ts +0 -201
- package/dist/repo/shared_libs/play-runtime/runtime-pg-driver-pg.ts +0 -48
- package/dist/repo/shared_libs/play-runtime/runtime-pg-driver.ts +0 -84
- package/dist/repo/shared_libs/play-runtime/static-pipeline-types.ts +0 -147
- package/dist/repo/shared_libs/play-runtime/suspension.ts +0 -68
- package/dist/repo/shared_libs/play-runtime/tracing.ts +0 -31
- package/dist/repo/shared_libs/play-runtime/waterfall-replay.ts +0 -75
- package/dist/repo/shared_libs/play-runtime/worker-api-types.ts +0 -140
- package/dist/repo/shared_libs/plays/artifact-transport.ts +0 -14
- package/dist/repo/shared_libs/plays/artifact-types.ts +0 -49
- package/dist/repo/shared_libs/plays/compiler-manifest.ts +0 -186
- package/dist/repo/shared_libs/plays/definition.ts +0 -264
- package/dist/repo/shared_libs/plays/file-refs.ts +0 -11
- package/dist/repo/shared_libs/plays/rate-limit-scheduler.ts +0 -206
- package/dist/repo/shared_libs/plays/resolve-static-pipeline.ts +0 -164
- package/dist/repo/shared_libs/plays/runtime-validation.ts +0 -415
- package/dist/repo/shared_libs/temporal/constants.ts +0 -39
- package/dist/repo/shared_libs/temporal/preview-config.ts +0 -153
package/README.md
CHANGED
|
@@ -61,14 +61,15 @@ Config resolution order: explicit options > env vars > checkout `.env.worktree`
|
|
|
61
61
|
bun sdk/bin/deepline-dev.ts health
|
|
62
62
|
bun sdk/bin/deepline-dev.ts auth register|status
|
|
63
63
|
bun sdk/bin/deepline-dev.ts tools list|get|call
|
|
64
|
-
bun sdk/bin/deepline-dev.ts
|
|
65
|
-
bun sdk/bin/deepline-dev.ts
|
|
66
|
-
bun sdk/bin/deepline-dev.ts
|
|
67
|
-
bun sdk/bin/deepline-dev.ts
|
|
68
|
-
bun sdk/bin/deepline-dev.ts
|
|
69
|
-
bun sdk/bin/deepline-dev.ts
|
|
70
|
-
bun sdk/bin/deepline-dev.ts
|
|
71
|
-
bun sdk/bin/deepline-dev.ts
|
|
64
|
+
bun sdk/bin/deepline-dev.ts plays run <file.play.ts> [--input '{}'] [--<input> value] [--watch]
|
|
65
|
+
bun sdk/bin/deepline-dev.ts plays run <name> [--input '{}'] [--<input> value] [--watch]
|
|
66
|
+
bun sdk/bin/deepline-dev.ts plays get <file.play.ts|name> [--json]
|
|
67
|
+
bun sdk/bin/deepline-dev.ts plays versions --name <name> [--json]
|
|
68
|
+
bun sdk/bin/deepline-dev.ts runs list --play <name> [--status failed] [--json]
|
|
69
|
+
bun sdk/bin/deepline-dev.ts runs get <run-id> [--json]
|
|
70
|
+
bun sdk/bin/deepline-dev.ts runs tail <run-id> [--json]
|
|
71
|
+
bun sdk/bin/deepline-dev.ts runs stop <run-id> [--reason "..."] [--json]
|
|
72
|
+
bun sdk/bin/deepline-dev.ts plays publish <play-file.ts|name> [--latest|--revision-id <id>] [--json]
|
|
72
73
|
```
|
|
73
74
|
|
|
74
75
|
## Public play entrypoints
|
|
@@ -82,6 +83,10 @@ surfaces we exercise in CI:
|
|
|
82
83
|
- Installed CLI: `deepline play run ...`
|
|
83
84
|
2. Programmatic SDK convenience client
|
|
84
85
|
- `client.runPlay(...)`
|
|
86
|
+
- `client.runs.get(runId)`
|
|
87
|
+
- `client.runs.list({ play: name })`
|
|
88
|
+
- `client.runs.tail(runId)`
|
|
89
|
+
- `client.runs.stop(runId, { reason })`
|
|
85
90
|
3. High-level SDK handles
|
|
86
91
|
- `ctx.play(name).run(...)`
|
|
87
92
|
- `ctx.play(name).runSync(...)`
|
|
@@ -98,6 +103,9 @@ Internal / advanced only:
|
|
|
98
103
|
- `stagePlayFiles()`
|
|
99
104
|
- `startPlayRun()`
|
|
100
105
|
- `getPlayStatus()`
|
|
106
|
+
- `getPlayTailStatus()`
|
|
107
|
+
- `listPlayRuns()`
|
|
108
|
+
- `stopPlay()`
|
|
101
109
|
|
|
102
110
|
Those low-level primitives are still available for callers that explicitly need
|
|
103
111
|
to own the package-submit-poll flow, but they are not the primary public SDK
|
|
@@ -184,7 +192,7 @@ export default definePlay('rate-limit-repro', async (ctx) => {
|
|
|
184
192
|
row_number: i + 1,
|
|
185
193
|
}));
|
|
186
194
|
|
|
187
|
-
const results = await ctx.map('rate_limit_probes', items
|
|
195
|
+
const results = await ctx.map('rate_limit_probes', items)
|
|
188
196
|
.step("result", (row, ctx) =>
|
|
189
197
|
ctx.tools.execute({
|
|
190
198
|
id: 'rate_limit_probe',
|
|
@@ -256,7 +264,7 @@ export default definePlay('rate-limit-waterfall', async (ctx) => {
|
|
|
256
264
|
.return((row) => row.primary_probe ?? row.backup_probe ?? null);
|
|
257
265
|
|
|
258
266
|
// Fan out over leads — each gets a row-level fallback sequence
|
|
259
|
-
const results = await ctx.map('leads', leads
|
|
267
|
+
const results = await ctx.map('leads', leads)
|
|
260
268
|
.step("probe", probeFallback)
|
|
261
269
|
.run();
|
|
262
270
|
|