deepline 0.3.422 → 0.3.423
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 +2 -2
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +227 -184
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
- package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
- package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
- package/dist/cli/{auth-DMLBSXLV.mjs → auth-L7Q53QKK.mjs} +4 -4
- package/dist/cli/auth-SUNY477Y.js +40 -0
- package/dist/cli/{billing-SEXKROBQ.mjs → billing-IH7AKDR2.mjs} +4 -4
- package/dist/cli/{billing-IFGFPGJV.js → billing-QNP6YGI2.js} +73 -73
- package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
- package/dist/cli/{chunk-WP7T4BPE.js → chunk-2F5ULM2F.js} +1 -1
- package/dist/cli/{chunk-BL3LY54Y.js → chunk-2U3AMRHF.js} +8 -8
- package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
- package/dist/cli/{chunk-SDCIROIS.mjs → chunk-44US3EL2.mjs} +5 -5
- package/dist/cli/{chunk-S4KGXRCV.js → chunk-4WT5RISA.js} +20 -20
- package/dist/cli/{chunk-JRSULUPQ.js → chunk-5DGR3TB6.js} +2 -2
- package/dist/cli/{chunk-2JKQORUX.mjs → chunk-6FFORGD2.mjs} +2 -2
- package/dist/cli/{chunk-QNBHQM5R.mjs → chunk-ARTGL3FM.mjs} +1 -1
- package/dist/cli/{chunk-WGO2DY4L.js → chunk-AVOBDFQ5.js} +11 -11
- package/dist/cli/{chunk-V4RAH5D6.js → chunk-DRK6FYJU.js} +26 -26
- package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
- package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
- package/dist/cli/{chunk-AYM2KZN3.js → chunk-EWWWOKX2.js} +6 -6
- package/dist/cli/{chunk-MLP4CAY7.mjs → chunk-FJRFSBWO.mjs} +4 -4
- package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
- package/dist/cli/{chunk-CO3VMH33.mjs → chunk-H662SHPT.mjs} +28 -27
- package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
- package/dist/cli/{chunk-FEKJENBB.mjs → chunk-IW5QK3K6.mjs} +3 -3
- package/dist/cli/{chunk-VT6WJ26Y.mjs → chunk-JDAXVQV7.mjs} +1 -1
- package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
- package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
- package/dist/cli/{chunk-KXPIFC5S.mjs → chunk-MHG3NND4.mjs} +3 -3
- package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
- package/dist/cli/{chunk-LXRDHISW.js → chunk-MMI2DXCW.js} +8 -8
- package/dist/cli/{chunk-K4X472AT.js → chunk-NA6SGG7X.js} +260 -259
- package/dist/cli/{chunk-M6SXXFMT.mjs → chunk-NFIZ5YED.mjs} +2 -2
- package/dist/cli/{chunk-OZHPZCAU.js → chunk-OMWO2JLC.js} +52 -52
- package/dist/cli/{chunk-TP26TAAF.mjs → chunk-OPI7UCQG.mjs} +1 -1
- package/dist/cli/{chunk-UQQRMCOL.js → chunk-OZLMMMZH.js} +6 -6
- package/dist/cli/{chunk-W74RDGRL.mjs → chunk-PH4BP6KM.mjs} +2 -2
- package/dist/cli/{chunk-4EV2FKBI.js → chunk-PQ4G6MKI.js} +16 -16
- package/dist/cli/{chunk-3CE3WGKP.mjs → chunk-QN6DG4JO.mjs} +2 -2
- package/dist/cli/{chunk-4CAVSRQH.mjs → chunk-QWJJMQNE.mjs} +1 -1
- package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
- package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
- package/dist/cli/{chunk-2LVM22ZU.js → chunk-RAL75ND3.js} +2 -2
- package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
- package/dist/cli/{chunk-AXDEH2AM.mjs → chunk-S6KG7JCR.mjs} +2 -2
- package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
- package/dist/cli/{chunk-HCYNAIHZ.js → chunk-W42SSVM7.js} +4 -4
- package/dist/cli/{chunk-VRI3ABTK.js → chunk-WJO7KIFT.js} +50 -50
- package/dist/cli/{chunk-PXO253DP.mjs → chunk-XSERB7H2.mjs} +1 -1
- package/dist/cli/{chunk-KBJP3UAU.js → chunk-YCHR57TD.js} +35 -35
- package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
- package/dist/cli/{chunk-7OJEYJ6G.mjs → chunk-YNT7PJND.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-J7UVP4KB.mjs → csv-5KW7M6ZS.mjs} +3 -3
- package/dist/cli/{csv-Y4YWZSLB.js → csv-GF7VRES5.js} +12 -12
- package/dist/cli/{db-SVFCM6YZ.js → db-AEDXKB4F.js} +26 -26
- package/dist/cli/{db-CQ6NHMLG.mjs → db-NN4JQAC4.mjs} +5 -5
- package/dist/cli/{describe-FSDW6LTN.js → describe-5RLXW332.js} +24 -24
- package/dist/cli/{describe-Y65BU7ZY.mjs → describe-RX6VROHQ.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-IW762OIJ.mjs → executions-EJZ34VUB.mjs} +4 -4
- package/dist/cli/{executions-SJIKBRHT.js → executions-PGIGFDDS.js} +6 -6
- package/dist/cli/{feedback-VMJIWAMT.mjs → feedback-6MWOKE7H.mjs} +3 -3
- package/dist/cli/{feedback-RCYSUOB3.js → feedback-L2ODMANV.js} +7 -7
- package/dist/cli/git-2ZDCRTBD.js +24 -0
- package/dist/cli/{git-Q2WY3K6X.mjs → git-456RF3AT.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-U4YPPYXU.js → legacy-noops-MDPB3MIS.js} +7 -7
- package/dist/cli/{legacy-noops-JVEE2VHK.mjs → legacy-noops-ZPRBXQDE.mjs} +4 -4
- package/dist/cli/{monitors-BMAOQ37R.js → monitors-TXKR5XYW.js} +86 -86
- package/dist/cli/{monitors-AY4KQRTC.mjs → monitors-ZLP6A7FT.mjs} +6 -6
- package/dist/cli/{org-G5IURX74.js → org-73SQ3AT2.js} +64 -64
- package/dist/cli/{org-ME4X6HWH.mjs → org-YZ62BIGM.mjs} +4 -4
- package/dist/cli/{play-X5GSZOKZ.js → play-M75EBXEV.js} +606 -567
- package/dist/cli/{play-WLYU7WQL.mjs → play-VCYQKCKF.mjs} +113 -74
- package/dist/cli/{providers-AHEUVD3R.js → providers-GIINJPWQ.js} +7 -7
- package/dist/cli/{providers-2LBMNB7B.mjs → providers-JLA6LST3.mjs} +4 -4
- package/dist/cli/{quickstart-DBLYGHJP.mjs → quickstart-AHCU75GG.mjs} +3 -3
- package/dist/cli/{quickstart-DP2SKLIG.js → quickstart-HHHLYCHT.js} +5 -5
- package/dist/cli/{search-YKJHY3ZJ.mjs → search-5GACUIAX.mjs} +5 -5
- package/dist/cli/search-W2PGBXQO.js +30 -0
- package/dist/cli/{secrets-2P3I3OEZ.js → secrets-PI7IPCOE.js} +13 -13
- package/dist/cli/{secrets-ECLARBO6.mjs → secrets-S2NBKAEN.mjs} +4 -4
- package/dist/cli/{sessions-MC4ZCTSN.js → sessions-BK4CSRFS.js} +5 -5
- package/dist/cli/{sessions-3GDFID7R.mjs → sessions-IBKYGTBD.mjs} +4 -4
- package/dist/cli/{settings-7SVR2OVL.js → settings-2G7TUDM7.js} +75 -75
- package/dist/cli/{settings-RTPJXMOA.mjs → settings-JY6UN4KO.mjs} +8 -8
- package/dist/cli/{setup-OKAZZGAW.mjs → setup-HS5X3OSN.mjs} +7 -7
- package/dist/cli/{setup-4WLIJX36.js → setup-R424FIBF.js} +42 -42
- package/dist/cli/skills-M3RZAN4A.js +29 -0
- package/dist/cli/{skills-2CVL6RG5.mjs → skills-UIBUDTGN.mjs} +5 -5
- package/dist/cli/tools-K2GII2PA.js +44 -0
- package/dist/cli/{tools-KAFHP6J4.mjs → tools-SB4FREB6.mjs} +15 -15
- package/dist/cli/update-C2ORJRXN.js +31 -0
- package/dist/cli/{update-3ZV3W7I4.mjs → update-NJSUE2YU.mjs} +7 -7
- package/dist/cli/{workflow-GULDFFP3.js → workflow-3AZWZ4J3.js} +19 -19
- package/dist/cli/{workflow-DKSUNZXE.mjs → workflow-HBG76XYX.mjs} +9 -9
- package/dist/{client-CCWIUnk7.d.mts → client-BTUOYGID.d.mts} +10 -9
- package/dist/{client-vHqBm-OL.d.ts → client-C668iUhZ.d.ts} +10 -9
- package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
- package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
- package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
- package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
- package/dist/index.d.mts +120 -150
- package/dist/index.d.ts +120 -150
- package/dist/index.js +77 -12
- package/dist/index.mjs +74 -9
- package/dist/install-integrity.json +99 -98
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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-HD5AM2WM.js +0 -40
- package/dist/cli/git-JAW3UEGA.js +0 -24
- package/dist/cli/search-4K3VSDS5.js +0 -30
- package/dist/cli/skills-ZNSQOXO2.js +0 -29
- package/dist/cli/tools-W4U4FT3R.js +0 -44
- package/dist/cli/update-IE2FPLB5.js +0 -31
|
@@ -582,13 +582,13 @@ type PlayDatasetTransformOptions = {
|
|
|
582
582
|
sourceLabel?: string | null;
|
|
583
583
|
};
|
|
584
584
|
/**
|
|
585
|
-
* Durable handle for rows produced by `
|
|
585
|
+
* Durable handle for rows produced by `deepline.csv(...)` or `deepline.dataset(...).run()`.
|
|
586
586
|
*
|
|
587
587
|
* A `PlayDataset` is not a normal in-memory array. It points at runtime-managed
|
|
588
588
|
* rows, usually backed by persisted sheet storage, and carries metadata such as
|
|
589
589
|
* dataset kind, dataset id, table namespace, count, and preview rows.
|
|
590
590
|
*
|
|
591
|
-
* Pass dataset handles directly into later `
|
|
591
|
+
* Pass dataset handles directly into later `deepline.dataset(...)` stages by default so
|
|
592
592
|
* Deepline keeps row progress, retries, memory use, and table output under
|
|
593
593
|
* runtime control. Use `count()` and `peek()` for bounded inspection. Use
|
|
594
594
|
* `materialize(limit)` or async iteration only when the dataset is intentionally
|
|
@@ -730,7 +730,7 @@ type ToolResultListAccessor<T = Record<string, unknown>, TKey extends string = s
|
|
|
730
730
|
/**
|
|
731
731
|
* Editions 1–9: dataset handle, not a JavaScript array. Edition 10 uses
|
|
732
732
|
* BasicToolResultListAccessor instead; its .get() returns an ordinary array.
|
|
733
|
-
* Pass it to
|
|
733
|
+
* Pass it to deepline.dataset, use first() or async iteration, or await
|
|
734
734
|
* get().materialize() for the complete current list within the memory cap.
|
|
735
735
|
* materialize(n) and peek(n) return a prefix; none fetch provider pages.
|
|
736
736
|
*/
|
|
@@ -757,8 +757,11 @@ type BasicToolExecuteResult<TResult = unknown, TMeta = Record<string, unknown>,
|
|
|
757
757
|
type ToolResponseEnvelope<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
758
758
|
/** @deprecated Use declared getters or toolResponse.rawV2. */
|
|
759
759
|
raw: TData;
|
|
760
|
-
/**
|
|
761
|
-
|
|
760
|
+
/**
|
|
761
|
+
* Complete parsed and scrubbed provider response, materialized from raw-v2.
|
|
762
|
+
* Unschematized, so typed `any` for direct reads; prefer declared getters.
|
|
763
|
+
*/
|
|
764
|
+
rawV2?: any;
|
|
762
765
|
/** Durable descriptor for deriving the legacy raw view from `rawV2`. */
|
|
763
766
|
view?: 'data' | 'rawV2';
|
|
764
767
|
meta?: TMeta;
|
|
@@ -808,7 +811,7 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
808
811
|
* Single-value getters: `extractedValues.<name>.get()`; lists: `extractedLists.<name>.get()`.
|
|
809
812
|
*
|
|
810
813
|
* Prefer declared getters. Edition 10 and later Plays receive ordinary arrays from
|
|
811
|
-
* list `.get()` synchronously; persist explicitly with
|
|
814
|
+
* list `.get()` synchronously; persist explicitly with deepline.dataset. Lazy or
|
|
812
815
|
* incomplete lists throw: use readList(result, path) for explicit dataset access.
|
|
813
816
|
* Provider pagination requires a separate request; getters never fetch it.
|
|
814
817
|
* Historical editions 1–9 retain PlayDataset getters and async materialize/peek;
|
|
@@ -958,7 +961,7 @@ type PlayAuthoringBindings<TInput = Record<string, unknown>> = {
|
|
|
958
961
|
/**
|
|
959
962
|
* Play-level sandbox settings. The default deadline is 30 minutes; set a
|
|
960
963
|
* static `timeout` such as `"90m"` or `"2h"` for a bounded batch, up to 4h.
|
|
961
|
-
* This is distinct from `
|
|
964
|
+
* This is distinct from `deepline.tools.execute({ timeoutMs })`, which limits one
|
|
962
965
|
* provider-call transport rather than the whole Play.
|
|
963
966
|
*/
|
|
964
967
|
runtime?: {
|
|
@@ -994,7 +997,7 @@ type PlayToolExecutionRequest = {
|
|
|
994
997
|
timeoutMs?: PlayRuntimeTimeoutMs;
|
|
995
998
|
receiptWaitMs?: PlayReceiptWaitMs;
|
|
996
999
|
};
|
|
997
|
-
/** @deprecated Pass a SQL string directly to
|
|
1000
|
+
/** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
|
|
998
1001
|
type PlaySqlQuery = {
|
|
999
1002
|
readonly kind: 'sql.query';
|
|
1000
1003
|
readonly text: string;
|
|
@@ -1004,7 +1007,7 @@ declare const PLAY_SECRET_HANDLE_BRAND: unique symbol;
|
|
|
1004
1007
|
declare const PLAY_SECRET_PROMISE_BRAND: unique symbol;
|
|
1005
1008
|
/**
|
|
1006
1009
|
* An opaque reference to a workspace secret used by legacy authoring-contract
|
|
1007
|
-
* editions. New Plays receive plaintext strings from `
|
|
1010
|
+
* editions. New Plays receive plaintext strings from `deepline.secrets.get`.
|
|
1008
1011
|
*
|
|
1009
1012
|
* @sdkReference runtime 176 SecretHandle
|
|
1010
1013
|
*/
|
|
@@ -1017,14 +1020,14 @@ type PlaySecretHandle = {
|
|
|
1017
1020
|
/** Always throws. A secret handle is deliberately not serializable. */
|
|
1018
1021
|
toJSON(): never;
|
|
1019
1022
|
};
|
|
1020
|
-
/** A secret-reading promise returned only by `
|
|
1023
|
+
/** A secret-reading promise returned only by `deepline.secrets.get`. */
|
|
1021
1024
|
type PlaySecretPromise = Promise<string> & {
|
|
1022
1025
|
readonly [PLAY_SECRET_PROMISE_BRAND]: never;
|
|
1023
1026
|
};
|
|
1024
1027
|
/** An opaque legacy secret handle retained for earlier Play artifacts. */
|
|
1025
1028
|
type PlaySecretValue = PlaySecretHandle;
|
|
1026
1029
|
/**
|
|
1027
|
-
* One resolved authentication scheme, built by `
|
|
1030
|
+
* One resolved authentication scheme, built by `deepline.secrets.bearer` or `deepline.secrets.header` and attached to a request through `init.auth`.
|
|
1028
1031
|
*
|
|
1029
1032
|
* @sdkReference runtime 177 SecretAuth
|
|
1030
1033
|
*/
|
|
@@ -1039,7 +1042,7 @@ type PlaySecretAuth = {
|
|
|
1039
1042
|
/** One or more resolved authentication schemes for an outbound request. */
|
|
1040
1043
|
type PlaySecretAuthInput = PlaySecretAuth | readonly PlaySecretAuth[];
|
|
1041
1044
|
/**
|
|
1042
|
-
* The `init` accepted by `
|
|
1045
|
+
* The `init` accepted by `deepline.fetch`. Same shape as `RequestInit` plus `auth`.
|
|
1043
1046
|
*
|
|
1044
1047
|
* @sdkReference runtime 174 SecretAwareRequestInit
|
|
1045
1048
|
*/
|
|
@@ -1047,7 +1050,7 @@ type PlaySecretAwareRequestInit = Omit<RequestInit, 'headers'> & {
|
|
|
1047
1050
|
/** Ordinary request headers, recorded in the durable receipt with any resolved Play secret value redacted. Prefer `auth` for credentials: it enforces HTTPS and keeps the auth header out of the receipt. */
|
|
1048
1051
|
headers?: HeadersInit;
|
|
1049
1052
|
/**
|
|
1050
|
-
* One or more credentialed headers for this request. Pass a single `
|
|
1053
|
+
* One or more credentialed headers for this request. Pass a single `deepline.secrets` auth for the common case, or an array when an API requires multiple credentialed headers. Auth-helper requests require HTTPS and omit the credential from the durable receipt. Each auth entry must target a distinct header.
|
|
1051
1054
|
*/
|
|
1052
1055
|
auth?: PlaySecretAuthInput;
|
|
1053
1056
|
};
|
|
@@ -1089,7 +1092,7 @@ type PlayAuthoringStepResolver<Row, Value, TContext> = (row: Row, ctx: TContext,
|
|
|
1089
1092
|
type PlayAuthoringDatasetColumnRunInput<Row, Value, TContext> = {
|
|
1090
1093
|
/** Current row, including previously computed columns. */
|
|
1091
1094
|
readonly row: Row;
|
|
1092
|
-
/**
|
|
1095
|
+
/** The play runtime, the same object as `deepline`. */
|
|
1093
1096
|
readonly ctx: TContext;
|
|
1094
1097
|
/** Zero-based row index for this dataset run. */
|
|
1095
1098
|
readonly index: number;
|
|
@@ -1197,7 +1200,7 @@ type PlayAuthoringReferenceLike<TInput extends Record<string, unknown> = Record<
|
|
|
1197
1200
|
readonly name: string;
|
|
1198
1201
|
readonly playName?: string;
|
|
1199
1202
|
}) & {
|
|
1200
|
-
/** Type-only input carrier used by
|
|
1203
|
+
/** Type-only input carrier used by deepline.runPlayAsync. */
|
|
1201
1204
|
readonly __inputType?: TInput;
|
|
1202
1205
|
};
|
|
1203
1206
|
declare const PLAY_RUN_ID_BRAND: unique symbol;
|
|
@@ -1245,7 +1248,7 @@ type PlayAuthoringRuntimeStepOptions = {
|
|
|
1245
1248
|
staleAfterSeconds?: DurableCallStaleAfterSeconds;
|
|
1246
1249
|
};
|
|
1247
1250
|
/**
|
|
1248
|
-
* Durable freshness for one `
|
|
1251
|
+
* Durable freshness for one `deepline.fetch` call. The key identifies the request;
|
|
1249
1252
|
* `staleAfterSeconds` controls when that completed request may be reused across
|
|
1250
1253
|
* Play runs. Edition 11 requires an explicit choice: `null` reuses indefinitely,
|
|
1251
1254
|
* `0` executes on every new run, and a positive whole number sets the maximum
|
|
@@ -1317,21 +1320,21 @@ interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' =
|
|
|
1317
1320
|
/**
|
|
1318
1321
|
* Read current workspace plan benefits. Execution rechecks admission;
|
|
1319
1322
|
* this read is fresh and is not a durable receipt.
|
|
1320
|
-
* @sdkReference runtime 179
|
|
1323
|
+
* @sdkReference runtime 179 deepline.billing.entitlements()
|
|
1321
1324
|
*/
|
|
1322
1325
|
entitlements(): Promise<BillingEntitlements>;
|
|
1323
1326
|
};
|
|
1324
1327
|
/**
|
|
1325
1328
|
* Load a staged CSV file as a durable dataset handle.
|
|
1326
|
-
* @sdkReference runtime 040
|
|
1329
|
+
* @sdkReference runtime 040 deepline.csv(path, options)
|
|
1327
1330
|
*/
|
|
1328
1331
|
csv<T = Record<string, unknown>>(path: string | PlayAuthoringCsvInput<T & object>, options?: PlayAuthoringCsvOptions): Promise<PlayDataset<T>>;
|
|
1329
1332
|
/**
|
|
1330
1333
|
* Create a persisted row dataset and define durable output columns.
|
|
1331
|
-
* @sdkReference runtime 060
|
|
1334
|
+
* @sdkReference runtime 060 deepline.dataset(key, items)
|
|
1332
1335
|
*/
|
|
1333
1336
|
dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): PlayAuthoringDatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object, PlayAuthoringRuntimeContext<TListGetter>>;
|
|
1334
|
-
/** @deprecated `
|
|
1337
|
+
/** @deprecated `map(...)` was replaced by `dataset(...)`. */
|
|
1335
1338
|
map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource, options?: PlayAuthoringDatasetDefinitionOptions<PlayDatasetRow<TSource> & object>): never;
|
|
1336
1339
|
/**
|
|
1337
1340
|
* Identity for this durable run. Use this to build a replay-stable external
|
|
@@ -1341,7 +1344,7 @@ interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' =
|
|
|
1341
1344
|
tools: {
|
|
1342
1345
|
/**
|
|
1343
1346
|
* Execute a provider tool through the terminal-result cache contract.
|
|
1344
|
-
* @sdkReference runtime 150
|
|
1347
|
+
* @sdkReference runtime 150 deepline.tools.execute(request)
|
|
1345
1348
|
*/
|
|
1346
1349
|
execute<TOutput = PlayLooseObject>(request: PlayToolExecutionRequest): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1347
1350
|
};
|
|
@@ -1355,27 +1358,27 @@ interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' =
|
|
|
1355
1358
|
}): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1356
1359
|
/**
|
|
1357
1360
|
* Execute one reusable step program against a scalar input.
|
|
1358
|
-
* @sdkReference runtime 180
|
|
1361
|
+
* @sdkReference runtime 180 deepline.runSteps(program, input, options)
|
|
1359
1362
|
*/
|
|
1360
1363
|
runSteps<TInput extends Record<string, unknown>, TOutput>(program: PlayAuthoringRunnableStepProgram<TOutput, PlayAuthoringRuntimeContext<TListGetter>> & {
|
|
1361
1364
|
readonly __inputType?: (input: TInput) => void;
|
|
1362
1365
|
}, input: TInput, options?: PlayAuthoringRunStepsOptions): Promise<TOutput>;
|
|
1363
1366
|
/**
|
|
1364
1367
|
* Create one scalar durable checkpoint.
|
|
1365
|
-
* @sdkReference runtime 130
|
|
1368
|
+
* @sdkReference runtime 130 deepline.step(id, fn)
|
|
1366
1369
|
*/
|
|
1367
1370
|
step<T>(id: string, run: () => T | Promise<T>, options?: PlayAuthoringRuntimeStepOptions): Promise<T>;
|
|
1368
1371
|
/**
|
|
1369
1372
|
* Execute a guarded HTTP request. Edition 11 requires an explicit freshness choice; only GET, HEAD, and OPTIONS can retain completed responses. Mutating methods must use `staleAfterSeconds: 0`; the choice governs only the completed call receipt, never dataset/request identity. Failed requests do not publish completed cache entries. A headers timeout leaves an upstream write's outcome unknown and does not establish whether its body was sent. The transport does not automatically retry that timed-out write, but a later invocation can execute it again. Mutating requests require provider-supported idempotency with the same key retained across retries and replay. Deadlines are platform-controlled; callers may cancel through `init.signal`. Pass `{ transient: true }` only on GET, HEAD, and OPTIONS when the response must not be retained in a receipt or checkpoint; edition 11 rejects transient writes. Edition 5+ throws `CtxFetchHttpError` for non-2xx; catch it only when the Play intentionally recovers, otherwise let it fail the Play. Editions 1–4 retain their previous response projections.
|
|
1370
1373
|
*
|
|
1371
|
-
* @sdkReference runtime 170
|
|
1374
|
+
* @sdkReference runtime 170 deepline.fetch(key, url, init)
|
|
1372
1375
|
*/
|
|
1373
1376
|
fetch(key: string, url: string | URL, init?: PlaySecretAwareRequestInit, options?: PlayAuthoringFetchOptions): Promise<PlayAuthoringFetchResponse>;
|
|
1374
1377
|
secrets: {
|
|
1375
1378
|
/**
|
|
1376
1379
|
* Read an allowed workspace secret inside the running Play; do not log or return it. Declare uppercase names in top-level `secrets`.
|
|
1377
1380
|
*
|
|
1378
|
-
* @sdkReference runtime 171
|
|
1381
|
+
* @sdkReference runtime 171 deepline.secrets.get(name)
|
|
1379
1382
|
*/
|
|
1380
1383
|
get(name: string): PlaySecretPromise;
|
|
1381
1384
|
/**
|
|
@@ -1383,32 +1386,32 @@ interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' =
|
|
|
1383
1386
|
* its direct promise remains accepted for source compatibility, while other
|
|
1384
1387
|
* promises are rejected.
|
|
1385
1388
|
*
|
|
1386
|
-
* @sdkReference runtime 172
|
|
1389
|
+
* @sdkReference runtime 172 deepline.secrets.bearer(secret)
|
|
1387
1390
|
*/
|
|
1388
1391
|
bearer(secret: string | PlaySecretPromise | PlaySecretHandle): PlaySecretAuth;
|
|
1389
1392
|
/**
|
|
1390
1393
|
* Send a credential as a named header, for APIs that do not use bearer
|
|
1391
1394
|
* tokens — `x-api-key`, `apikey`, `private-token`, and similar.
|
|
1392
1395
|
*
|
|
1393
|
-
* @sdkReference runtime 173
|
|
1396
|
+
* @sdkReference runtime 173 deepline.secrets.header(header, secret)
|
|
1394
1397
|
*/
|
|
1395
1398
|
header(header: string, secret: string | PlaySecretPromise | PlaySecretHandle): PlaySecretAuth;
|
|
1396
1399
|
};
|
|
1397
1400
|
/**
|
|
1398
1401
|
* Compose another Play inline under a stable call key.
|
|
1399
|
-
* @sdkReference runtime 140
|
|
1402
|
+
* @sdkReference runtime 140 deepline.runPlay(key, playRef, input, options)
|
|
1400
1403
|
*/
|
|
1401
1404
|
runPlay<TOutput = unknown>(key: string, playRef: string | PlayAuthoringReferenceLike, input: Record<string, unknown>, options: PlayAuthoringCallOptions): Promise<TOutput>;
|
|
1402
1405
|
/**
|
|
1403
1406
|
* Admit an independent scalar Play Run and return its durable identity after scheduler admission, before child completion.
|
|
1404
|
-
* @sdkReference runtime 141
|
|
1407
|
+
* @sdkReference runtime 141 deepline.runPlayAsync(key, playRef, input, options)
|
|
1405
1408
|
*/
|
|
1406
1409
|
runPlayAsync<TInput extends Record<string, unknown>>(
|
|
1407
1410
|
/** Replay-stable identity for this launch site and row scope. */
|
|
1408
1411
|
key: string,
|
|
1409
|
-
/** Independently published Play name or
|
|
1412
|
+
/** Independently published Play name, or an imported play carrying its input type. */
|
|
1410
1413
|
playRef: PlayAuthoringReferenceLike<TInput>,
|
|
1411
|
-
/** Input checked against the
|
|
1414
|
+
/** Input checked against the imported play when available. */
|
|
1412
1415
|
input: NoInfer<TInput>,
|
|
1413
1416
|
/** Human-readable launch purpose recorded in the parent's step history. */
|
|
1414
1417
|
options: PlayAuthoringAsyncCallOptions): Promise<AsyncPlayRunRef>;
|
|
@@ -2473,7 +2476,7 @@ declare const PLAY_AUTHORING_FIELD_REGISTRY: {
|
|
|
2473
2476
|
readonly issueCode: "play_authoring_durable_policy_invalid";
|
|
2474
2477
|
readonly description: "Stable durable identity for one external HTTP request.";
|
|
2475
2478
|
readonly errorMessage: "ctx.fetch key must be a non-empty static string.";
|
|
2476
|
-
readonly unresolvedHint: "Push the aggregation server-side and call it once: a SQL function, a view, or a provider endpoint that returns the whole result. Keep unrolled literal keys only for a handful of genuinely distinct calls. To fan out over rows, use
|
|
2479
|
+
readonly unresolvedHint: "Push the aggregation server-side and call it once: a SQL function, a view, or a provider endpoint that returns the whole result. Keep unrolled literal keys only for a handful of genuinely distinct calls. To fan out over rows, use deepline.dataset with a static key — the per-row receipt identity comes from the row, not from the key. Do not compute the key.";
|
|
2477
2480
|
};
|
|
2478
2481
|
readonly 'ctx.fetch.staleAfterSeconds': {
|
|
2479
2482
|
readonly schema: _sinclair_typebox.TUnion<[_sinclair_typebox.TNull, _sinclair_typebox.TInteger]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind, a as PlayArtifactCompatibility } from './compiler-manifest-
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind, a as PlayArtifactCompatibility } from './compiler-manifest-DaFuA1ki.mjs';
|
|
3
3
|
|
|
4
4
|
type ImportedPlayDependency = {
|
|
5
5
|
filePath: string;
|
|
@@ -37,11 +37,14 @@ type PlayBundlingAdapter = {
|
|
|
37
37
|
sdkPackageJson: string;
|
|
38
38
|
sdkEntryFile: string;
|
|
39
39
|
sdkTypesEntryFile?: string;
|
|
40
|
-
|
|
40
|
+
/** Reads through the sources the build analyzed. */
|
|
41
|
+
discoverPackagedLocalFiles(filePath: string, analyzedSources: Readonly<Record<string, string>>): Promise<PlayLocalFileDiscoveryResult>;
|
|
41
42
|
typecheckPlaySource?(input: {
|
|
42
43
|
sourceCode: string;
|
|
43
44
|
sourcePath: string;
|
|
44
45
|
importedFilePaths: string[];
|
|
46
|
+
/** File contents to use instead of the disk; an imported script play is its declaration. */
|
|
47
|
+
sourceFiles: Record<string, string>;
|
|
45
48
|
}): Promise<string[]> | string[];
|
|
46
49
|
warnAboutNonDevelopmentBundling?(filePath: string): void;
|
|
47
50
|
};
|
|
@@ -65,7 +68,11 @@ type BundledPlayFileFailure = {
|
|
|
65
68
|
filePath: string;
|
|
66
69
|
};
|
|
67
70
|
type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
|
|
68
|
-
|
|
71
|
+
/**
|
|
72
|
+
* The play name a file defines. For a script play this is `config.name`, else
|
|
73
|
+
* the file name when `filePath` is given (`lookup.play.ts` → `lookup`).
|
|
74
|
+
*/
|
|
75
|
+
declare function extractDefinedPlayName(sourceCode: string, filePath?: string): string | null;
|
|
69
76
|
type BundlePlayFileOptions = {
|
|
70
77
|
/** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
|
|
71
78
|
target?: PlayArtifactKind;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind, a as PlayArtifactCompatibility } from './compiler-manifest-
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind, a as PlayArtifactCompatibility } from './compiler-manifest-DaFuA1ki.js';
|
|
3
3
|
|
|
4
4
|
type ImportedPlayDependency = {
|
|
5
5
|
filePath: string;
|
|
@@ -37,11 +37,14 @@ type PlayBundlingAdapter = {
|
|
|
37
37
|
sdkPackageJson: string;
|
|
38
38
|
sdkEntryFile: string;
|
|
39
39
|
sdkTypesEntryFile?: string;
|
|
40
|
-
|
|
40
|
+
/** Reads through the sources the build analyzed. */
|
|
41
|
+
discoverPackagedLocalFiles(filePath: string, analyzedSources: Readonly<Record<string, string>>): Promise<PlayLocalFileDiscoveryResult>;
|
|
41
42
|
typecheckPlaySource?(input: {
|
|
42
43
|
sourceCode: string;
|
|
43
44
|
sourcePath: string;
|
|
44
45
|
importedFilePaths: string[];
|
|
46
|
+
/** File contents to use instead of the disk; an imported script play is its declaration. */
|
|
47
|
+
sourceFiles: Record<string, string>;
|
|
45
48
|
}): Promise<string[]> | string[];
|
|
46
49
|
warnAboutNonDevelopmentBundling?(filePath: string): void;
|
|
47
50
|
};
|
|
@@ -65,7 +68,11 @@ type BundledPlayFileFailure = {
|
|
|
65
68
|
filePath: string;
|
|
66
69
|
};
|
|
67
70
|
type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
|
|
68
|
-
|
|
71
|
+
/**
|
|
72
|
+
* The play name a file defines. For a script play this is `config.name`, else
|
|
73
|
+
* the file name when `filePath` is given (`lookup.play.ts` → `lookup`).
|
|
74
|
+
*/
|
|
75
|
+
declare function extractDefinedPlayName(sourceCode: string, filePath?: string): string | null;
|
|
69
76
|
type BundlePlayFileOptions = {
|
|
70
77
|
/** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
|
|
71
78
|
target?: PlayArtifactKind;
|