deepline 0.3.405 → 0.3.407
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/dist/bundling-sources/sdk/src/client.ts +54 -57
- package/dist/bundling-sources/sdk/src/play.ts +8 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +43 -4
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +101 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +87 -28
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
- package/dist/cli/auth-4JTX6AGM.js +40 -0
- package/dist/cli/{auth-D4GXO4IN.mjs → auth-WURWNNLE.mjs} +4 -4
- package/dist/cli/{billing-TQ4UM4D4.js → billing-2QJGXGJX.js} +73 -73
- package/dist/cli/{billing-NVV5VSUJ.mjs → billing-BP3E6WIM.mjs} +4 -4
- package/dist/cli/{chunk-TECEX3K5.mjs → chunk-4TV43THC.mjs} +3 -3
- package/dist/cli/{chunk-YX7JSSJ2.mjs → chunk-6JZZNP5G.mjs} +2 -2
- package/dist/cli/{chunk-LM2JHRZM.js → chunk-7LKYHZVB.js} +1 -1
- package/dist/cli/{chunk-3DWMYKWU.mjs → chunk-BKC6VMYZ.mjs} +1 -1
- package/dist/cli/{chunk-JPNBAZBR.js → chunk-D2ZRMZKF.js} +6 -6
- package/dist/cli/{chunk-BZBV2GY2.js → chunk-G4LJS2RE.js} +8 -8
- package/dist/cli/{chunk-MZ4LBCV7.js → chunk-G6U74WNM.js} +15 -15
- package/dist/cli/{chunk-3MVBOBV4.js → chunk-H6EWQFPQ.js} +2 -2
- package/dist/cli/{chunk-AAIV3ACM.js → chunk-IY6GKJ4O.js} +50 -50
- package/dist/cli/{chunk-HG5PMETP.mjs → chunk-J67NU4MQ.mjs} +55 -58
- package/dist/cli/{chunk-HYAA3F6U.js → chunk-KUQAU5MG.js} +60 -63
- package/dist/cli/{chunk-B6ME2XIO.mjs → chunk-L25GBGQU.mjs} +5 -5
- package/dist/cli/{chunk-4ONG2MWB.mjs → chunk-N6OAMAO5.mjs} +1 -1
- package/dist/cli/{chunk-EVLCUV64.mjs → chunk-P7HOTKOK.mjs} +4 -4
- package/dist/cli/{chunk-YRZIKG47.mjs → chunk-QJAX7QN7.mjs} +2 -2
- package/dist/cli/{chunk-NAJEB3N4.js → chunk-RMZAOYDN.js} +44 -44
- package/dist/cli/{chunk-6HXTHMHZ.js → chunk-RZLXVHNO.js} +26 -26
- package/dist/cli/{chunk-NLT6GCWZ.js → chunk-SOQIPKF2.js} +8 -8
- package/dist/cli/{chunk-CB6AJNHI.js → chunk-THHM4DPE.js} +4 -4
- package/dist/cli/{chunk-3FF3SPSE.mjs → chunk-UFFSOV6I.mjs} +2 -2
- package/dist/cli/{chunk-EKWJXPIX.mjs → chunk-UPEOEYZ3.mjs} +1 -1
- package/dist/cli/{chunk-MPXPTSGJ.mjs → chunk-XT6GG3QO.mjs} +3 -3
- package/dist/cli/{chunk-WGX7SIGL.js → chunk-Y6CX4QPR.js} +65 -65
- package/dist/cli/{chunk-TPYRDAU7.mjs → chunk-ZBCTXQ3P.mjs} +1 -1
- package/dist/cli/{csv-5AASYDRF.js → csv-7E5BE23B.js} +12 -12
- package/dist/cli/{csv-H7LD6IQK.mjs → csv-N6KYTG7L.mjs} +3 -3
- package/dist/cli/{db-MJBZBDWZ.js → db-4VLZP33O.js} +25 -25
- package/dist/cli/{db-CG3UQUA7.mjs → db-XMBJNVBD.mjs} +4 -4
- package/dist/cli/{describe-2A7GARI2.js → describe-4I6EIVXD.js} +10 -10
- package/dist/cli/{describe-INFC5ACQ.mjs → describe-WERH4TD2.mjs} +6 -6
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-DO47P6MX.mjs → executions-JWQXE7G6.mjs} +4 -4
- package/dist/cli/{executions-AUDQ5HOJ.js → executions-W7TWJRBK.js} +6 -6
- package/dist/cli/{feedback-MNWNDZVU.js → feedback-FMGRC6KO.js} +7 -7
- package/dist/cli/{feedback-XGZSJM2N.mjs → feedback-OEJFX4F7.mjs} +3 -3
- package/dist/cli/{git-2ECFQKAA.mjs → git-IVC4KHXX.mjs} +4 -4
- package/dist/cli/git-OFXE7G4X.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-534TKEMO.mjs → legacy-noops-LT36CLWZ.mjs} +4 -4
- package/dist/cli/{legacy-noops-3UZTD4DS.js → legacy-noops-X3BQ7MUK.js} +7 -7
- package/dist/cli/{monitors-G4S54JSX.js → monitors-DLIIAVLW.js} +84 -84
- package/dist/cli/{monitors-5ARELE2S.mjs → monitors-MNLCELF7.mjs} +4 -4
- package/dist/cli/{org-RIWF2TLI.js → org-CYHDEW7P.js} +64 -64
- package/dist/cli/{org-BAMOOXQW.mjs → org-QV5LMUPT.mjs} +4 -4
- package/dist/cli/{play-WV4UNGPR.mjs → play-5Z4ROZ3P.mjs} +7 -7
- package/dist/cli/{play-32XSQMFK.js → play-MEFXC2QA.js} +231 -231
- package/dist/cli/{providers-XKY2CNKH.js → providers-2MKUNFBQ.js} +7 -7
- package/dist/cli/{providers-SMSRO23R.mjs → providers-FJLYSHB3.mjs} +4 -4
- package/dist/cli/{quickstart-BFYYEVSS.mjs → quickstart-PQO3OQRT.mjs} +3 -3
- package/dist/cli/{quickstart-Q2TA72HD.js → quickstart-ULWXKAOT.js} +5 -5
- package/dist/cli/search-ANKSJ224.js +30 -0
- package/dist/cli/{search-I2TVB2P5.mjs → search-KGAAXMDG.mjs} +5 -5
- package/dist/cli/{secrets-BHKICIE3.mjs → secrets-PD5I3KAF.mjs} +4 -4
- package/dist/cli/{secrets-B4NYTSL7.js → secrets-X2VGG2PO.js} +13 -13
- package/dist/cli/{sessions-IOR2ZNNH.mjs → sessions-3WVEU4PE.mjs} +4 -4
- package/dist/cli/{sessions-XY2UREJ7.js → sessions-R3XAKTBQ.js} +5 -5
- package/dist/cli/{settings-W6S7B4NH.mjs → settings-645RSFQX.mjs} +7 -7
- package/dist/cli/{settings-ASGROQDE.js → settings-ZIDO3IP6.js} +74 -74
- package/dist/cli/{setup-YIYQ73OV.js → setup-LH5HOZ3D.js} +41 -41
- package/dist/cli/{setup-UUWGI3IN.mjs → setup-LISKIJKP.mjs} +6 -6
- package/dist/cli/{skills-CHA4QCGI.mjs → skills-VVQJHLSF.mjs} +4 -4
- package/dist/cli/skills-WLHYSVQA.js +29 -0
- package/dist/cli/{tools-43ZFJWAQ.js → tools-FTPJCNAM.js} +7 -7
- package/dist/cli/{tools-PMZDYKTT.mjs → tools-Y3LOMXFT.mjs} +6 -6
- package/dist/cli/update-A622H2DZ.js +29 -0
- package/dist/cli/{update-6VSEGTSG.mjs → update-DOBNQNJI.mjs} +6 -6
- package/dist/cli/{workflow-26EOXZ7M.js → workflow-LGENKZBV.js} +15 -15
- package/dist/cli/{workflow-SVMVLQOF.mjs → workflow-ZMAA5VCN.mjs} +5 -5
- package/dist/{client-Buv1_ktG.d.mts → client-6rEB46Lv.d.mts} +55 -57
- package/dist/{client-Db1jFLpF.d.ts → client-IrPHUE5J.d.ts} +55 -57
- package/dist/{compiler-manifest-N77W75Py.d.ts → compiler-manifest-BHnXE43X.d.mts} +6 -1
- package/dist/{compiler-manifest-N77W75Py.d.mts → compiler-manifest-BHnXE43X.d.ts} +6 -1
- package/dist/{index-3WOfyVhW.d.mts → index-Da_Y8z5e.d.mts} +1 -1
- package/dist/{index-CtIJFTCl.d.ts → index-SODb2ROS.d.ts} +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +8 -8
- package/dist/index.mjs +5 -5
- package/dist/install-integrity.json +76 -76
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-IJKAKAHG.js +0 -40
- package/dist/cli/git-6S64UBWC.js +0 -24
- package/dist/cli/search-GK7P3AZY.js +0 -30
- package/dist/cli/skills-LKNKHB2I.js +0 -29
- package/dist/cli/update-R7FODDIW.js +0 -29
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
25
25
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
26
26
|
resolveConfig
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZBCTXQ3P.mjs";
|
|
28
28
|
import {
|
|
29
29
|
CustomerDbQueryOutcomeUnknownError
|
|
30
30
|
} from "./chunk-YHPYUZZX.mjs";
|
|
@@ -3432,8 +3432,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Search available tools using Deepline's ranked backend search.
|
|
3434
3434
|
*
|
|
3435
|
-
*
|
|
3436
|
-
* tool metadata, categories, agent guidance, and input schema fields.
|
|
3435
|
+
* The CLI uses the same search.
|
|
3436
|
+
* The search ranks tool metadata, categories, agent guidance, and input schema fields.
|
|
3437
3437
|
*/
|
|
3438
3438
|
async searchTools(options = {}) {
|
|
3439
3439
|
return this.http.get(
|
|
@@ -3498,13 +3498,12 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3498
3498
|
/**
|
|
3499
3499
|
* Describe a Deepline Agent model and its provider-specific option surface.
|
|
3500
3500
|
*
|
|
3501
|
-
*
|
|
3502
|
-
*
|
|
3503
|
-
* payloads before executing `deeplineagent`.
|
|
3501
|
+
* The method combines live AI Gateway model metadata with Deepline's generated registry of AI SDK provider options.
|
|
3502
|
+
* Agents can use this information to construct `providerOptions` payloads before they execute `deeplineagent`.
|
|
3504
3503
|
*
|
|
3505
|
-
* The returned
|
|
3506
|
-
*
|
|
3507
|
-
*
|
|
3504
|
+
* The returned schemas describe accepted shapes for provider options.
|
|
3505
|
+
* These schemas do not guarantee that every model supports each option.
|
|
3506
|
+
* Runtime AI SDK and Gateway errors determine support for model-specific values.
|
|
3508
3507
|
*
|
|
3509
3508
|
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
3510
3509
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
@@ -3520,8 +3519,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3520
3519
|
/**
|
|
3521
3520
|
* Quote dynamic AI inference pricing for a concrete payload.
|
|
3522
3521
|
*
|
|
3523
|
-
* The result
|
|
3524
|
-
*
|
|
3522
|
+
* The result contains a planning estimate and a separate, proven authorization maximum.
|
|
3523
|
+
* Both values use Deepline credits.
|
|
3525
3524
|
*/
|
|
3526
3525
|
async quoteInferenceTool(toolId, payload) {
|
|
3527
3526
|
return this.http.post(
|
|
@@ -3596,13 +3595,16 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3596
3595
|
* entrypoints: the CLI, {@link Deepline.connect}, {@link submitPlay},
|
|
3597
3596
|
* or {@link runPlay}.
|
|
3598
3597
|
*
|
|
3599
|
-
*
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
3602
|
-
*
|
|
3603
|
-
*
|
|
3604
|
-
*
|
|
3605
|
-
*
|
|
3598
|
+
* These interfaces share the run contract and return a workflow or run ID:
|
|
3599
|
+
*
|
|
3600
|
+
* - `deepline plays run`.
|
|
3601
|
+
* - Repository scripts such as `bun run deepline -- plays run`.
|
|
3602
|
+
* - SDK context calls such as `Deepline.connect().play(name).run()`.
|
|
3603
|
+
* - Direct `POST /api/v2/plays/run` calls.
|
|
3604
|
+
*
|
|
3605
|
+
* Read completed output from `getPlayStatus(runId).result`.
|
|
3606
|
+
* For SDK context calls, read output from `PlayJob.get()`.
|
|
3607
|
+
* Execution logs appear under `progress.logs`. The user output object does not contain these logs.
|
|
3606
3608
|
*
|
|
3607
3609
|
* @param request - Play run configuration (name, code, input, etc.)
|
|
3608
3610
|
* @returns Run metadata including the public `workflowId`
|
|
@@ -3767,9 +3769,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3767
3769
|
/**
|
|
3768
3770
|
* Compile a bundled play artifact into the server-side compiler manifest.
|
|
3769
3771
|
*
|
|
3770
|
-
* The manifest records imports, trigger bindings, static pipeline shape, and
|
|
3771
|
-
*
|
|
3772
|
-
* or run.
|
|
3772
|
+
* The manifest records imports, trigger bindings, static pipeline shape, and runtime metadata.
|
|
3773
|
+
* The compiler needs these records before it checks, registers, or runs a Play artifact.
|
|
3773
3774
|
*/
|
|
3774
3775
|
async compilePlayManifest(input) {
|
|
3775
3776
|
const retryDelays = COMPILE_MANIFEST_RETRY_DELAYS_MS.slice(
|
|
@@ -3816,8 +3817,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3816
3817
|
/**
|
|
3817
3818
|
* Register an already-bundled play artifact and start a run from it.
|
|
3818
3819
|
*
|
|
3819
|
-
*
|
|
3820
|
-
*
|
|
3820
|
+
* SDK and CLI packaging wrappers use this low-level run method for file-based Plays.
|
|
3821
|
+
* Local bundling must produce the runtime artifact first.
|
|
3821
3822
|
*/
|
|
3822
3823
|
async startPlayRunFromBundle(input) {
|
|
3823
3824
|
const compilerManifest = input.compilerManifest ?? await this.compilePlayManifest({
|
|
@@ -3855,15 +3856,15 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3855
3856
|
/**
|
|
3856
3857
|
* Register a bundled play artifact and start a run from the live revision.
|
|
3857
3858
|
*
|
|
3858
|
-
*
|
|
3859
|
-
*
|
|
3860
|
-
*
|
|
3861
|
-
* durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
3859
|
+
* This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
|
|
3860
|
+
* Packaging wrappers use this method for file-based Plays.
|
|
3861
|
+
* Pass the returned ID to {@link getPlayStatus}.
|
|
3862
|
+
* The method returns the same durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
3862
3863
|
*
|
|
3863
|
-
* @param code -
|
|
3864
|
-
* @param csvPath - Path to input CSV file, or `null
|
|
3865
|
-
* @param name - Play name
|
|
3866
|
-
* @param options - Additional submission options
|
|
3864
|
+
* @param code - Fallback source string. Pass the bundled artifact in `options.artifact`.
|
|
3865
|
+
* @param csvPath - Path to the input CSV file, or `null`.
|
|
3866
|
+
* @param name - Play name. The SDK derives it from the source when omitted.
|
|
3867
|
+
* @param options - Additional submission options.
|
|
3867
3868
|
* @returns Workflow metadata with `workflowId`
|
|
3868
3869
|
*
|
|
3869
3870
|
* @example
|
|
@@ -3956,9 +3957,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3956
3957
|
/**
|
|
3957
3958
|
* Mint short-lived presigned upload targets for staged play files.
|
|
3958
3959
|
*
|
|
3959
|
-
* Internal primitive used by {@link stagePlayFiles}.
|
|
3960
|
-
*
|
|
3961
|
-
* already holds, or a presigned PUT URL the caller uploads the body to.
|
|
3960
|
+
* Internal primitive used by {@link stagePlayFiles}. For a content-addressed file already in storage, the server returns a staged reference. That file needs no upload.
|
|
3961
|
+
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
3962
3962
|
*/
|
|
3963
3963
|
async mintStagedPlayFileUploads(files) {
|
|
3964
3964
|
return mintStagedPlayFileUploads(this.http, files);
|
|
@@ -3966,8 +3966,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3966
3966
|
/**
|
|
3967
3967
|
* Resolve staged play files by content hash without uploading bytes.
|
|
3968
3968
|
*
|
|
3969
|
-
*
|
|
3970
|
-
* does not already have.
|
|
3969
|
+
* The response identifies missing files. Callers need to upload only these files.
|
|
3971
3970
|
*/
|
|
3972
3971
|
async resolveStagedPlayFiles(files) {
|
|
3973
3972
|
return this.http.post("/api/v2/plays/files/stage", { files });
|
|
@@ -4451,11 +4450,11 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4451
4450
|
/**
|
|
4452
4451
|
* Start a fresh run from a prior run's retained input and pinned revision.
|
|
4453
4452
|
*
|
|
4454
|
-
* Every invocation sends an `Idempotency-Key`.
|
|
4455
|
-
*
|
|
4456
|
-
*
|
|
4457
|
-
* across separate invocations
|
|
4458
|
-
* different key
|
|
4453
|
+
* Every invocation sends an `Idempotency-Key`.
|
|
4454
|
+
* When the caller supplies no key, the SDK creates a fresh key once per call.
|
|
4455
|
+
* The transport reuses that key for network retries, so those retries produce one rerun.
|
|
4456
|
+
* Reuse an explicit key across separate invocations when the previous result is uncertain.
|
|
4457
|
+
* A different key starts another rerun.
|
|
4459
4458
|
*/
|
|
4460
4459
|
async rerun(runId, options) {
|
|
4461
4460
|
const idempotencyKey = options?.idempotencyKey?.trim();
|
|
@@ -4795,8 +4794,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4795
4794
|
);
|
|
4796
4795
|
}
|
|
4797
4796
|
/**
|
|
4798
|
-
* Stop every active run visible to the current workspace
|
|
4799
|
-
* `dryRun: true
|
|
4797
|
+
* Stop every active run visible to the current workspace.
|
|
4798
|
+
* With `dryRun: true`, list the exact candidates without cancelling any run.
|
|
4800
4799
|
*
|
|
4801
4800
|
* This is the SDK equivalent of:
|
|
4802
4801
|
*
|
|
@@ -4805,8 +4804,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4805
4804
|
* deepline runs stop-all --reason "stale lock"
|
|
4806
4805
|
* ```
|
|
4807
4806
|
*
|
|
4808
|
-
* Use this when a failed parent
|
|
4809
|
-
*
|
|
4807
|
+
* Use this method when a failed parent leaves active child or waiting runs.
|
|
4808
|
+
* The method clears workspace run-slot state without requiring each run ID.
|
|
4810
4809
|
*/
|
|
4811
4810
|
async stopAllRuns(options) {
|
|
4812
4811
|
const dryRun = options?.dryRun === true;
|
|
@@ -4827,8 +4826,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4827
4826
|
return result;
|
|
4828
4827
|
}
|
|
4829
4828
|
/**
|
|
4830
|
-
* List one page of callable
|
|
4831
|
-
* Use listPlaysPage
|
|
4829
|
+
* List one page of callable Plays. With grep, the method retains all matching results.
|
|
4830
|
+
* Use listPlaysPage for pagination metadata.
|
|
4832
4831
|
*
|
|
4833
4832
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
4834
4833
|
* `origin: "owned"` for org-owned plays.
|
|
@@ -5265,8 +5264,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5265
5264
|
/**
|
|
5266
5265
|
* Get the full definition and state of a named play.
|
|
5267
5266
|
*
|
|
5268
|
-
*
|
|
5269
|
-
* sheet processing summary, and database URL.
|
|
5267
|
+
* The response includes revision state (draft or live), recent runs, a summary of sheet processing, and the database URL.
|
|
5270
5268
|
*
|
|
5271
5269
|
* @param name - Play name
|
|
5272
5270
|
* @returns Complete play detail
|
|
@@ -5303,10 +5301,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5303
5301
|
/**
|
|
5304
5302
|
* Get a normalized play description suitable for agents and CLIs.
|
|
5305
5303
|
*
|
|
5306
|
-
* The description includes runnable examples, input
|
|
5307
|
-
*
|
|
5308
|
-
* `{ pipeline: true }` to include the compiled pipeline
|
|
5309
|
-
* hundreds of kilobytes
|
|
5304
|
+
* The description includes runnable examples, input and output summaries, clone guidance, and revision state.
|
|
5305
|
+
* It also includes metadata for the latest run when available.
|
|
5306
|
+
* Set `{ pipeline: true }` to include the compiled pipeline.
|
|
5307
|
+
* The pipeline can be hundreds of kilobytes. The response omits it by default.
|
|
5310
5308
|
*/
|
|
5311
5309
|
async describePlay(name, options = {}) {
|
|
5312
5310
|
if (options.pipeline) {
|
|
@@ -5355,8 +5353,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5355
5353
|
* Make a play revision live.
|
|
5356
5354
|
*
|
|
5357
5355
|
* When `revisionId` is omitted, the current working revision becomes live.
|
|
5358
|
-
*
|
|
5359
|
-
* specifying an explicit revision.
|
|
5356
|
+
* A call by Play name executes the live revision unless the caller specifies another revision.
|
|
5360
5357
|
*
|
|
5361
5358
|
* @param name - Play name
|
|
5362
5359
|
* @param request - Optional explicit revision to make live
|
|
@@ -5615,9 +5612,9 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5615
5612
|
return event;
|
|
5616
5613
|
}
|
|
5617
5614
|
/**
|
|
5618
|
-
*
|
|
5619
|
-
*
|
|
5620
|
-
*
|
|
5615
|
+
* Read Deepline credits billed to each run and whether charges are still settling.
|
|
5616
|
+
* The response never shows provider spend. The dashboard runs grid uses the same read.
|
|
5617
|
+
* HTTP endpoint: `GET /api/v2/runs/billing`.
|
|
5621
5618
|
*/
|
|
5622
5619
|
async getRunBilling(runIds) {
|
|
5623
5620
|
const params = new URLSearchParams();
|
|
@@ -24,7 +24,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkTHHM4DPEjs = require('./chunk-THHM4DPE.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
|
|
@@ -2889,8 +2889,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
const receivers = _optionalChain([env, 'access', _97 => _97.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()]);
|
|
2891
2891
|
return {
|
|
2892
|
-
[
|
|
2893
|
-
...receivers ? { [
|
|
2892
|
+
[_chunkTHHM4DPEjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2893
|
+
...receivers ? { [_chunkTHHM4DPEjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
2896
|
function isolatedCiRuntimeEventReadHeaders(env) {
|
|
@@ -2906,7 +2906,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
2906
2906
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
2909
|
-
return { [
|
|
2909
|
+
return { [_chunkTHHM4DPEjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2910
2910
|
}
|
|
2911
2911
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2912
2912
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3197,9 +3197,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3197
3197
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3198
3198
|
*/
|
|
3199
3199
|
constructor(options) {
|
|
3200
|
-
this.config =
|
|
3200
|
+
this.config = _chunkTHHM4DPEjs.resolveConfig.call(void 0, options);
|
|
3201
3201
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3202
|
-
this.http = new (0,
|
|
3202
|
+
this.http = new (0, _chunkTHHM4DPEjs.HttpClient)(this.config);
|
|
3203
3203
|
this.toolCalls = new ToolCalls(
|
|
3204
3204
|
this.http,
|
|
3205
3205
|
this.config.timeout,
|
|
@@ -3432,8 +3432,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3432
3432
|
/**
|
|
3433
3433
|
* Search available tools using Deepline's ranked backend search.
|
|
3434
3434
|
*
|
|
3435
|
-
*
|
|
3436
|
-
* tool metadata, categories, agent guidance, and input schema fields.
|
|
3435
|
+
* The CLI uses the same search.
|
|
3436
|
+
* The search ranks tool metadata, categories, agent guidance, and input schema fields.
|
|
3437
3437
|
*/
|
|
3438
3438
|
async searchTools(options = {}) {
|
|
3439
3439
|
return this.http.get(
|
|
@@ -3498,13 +3498,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3498
3498
|
/**
|
|
3499
3499
|
* Describe a Deepline Agent model and its provider-specific option surface.
|
|
3500
3500
|
*
|
|
3501
|
-
*
|
|
3502
|
-
*
|
|
3503
|
-
* payloads before executing `deeplineagent`.
|
|
3501
|
+
* The method combines live AI Gateway model metadata with Deepline's generated registry of AI SDK provider options.
|
|
3502
|
+
* Agents can use this information to construct `providerOptions` payloads before they execute `deeplineagent`.
|
|
3504
3503
|
*
|
|
3505
|
-
* The returned
|
|
3506
|
-
*
|
|
3507
|
-
*
|
|
3504
|
+
* The returned schemas describe accepted shapes for provider options.
|
|
3505
|
+
* These schemas do not guarantee that every model supports each option.
|
|
3506
|
+
* Runtime AI SDK and Gateway errors determine support for model-specific values.
|
|
3508
3507
|
*
|
|
3509
3508
|
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
3510
3509
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
@@ -3520,8 +3519,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3520
3519
|
/**
|
|
3521
3520
|
* Quote dynamic AI inference pricing for a concrete payload.
|
|
3522
3521
|
*
|
|
3523
|
-
* The result
|
|
3524
|
-
*
|
|
3522
|
+
* The result contains a planning estimate and a separate, proven authorization maximum.
|
|
3523
|
+
* Both values use Deepline credits.
|
|
3525
3524
|
*/
|
|
3526
3525
|
async quoteInferenceTool(toolId, payload) {
|
|
3527
3526
|
return this.http.post(
|
|
@@ -3596,13 +3595,16 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3596
3595
|
* entrypoints: the CLI, {@link Deepline.connect}, {@link submitPlay},
|
|
3597
3596
|
* or {@link runPlay}.
|
|
3598
3597
|
*
|
|
3599
|
-
*
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
3602
|
-
*
|
|
3603
|
-
*
|
|
3604
|
-
*
|
|
3605
|
-
*
|
|
3598
|
+
* These interfaces share the run contract and return a workflow or run ID:
|
|
3599
|
+
*
|
|
3600
|
+
* - `deepline plays run`.
|
|
3601
|
+
* - Repository scripts such as `bun run deepline -- plays run`.
|
|
3602
|
+
* - SDK context calls such as `Deepline.connect().play(name).run()`.
|
|
3603
|
+
* - Direct `POST /api/v2/plays/run` calls.
|
|
3604
|
+
*
|
|
3605
|
+
* Read completed output from `getPlayStatus(runId).result`.
|
|
3606
|
+
* For SDK context calls, read output from `PlayJob.get()`.
|
|
3607
|
+
* Execution logs appear under `progress.logs`. The user output object does not contain these logs.
|
|
3606
3608
|
*
|
|
3607
3609
|
* @param request - Play run configuration (name, code, input, etc.)
|
|
3608
3610
|
* @returns Run metadata including the public `workflowId`
|
|
@@ -3767,9 +3769,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3767
3769
|
/**
|
|
3768
3770
|
* Compile a bundled play artifact into the server-side compiler manifest.
|
|
3769
3771
|
*
|
|
3770
|
-
* The manifest records imports, trigger bindings, static pipeline shape, and
|
|
3771
|
-
*
|
|
3772
|
-
* or run.
|
|
3772
|
+
* The manifest records imports, trigger bindings, static pipeline shape, and runtime metadata.
|
|
3773
|
+
* The compiler needs these records before it checks, registers, or runs a Play artifact.
|
|
3773
3774
|
*/
|
|
3774
3775
|
async compilePlayManifest(input) {
|
|
3775
3776
|
const retryDelays = COMPILE_MANIFEST_RETRY_DELAYS_MS.slice(
|
|
@@ -3816,8 +3817,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3816
3817
|
/**
|
|
3817
3818
|
* Register an already-bundled play artifact and start a run from it.
|
|
3818
3819
|
*
|
|
3819
|
-
*
|
|
3820
|
-
*
|
|
3820
|
+
* SDK and CLI packaging wrappers use this low-level run method for file-based Plays.
|
|
3821
|
+
* Local bundling must produce the runtime artifact first.
|
|
3821
3822
|
*/
|
|
3822
3823
|
async startPlayRunFromBundle(input) {
|
|
3823
3824
|
const compilerManifest = await _asyncNullishCoalesce(input.compilerManifest, async () => ( await this.compilePlayManifest({
|
|
@@ -3855,15 +3856,15 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3855
3856
|
/**
|
|
3856
3857
|
* Register a bundled play artifact and start a run from the live revision.
|
|
3857
3858
|
*
|
|
3858
|
-
*
|
|
3859
|
-
*
|
|
3860
|
-
*
|
|
3861
|
-
* durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
3859
|
+
* This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
|
|
3860
|
+
* Packaging wrappers use this method for file-based Plays.
|
|
3861
|
+
* Pass the returned ID to {@link getPlayStatus}.
|
|
3862
|
+
* The method returns the same durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
3862
3863
|
*
|
|
3863
|
-
* @param code -
|
|
3864
|
-
* @param csvPath - Path to input CSV file, or `null
|
|
3865
|
-
* @param name - Play name
|
|
3866
|
-
* @param options - Additional submission options
|
|
3864
|
+
* @param code - Fallback source string. Pass the bundled artifact in `options.artifact`.
|
|
3865
|
+
* @param csvPath - Path to the input CSV file, or `null`.
|
|
3866
|
+
* @param name - Play name. The SDK derives it from the source when omitted.
|
|
3867
|
+
* @param options - Additional submission options.
|
|
3867
3868
|
* @returns Workflow metadata with `workflowId`
|
|
3868
3869
|
*
|
|
3869
3870
|
* @example
|
|
@@ -3956,9 +3957,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3956
3957
|
/**
|
|
3957
3958
|
* Mint short-lived presigned upload targets for staged play files.
|
|
3958
3959
|
*
|
|
3959
|
-
* Internal primitive used by {@link stagePlayFiles}.
|
|
3960
|
-
*
|
|
3961
|
-
* already holds, or a presigned PUT URL the caller uploads the body to.
|
|
3960
|
+
* Internal primitive used by {@link stagePlayFiles}. For a content-addressed file already in storage, the server returns a staged reference. That file needs no upload.
|
|
3961
|
+
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
3962
3962
|
*/
|
|
3963
3963
|
async mintStagedPlayFileUploads(files) {
|
|
3964
3964
|
return _chunkUHNDVD3Pjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
|
|
@@ -3966,8 +3966,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3966
3966
|
/**
|
|
3967
3967
|
* Resolve staged play files by content hash without uploading bytes.
|
|
3968
3968
|
*
|
|
3969
|
-
*
|
|
3970
|
-
* does not already have.
|
|
3969
|
+
* The response identifies missing files. Callers need to upload only these files.
|
|
3971
3970
|
*/
|
|
3972
3971
|
async resolveStagedPlayFiles(files) {
|
|
3973
3972
|
return this.http.post("/api/v2/plays/files/stage", { files });
|
|
@@ -4451,11 +4450,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4451
4450
|
/**
|
|
4452
4451
|
* Start a fresh run from a prior run's retained input and pinned revision.
|
|
4453
4452
|
*
|
|
4454
|
-
* Every invocation sends an `Idempotency-Key`.
|
|
4455
|
-
*
|
|
4456
|
-
*
|
|
4457
|
-
* across separate invocations
|
|
4458
|
-
* different key
|
|
4453
|
+
* Every invocation sends an `Idempotency-Key`.
|
|
4454
|
+
* When the caller supplies no key, the SDK creates a fresh key once per call.
|
|
4455
|
+
* The transport reuses that key for network retries, so those retries produce one rerun.
|
|
4456
|
+
* Reuse an explicit key across separate invocations when the previous result is uncertain.
|
|
4457
|
+
* A different key starts another rerun.
|
|
4459
4458
|
*/
|
|
4460
4459
|
async rerun(runId, options) {
|
|
4461
4460
|
const idempotencyKey = _optionalChain([options, 'optionalAccess', _214 => _214.idempotencyKey, 'optionalAccess', _215 => _215.trim, 'call', _216 => _216()]);
|
|
@@ -4795,8 +4794,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4795
4794
|
);
|
|
4796
4795
|
}
|
|
4797
4796
|
/**
|
|
4798
|
-
* Stop every active run visible to the current workspace
|
|
4799
|
-
* `dryRun: true
|
|
4797
|
+
* Stop every active run visible to the current workspace.
|
|
4798
|
+
* With `dryRun: true`, list the exact candidates without cancelling any run.
|
|
4800
4799
|
*
|
|
4801
4800
|
* This is the SDK equivalent of:
|
|
4802
4801
|
*
|
|
@@ -4805,8 +4804,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4805
4804
|
* deepline runs stop-all --reason "stale lock"
|
|
4806
4805
|
* ```
|
|
4807
4806
|
*
|
|
4808
|
-
* Use this when a failed parent
|
|
4809
|
-
*
|
|
4807
|
+
* Use this method when a failed parent leaves active child or waiting runs.
|
|
4808
|
+
* The method clears workspace run-slot state without requiring each run ID.
|
|
4810
4809
|
*/
|
|
4811
4810
|
async stopAllRuns(options) {
|
|
4812
4811
|
const dryRun = _optionalChain([options, 'optionalAccess', _241 => _241.dryRun]) === true;
|
|
@@ -4827,8 +4826,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4827
4826
|
return result;
|
|
4828
4827
|
}
|
|
4829
4828
|
/**
|
|
4830
|
-
* List one page of callable
|
|
4831
|
-
* Use listPlaysPage
|
|
4829
|
+
* List one page of callable Plays. With grep, the method retains all matching results.
|
|
4830
|
+
* Use listPlaysPage for pagination metadata.
|
|
4832
4831
|
*
|
|
4833
4832
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
4834
4833
|
* `origin: "owned"` for org-owned plays.
|
|
@@ -5265,8 +5264,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5265
5264
|
/**
|
|
5266
5265
|
* Get the full definition and state of a named play.
|
|
5267
5266
|
*
|
|
5268
|
-
*
|
|
5269
|
-
* sheet processing summary, and database URL.
|
|
5267
|
+
* The response includes revision state (draft or live), recent runs, a summary of sheet processing, and the database URL.
|
|
5270
5268
|
*
|
|
5271
5269
|
* @param name - Play name
|
|
5272
5270
|
* @returns Complete play detail
|
|
@@ -5303,10 +5301,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5303
5301
|
/**
|
|
5304
5302
|
* Get a normalized play description suitable for agents and CLIs.
|
|
5305
5303
|
*
|
|
5306
|
-
* The description includes runnable examples, input
|
|
5307
|
-
*
|
|
5308
|
-
* `{ pipeline: true }` to include the compiled pipeline
|
|
5309
|
-
* hundreds of kilobytes
|
|
5304
|
+
* The description includes runnable examples, input and output summaries, clone guidance, and revision state.
|
|
5305
|
+
* It also includes metadata for the latest run when available.
|
|
5306
|
+
* Set `{ pipeline: true }` to include the compiled pipeline.
|
|
5307
|
+
* The pipeline can be hundreds of kilobytes. The response omits it by default.
|
|
5310
5308
|
*/
|
|
5311
5309
|
async describePlay(name, options = {}) {
|
|
5312
5310
|
if (options.pipeline) {
|
|
@@ -5355,8 +5353,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5355
5353
|
* Make a play revision live.
|
|
5356
5354
|
*
|
|
5357
5355
|
* When `revisionId` is omitted, the current working revision becomes live.
|
|
5358
|
-
*
|
|
5359
|
-
* specifying an explicit revision.
|
|
5356
|
+
* A call by Play name executes the live revision unless the caller specifies another revision.
|
|
5360
5357
|
*
|
|
5361
5358
|
* @param name - Play name
|
|
5362
5359
|
* @param request - Optional explicit revision to make live
|
|
@@ -5615,9 +5612,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5615
5612
|
return event;
|
|
5616
5613
|
}
|
|
5617
5614
|
/**
|
|
5618
|
-
*
|
|
5619
|
-
*
|
|
5620
|
-
*
|
|
5615
|
+
* Read Deepline credits billed to each run and whether charges are still settling.
|
|
5616
|
+
* The response never shows provider spend. The dashboard runs grid uses the same read.
|
|
5617
|
+
* HTTP endpoint: `GET /api/v2/runs/billing`.
|
|
5621
5618
|
*/
|
|
5622
5619
|
async getRunBilling(runIds) {
|
|
5623
5620
|
const params = new URLSearchParams();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XT6GG3QO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
DeeplineClient,
|
|
47
47
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-J67NU4MQ.mjs";
|
|
49
49
|
import {
|
|
50
50
|
stableStringify
|
|
51
51
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -62,11 +62,11 @@ import {
|
|
|
62
62
|
printJsonError,
|
|
63
63
|
renderCommandEnvelopeText,
|
|
64
64
|
shouldEmitJson
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BKC6VMYZ.mjs";
|
|
66
66
|
import {
|
|
67
67
|
resolveConfig,
|
|
68
68
|
sdkCliStateDirPath
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ZBCTXQ3P.mjs";
|
|
70
70
|
import {
|
|
71
71
|
DeeplineError
|
|
72
72
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -941,7 +941,7 @@ Examples:
|
|
|
941
941
|
process.exitCode = await narrowView();
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
|
-
const { describeAnything } = await import("./describe-
|
|
944
|
+
const { describeAnything } = await import("./describe-WERH4TD2.mjs");
|
|
945
945
|
process.exitCode = await describeAnything(
|
|
946
946
|
toolId,
|
|
947
947
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N6OAMAO5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4TV43THC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BKC6VMYZ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZBCTXQ3P.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BKC6VMYZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZBCTXQ3P.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|