deepline 0.3.421 → 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.
Files changed (149) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/play.ts +227 -184
  4. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
  5. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  7. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
  8. package/dist/bundling-sources/sdk/src/types.ts +5 -5
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +6 -6
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
  11. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
  12. package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
  13. package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
  14. package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
  15. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
  16. package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
  17. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
  18. package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
  19. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
  20. package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
  21. package/dist/cli/{auth-56JTC4Q7.mjs → auth-L7Q53QKK.mjs} +4 -4
  22. package/dist/cli/auth-SUNY477Y.js +40 -0
  23. package/dist/cli/{billing-ZXOOZEUW.mjs → billing-IH7AKDR2.mjs} +4 -4
  24. package/dist/cli/{billing-C5LR6FA7.js → billing-QNP6YGI2.js} +73 -73
  25. package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
  26. package/dist/cli/{chunk-7SRVIWGT.js → chunk-2F5ULM2F.js} +1 -1
  27. package/dist/cli/{chunk-HP5FD2LI.js → chunk-2U3AMRHF.js} +8 -8
  28. package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
  29. package/dist/cli/{chunk-5F6W5NWV.mjs → chunk-44US3EL2.mjs} +5 -5
  30. package/dist/cli/{chunk-6UKY4LBW.js → chunk-4WT5RISA.js} +20 -20
  31. package/dist/cli/{chunk-QJV2ALPN.js → chunk-5DGR3TB6.js} +2 -2
  32. package/dist/cli/{chunk-UCI4QROZ.mjs → chunk-6FFORGD2.mjs} +2 -2
  33. package/dist/cli/{chunk-ZSVWCV3G.mjs → chunk-ARTGL3FM.mjs} +1 -1
  34. package/dist/cli/{chunk-FB5H5OOH.js → chunk-AVOBDFQ5.js} +11 -11
  35. package/dist/cli/{chunk-2WOVAVJ3.js → chunk-DRK6FYJU.js} +26 -26
  36. package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
  37. package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
  38. package/dist/cli/{chunk-GIJ47TAV.js → chunk-EWWWOKX2.js} +6 -6
  39. package/dist/cli/{chunk-5E55HHW3.mjs → chunk-FJRFSBWO.mjs} +4 -4
  40. package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
  41. package/dist/cli/{chunk-RURYN2BE.mjs → chunk-H662SHPT.mjs} +28 -27
  42. package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
  43. package/dist/cli/{chunk-RJLFCJ23.mjs → chunk-IW5QK3K6.mjs} +3 -3
  44. package/dist/cli/{chunk-SPLOMS4N.mjs → chunk-JDAXVQV7.mjs} +1 -1
  45. package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
  46. package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
  47. package/dist/cli/{chunk-F4V4JJED.mjs → chunk-MHG3NND4.mjs} +3 -3
  48. package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
  49. package/dist/cli/{chunk-5KYK4DGY.js → chunk-MMI2DXCW.js} +8 -8
  50. package/dist/cli/{chunk-VEYAPBS4.js → chunk-NA6SGG7X.js} +260 -259
  51. package/dist/cli/{chunk-AZGJNNNE.mjs → chunk-NFIZ5YED.mjs} +2 -2
  52. package/dist/cli/{chunk-WR4M5VWK.js → chunk-OMWO2JLC.js} +52 -52
  53. package/dist/cli/{chunk-EKQH4IUU.mjs → chunk-OPI7UCQG.mjs} +1 -1
  54. package/dist/cli/{chunk-2XKDLS5P.js → chunk-OZLMMMZH.js} +6 -6
  55. package/dist/cli/{chunk-ZLPT2RZ5.mjs → chunk-PH4BP6KM.mjs} +2 -2
  56. package/dist/cli/{chunk-NSJRLP7R.js → chunk-PQ4G6MKI.js} +16 -16
  57. package/dist/cli/{chunk-4NS4EZHN.mjs → chunk-QN6DG4JO.mjs} +2 -2
  58. package/dist/cli/{chunk-VC3E5HFO.mjs → chunk-QWJJMQNE.mjs} +1 -1
  59. package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
  60. package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
  61. package/dist/cli/{chunk-JJQLBZEW.js → chunk-RAL75ND3.js} +2 -2
  62. package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
  63. package/dist/cli/{chunk-7TSF7E3B.mjs → chunk-S6KG7JCR.mjs} +2 -2
  64. package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
  65. package/dist/cli/{chunk-C25ZYL6U.js → chunk-W42SSVM7.js} +4 -4
  66. package/dist/cli/{chunk-ZZBXD5VX.js → chunk-WJO7KIFT.js} +50 -50
  67. package/dist/cli/{chunk-VYLZS7X4.mjs → chunk-XSERB7H2.mjs} +1 -1
  68. package/dist/cli/{chunk-4I26IVFC.js → chunk-YCHR57TD.js} +35 -35
  69. package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
  70. package/dist/cli/{chunk-ZOL3CIKN.mjs → chunk-YNT7PJND.mjs} +3 -3
  71. package/dist/cli/command-docs.js +2 -2
  72. package/dist/cli/command-docs.mjs +1 -1
  73. package/dist/cli/{csv-EJ4QRLA2.mjs → csv-5KW7M6ZS.mjs} +3 -3
  74. package/dist/cli/{csv-G6H3U4XV.js → csv-GF7VRES5.js} +12 -12
  75. package/dist/cli/{db-WKQFXUWI.js → db-AEDXKB4F.js} +26 -26
  76. package/dist/cli/{db-PBIIALJ5.mjs → db-NN4JQAC4.mjs} +5 -5
  77. package/dist/cli/{describe-ZCU36ES2.js → describe-5RLXW332.js} +24 -24
  78. package/dist/cli/{describe-DMRK4UNO.mjs → describe-RX6VROHQ.mjs} +16 -16
  79. package/dist/cli/describe-core.d.mts +2 -2
  80. package/dist/cli/describe-core.d.ts +2 -2
  81. package/dist/cli/describe-core.js +4 -4
  82. package/dist/cli/describe-core.mjs +3 -3
  83. package/dist/cli/{executions-JAHW6GMA.mjs → executions-EJZ34VUB.mjs} +4 -4
  84. package/dist/cli/{executions-SBA3UYMH.js → executions-PGIGFDDS.js} +6 -6
  85. package/dist/cli/{feedback-PKBUYHMD.mjs → feedback-6MWOKE7H.mjs} +3 -3
  86. package/dist/cli/{feedback-QAE4V2NY.js → feedback-L2ODMANV.js} +7 -7
  87. package/dist/cli/git-2ZDCRTBD.js +24 -0
  88. package/dist/cli/{git-GAO3SJAQ.mjs → git-456RF3AT.mjs} +4 -4
  89. package/dist/cli/index.js +135 -135
  90. package/dist/cli/index.mjs +37 -37
  91. package/dist/cli/{legacy-noops-JCMVW5BL.js → legacy-noops-MDPB3MIS.js} +7 -7
  92. package/dist/cli/{legacy-noops-5PY2ZZF3.mjs → legacy-noops-ZPRBXQDE.mjs} +4 -4
  93. package/dist/cli/{monitors-YPS4LPDG.js → monitors-TXKR5XYW.js} +86 -86
  94. package/dist/cli/{monitors-GVYAZRMB.mjs → monitors-ZLP6A7FT.mjs} +6 -6
  95. package/dist/cli/{org-OBVAU6K7.js → org-73SQ3AT2.js} +64 -64
  96. package/dist/cli/{org-R7AKPKUB.mjs → org-YZ62BIGM.mjs} +4 -4
  97. package/dist/cli/{play-MTHQQHR6.js → play-M75EBXEV.js} +606 -567
  98. package/dist/cli/{play-3LFM2SV2.mjs → play-VCYQKCKF.mjs} +113 -74
  99. package/dist/cli/{providers-CTIROUI3.js → providers-GIINJPWQ.js} +7 -7
  100. package/dist/cli/{providers-IRICPDKU.mjs → providers-JLA6LST3.mjs} +4 -4
  101. package/dist/cli/{quickstart-5FBQVZ5B.mjs → quickstart-AHCU75GG.mjs} +3 -3
  102. package/dist/cli/{quickstart-OZDVFNF2.js → quickstart-HHHLYCHT.js} +5 -5
  103. package/dist/cli/{search-FYM47QFU.mjs → search-5GACUIAX.mjs} +5 -5
  104. package/dist/cli/search-W2PGBXQO.js +30 -0
  105. package/dist/cli/{secrets-43GJUDAE.js → secrets-PI7IPCOE.js} +13 -13
  106. package/dist/cli/{secrets-ENBXU3O3.mjs → secrets-S2NBKAEN.mjs} +4 -4
  107. package/dist/cli/{sessions-RXX5IHG6.js → sessions-BK4CSRFS.js} +5 -5
  108. package/dist/cli/{sessions-7IQJOH5Z.mjs → sessions-IBKYGTBD.mjs} +4 -4
  109. package/dist/cli/{settings-Z2CWWV7P.js → settings-2G7TUDM7.js} +75 -75
  110. package/dist/cli/{settings-EZGDTS3K.mjs → settings-JY6UN4KO.mjs} +8 -8
  111. package/dist/cli/{setup-N5UMUBBV.mjs → setup-HS5X3OSN.mjs} +7 -7
  112. package/dist/cli/{setup-2ON3TUXP.js → setup-R424FIBF.js} +42 -42
  113. package/dist/cli/skills-M3RZAN4A.js +29 -0
  114. package/dist/cli/{skills-4MR2Z2M5.mjs → skills-UIBUDTGN.mjs} +5 -5
  115. package/dist/cli/tools-K2GII2PA.js +44 -0
  116. package/dist/cli/{tools-MCEIWE3I.mjs → tools-SB4FREB6.mjs} +15 -15
  117. package/dist/cli/update-C2ORJRXN.js +31 -0
  118. package/dist/cli/{update-2JDBGLTX.mjs → update-NJSUE2YU.mjs} +7 -7
  119. package/dist/cli/{workflow-7DNBY4WJ.js → workflow-3AZWZ4J3.js} +19 -19
  120. package/dist/cli/{workflow-7UDXYU5Y.mjs → workflow-HBG76XYX.mjs} +9 -9
  121. package/dist/{client-CCWIUnk7.d.mts → client-BTUOYGID.d.mts} +10 -9
  122. package/dist/{client-vHqBm-OL.d.ts → client-C668iUhZ.d.ts} +10 -9
  123. package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
  124. package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
  125. package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
  126. package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
  127. package/dist/index.d.mts +120 -150
  128. package/dist/index.d.ts +120 -150
  129. package/dist/index.js +77 -12
  130. package/dist/index.mjs +74 -9
  131. package/dist/install-integrity.json +99 -98
  132. package/dist/plays/bundle-play-file.d.mts +3 -3
  133. package/dist/plays/bundle-play-file.d.ts +3 -3
  134. package/dist/plays/bundle-play-file.mjs +1 -1
  135. package/dist/plays/play-description.d.mts +2 -2
  136. package/dist/plays/play-description.d.ts +2 -2
  137. package/dist/plays/run-request.d.mts +2 -2
  138. package/dist/plays/run-request.d.ts +2 -2
  139. package/dist/release.d.mts +1 -1
  140. package/dist/release.d.ts +1 -1
  141. package/dist/release.js +2 -2
  142. package/dist/release.mjs +1 -1
  143. package/package.json +1 -1
  144. package/dist/cli/auth-ZQMAF7W5.js +0 -40
  145. package/dist/cli/git-54INNT33.js +0 -24
  146. package/dist/cli/search-XIKHDZJ3.js +0 -30
  147. package/dist/cli/skills-2WIHNEOS.js +0 -29
  148. package/dist/cli/tools-YUUSOKYX.js +0 -44
  149. package/dist/cli/update-PWX4MJ3R.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 _chunkFB5H5OOHjs = require('./chunk-FB5H5OOH.js');
