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.
Files changed (85) hide show
  1. package/README.md +18 -10
  2. package/dist/cli/index.js +1795 -1052
  3. package/dist/cli/index.mjs +1795 -1053
  4. package/dist/index.d.mts +427 -308
  5. package/dist/index.d.ts +427 -308
  6. package/dist/index.js +391 -326
  7. package/dist/index.mjs +391 -325
  8. package/dist/repo/apps/play-runner-workers/src/coordinator-entry.ts +88 -22
  9. package/dist/repo/apps/play-runner-workers/src/entry.ts +804 -1253
  10. package/dist/repo/sdk/src/client.ts +287 -47
  11. package/dist/repo/sdk/src/config.ts +125 -8
  12. package/dist/repo/sdk/src/http.ts +10 -2
  13. package/dist/repo/sdk/src/index.ts +7 -16
  14. package/dist/repo/sdk/src/play.ts +105 -140
  15. package/dist/repo/sdk/src/plays/bundle-play-file.ts +23 -6
  16. package/dist/repo/sdk/src/plays/local-file-discovery.ts +207 -160
  17. package/dist/repo/sdk/src/tool-output.ts +0 -146
  18. package/dist/repo/sdk/src/types.ts +27 -0
  19. package/dist/repo/sdk/src/version.ts +2 -2
  20. package/dist/repo/sdk/src/worker-play-entry.ts +3 -0
  21. package/dist/repo/shared_libs/play-runtime/csv-rename.ts +180 -0
  22. package/dist/repo/shared_libs/play-runtime/tool-result.ts +250 -133
  23. package/dist/repo/shared_libs/plays/bundling/index.ts +274 -234
  24. package/dist/repo/shared_libs/plays/dataset.ts +29 -1
  25. package/package.json +5 -4
  26. package/dist/cli/index.js.map +0 -1
  27. package/dist/cli/index.mjs.map +0 -1
  28. package/dist/index.js.map +0 -1
  29. package/dist/index.mjs.map +0 -1
  30. package/dist/repo/apps/play-runner-workers/src/runtime/README.md +0 -21
  31. package/dist/repo/apps/play-runner-workers/src/runtime/batching.ts +0 -177
  32. package/dist/repo/apps/play-runner-workers/src/runtime/execution-plan.ts +0 -52
  33. package/dist/repo/apps/play-runner-workers/src/runtime/tool-batch.ts +0 -100
  34. package/dist/repo/apps/play-runner-workers/src/runtime/tool-result.ts +0 -184
  35. package/dist/repo/sdk/src/cli/commands/auth.ts +0 -500
  36. package/dist/repo/sdk/src/cli/commands/billing.ts +0 -188
  37. package/dist/repo/sdk/src/cli/commands/csv.ts +0 -123
  38. package/dist/repo/sdk/src/cli/commands/db.ts +0 -119
  39. package/dist/repo/sdk/src/cli/commands/feedback.ts +0 -40
  40. package/dist/repo/sdk/src/cli/commands/org.ts +0 -117
  41. package/dist/repo/sdk/src/cli/commands/play.ts +0 -3307
  42. package/dist/repo/sdk/src/cli/commands/tools.ts +0 -687
  43. package/dist/repo/sdk/src/cli/dataset-stats.ts +0 -341
  44. package/dist/repo/sdk/src/cli/index.ts +0 -148
  45. package/dist/repo/sdk/src/cli/progress.ts +0 -149
  46. package/dist/repo/sdk/src/cli/skills-sync.ts +0 -141
  47. package/dist/repo/sdk/src/cli/trace.ts +0 -61
  48. package/dist/repo/sdk/src/cli/utils.ts +0 -145
  49. package/dist/repo/sdk/src/compat.ts +0 -77
  50. package/dist/repo/shared_libs/observability/node-tracing.ts +0 -129
  51. package/dist/repo/shared_libs/observability/tracing.ts +0 -98
  52. package/dist/repo/shared_libs/play-runtime/context.ts +0 -3999
  53. package/dist/repo/shared_libs/play-runtime/ctx-contract.ts +0 -250
  54. package/dist/repo/shared_libs/play-runtime/ctx-types.ts +0 -713
  55. package/dist/repo/shared_libs/play-runtime/dataset-id.ts +0 -10
  56. package/dist/repo/shared_libs/play-runtime/db-session-crypto.ts +0 -304
  57. package/dist/repo/shared_libs/play-runtime/db-session.ts +0 -462
  58. package/dist/repo/shared_libs/play-runtime/live-events.ts +0 -214
  59. package/dist/repo/shared_libs/play-runtime/live-state-contract.ts +0 -50
  60. package/dist/repo/shared_libs/play-runtime/map-execution-frame.ts +0 -114
  61. package/dist/repo/shared_libs/play-runtime/map-row-identity.ts +0 -158
  62. package/dist/repo/shared_libs/play-runtime/progress-emitter.ts +0 -172
  63. package/dist/repo/shared_libs/play-runtime/protocol.ts +0 -121
  64. package/dist/repo/shared_libs/play-runtime/public-play-contract.ts +0 -42
  65. package/dist/repo/shared_libs/play-runtime/result-normalization.ts +0 -33
  66. package/dist/repo/shared_libs/play-runtime/runtime-api.ts +0 -1873
  67. package/dist/repo/shared_libs/play-runtime/runtime-constraints.ts +0 -2
  68. package/dist/repo/shared_libs/play-runtime/runtime-pg-driver-neon-serverless.ts +0 -201
  69. package/dist/repo/shared_libs/play-runtime/runtime-pg-driver-pg.ts +0 -48
  70. package/dist/repo/shared_libs/play-runtime/runtime-pg-driver.ts +0 -84
  71. package/dist/repo/shared_libs/play-runtime/static-pipeline-types.ts +0 -147
  72. package/dist/repo/shared_libs/play-runtime/suspension.ts +0 -68
  73. package/dist/repo/shared_libs/play-runtime/tracing.ts +0 -31
  74. package/dist/repo/shared_libs/play-runtime/waterfall-replay.ts +0 -75
  75. package/dist/repo/shared_libs/play-runtime/worker-api-types.ts +0 -140
  76. package/dist/repo/shared_libs/plays/artifact-transport.ts +0 -14
  77. package/dist/repo/shared_libs/plays/artifact-types.ts +0 -49
  78. package/dist/repo/shared_libs/plays/compiler-manifest.ts +0 -186
  79. package/dist/repo/shared_libs/plays/definition.ts +0 -264
  80. package/dist/repo/shared_libs/plays/file-refs.ts +0 -11
  81. package/dist/repo/shared_libs/plays/rate-limit-scheduler.ts +0 -206
  82. package/dist/repo/shared_libs/plays/resolve-static-pipeline.ts +0 -164
  83. package/dist/repo/shared_libs/plays/runtime-validation.ts +0 -415
  84. package/dist/repo/shared_libs/temporal/constants.ts +0 -39
  85. 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 play run --file <file.play.ts> [--input '{}'] [--csv file.csv] [--watch]
65
- bun sdk/bin/deepline-dev.ts play run --name <name> [--input '{}'] [--csv file.csv] [--watch]
66
- bun sdk/bin/deepline-dev.ts play get <file.play.ts|name> [--json]
67
- bun sdk/bin/deepline-dev.ts play versions --name <name> [--json]
68
- bun sdk/bin/deepline-dev.ts play tail --run-id <run-id> [--json]
69
- bun sdk/bin/deepline-dev.ts play tail --name <name> [--json]
70
- bun sdk/bin/deepline-dev.ts play runs --name <name> [--json]
71
- bun sdk/bin/deepline-dev.ts play publish <play-file.ts|name> [--latest|--revision-id <id>] [--json]
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, { key: 'key' })
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, { key: 'lead_id' })
267
+ const results = await ctx.map('leads', leads)
260
268
  .step("probe", probeFallback)
261
269
  .run();
262
270