deepline 0.1.102 → 0.1.103
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 -12
- package/dist/cli/index.js +707 -129
- package/dist/cli/index.mjs +717 -132
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -5
- package/dist/index.mjs +6 -5
- package/dist/repo/sdk/src/client.ts +3 -3
- package/dist/repo/sdk/src/index.ts +1 -1
- package/dist/repo/sdk/src/play.ts +2 -2
- package/dist/repo/sdk/src/release.ts +3 -2
- package/dist/repo/sdk/src/types.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ key: explicit SDK option -> DEEPLINE_API_KEY -> matching nearest .env.deepline
|
|
|
72
72
|
./cli-env sdk-worktree deepline auth register
|
|
73
73
|
./cli-env sdk-worktree deepline auth status
|
|
74
74
|
./cli-env sdk-worktree deepline tools list
|
|
75
|
+
./cli-env sdk-worktree deepline tools get test_rate_limit
|
|
75
76
|
./cli-env sdk-worktree deepline tools describe test_rate_limit
|
|
76
77
|
./cli-env sdk-worktree deepline tools execute test_rate_limit --input '{"key":"stripe.com"}'
|
|
77
78
|
./cli-env sdk-worktree deepline plays run my-play.play.ts --input '{}' --watch
|
|
@@ -86,10 +87,11 @@ key: explicit SDK option -> DEEPLINE_API_KEY -> matching nearest .env.deepline
|
|
|
86
87
|
./cli-env sdk-worktree deepline update
|
|
87
88
|
```
|
|
88
89
|
|
|
89
|
-
`tools describe`
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
`--
|
|
90
|
+
`tools describe` is the compact tool contract, `tools get` is a compatibility
|
|
91
|
+
alias for `tools describe`, and `tools execute` runs an atomic tool. The SDK CLI
|
|
92
|
+
does not expose the legacy `tools run` alias. Unknown `plays run` flags such as
|
|
93
|
+
`--limit 5` are passed into the play input object. CSV file inputs should be
|
|
94
|
+
passed through `--input`, matching the play contract, for example
|
|
93
95
|
`--input '{"file":"leads.csv"}'` for `ctx.csv(input.file)`.
|
|
94
96
|
|
|
95
97
|
## Public play entrypoints
|
|
@@ -98,9 +100,9 @@ These are the public ways to run plays. They intentionally map to the external
|
|
|
98
100
|
surfaces we exercise in CI:
|
|
99
101
|
|
|
100
102
|
1. CLI
|
|
101
|
-
- Repo-local Bun/source CLI: `bun sdk/bin/deepline-dev.ts
|
|
102
|
-
- Repo script alias: `bun run deepline --
|
|
103
|
-
- Installed CLI: `deepline
|
|
103
|
+
- Repo-local Bun/source CLI: `bun sdk/bin/deepline-dev.ts plays run ...`
|
|
104
|
+
- Repo script alias: `bun run deepline -- plays run ...`
|
|
105
|
+
- Installed CLI: `deepline plays run ...`
|
|
104
106
|
2. Programmatic SDK convenience client
|
|
105
107
|
- `client.runPlay(...)`
|
|
106
108
|
- `client.runs.get(runId)`
|
|
@@ -232,10 +234,10 @@ TS
|
|
|
232
234
|
|
|
233
235
|
```bash
|
|
234
236
|
# Dev
|
|
235
|
-
bun sdk/bin/deepline-dev.ts
|
|
237
|
+
bun sdk/bin/deepline-dev.ts plays run --file rate-limit-repro.play.ts --watch
|
|
236
238
|
|
|
237
239
|
# Production
|
|
238
|
-
deepline
|
|
240
|
+
deepline plays run --file rate-limit-repro.play.ts --watch
|
|
239
241
|
```
|
|
240
242
|
|
|
241
243
|
### 4. Fallback variant (multi-step with rate limits)
|
|
@@ -293,7 +295,7 @@ TS
|
|
|
293
295
|
```
|
|
294
296
|
|
|
295
297
|
```bash
|
|
296
|
-
bun sdk/bin/deepline-dev.ts
|
|
298
|
+
bun sdk/bin/deepline-dev.ts plays run --file rate-limit-waterfall.play.ts --watch
|
|
297
299
|
```
|
|
298
300
|
|
|
299
301
|
### What to expect
|
|
@@ -341,8 +343,8 @@ sdk/
|
|
|
341
343
|
index.ts # CLI router
|
|
342
344
|
commands/
|
|
343
345
|
auth.ts # auth register/status
|
|
344
|
-
play.ts #
|
|
345
|
-
tools.ts # tools list/
|
|
346
|
+
play.ts # plays run/get/tail/runs/publish
|
|
347
|
+
tools.ts # tools list/describe/execute
|
|
346
348
|
enrich.ts # CSV enrichment (delegates to Python CLI)
|
|
347
349
|
plays/
|
|
348
350
|
bundle-play-file.ts # esbuild bundler for .play.ts files
|