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
|
@@ -6,7 +6,7 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkM2VXDQI2js = require('./chunk-M2VXDQI2.js');
|
|
10
10
|
require('./chunk-E4CABWXL.js');
|
|
11
11
|
require('./chunk-2H4EY7KH.js');
|
|
12
12
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -16,12 +16,12 @@ require('./chunk-XDVT3GOM.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkDD6MM6WXjs = require('./chunk-DD6MM6WX.js');
|
|
20
|
+
require('./chunk-QP5ATTMC.js');
|
|
21
21
|
require('./chunk-NPBJI7RE.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
23
|
require('./chunk-PPDBRJRW.js');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-YA3LMTLU.js');
|
|
25
25
|
require('./chunk-OG64RBAC.js');
|
|
26
26
|
require('./chunk-COGTRVWW.js');
|
|
27
27
|
|
|
@@ -1453,9 +1453,9 @@ var SUB_WORKFLOW_TOOL_PREFIX = "deepline_workflow_";
|
|
|
1453
1453
|
var UNSUPPORTED_REASON_HINT = {
|
|
1454
1454
|
unsafe_user_code: "a step's JavaScript (extract_js / run_if_js / run_javascript) uses non-deterministic or sandbox-escaping code (e.g. new Date(), Date.now(), Math.random(), fetch, require). Plays replay deterministically inside a sandbox, so the compiler rejects it \u2014 rewrite it to compute from the row/result before migrating.",
|
|
1455
1455
|
hitl: "human-in-the-loop / wait-for-signal steps have no play-runtime equivalent yet.",
|
|
1456
|
-
sub_workflow: "sub-workflow calls have no play-runtime equivalent yet (a future
|
|
1456
|
+
sub_workflow: "sub-workflow calls have no play-runtime equivalent yet (a future deepline.runPlay bridge).",
|
|
1457
1457
|
nested_waterfall: "nested with_waterfall blocks are not supported by the play compiler.",
|
|
1458
|
-
inline_secret: 'a step inlines a hardcoded secret (API key / token / private key). Plays forbid inline secrets \u2014 move it to a dashboard secret and read it with
|
|
1458
|
+
inline_secret: 'a step inlines a hardcoded secret (API key / token / private key). Plays forbid inline secrets \u2014 move it to a dashboard secret and read it with deepline.secrets.get("NAME") before migrating.'
|
|
1459
1459
|
};
|
|
1460
1460
|
var UnsupportedWorkflowCommandError = (_class = class extends Error {
|
|
1461
1461
|
__init() {this.status = 400}
|
|
@@ -1594,7 +1594,7 @@ var PLAY_EQUIVALENT = {
|
|
|
1594
1594
|
delete: "deepline plays delete <name>"
|
|
1595
1595
|
};
|
|
1596
1596
|
var MIGRATE_HINT = "deepline workflows transform <id>";
|
|
1597
|
-
var TRIGGER_REDIRECT = "Looking to trigger a play automatically? Use a trigger binding in
|
|
1597
|
+
var TRIGGER_REDIRECT = "Looking to trigger a play automatically? Use a trigger binding in `export const config = { ... }` \u2014 `cron`/`webhook`, or `sqlListeners` to run on a monitor\u2019s output (see `deepline monitors available <id>` for a monitor\u2019s streams and the deepline-monitors skill). `workflows` only manages prebuilt plays and is deprecated in favor of `plays`.";
|
|
1598
1598
|
var JSON_OPTION_DESCRIPTION = "Emit JSON output";
|
|
1599
1599
|
function withJsonOption(command) {
|
|
1600
1600
|
return command.option("--json", JSON_OPTION_DESCRIPTION);
|
|
@@ -1627,18 +1627,18 @@ function noticeToStderr(command) {
|
|
|
1627
1627
|
);
|
|
1628
1628
|
}
|
|
1629
1629
|
function emitPassThrough(command, payload, options) {
|
|
1630
|
-
const json =
|
|
1630
|
+
const json = _chunkDD6MM6WXjs.shouldEmitJson.call(void 0, options.json);
|
|
1631
1631
|
const deprecation = migrationDeprecation(command);
|
|
1632
1632
|
if (json) {
|
|
1633
1633
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1634
|
-
|
|
1634
|
+
_chunkDD6MM6WXjs.printJson.call(void 0, enriched);
|
|
1635
1635
|
return;
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
_chunkDD6MM6WXjs.printJson.call(void 0, payload);
|
|
1638
1638
|
noticeToStderr(command);
|
|
1639
1639
|
}
|
|
1640
1640
|
function client() {
|
|
1641
|
-
return new (0,
|
|
1641
|
+
return new (0, _chunkM2VXDQI2js.DeeplineClient)();
|
|
1642
1642
|
}
|
|
1643
1643
|
function clientWithTimeout(timeoutSeconds) {
|
|
1644
1644
|
if (!timeoutSeconds) return client();
|
|
@@ -1646,7 +1646,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1646
1646
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1647
1647
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1648
1648
|
}
|
|
1649
|
-
return new (0,
|
|
1649
|
+
return new (0, _chunkM2VXDQI2js.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1650
1650
|
}
|
|
1651
1651
|
function readStatus(payload) {
|
|
1652
1652
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1700,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1700
1700
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1701
1701
|
let published = false;
|
|
1702
1702
|
if (publish) {
|
|
1703
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1703
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2JOQQRZI.js")));
|
|
1704
1704
|
const code = await handlePlayPublish([file]);
|
|
1705
1705
|
if (code !== 0) {
|
|
1706
1706
|
return {
|
|
@@ -1775,10 +1775,10 @@ async function handleTransform(id, options) {
|
|
|
1775
1775
|
for (const workflowId of ids) {
|
|
1776
1776
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1777
1777
|
}
|
|
1778
|
-
|
|
1778
|
+
_chunkDD6MM6WXjs.printCommandEnvelope.call(void 0,
|
|
1779
1779
|
{ outcomes, deprecation: null },
|
|
1780
1780
|
{
|
|
1781
|
-
json:
|
|
1781
|
+
json: _chunkDD6MM6WXjs.shouldEmitJson.call(void 0, options.json),
|
|
1782
1782
|
text: renderTransformReport(outcomes)
|
|
1783
1783
|
}
|
|
1784
1784
|
);
|
|
@@ -1799,11 +1799,11 @@ async function handleDelete(id, options) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
async function handleDisable(id, options) {
|
|
1801
1801
|
const result = await client().disableWorkflow(id);
|
|
1802
|
-
|
|
1802
|
+
_chunkDD6MM6WXjs.printJson.call(void 0, result);
|
|
1803
1803
|
}
|
|
1804
1804
|
async function handleEnable(id, options) {
|
|
1805
1805
|
const result = await client().enableWorkflow(id);
|
|
1806
|
-
|
|
1806
|
+
_chunkDD6MM6WXjs.printJson.call(void 0, result);
|
|
1807
1807
|
}
|
|
1808
1808
|
async function handleApply(options) {
|
|
1809
1809
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1868,7 +1868,7 @@ async function handleTail(id, runId, options) {
|
|
|
1868
1868
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
1871
|
-
await
|
|
1871
|
+
await _chunkDD6MM6WXjs.sleep.call(void 0, intervalMs);
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
function registerWorkflowCommands(program) {
|
|
@@ -1887,7 +1887,7 @@ Equivalents: list\u2192plays list \xB7 call\u2192plays run \xB7 apply\u2192plays
|
|
|
1887
1887
|
lint\u2192plays check \xB7 runs\u2192runs list.
|
|
1888
1888
|
|
|
1889
1889
|
${TRIGGER_REDIRECT}
|
|
1890
|
-
Add the binding
|
|
1890
|
+
Add the binding to export const config = { ... } in your .play.ts; the
|
|
1891
1891
|
deepline-monitors skill has a monitor-triggered example.
|
|
1892
1892
|
`
|
|
1893
1893
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-DaFuA1ki.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|
|
@@ -2428,7 +2428,7 @@ interface PlayStatus {
|
|
|
2428
2428
|
* Projected settled-charge billing for the run. Returned by `runs.get`.
|
|
2429
2429
|
* `totalCredits`/`providerEvents` describe THIS run only; `rollup` (present
|
|
2430
2430
|
* with `--full`) carries the true subtree cost including independently
|
|
2431
|
-
* executing
|
|
2431
|
+
* executing deepline.runPlayAsync descendants. Deepline credits only — provider
|
|
2432
2432
|
* spend is never exposed.
|
|
2433
2433
|
*/
|
|
2434
2434
|
billing?: RunBillingSummary;
|
|
@@ -2441,20 +2441,20 @@ interface PlayStatus {
|
|
|
2441
2441
|
billingChildCredits?: number;
|
|
2442
2442
|
/** True when the child-run billing rollup could not be fully resolved. */
|
|
2443
2443
|
billingRollupIncomplete?: boolean;
|
|
2444
|
-
/** Durable summaries of
|
|
2444
|
+
/** Durable summaries of deepline.runPlayAsync children, returned by `runs.get --full`. */
|
|
2445
2445
|
childRuns?: ChildRunSummary[];
|
|
2446
2446
|
/**
|
|
2447
|
-
* Child Runs grouped by the authored
|
|
2447
|
+
* Child Runs grouped by the authored deepline.runPlayAsync launch key. `complete`
|
|
2448
2448
|
* is false when the bounded response is a lower bound rather than the full
|
|
2449
2449
|
* direct-child set; use each opaque `runId` to retrieve a child Run.
|
|
2450
2450
|
*/
|
|
2451
2451
|
childRunProjection?: AsyncChildRunProjection;
|
|
2452
2452
|
}
|
|
2453
|
-
/** One
|
|
2453
|
+
/** One deepline.runPlayAsync child Run exposed on the parent's `--full` payload. */
|
|
2454
2454
|
interface ChildRunSummary {
|
|
2455
2455
|
runId: string;
|
|
2456
2456
|
playName?: string | null;
|
|
2457
|
-
/** Authored
|
|
2457
|
+
/** Authored deepline.runPlayAsync key; stable across row fanout. */
|
|
2458
2458
|
launchKey?: string | null;
|
|
2459
2459
|
/** Opaque durable identity for one authored invocation. */
|
|
2460
2460
|
invocationKey?: string | null;
|
|
@@ -3753,7 +3753,8 @@ type ToolExecution<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
|
3753
3753
|
toolResponse: {
|
|
3754
3754
|
/** @deprecated Use declared getters or toolResponse.rawV2. */
|
|
3755
3755
|
raw: TData;
|
|
3756
|
-
|
|
3756
|
+
/** Unschematized provider response, typed `any` for direct reads. */
|
|
3757
|
+
rawV2?: any;
|
|
3757
3758
|
view?: 'data' | 'rawV2';
|
|
3758
3759
|
meta?: TMeta;
|
|
3759
3760
|
responseMeta?: TMeta;
|
|
@@ -4566,7 +4567,7 @@ type RunsGetOptions = {
|
|
|
4566
4567
|
failedLogLimit?: number;
|
|
4567
4568
|
};
|
|
4568
4569
|
type RunsChildrenOptions = {
|
|
4569
|
-
/** Required authored `
|
|
4570
|
+
/** Required authored `deepline.runPlayAsync` launch key. */
|
|
4570
4571
|
launchKey: string;
|
|
4571
4572
|
/** Opaque cursor returned by the preceding page. */
|
|
4572
4573
|
cursor?: string;
|
|
@@ -5129,12 +5130,14 @@ type MonitorsAvailableOptions = {
|
|
|
5129
5130
|
/**
|
|
5130
5131
|
* Stable customer-facing Monitor/Fleet state.
|
|
5131
5132
|
*
|
|
5132
|
-
*
|
|
5133
|
-
*
|
|
5134
|
-
*
|
|
5135
|
-
*
|
|
5133
|
+
* `provisioning` is a monitor whose create was recorded but that the provider
|
|
5134
|
+
* has not confirmed yet; it delivers no events and does not bill until it
|
|
5135
|
+
* becomes `active`. A Fleet is never `provisioning`. Provider cleanup,
|
|
5136
|
+
* retries, and failures are Monitor Job progress and must never be added to
|
|
5137
|
+
* this union. The `status` and `active` fields below are retained only as
|
|
5138
|
+
* deprecated compatibility aliases for older API responses.
|
|
5136
5139
|
*/
|
|
5137
|
-
type MonitorState = 'active' | 'billing_suspended' | 'disabled';
|
|
5140
|
+
type MonitorState = 'active' | 'provisioning' | 'billing_suspended' | 'disabled';
|
|
5138
5141
|
/** List filters accepted by the canonical state surface. */
|
|
5139
5142
|
type MonitorStateFilter = MonitorState | 'all';
|
|
5140
5143
|
/** The pre-state list filter retained for installed-client compatibility. */
|
|
@@ -5700,7 +5703,8 @@ type MonitorsNamespace = {
|
|
|
5700
5703
|
/** Set the desired definition for one stable monitor key. */
|
|
5701
5704
|
sync: (definition: MonitorDefinition, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorDeployResult>;
|
|
5702
5705
|
/** List deployed monitors (active by default). Use `state` to filter the
|
|
5703
|
-
*
|
|
5706
|
+
* four customer states (`active`, `provisioning`, `billing_suspended`,
|
|
5707
|
+
* `disabled`); `status` is retained for older servers.
|
|
5704
5708
|
* `includeConsumers` requires a limit of 20 or fewer. */
|
|
5705
5709
|
list: (options?: MonitorsListOptions) => Promise<MonitorsListResult>;
|
|
5706
5710
|
/** Fetch one deployed monitor by public key with bounded current listener health. */
|
|
@@ -7029,7 +7033,7 @@ declare class DeeplineClient {
|
|
|
7029
7033
|
/**
|
|
7030
7034
|
* Export persisted runtime-sheet rows for a play dataset/table namespace.
|
|
7031
7035
|
*
|
|
7032
|
-
* This is the SDK form of exporting `
|
|
7036
|
+
* This is the SDK form of exporting `deepline.dataset(...).run()` output for a
|
|
7033
7037
|
* specific play and optional run id.
|
|
7034
7038
|
*/
|
|
7035
7039
|
getPlaySheetRows(input: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-DaFuA1ki.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
5
|
|
|
@@ -2428,7 +2428,7 @@ interface PlayStatus {
|
|
|
2428
2428
|
* Projected settled-charge billing for the run. Returned by `runs.get`.
|
|
2429
2429
|
* `totalCredits`/`providerEvents` describe THIS run only; `rollup` (present
|
|
2430
2430
|
* with `--full`) carries the true subtree cost including independently
|
|
2431
|
-
* executing
|
|
2431
|
+
* executing deepline.runPlayAsync descendants. Deepline credits only — provider
|
|
2432
2432
|
* spend is never exposed.
|
|
2433
2433
|
*/
|
|
2434
2434
|
billing?: RunBillingSummary;
|
|
@@ -2441,20 +2441,20 @@ interface PlayStatus {
|
|
|
2441
2441
|
billingChildCredits?: number;
|
|
2442
2442
|
/** True when the child-run billing rollup could not be fully resolved. */
|
|
2443
2443
|
billingRollupIncomplete?: boolean;
|
|
2444
|
-
/** Durable summaries of
|
|
2444
|
+
/** Durable summaries of deepline.runPlayAsync children, returned by `runs.get --full`. */
|
|
2445
2445
|
childRuns?: ChildRunSummary[];
|
|
2446
2446
|
/**
|
|
2447
|
-
* Child Runs grouped by the authored
|
|
2447
|
+
* Child Runs grouped by the authored deepline.runPlayAsync launch key. `complete`
|
|
2448
2448
|
* is false when the bounded response is a lower bound rather than the full
|
|
2449
2449
|
* direct-child set; use each opaque `runId` to retrieve a child Run.
|
|
2450
2450
|
*/
|
|
2451
2451
|
childRunProjection?: AsyncChildRunProjection;
|
|
2452
2452
|
}
|
|
2453
|
-
/** One
|
|
2453
|
+
/** One deepline.runPlayAsync child Run exposed on the parent's `--full` payload. */
|
|
2454
2454
|
interface ChildRunSummary {
|
|
2455
2455
|
runId: string;
|
|
2456
2456
|
playName?: string | null;
|
|
2457
|
-
/** Authored
|
|
2457
|
+
/** Authored deepline.runPlayAsync key; stable across row fanout. */
|
|
2458
2458
|
launchKey?: string | null;
|
|
2459
2459
|
/** Opaque durable identity for one authored invocation. */
|
|
2460
2460
|
invocationKey?: string | null;
|
|
@@ -3753,7 +3753,8 @@ type ToolExecution<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
|
3753
3753
|
toolResponse: {
|
|
3754
3754
|
/** @deprecated Use declared getters or toolResponse.rawV2. */
|
|
3755
3755
|
raw: TData;
|
|
3756
|
-
|
|
3756
|
+
/** Unschematized provider response, typed `any` for direct reads. */
|
|
3757
|
+
rawV2?: any;
|
|
3757
3758
|
view?: 'data' | 'rawV2';
|
|
3758
3759
|
meta?: TMeta;
|
|
3759
3760
|
responseMeta?: TMeta;
|
|
@@ -4566,7 +4567,7 @@ type RunsGetOptions = {
|
|
|
4566
4567
|
failedLogLimit?: number;
|
|
4567
4568
|
};
|
|
4568
4569
|
type RunsChildrenOptions = {
|
|
4569
|
-
/** Required authored `
|
|
4570
|
+
/** Required authored `deepline.runPlayAsync` launch key. */
|
|
4570
4571
|
launchKey: string;
|
|
4571
4572
|
/** Opaque cursor returned by the preceding page. */
|
|
4572
4573
|
cursor?: string;
|
|
@@ -5129,12 +5130,14 @@ type MonitorsAvailableOptions = {
|
|
|
5129
5130
|
/**
|
|
5130
5131
|
* Stable customer-facing Monitor/Fleet state.
|
|
5131
5132
|
*
|
|
5132
|
-
*
|
|
5133
|
-
*
|
|
5134
|
-
*
|
|
5135
|
-
*
|
|
5133
|
+
* `provisioning` is a monitor whose create was recorded but that the provider
|
|
5134
|
+
* has not confirmed yet; it delivers no events and does not bill until it
|
|
5135
|
+
* becomes `active`. A Fleet is never `provisioning`. Provider cleanup,
|
|
5136
|
+
* retries, and failures are Monitor Job progress and must never be added to
|
|
5137
|
+
* this union. The `status` and `active` fields below are retained only as
|
|
5138
|
+
* deprecated compatibility aliases for older API responses.
|
|
5136
5139
|
*/
|
|
5137
|
-
type MonitorState = 'active' | 'billing_suspended' | 'disabled';
|
|
5140
|
+
type MonitorState = 'active' | 'provisioning' | 'billing_suspended' | 'disabled';
|
|
5138
5141
|
/** List filters accepted by the canonical state surface. */
|
|
5139
5142
|
type MonitorStateFilter = MonitorState | 'all';
|
|
5140
5143
|
/** The pre-state list filter retained for installed-client compatibility. */
|
|
@@ -5700,7 +5703,8 @@ type MonitorsNamespace = {
|
|
|
5700
5703
|
/** Set the desired definition for one stable monitor key. */
|
|
5701
5704
|
sync: (definition: MonitorDefinition, options?: MonitorLifecycleOptions) => Promise<MonitorJobResult | MonitorDeployResult>;
|
|
5702
5705
|
/** List deployed monitors (active by default). Use `state` to filter the
|
|
5703
|
-
*
|
|
5706
|
+
* four customer states (`active`, `provisioning`, `billing_suspended`,
|
|
5707
|
+
* `disabled`); `status` is retained for older servers.
|
|
5704
5708
|
* `includeConsumers` requires a limit of 20 or fewer. */
|
|
5705
5709
|
list: (options?: MonitorsListOptions) => Promise<MonitorsListResult>;
|
|
5706
5710
|
/** Fetch one deployed monitor by public key with bounded current listener health. */
|
|
@@ -7029,7 +7033,7 @@ declare class DeeplineClient {
|
|
|
7029
7033
|
/**
|
|
7030
7034
|
* Export persisted runtime-sheet rows for a play dataset/table namespace.
|
|
7031
7035
|
*
|
|
7032
|
-
* This is the SDK form of exporting `
|
|
7036
|
+
* This is the SDK form of exporting `deepline.dataset(...).run()` output for a
|
|
7033
7037
|
* specific play and optional run id.
|
|
7034
7038
|
*/
|
|
7035
7039
|
getPlaySheetRows(input: {
|
|
@@ -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]>;
|