deepline 0.3.422 → 0.3.424
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 +15 -8
- 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/monitors/fleets/verdict.ts +11 -1
- package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +38 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +12 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-control-plane-capability.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +201 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +42 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +5 -0
- 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-MN7MWTFR.js +40 -0
- package/dist/cli/{auth-DMLBSXLV.mjs → auth-QITAQMHF.mjs} +4 -4
- package/dist/cli/{billing-IFGFPGJV.js → billing-N5AOFDSU.js} +73 -73
- package/dist/cli/{billing-SEXKROBQ.mjs → billing-UX2GH5L2.mjs} +4 -4
- package/dist/cli/{chunk-BL3LY54Y.js → chunk-22XGRO2M.js} +8 -8
- package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
- package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
- package/dist/cli/{chunk-QNBHQM5R.mjs → chunk-3FQUUVN2.mjs} +1 -1
- package/dist/cli/{chunk-4CAVSRQH.mjs → chunk-3O7KATMQ.mjs} +1 -1
- package/dist/cli/{chunk-S4KGXRCV.js → chunk-3VB5DQ7Y.js} +20 -20
- package/dist/cli/{chunk-VT6WJ26Y.mjs → chunk-5MD5I4MM.mjs} +1 -1
- package/dist/cli/{chunk-W74RDGRL.mjs → chunk-5OBCPN2C.mjs} +2 -2
- package/dist/cli/{chunk-LXRDHISW.js → chunk-5YLEB4CL.js} +8 -8
- package/dist/cli/{chunk-2JKQORUX.mjs → chunk-7KNBC4RJ.mjs} +2 -2
- package/dist/cli/{chunk-MLP4CAY7.mjs → chunk-7VC7STG5.mjs} +4 -4
- package/dist/cli/{chunk-KBJP3UAU.js → chunk-7W4N6VRE.js} +35 -35
- package/dist/cli/{chunk-3CE3WGKP.mjs → chunk-7Y5M5YE3.mjs} +2 -2
- package/dist/cli/{chunk-V4RAH5D6.js → chunk-CJD5QKYK.js} +26 -26
- package/dist/cli/{chunk-AYM2KZN3.js → chunk-DD6MM6WX.js} +6 -6
- 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-OZHPZCAU.js → chunk-F3MMA7JY.js} +52 -52
- package/dist/cli/{chunk-CO3VMH33.mjs → chunk-FJ5U2IZY.mjs} +28 -27
- package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
- package/dist/cli/{chunk-AXDEH2AM.mjs → chunk-HBW6PEVG.mjs} +2 -2
- package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
- package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
- package/dist/cli/{chunk-2LVM22ZU.js → chunk-LSZZVHQP.js} +2 -2
- package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
- package/dist/cli/{chunk-WGO2DY4L.js → chunk-M2VXDQI2.js} +11 -11
- package/dist/cli/{chunk-7OJEYJ6G.mjs → chunk-M67UCQKW.mjs} +3 -3
- package/dist/cli/{chunk-KXPIFC5S.mjs → chunk-MFXQVT7P.mjs} +3 -3
- package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
- package/dist/cli/{chunk-4EV2FKBI.js → chunk-OSNDC3VF.js} +16 -16
- package/dist/cli/{chunk-PXO253DP.mjs → chunk-OWWFCA7A.mjs} +1 -1
- package/dist/cli/{chunk-VRI3ABTK.js → chunk-PNGJIAJ3.js} +50 -50
- package/dist/cli/{chunk-HCYNAIHZ.js → chunk-QP5ATTMC.js} +4 -4
- 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-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
- package/dist/cli/{chunk-JRSULUPQ.js → chunk-RISEING7.js} +2 -2
- package/dist/cli/{chunk-M6SXXFMT.mjs → chunk-UOZCQPD4.mjs} +2 -2
- package/dist/cli/{chunk-TP26TAAF.mjs → chunk-UPH6UNUI.mjs} +1 -1
- package/dist/cli/{chunk-UQQRMCOL.js → chunk-UTF57UBW.js} +6 -6
- package/dist/cli/{chunk-FEKJENBB.mjs → chunk-VC5NKF4B.mjs} +3 -3
- package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
- package/dist/cli/{chunk-WP7T4BPE.js → chunk-YA3LMTLU.js} +1 -1
- package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
- package/dist/cli/{chunk-K4X472AT.js → chunk-YMASNIC5.js} +260 -259
- package/dist/cli/{chunk-SDCIROIS.mjs → chunk-ZMU2DDID.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-J7UVP4KB.mjs → csv-NM5IHLVM.mjs} +3 -3
- package/dist/cli/{csv-Y4YWZSLB.js → csv-RL53NPRV.js} +12 -12
- package/dist/cli/{db-CQ6NHMLG.mjs → db-FZTIS4QG.mjs} +5 -5
- package/dist/cli/{db-SVFCM6YZ.js → db-RJCFUM2J.js} +26 -26
- package/dist/cli/{describe-FSDW6LTN.js → describe-A2MGAI3Y.js} +24 -24
- package/dist/cli/{describe-Y65BU7ZY.mjs → describe-T77IEILZ.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-AMQK53QX.mjs} +4 -4
- package/dist/cli/{executions-SJIKBRHT.js → executions-R6UPRZ5N.js} +6 -6
- package/dist/cli/{feedback-VMJIWAMT.mjs → feedback-BA5ZHVCZ.mjs} +3 -3
- package/dist/cli/{feedback-RCYSUOB3.js → feedback-JFT536KI.js} +7 -7
- package/dist/cli/{git-Q2WY3K6X.mjs → git-5ONARXFO.mjs} +4 -4
- package/dist/cli/git-NHQR3NKF.js +24 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-JVEE2VHK.mjs → legacy-noops-7J4K6QUX.mjs} +4 -4
- package/dist/cli/{legacy-noops-U4YPPYXU.js → legacy-noops-WT7M7WYD.js} +7 -7
- package/dist/cli/{monitors-AY4KQRTC.mjs → monitors-N3WDXW7H.mjs} +19 -13
- package/dist/cli/{monitors-BMAOQ37R.js → monitors-YH6PKEIW.js} +99 -93
- package/dist/cli/{org-ME4X6HWH.mjs → org-2V5ELSYS.mjs} +4 -4
- package/dist/cli/{org-G5IURX74.js → org-KGYHMT5P.js} +64 -64
- package/dist/cli/{play-X5GSZOKZ.js → play-2JOQQRZI.js} +606 -567
- package/dist/cli/{play-WLYU7WQL.mjs → play-CL2LCBAF.mjs} +113 -74
- package/dist/cli/{providers-2LBMNB7B.mjs → providers-I7EEPWNW.mjs} +4 -4
- package/dist/cli/{providers-AHEUVD3R.js → providers-VIP6MCWC.js} +7 -7
- package/dist/cli/{quickstart-DP2SKLIG.js → quickstart-33WC2KWE.js} +5 -5
- package/dist/cli/{quickstart-DBLYGHJP.mjs → quickstart-VRBKQODE.mjs} +3 -3
- package/dist/cli/{search-YKJHY3ZJ.mjs → search-7TDSKXOO.mjs} +5 -5
- package/dist/cli/search-A6RZZ4LK.js +30 -0
- package/dist/cli/{secrets-ECLARBO6.mjs → secrets-DGLCIN7Y.mjs} +4 -4
- package/dist/cli/{secrets-2P3I3OEZ.js → secrets-TQH5FXAC.js} +13 -13
- package/dist/cli/{sessions-MC4ZCTSN.js → sessions-4D4UDPIS.js} +5 -5
- package/dist/cli/{sessions-3GDFID7R.mjs → sessions-D6QGKQ2G.mjs} +4 -4
- package/dist/cli/{settings-RTPJXMOA.mjs → settings-6HVXBCVR.mjs} +8 -8
- package/dist/cli/{settings-7SVR2OVL.js → settings-V3QRG4AO.js} +75 -75
- package/dist/cli/{setup-4WLIJX36.js → setup-6WP7D5I3.js} +42 -42
- package/dist/cli/{setup-OKAZZGAW.mjs → setup-CSJ3HSL7.mjs} +7 -7
- package/dist/cli/{skills-2CVL6RG5.mjs → skills-2MTWP4PS.mjs} +5 -5
- package/dist/cli/skills-QOYOARZT.js +29 -0
- package/dist/cli/{tools-KAFHP6J4.mjs → tools-GAR3BWB6.mjs} +15 -15
- package/dist/cli/tools-MGEKAIOU.js +44 -0
- package/dist/cli/update-HMZCLFLZ.js +31 -0
- package/dist/cli/{update-3ZV3W7I4.mjs → update-XV3WV3MU.mjs} +7 -7
- package/dist/cli/{workflow-DKSUNZXE.mjs → workflow-DTZAWSB2.mjs} +9 -9
- package/dist/cli/{workflow-GULDFFP3.js → workflow-WNE7ORMT.js} +19 -19
- package/dist/{client-CCWIUnk7.d.mts → client-BcfFWD4Z.d.mts} +19 -15
- package/dist/{client-vHqBm-OL.d.ts → client-DH-fmT69.d.ts} +19 -15
- 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
|
@@ -131,26 +131,27 @@ export const PLAY_AUTHORING_CONTRACT_CHANGELOG =
|
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Customer-visible runtime capabilities that are not expressible as one
|
|
134
|
-
* `
|
|
134
|
+
* `deepline.*` signature. The generated authoring reference renders this inventory
|
|
135
135
|
* directly; add a row here alongside any new supported runtime global or
|
|
136
136
|
* execution-boundary guarantee.
|
|
137
137
|
*/
|
|
138
138
|
export const PLAY_AUTHORING_RUNTIME_CAPABILITIES = [
|
|
139
139
|
{
|
|
140
140
|
capability: 'Durable external I/O',
|
|
141
|
-
surface:
|
|
141
|
+
surface:
|
|
142
|
+
'`deepline.fetch`, `deepline.tools.execute`, `deepline.step`, `deepline.runPlay`',
|
|
142
143
|
contract:
|
|
143
|
-
'Use a `
|
|
144
|
+
'Use a `deepline.*` primitive for external work. Each primitive owns durable receipt identity and replay; raw I/O in play code does not.',
|
|
144
145
|
},
|
|
145
146
|
{
|
|
146
147
|
capability: 'Web Crypto',
|
|
147
148
|
surface: '`crypto.subtle`',
|
|
148
149
|
contract:
|
|
149
|
-
'WebCrypto is available for standards-based signing, verification, encryption, and key import. Keep private material in `
|
|
150
|
+
'WebCrypto is available for standards-based signing, verification, encryption, and key import. Keep private material in `deepline.secrets`. `docs-examples/sdk-v2/github-app-jwt.play.ts` is an edition-10 compatibility example; edition 11 allows transient fetches only for read-only methods, so do not copy its credential-returning POST into new source.',
|
|
150
151
|
},
|
|
151
152
|
{
|
|
152
153
|
capability: 'Workspace secrets',
|
|
153
|
-
surface: '`
|
|
154
|
+
surface: '`deepline.secrets.get`, `.bearer`, `.header`',
|
|
154
155
|
contract:
|
|
155
156
|
'Declare the secret at the Play boundary, read it only at runtime, and never return or log it. Secret-bearing HTTP requests require HTTPS.',
|
|
156
157
|
},
|
|
@@ -850,7 +851,7 @@ export type PlayAuthoringBindings<TInput = Record<string, unknown>> = {
|
|
|
850
851
|
/**
|
|
851
852
|
* Play-level sandbox settings. The default deadline is 30 minutes; set a
|
|
852
853
|
* static `timeout` such as `"90m"` or `"2h"` for a bounded batch, up to 4h.
|
|
853
|
-
* This is distinct from `
|
|
854
|
+
* This is distinct from `deepline.tools.execute({ timeoutMs })`, which limits one
|
|
854
855
|
* provider-call transport rather than the whole Play.
|
|
855
856
|
*/
|
|
856
857
|
runtime?: {
|
|
@@ -892,7 +893,7 @@ export type PlayToolCallOptions = Omit<
|
|
|
892
893
|
'id' | 'tool' | 'input'
|
|
893
894
|
>;
|
|
894
895
|
|
|
895
|
-
/** @deprecated Pass a SQL string directly to
|
|
896
|
+
/** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
|
|
896
897
|
export type PlaySqlQuery = {
|
|
897
898
|
readonly kind: 'sql.query';
|
|
898
899
|
readonly text: string;
|
|
@@ -903,7 +904,7 @@ declare const PLAY_SECRET_HANDLE_BRAND: unique symbol;
|
|
|
903
904
|
declare const PLAY_SECRET_PROMISE_BRAND: unique symbol;
|
|
904
905
|
/**
|
|
905
906
|
* An opaque reference to a workspace secret used by legacy authoring-contract
|
|
906
|
-
* editions. New Plays receive plaintext strings from `
|
|
907
|
+
* editions. New Plays receive plaintext strings from `deepline.secrets.get`.
|
|
907
908
|
*
|
|
908
909
|
* @sdkReference runtime 176 SecretHandle
|
|
909
910
|
*/
|
|
@@ -916,14 +917,14 @@ export type PlaySecretHandle = {
|
|
|
916
917
|
/** Always throws. A secret handle is deliberately not serializable. */
|
|
917
918
|
toJSON(): never;
|
|
918
919
|
};
|
|
919
|
-
/** A secret-reading promise returned only by `
|
|
920
|
+
/** A secret-reading promise returned only by `deepline.secrets.get`. */
|
|
920
921
|
export type PlaySecretPromise = Promise<string> & {
|
|
921
922
|
readonly [PLAY_SECRET_PROMISE_BRAND]: never;
|
|
922
923
|
};
|
|
923
924
|
/** An opaque legacy secret handle retained for earlier Play artifacts. */
|
|
924
925
|
export type PlaySecretValue = PlaySecretHandle;
|
|
925
926
|
/**
|
|
926
|
-
* One resolved authentication scheme, built by `
|
|
927
|
+
* One resolved authentication scheme, built by `deepline.secrets.bearer` or `deepline.secrets.header` and attached to a request through `init.auth`.
|
|
927
928
|
*
|
|
928
929
|
* @sdkReference runtime 177 SecretAuth
|
|
929
930
|
*/
|
|
@@ -938,7 +939,7 @@ export type PlaySecretAuth = {
|
|
|
938
939
|
/** One or more resolved authentication schemes for an outbound request. */
|
|
939
940
|
export type PlaySecretAuthInput = PlaySecretAuth | readonly PlaySecretAuth[];
|
|
940
941
|
/**
|
|
941
|
-
* The `init` accepted by `
|
|
942
|
+
* The `init` accepted by `deepline.fetch`. Same shape as `RequestInit` plus `auth`.
|
|
942
943
|
*
|
|
943
944
|
* @sdkReference runtime 174 SecretAwareRequestInit
|
|
944
945
|
*/
|
|
@@ -946,7 +947,7 @@ export type PlaySecretAwareRequestInit = Omit<RequestInit, 'headers'> & {
|
|
|
946
947
|
/** 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. */
|
|
947
948
|
headers?: HeadersInit;
|
|
948
949
|
/**
|
|
949
|
-
* One or more credentialed headers for this request. Pass a single `
|
|
950
|
+
* 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.
|
|
950
951
|
*/
|
|
951
952
|
auth?: PlaySecretAuthInput;
|
|
952
953
|
};
|
|
@@ -1007,7 +1008,7 @@ export type PlayAuthoringStepResolver<Row, Value, TContext> = (
|
|
|
1007
1008
|
export type PlayAuthoringDatasetColumnRunInput<Row, Value, TContext> = {
|
|
1008
1009
|
/** Current row, including previously computed columns. */
|
|
1009
1010
|
readonly row: Row;
|
|
1010
|
-
/**
|
|
1011
|
+
/** The play runtime, the same object as `deepline`. */
|
|
1011
1012
|
readonly ctx: TContext;
|
|
1012
1013
|
/** Zero-based row index for this dataset run. */
|
|
1013
1014
|
readonly index: number;
|
|
@@ -1267,7 +1268,7 @@ export type PlayAuthoringReferenceLike<
|
|
|
1267
1268
|
| { readonly playName: string; readonly name?: string }
|
|
1268
1269
|
| { readonly name: string; readonly playName?: string }
|
|
1269
1270
|
) & {
|
|
1270
|
-
/** Type-only input carrier used by
|
|
1271
|
+
/** Type-only input carrier used by deepline.runPlayAsync. */
|
|
1271
1272
|
readonly __inputType?: TInput;
|
|
1272
1273
|
};
|
|
1273
1274
|
|
|
@@ -1368,7 +1369,7 @@ export type PlayAuthoringRuntimeStepOptions = {
|
|
|
1368
1369
|
};
|
|
1369
1370
|
|
|
1370
1371
|
/**
|
|
1371
|
-
* Durable freshness for one `
|
|
1372
|
+
* Durable freshness for one `deepline.fetch` call. The key identifies the request;
|
|
1372
1373
|
* `staleAfterSeconds` controls when that completed request may be reused across
|
|
1373
1374
|
* Play runs. Edition 11 requires an explicit choice: `null` reuses indefinitely,
|
|
1374
1375
|
* `0` executes on every new run, and a positive whole number sets the maximum
|
|
@@ -1444,27 +1445,27 @@ export type PlayAuthoringRunScope = {
|
|
|
1444
1445
|
export const PLAY_AUTHORING_DOCUMENTATION = {
|
|
1445
1446
|
fetchBatching: {
|
|
1446
1447
|
warning:
|
|
1447
|
-
'A static
|
|
1448
|
+
'A static deepline.fetch key inside a loop is a warning because every iteration must still have distinct method, URL, body, or safe headers. One durable receipt must never stand in for every request.',
|
|
1448
1449
|
guidance:
|
|
1449
|
-
'Keep the static fetch label. For a mutating batch, make the body distinct and use a replay-stable external Idempotency-Key such as `${
|
|
1450
|
+
'Keep the static fetch label. For a mutating batch, make the body distinct and use a replay-stable external Idempotency-Key such as `${deepline.run.id}:signals:${batchIndex}`.',
|
|
1450
1451
|
},
|
|
1451
1452
|
runId: {
|
|
1452
1453
|
semantics:
|
|
1453
|
-
'
|
|
1454
|
+
'deepline.run.id is stable while Deepline retries or resumes one durable run. A separately submitted run receives a new id.',
|
|
1454
1455
|
use: 'Use it when deriving an external idempotency key for a sequence of batches.',
|
|
1455
1456
|
},
|
|
1456
1457
|
staticCallKeys: {
|
|
1457
1458
|
constraint:
|
|
1458
|
-
'Durable call keys — the
|
|
1459
|
+
'Durable call keys — the deepline.fetch key, the deepline.dataset key, the deepline.step id — must be static string literals. The key names a durable receipt, so check, publish, and replay have to agree on it before the body runs. A key computed at runtime cannot be resolved at check time and is rejected.',
|
|
1459
1460
|
consequence:
|
|
1460
1461
|
'This is an architectural constraint, not a style rule. A play cannot loop over a computed key, so it cannot page a large table with a helper like page(pageNumber). Unrolling one literal key per page is not a design at any real page count.',
|
|
1461
1462
|
workaround:
|
|
1462
|
-
'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
|
|
1463
|
+
'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.',
|
|
1463
1464
|
},
|
|
1464
1465
|
} as const;
|
|
1465
1466
|
|
|
1466
1467
|
/**
|
|
1467
|
-
* Shown when a
|
|
1468
|
+
* Shown when a deepline.fetch key is present but not statically resolvable. Named
|
|
1468
1469
|
* separately so the field registry, the check hint, and the generated
|
|
1469
1470
|
* reference cannot drift from one another.
|
|
1470
1471
|
*/
|
|
@@ -1479,14 +1480,14 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1479
1480
|
/**
|
|
1480
1481
|
* Read current workspace plan benefits. Execution rechecks admission;
|
|
1481
1482
|
* this read is fresh and is not a durable receipt.
|
|
1482
|
-
* @sdkReference runtime 179
|
|
1483
|
+
* @sdkReference runtime 179 deepline.billing.entitlements()
|
|
1483
1484
|
*/
|
|
1484
1485
|
entitlements(): Promise<BillingEntitlements>;
|
|
1485
1486
|
};
|
|
1486
1487
|
|
|
1487
1488
|
/**
|
|
1488
1489
|
* Load a staged CSV file as a durable dataset handle.
|
|
1489
|
-
* @sdkReference runtime 040
|
|
1490
|
+
* @sdkReference runtime 040 deepline.csv(path, options)
|
|
1490
1491
|
*/
|
|
1491
1492
|
csv<T = Record<string, unknown>>(
|
|
1492
1493
|
path: string | PlayAuthoringCsvInput<T & object>,
|
|
@@ -1495,7 +1496,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1495
1496
|
|
|
1496
1497
|
/**
|
|
1497
1498
|
* Create a persisted row dataset and define durable output columns.
|
|
1498
|
-
* @sdkReference runtime 060
|
|
1499
|
+
* @sdkReference runtime 060 deepline.dataset(key, items)
|
|
1499
1500
|
*/
|
|
1500
1501
|
dataset<TSource extends PlayDatasetInput<object>>(
|
|
1501
1502
|
key: string,
|
|
@@ -1506,7 +1507,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1506
1507
|
PlayAuthoringRuntimeContext<TListGetter>
|
|
1507
1508
|
>;
|
|
1508
1509
|
|
|
1509
|
-
/** @deprecated `
|
|
1510
|
+
/** @deprecated `map(...)` was replaced by `dataset(...)`. */
|
|
1510
1511
|
map<TSource extends PlayDatasetInput<object>>(
|
|
1511
1512
|
key: string,
|
|
1512
1513
|
items: TSource,
|
|
@@ -1524,7 +1525,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1524
1525
|
tools: {
|
|
1525
1526
|
/**
|
|
1526
1527
|
* Execute a provider tool through the terminal-result cache contract.
|
|
1527
|
-
* @sdkReference runtime 150
|
|
1528
|
+
* @sdkReference runtime 150 deepline.tools.execute(request)
|
|
1528
1529
|
*/
|
|
1529
1530
|
execute<TOutput = PlayLooseObject>(
|
|
1530
1531
|
request: PlayToolExecutionRequest,
|
|
@@ -1559,7 +1560,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1559
1560
|
|
|
1560
1561
|
/**
|
|
1561
1562
|
* Execute one reusable step program against a scalar input.
|
|
1562
|
-
* @sdkReference runtime 180
|
|
1563
|
+
* @sdkReference runtime 180 deepline.runSteps(program, input, options)
|
|
1563
1564
|
*/
|
|
1564
1565
|
runSteps<TInput extends Record<string, unknown>, TOutput>(
|
|
1565
1566
|
program: PlayAuthoringRunnableStepProgram<
|
|
@@ -1572,7 +1573,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1572
1573
|
|
|
1573
1574
|
/**
|
|
1574
1575
|
* Create one scalar durable checkpoint.
|
|
1575
|
-
* @sdkReference runtime 130
|
|
1576
|
+
* @sdkReference runtime 130 deepline.step(id, fn)
|
|
1576
1577
|
*/
|
|
1577
1578
|
step<T>(
|
|
1578
1579
|
id: string,
|
|
@@ -1583,7 +1584,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1583
1584
|
/**
|
|
1584
1585
|
* 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.
|
|
1585
1586
|
*
|
|
1586
|
-
* @sdkReference runtime 170
|
|
1587
|
+
* @sdkReference runtime 170 deepline.fetch(key, url, init)
|
|
1587
1588
|
*/
|
|
1588
1589
|
fetch(
|
|
1589
1590
|
key: string,
|
|
@@ -1596,7 +1597,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1596
1597
|
/**
|
|
1597
1598
|
* Read an allowed workspace secret inside the running Play; do not log or return it. Declare uppercase names in top-level `secrets`.
|
|
1598
1599
|
*
|
|
1599
|
-
* @sdkReference runtime 171
|
|
1600
|
+
* @sdkReference runtime 171 deepline.secrets.get(name)
|
|
1600
1601
|
*/
|
|
1601
1602
|
get(name: string): PlaySecretPromise;
|
|
1602
1603
|
/**
|
|
@@ -1604,7 +1605,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1604
1605
|
* its direct promise remains accepted for source compatibility, while other
|
|
1605
1606
|
* promises are rejected.
|
|
1606
1607
|
*
|
|
1607
|
-
* @sdkReference runtime 172
|
|
1608
|
+
* @sdkReference runtime 172 deepline.secrets.bearer(secret)
|
|
1608
1609
|
*/
|
|
1609
1610
|
bearer(
|
|
1610
1611
|
secret: string | PlaySecretPromise | PlaySecretHandle,
|
|
@@ -1613,7 +1614,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1613
1614
|
* Send a credential as a named header, for APIs that do not use bearer
|
|
1614
1615
|
* tokens — `x-api-key`, `apikey`, `private-token`, and similar.
|
|
1615
1616
|
*
|
|
1616
|
-
* @sdkReference runtime 173
|
|
1617
|
+
* @sdkReference runtime 173 deepline.secrets.header(header, secret)
|
|
1617
1618
|
*/
|
|
1618
1619
|
header(
|
|
1619
1620
|
header: string,
|
|
@@ -1623,7 +1624,7 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1623
1624
|
|
|
1624
1625
|
/**
|
|
1625
1626
|
* Compose another Play inline under a stable call key.
|
|
1626
|
-
* @sdkReference runtime 140
|
|
1627
|
+
* @sdkReference runtime 140 deepline.runPlay(key, playRef, input, options)
|
|
1627
1628
|
*/
|
|
1628
1629
|
runPlay<TOutput = unknown>(
|
|
1629
1630
|
key: string,
|
|
@@ -1634,14 +1635,14 @@ export interface PlayAuthoringRuntimeContext<
|
|
|
1634
1635
|
|
|
1635
1636
|
/**
|
|
1636
1637
|
* Admit an independent scalar Play Run and return its durable identity after scheduler admission, before child completion.
|
|
1637
|
-
* @sdkReference runtime 141
|
|
1638
|
+
* @sdkReference runtime 141 deepline.runPlayAsync(key, playRef, input, options)
|
|
1638
1639
|
*/
|
|
1639
1640
|
runPlayAsync<TInput extends Record<string, unknown>>(
|
|
1640
1641
|
/** Replay-stable identity for this launch site and row scope. */
|
|
1641
1642
|
key: string,
|
|
1642
|
-
/** Independently published Play name or
|
|
1643
|
+
/** Independently published Play name, or an imported play carrying its input type. */
|
|
1643
1644
|
playRef: PlayAuthoringReferenceLike<TInput>,
|
|
1644
|
-
/** Input checked against the
|
|
1645
|
+
/** Input checked against the imported play when available. */
|
|
1645
1646
|
input: NoInfer<TInput>,
|
|
1646
1647
|
/** Human-readable launch purpose recorded in the parent's step history. */
|
|
1647
1648
|
options: PlayAuthoringAsyncCallOptions,
|