9
+ var _chunkAVOBDFQ5js = require('./chunk-AVOBDFQ5.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 _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
20
- require('./chunk-C25ZYL6U.js');
19
+ var _chunkEWWWOKX2js = require('./chunk-EWWWOKX2.js');
20
+ require('./chunk-W42SSVM7.js');
21
21
  require('./chunk-NPBJI7RE.js');
22
22
  require('./chunk-XNYIZMNQ.js');
23
23
  require('./chunk-PPDBRJRW.js');
24
- require('./chunk-7SRVIWGT.js');
24
+ require('./chunk-2F5ULM2F.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 ctx.runPlay bridge).",
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 ctx.secrets.get("NAME") before migrating.'
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 definePlay \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`.";
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 = _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, options.json);
1630
+ const json = _chunkEWWWOKX2js.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
- _chunkGIJ47TAVjs.printJson.call(void 0, enriched);
1634
+ _chunkEWWWOKX2js.printJson.call(void 0, enriched);
1635
1635
  return;
1636
1636
  }
1637
- _chunkGIJ47TAVjs.printJson.call(void 0, payload);
1637
+ _chunkEWWWOKX2js.printJson.call(void 0, payload);
1638
1638
  noticeToStderr(command);
1639
1639
  }
1640
1640
  function client() {
1641
- return new (0, _chunkFB5H5OOHjs.DeeplineClient)();
1641
+ return new (0, _chunkAVOBDFQ5js.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, _chunkFB5H5OOHjs.DeeplineClient)({ timeout: seconds * 1e3 });
1649
+ return new (0, _chunkAVOBDFQ5js.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-MTHQQHR6.js")));
1703
+ const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-M75EBXEV.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
- _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
1778
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
1779
1779
  { outcomes, deprecation: null },
1780
1780
  {
1781
- json: _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, options.json),
1781
+ json: _chunkEWWWOKX2js.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
- _chunkGIJ47TAVjs.printJson.call(void 0, result);
1802
+ _chunkEWWWOKX2js.printJson.call(void 0, result);
1803
1803
  }
1804
1804
  async function handleEnable(id, options) {
1805
1805
  const result = await client().enableWorkflow(id);
1806
- _chunkGIJ47TAVjs.printJson.call(void 0, result);
1806
+ _chunkEWWWOKX2js.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 _chunkGIJ47TAVjs.sleep.call(void 0, intervalMs);
1871
+ await _chunkEWWWOKX2js.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 as the third arg to definePlay in your .play.ts; the
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
  );
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-H7HIDGZ7.mjs";
7
7
  import {
8
8
  DeeplineClient
9
- } from "./chunk-UCI4QROZ.mjs";
9
+ } from "./chunk-6FFORGD2.mjs";
10
10
  import "./chunk-L2VKAASU.mjs";
11
11
  import "./chunk-KCC3FKIW.mjs";
12
12
  import "./chunk-EIMG75BT.mjs";
@@ -16,12 +16,12 @@ import {
16
16
  printJson,
17
17
  shouldEmitJson,
18
18
  sleep
19
- } from "./chunk-VC3E5HFO.mjs";
20
- import "./chunk-VYLZS7X4.mjs";
19
+ } from "./chunk-QWJJMQNE.mjs";
20
+ import "./chunk-XSERB7H2.mjs";
21
21
  import "./chunk-MAMVGOSC.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-E4IXDAZI.mjs";
24
- import "./chunk-SPLOMS4N.mjs";
24
+ import "./chunk-JDAXVQV7.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
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 ctx.runPlay bridge).",
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 ctx.secrets.get("NAME") before migrating.'
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 extends Error {
1461
1461
  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 definePlay \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`.";
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);
@@ -1700,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
1700
1700
  await writeFile(file, compiled.sourceCode, "utf8");
1701
1701
  let published = false;
1702
1702
  if (publish) {
1703
- const { handlePlayPublish } = await import("./play-3LFM2SV2.mjs");
1703
+ const { handlePlayPublish } = await import("./play-VCYQKCKF.mjs");
1704
1704
  const code = await handlePlayPublish([file]);
1705
1705
  if (code !== 0) {
1706
1706
  return {
@@ -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 as the third arg to definePlay in your .play.ts; the
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-lzWpbV3w.mjs';
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 ctx.runPlayAsync descendants. Deepline credits only — provider
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 ctx.runPlayAsync children, returned by `runs.get --full`. */
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 ctx.runPlayAsync launch key. `complete`
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 ctx.runPlayAsync child Run exposed on the parent's `--full` payload. */
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 ctx.runPlayAsync key; stable across row fanout. */
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
- rawV2?: unknown;
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 `ctx.runPlayAsync` launch key. */
4570
+ /** Required authored `deepline.runPlayAsync` launch key. */
4570
4571
  launchKey: string;
4571
4572
  /** Opaque cursor returned by the preceding page. */
4572
4573
  cursor?: string;
@@ -7029,7 +7030,7 @@ declare class DeeplineClient {
7029
7030
  /**
7030
7031
  * Export persisted runtime-sheet rows for a play dataset/table namespace.
7031
7032
  *
7032
- * This is the SDK form of exporting `ctx.dataset(...).run()` output for a
7033
+ * This is the SDK form of exporting `deepline.dataset(...).run()` output for a
7033
7034
  * specific play and optional run id.
7034
7035
  */
7035
7036
  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-lzWpbV3w.js';
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 ctx.runPlayAsync descendants. Deepline credits only — provider
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 ctx.runPlayAsync children, returned by `runs.get --full`. */
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 ctx.runPlayAsync launch key. `complete`
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 ctx.runPlayAsync child Run exposed on the parent's `--full` payload. */
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 ctx.runPlayAsync key; stable across row fanout. */
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
- rawV2?: unknown;
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 `ctx.runPlayAsync` launch key. */
4570
+ /** Required authored `deepline.runPlayAsync` launch key. */
4570
4571
  launchKey: string;
4571
4572
  /** Opaque cursor returned by the preceding page. */
4572
4573
  cursor?: string;
@@ -7029,7 +7030,7 @@ declare class DeeplineClient {
7029
7030
  /**
7030
7031
  * Export persisted runtime-sheet rows for a play dataset/table namespace.
7031
7032
  *
7032
- * This is the SDK form of exporting `ctx.dataset(...).run()` output for a
7033
+ * This is the SDK form of exporting `deepline.dataset(...).run()` output for a
7033
7034
  * specific play and optional run id.
7034
7035
  */
7035
7036
  getPlaySheetRows(input: {
@@ -582,13 +582,13 @@ type PlayDatasetTransformOptions = {
582
582
  sourceLabel?: string | null;
583
583
  };
584
584
  /**
585
- * Durable handle for rows produced by `ctx.csv(...)` or `ctx.dataset(...).run()`.
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 `ctx.dataset(...)` stages by default so
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 ctx.dataset, use first() or async iteration, or await
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
- /** Complete parsed and scrubbed provider response, materialized from raw-v2. */
761
- rawV2?: unknown;
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 ctx.dataset. Lazy or
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 `ctx.tools.execute({ timeoutMs })`, which limits one
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 ctx.customerDb.query. */
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 `ctx.secrets.get`.
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 `ctx.secrets.get`. */
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 `ctx.secrets.bearer` or `ctx.secrets.header` and attached to a request through `init.auth`.
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 `ctx.fetch`. Same shape as `RequestInit` plus `auth`.
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 `ctx.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.
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
- /** Runtime context for tool, Play, fetch, and log calls. */
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 ctx.runPlayAsync. */
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 `ctx.fetch` call. The key identifies the request;
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 ctx.billing.entitlements()
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 ctx.csv(path, options)
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 ctx.dataset(key, items)
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 `ctx.map(...)` was replaced by `ctx.dataset(...)`. */
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 ctx.tools.execute(request)
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 ctx.runSteps(program, input, options)
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 ctx.step(id, fn)
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 ctx.fetch(key, url, init)
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 ctx.secrets.get(name)
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 ctx.secrets.bearer(secret)
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 ctx.secrets.header(header, secret)
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 ctx.runPlay(key, playRef, input, options)
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 ctx.runPlayAsync(key, playRef, input, options)
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 definePlay handle carrying its input type. */
1412
+ /** Independently published Play name, or an imported play carrying its input type. */
1410
1413
  playRef: PlayAuthoringReferenceLike<TInput>,
1411
- /** Input checked against the referenced definePlay handle when available. */
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 ctx.dataset with a static key — the per-row receipt identity comes from the row, not from the key. Do not compute the key.";
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]>;