deepline 0.3.533 → 0.3.535

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 (173) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +68 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +677 -26
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +26 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +32 -14
  9. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  14. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +8 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +21 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +12 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
  22. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  23. package/dist/cli/auth-VDCU3T6A.js +43 -0
  24. package/dist/cli/{auth-2TZNPIJQ.mjs → auth-ZCTMB5RA.mjs} +5 -5
  25. package/dist/cli/{billing-HQYTRIV3.js → billing-GVFKZQH3.js} +82 -82
  26. package/dist/cli/{billing-LR4WJIHO.mjs → billing-OU2ZHL72.mjs} +7 -7
  27. package/dist/cli/{chunk-HOTJSXLY.js → chunk-243O3FH5.js} +5 -5
  28. package/dist/cli/{chunk-TU56J4OV.js → chunk-2D6SWQTK.js} +13 -13
  29. package/dist/cli/{chunk-4YP2YAIZ.js → chunk-4NLRWKZB.js} +26 -26
  30. package/dist/cli/{chunk-NW736SOD.mjs → chunk-4QELPWUW.mjs} +2 -2
  31. package/dist/cli/{chunk-LTF2J3JM.js → chunk-5EKNDNFQ.js} +2 -2
  32. package/dist/cli/{chunk-VPQDKL5O.js → chunk-6LHX33VN.js} +6 -6
  33. package/dist/cli/{chunk-LZMRCUVD.mjs → chunk-6TYRRNXY.mjs} +2 -2
  34. package/dist/cli/{chunk-YZK5RSUL.mjs → chunk-7CWSAEYS.mjs} +1 -1
  35. package/dist/cli/{chunk-A4JP6RPX.js → chunk-7PXP2FQK.js} +2 -2
  36. package/dist/cli/{chunk-2TMNRF5R.mjs → chunk-7R5DAANG.mjs} +1 -1
  37. package/dist/cli/{chunk-NKVW552R.mjs → chunk-AUEUAPVS.mjs} +1 -1
  38. package/dist/cli/{chunk-3KQBV2CG.mjs → chunk-BF65LB7X.mjs} +3 -3
  39. package/dist/cli/{chunk-33SNTG5F.js → chunk-CIDATNTY.js} +16 -16
  40. package/dist/cli/{chunk-O7RSUW75.js → chunk-D4MHCCIR.js} +4 -4
  41. package/dist/cli/{chunk-5XTXC45Z.js → chunk-DAPKLYST.js} +41 -41
  42. package/dist/cli/{chunk-USAQ42OG.mjs → chunk-DFJODFMC.mjs} +5 -5
  43. package/dist/cli/{chunk-KKUOIVQO.mjs → chunk-DWPY6ZID.mjs} +1 -1
  44. package/dist/cli/{chunk-MNAEALPG.js → chunk-DYIWDUY4.js} +182 -127
  45. package/dist/cli/{chunk-EVXRQXNV.mjs → chunk-E3CLOVG5.mjs} +47 -0
  46. package/dist/cli/{chunk-SVVUC3B4.js → chunk-FGN75ZN6.js} +138 -104
  47. package/dist/cli/{chunk-XZN3DBTP.mjs → chunk-FZKPPB5P.mjs} +40 -6
  48. package/dist/cli/{chunk-NFDYVMGC.mjs → chunk-G2DLG32W.mjs} +68 -13
  49. package/dist/cli/{chunk-LZ3PBEQH.mjs → chunk-H6SWS5CG.mjs} +2 -2
  50. package/dist/cli/{chunk-EYWES7F5.js → chunk-HWPOXCCK.js} +3 -3
  51. package/dist/cli/{chunk-425ERNBL.js → chunk-HYBZWSSH.js} +44 -44
  52. package/dist/cli/{chunk-CANHB6DH.mjs → chunk-J75DANZY.mjs} +2 -2
  53. package/dist/cli/{chunk-CWIGRIIX.mjs → chunk-JQQG4QL4.mjs} +3 -3
  54. package/dist/cli/{chunk-2UYERVXF.mjs → chunk-JWWYLGUT.mjs} +2 -2
  55. package/dist/cli/{chunk-735ZOYQN.js → chunk-K3IPGMGP.js} +11 -11
  56. package/dist/cli/{chunk-VKGNQC2S.mjs → chunk-K53NKWZO.mjs} +5 -5
  57. package/dist/cli/{chunk-3O3AL5RI.mjs → chunk-K76AEBFY.mjs} +4 -4
  58. package/dist/cli/{chunk-BWZHMWM5.js → chunk-KA6ZERJL.js} +6 -6
  59. package/dist/cli/{chunk-4CYNH47Y.js → chunk-KOZBZPRM.js} +53 -53
  60. package/dist/cli/{chunk-QZWURUBP.js → chunk-KWGXHPHL.js} +7 -7
  61. package/dist/cli/{chunk-XUX5KGCQ.mjs → chunk-LVISZFYO.mjs} +2 -2
  62. package/dist/cli/{chunk-B4ZNWXUW.js → chunk-OM732MGV.js} +9 -9
  63. package/dist/cli/{chunk-352XVCGE.js → chunk-PHLNYBAA.js} +5 -5
  64. package/dist/cli/{chunk-ZH5HCAN3.js → chunk-PI5R65OQ.js} +1 -1
  65. package/dist/cli/{chunk-JZ7LJS3P.mjs → chunk-QYBAHYP4.mjs} +6 -6
  66. package/dist/cli/{chunk-G3GJ3IGU.mjs → chunk-R2KKEHJN.mjs} +5 -5
  67. package/dist/cli/{chunk-R7YDZSN7.js → chunk-RFQWSH6I.js} +3 -3
  68. package/dist/cli/{chunk-MKUYZ7LR.mjs → chunk-RKY4LBX3.mjs} +1 -1
  69. package/dist/cli/{chunk-WF652G74.js → chunk-T7RBM2WX.js} +14 -14
  70. package/dist/cli/{chunk-G3RVDRYL.mjs → chunk-TCVCFZP6.mjs} +1 -1
  71. package/dist/cli/{chunk-E4VWBU2E.js → chunk-UUQ2OXMH.js} +16 -16
  72. package/dist/cli/{chunk-IETLUG4C.mjs → chunk-W5YJYU4G.mjs} +1 -1
  73. package/dist/cli/{chunk-HPOVAUQF.mjs → chunk-W6T23EUC.mjs} +1 -1
  74. package/dist/cli/{chunk-BSI7UHQZ.mjs → chunk-WAIBM6KX.mjs} +5 -5
  75. package/dist/cli/{chunk-4UADZTU5.js → chunk-WNNA4L6Z.js} +22 -22
  76. package/dist/cli/{chunk-V6LUMGVI.js → chunk-XSOTEVOB.js} +47 -0
  77. package/dist/cli/{chunk-PIACHLYY.mjs → chunk-YFZLZNTH.mjs} +2 -2
  78. package/dist/cli/{chunk-274Y66HP.js → chunk-ZUVE63Y7.js} +2 -2
  79. package/dist/cli/command-docs.js +2 -2
  80. package/dist/cli/command-docs.mjs +1 -1
  81. package/dist/cli/{csv-MBSCHS4H.js → csv-CD55KEIO.js} +13 -13
  82. package/dist/cli/{csv-CJKKHGNQ.mjs → csv-CLPVMIRF.mjs} +4 -4
  83. package/dist/cli/{db-EAFR6N45.mjs → db-AU4SMWUN.mjs} +6 -6
  84. package/dist/cli/{db-45HNPCY3.js → db-MQKLDAEO.js} +27 -27
  85. package/dist/cli/describe-5BFNHT5V.js +50 -0
  86. package/dist/cli/{describe-IXW3LDGC.mjs → describe-AWJUXE2U.mjs} +18 -18
  87. package/dist/cli/describe-core.d.mts +3 -3
  88. package/dist/cli/describe-core.d.ts +3 -3
  89. package/dist/cli/{executions-SZAES2S4.js → executions-77GOLWRM.js} +8 -8
  90. package/dist/cli/{executions-ZATZV7O6.mjs → executions-TFIJPUX7.mjs} +6 -6
  91. package/dist/cli/{feedback-NY63KEK2.mjs → feedback-2WRSZ5WL.mjs} +6 -6
  92. package/dist/cli/{feedback-KXLF4GR4.js → feedback-OV5YAL3A.js} +14 -14
  93. package/dist/cli/git-HGMX52XU.js +25 -0
  94. package/dist/cli/{git-BSSSTR6N.mjs → git-VNS4ATLZ.mjs} +5 -5
  95. package/dist/cli/index.js +145 -145
  96. package/dist/cli/index.mjs +44 -44
  97. package/dist/cli/{legacy-noops-CYF6DJBF.mjs → legacy-noops-C732QDCY.mjs} +6 -6
  98. package/dist/cli/{legacy-noops-XQANGML3.js → legacy-noops-HDOB5C6F.js} +9 -9
  99. package/dist/cli/{monitors-ABJVLWIP.mjs → monitors-2LYEFXOU.mjs} +7 -7
  100. package/dist/cli/{monitors-F3PTNP45.js → monitors-5IUMHH3E.js} +100 -100
  101. package/dist/cli/{org-WQAPZI5Q.js → org-ADW2EVAC.js} +86 -86
  102. package/dist/cli/{org-BHF6Y5R7.mjs → org-G4YGZPHS.mjs} +6 -6
  103. package/dist/cli/{pages-W4HWVJUG.mjs → pages-KXKWSCEV.mjs} +6 -6
  104. package/dist/cli/{pages-U3EJ2NPL.js → pages-VTJGAI2D.js} +18 -18
  105. package/dist/cli/{play-3T4X3ZKH.mjs → play-7GQ56C2D.mjs} +69 -22
  106. package/dist/cli/{play-2UHKONON.js → play-EHSOSSHT.js} +367 -320
  107. package/dist/cli/{providers-LUK5LIUA.js → providers-PWCF6OOO.js} +9 -9
  108. package/dist/cli/{providers-2G2VTNDG.mjs → providers-WL3YTCSV.mjs} +6 -6
  109. package/dist/cli/{quickstart-XP4PJZ7N.mjs → quickstart-323XOPGI.mjs} +4 -4
  110. package/dist/cli/{quickstart-76P6PGID.js → quickstart-ZKI5MURA.js} +6 -6
  111. package/dist/cli/{run-S2KHGBCM.js → run-XZPWA6JS.js} +41 -41
  112. package/dist/cli/{run-ACIHA53A.mjs → run-ZCNZU3K2.mjs} +23 -23
  113. package/dist/cli/{search-VFIJCUZL.mjs → search-CVLVSFMJ.mjs} +8 -8
  114. package/dist/cli/search-J6EY7DQN.js +33 -0
  115. package/dist/cli/{search-output-2KFLZS5F.mjs → search-output-6PY6RN2R.mjs} +4 -4
  116. package/dist/cli/{search-output-GV7NNB4X.js → search-output-7HRSSRBS.js} +6 -6
  117. package/dist/cli/{secrets-MAQLBVC4.mjs → secrets-6S2ZWDIM.mjs} +6 -6
  118. package/dist/cli/{secrets-KJSFEW2F.js → secrets-IYD5VKY4.js} +15 -15
  119. package/dist/cli/sessions-7HPIVSQ4.js +22 -0
  120. package/dist/cli/{sessions-G5MWNJ75.mjs → sessions-GVEX5TUJ.mjs} +6 -6
  121. package/dist/cli/{settings-MR6UFOK5.mjs → settings-BN5MJZ3C.mjs} +13 -13
  122. package/dist/cli/{settings-VXGRPFXP.js → settings-CANK4HJQ.js} +86 -86
  123. package/dist/cli/{setup-ZOBXMONM.mjs → setup-JNMSCCU4.mjs} +10 -10
  124. package/dist/cli/{setup-C74BRK7N.js → setup-YSGKGLSJ.js} +50 -50
  125. package/dist/cli/{skills-4CG3MHOY.mjs → skills-QCQN2UM2.mjs} +8 -8
  126. package/dist/cli/skills-WDGSSKJZ.js +37 -0
  127. package/dist/cli/{tools-YXCXZ4ZD.mjs → tools-CDPOID7V.mjs} +17 -17
  128. package/dist/cli/tools-URNVXSTZ.js +57 -0
  129. package/dist/cli/{update-Z3C5W3I4.mjs → update-D3ZERUQ3.mjs} +10 -10
  130. package/dist/cli/update-Q6JW32IA.js +35 -0
  131. package/dist/cli/{views-XGP2GZ52.js → views-4NV2KQKA.js} +18 -18
  132. package/dist/cli/{views-45B2FZQT.mjs → views-RDZRWQBQ.mjs} +6 -6
  133. package/dist/cli/{workflow-KQRWSNBH.mjs → workflow-2CG3TVCG.mjs} +7 -7
  134. package/dist/cli/{workflow-DWO35XHZ.js → workflow-RABJCAZC.js} +17 -17
  135. package/dist/{client-Bd2meveV.d.mts → client-DhSvMO3A.d.mts} +1 -1
  136. package/dist/{client-core-CGj8V9mw.d.mts → client-core-CVG1Et-4.d.mts} +41 -2
  137. package/dist/{client-core-CsRRWCFy.d.ts → client-core-CdWH6Sii.d.ts} +41 -2
  138. package/dist/{client-CBCVhL8U.d.ts → client-oGNJMQFd.d.ts} +1 -1
  139. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
  140. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
  141. package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
  142. package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
  143. package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
  144. package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
  145. package/dist/index.d.mts +7 -7
  146. package/dist/index.d.ts +7 -7
  147. package/dist/index.js +9 -9
  148. package/dist/index.mjs +6 -6
  149. package/dist/install-integrity.json +118 -116
  150. package/dist/plays/bundle-play-file.d.mts +3 -3
  151. package/dist/plays/bundle-play-file.d.ts +3 -3
  152. package/dist/plays/bundle-play-file.mjs +52 -0
  153. package/dist/plays/play-description.d.mts +2 -2
  154. package/dist/plays/play-description.d.ts +2 -2
  155. package/dist/plays/run-request.d.mts +2 -2
  156. package/dist/plays/run-request.d.ts +2 -2
  157. package/dist/release.d.mts +1 -1
  158. package/dist/release.d.ts +1 -1
  159. package/dist/release.js +2 -2
  160. package/dist/release.mjs +1 -1
  161. package/dist/server.d.mts +4 -4
  162. package/dist/server.d.ts +4 -4
  163. package/dist/server.js +5 -5
  164. package/dist/server.mjs +3 -3
  165. package/package.json +1 -1
  166. package/dist/cli/auth-KE6RFHUE.js +0 -43
  167. package/dist/cli/describe-PYLZAVRI.js +0 -50
  168. package/dist/cli/git-T5JTVBYZ.js +0 -25
  169. package/dist/cli/search-5MD65V43.js +0 -33
  170. package/dist/cli/sessions-FDMO7PAA.js +0 -22
  171. package/dist/cli/skills-KRUL7QCT.js +0 -37
  172. package/dist/cli/tools-CGHOSCPS.js +0 -57
  173. package/dist/cli/update-S2TILEHZ.js +0 -35
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
4
- require('./chunk-SVVUC3B4.js');
3
+ var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
4
+ require('./chunk-FGN75ZN6.js');
5
5
  require('./chunk-E4CABWXL.js');
6
6
  require('./chunk-2KHUFWTK.js');
7
7
  require('./chunk-PMH4GLMD.js');
8
8
  require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
11
- var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
11
+ var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
12
12
 
13
13
 
14
- var _chunkEYWES7F5js = require('./chunk-EYWES7F5.js');
15
- require('./chunk-O7RSUW75.js');
14
+ var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
15
+ require('./chunk-D4MHCCIR.js');
16
16
  require('./chunk-T2N3B7IQ.js');
17
17
  require('./chunk-XNYIZMNQ.js');
18
18
  require('./chunk-SQWET4SL.js');
19
- require('./chunk-ZH5HCAN3.js');
19
+ require('./chunk-PI5R65OQ.js');
20
20
  require('./chunk-OG64RBAC.js');
21
21
  require('./chunk-COGTRVWW.js');
22
22
 
@@ -24,7 +24,7 @@ require('./chunk-COGTRVWW.js');
24
24
  var _promises = require('fs/promises');
25
25
  var VIEWS_FEATURE = "views";
26
26
  function print(command, json, data, lines) {
27
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
27
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
28
28
  { command, ...data, render: { sections: [{ title: command, lines }] } },
29
29
  { json: Boolean(json), text: `${lines.join("\n")}
30
30
  ` }
@@ -56,7 +56,7 @@ function viewLines(view) {
56
56
  ];
57
57
  }
58
58
  function registerViewsCommands(program) {
59
- const views = program.command("views", { hidden: !_chunkEYWES7F5js.cliFeatureEnabled.call(void 0, VIEWS_FEATURE) }).description(
59
+ const views = program.command("views", { hidden: !_chunkHWPOXCCKjs.cliFeatureEnabled.call(void 0, VIEWS_FEATURE) }).description(
60
60
  "Show what a Play returns at a fixed URL on views.deepline.com."
61
61
  ).addHelpText(
62
62
  "after",
@@ -69,7 +69,7 @@ Examples:
69
69
  );
70
70
  views.command("list").description("List this workspace's views.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
71
71
  async (options) => run(async () => {
72
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().listViews({
72
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listViews({
73
73
  cursor: options.cursor,
74
74
  limit: options.limit
75
75
  });
@@ -84,7 +84,7 @@ Examples:
84
84
  );
85
85
  views.command("get <id>").description("Show one view and what you may do with it.").option("--json", "Emit raw JSON response").action(
86
86
  async (id, options) => run(async () => {
87
- const view = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().getView(id);
87
+ const view = await new (0, _chunk243O3FH5js.DeeplineClient)().getView(id);
88
88
  print("views get", options.json, view, [
89
89
  ...viewLines(view),
90
90
  ` saved input ${JSON.stringify(view.input)}`
@@ -106,7 +106,7 @@ Examples:
106
106
  `
107
107
  ).action(
108
108
  async (options) => run(async () => {
109
- const view = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().createView({
109
+ const view = await new (0, _chunk243O3FH5js.DeeplineClient)().createView({
110
110
  name: options.name,
111
111
  play: options.play,
112
112
  ...options.input !== void 0 ? {
@@ -146,7 +146,7 @@ Examples:
146
146
  "Nothing to change. See: deepline views edit --help"
147
147
  );
148
148
  }
149
- const view = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().updateView(id, fields);
149
+ const view = await new (0, _chunk243O3FH5js.DeeplineClient)().updateView(id, fields);
150
150
  print(
151
151
  "views edit",
152
152
  options.json,
@@ -157,7 +157,7 @@ Examples:
157
157
  );
158
158
  views.command("runs <id>").description("List runs of the view's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
159
159
  async (id, options) => run(async () => {
160
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().listViewRuns(id, {
160
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listViewRuns(id, {
161
161
  limit: options.limit
162
162
  });
163
163
  print("views runs", options.json, result, [
@@ -176,7 +176,7 @@ Examples:
176
176
  ).option("--json", "Emit raw JSON response").action(
177
177
  async (id, options) => run(async () => {
178
178
  const input = options.input !== void 0 ? await readJsonOption(options.input, "--input") : void 0;
179
- const started = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().refreshView(id, input);
179
+ const started = await new (0, _chunk243O3FH5js.DeeplineClient)().refreshView(id, input);
180
180
  print("views refresh", options.json, started, [
181
181
  `Started run ${started.workflowId}.`,
182
182
  `Watch it: deepline runs get ${started.workflowId}`
@@ -190,7 +190,7 @@ Examples:
190
190
  if (access !== "workspace" && access !== "public") {
191
191
  throw new Error("Access is workspace or public.");
192
192
  }
193
- const view = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setViewAccess(
193
+ const view = await new (0, _chunk243O3FH5js.DeeplineClient)().setViewAccess(
194
194
  id,
195
195
  access
196
196
  );
@@ -204,7 +204,7 @@ Examples:
204
204
  );
205
205
  views.command("delete <id>").description("Delete a view. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
206
206
  async (id, options) => run(async () => {
207
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().deleteView(id);
207
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().deleteView(id);
208
208
  print("views delete", options.json, result, [
209
209
  `Deleted view ${id}.`
210
210
  ]);
@@ -215,7 +215,7 @@ Examples:
215
215
  );
216
216
  permissions.command("get", { isDefault: true }).description("Show the workspace's view rules and what you may do.").option("--json", "Emit raw JSON response").action(
217
217
  async (options) => run(async () => {
218
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().getViewPermissions();
218
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().getViewPermissions();
219
219
  print("views permissions", options.json, result, [
220
220
  ...Object.entries(result.rules).map(
221
221
  ([verb, level]) => `${verb}: ${level}`
@@ -253,7 +253,7 @@ Examples:
253
253
  "Pass at least one rule. See: deepline views permissions set --help"
254
254
  );
255
255
  }
256
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setViewPermissions(rules);
256
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setViewPermissions(rules);
257
257
  print(
258
258
  "views permissions set",
259
259
  options.json,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-XUX5KGCQ.mjs";
4
- import "./chunk-XZN3DBTP.mjs";
3
+ } from "./chunk-LVISZFYO.mjs";
4
+ import "./chunk-FZKPPB5P.mjs";
5
5
  import "./chunk-L2VKAASU.mjs";
6
6
  import "./chunk-FKD3KL5Q.mjs";
7
7
  import "./chunk-PSX3WHIH.mjs";
8
8
  import "./chunk-UBKA33KY.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-2UYERVXF.mjs";
11
+ } from "./chunk-JWWYLGUT.mjs";
12
12
  import {
13
13
  cliFeatureEnabled
14
- } from "./chunk-IETLUG4C.mjs";
15
- import "./chunk-MKUYZ7LR.mjs";
14
+ } from "./chunk-W5YJYU4G.mjs";
15
+ import "./chunk-RKY4LBX3.mjs";
16
16
  import "./chunk-QNHHZ63P.mjs";
17
17
  import "./chunk-DLIRSHV6.mjs";
18
18
  import "./chunk-ZPGGW27Q.mjs";
19
- import "./chunk-YZK5RSUL.mjs";
19
+ import "./chunk-7CWSAEYS.mjs";
20
20
  import "./chunk-WZYKRD7T.mjs";
21
21
  import "./chunk-KRD6H754.mjs";
22
22
 
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-H7HIDGZ7.mjs";
7
7
  import {
8
8
  DeeplineClient
9
- } from "./chunk-XUX5KGCQ.mjs";
10
- import "./chunk-XZN3DBTP.mjs";
9
+ } from "./chunk-LVISZFYO.mjs";
10
+ import "./chunk-FZKPPB5P.mjs";
11
11
  import "./chunk-L2VKAASU.mjs";
12
12
  import "./chunk-FKD3KL5Q.mjs";
13
13
  import "./chunk-PSX3WHIH.mjs";
@@ -17,13 +17,13 @@ import {
17
17
  printJson,
18
18
  shouldEmitJson,
19
19
  sleep
20
- } from "./chunk-2UYERVXF.mjs";
21
- import "./chunk-IETLUG4C.mjs";
22
- import "./chunk-MKUYZ7LR.mjs";
20
+ } from "./chunk-JWWYLGUT.mjs";
21
+ import "./chunk-W5YJYU4G.mjs";
22
+ import "./chunk-RKY4LBX3.mjs";
23
23
  import "./chunk-QNHHZ63P.mjs";
24
24
  import "./chunk-DLIRSHV6.mjs";
25
25
  import "./chunk-ZPGGW27Q.mjs";
26
- import "./chunk-YZK5RSUL.mjs";
26
+ import "./chunk-7CWSAEYS.mjs";
27
27
  import "./chunk-WZYKRD7T.mjs";
28
28
  import "./chunk-KRD6H754.mjs";
29
29
 
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
1702
1702
  await writeFile(file, compiled.sourceCode, "utf8");
1703
1703
  let published = false;
1704
1704
  if (publish) {
1705
- const { handlePlayPublish } = await import("./play-3T4X3ZKH.mjs");
1705
+ const { handlePlayPublish } = await import("./play-7GQ56C2D.mjs");
1706
1706
  const code = await handlePlayPublish([file]);
1707
1707
  if (code !== 0) {
1708
1708
  return {
@@ -6,8 +6,8 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
6
6
  var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
7
7
 
8
8
 
9
- var _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
10
- require('./chunk-SVVUC3B4.js');
9
+ var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
10
+ require('./chunk-FGN75ZN6.js');
11
11
  require('./chunk-E4CABWXL.js');
12
12
  require('./chunk-2KHUFWTK.js');
13
13
  require('./chunk-PMH4GLMD.js');
@@ -17,13 +17,13 @@ require('./chunk-XDVT3GOM.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
21
- require('./chunk-EYWES7F5.js');
22
- require('./chunk-O7RSUW75.js');
20
+ var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
21
+ require('./chunk-HWPOXCCK.js');
22
+ require('./chunk-D4MHCCIR.js');
23
23
  require('./chunk-T2N3B7IQ.js');
24
24
  require('./chunk-XNYIZMNQ.js');
25
25
  require('./chunk-SQWET4SL.js');
26
- require('./chunk-ZH5HCAN3.js');
26
+ require('./chunk-PI5R65OQ.js');
27
27
  require('./chunk-OG64RBAC.js');
28
28
  require('./chunk-COGTRVWW.js');
29
29
 
@@ -1629,18 +1629,18 @@ function noticeToStderr(command) {
1629
1629
  );
1630
1630
  }
1631
1631
  function emitPassThrough(command, payload, options) {
1632
- const json = _chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json);
1632
+ const json = _chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json);
1633
1633
  const deprecation = migrationDeprecation(command);
1634
1634
  if (json) {
1635
1635
  const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
1636
- _chunkQZWURUBPjs.printJson.call(void 0, enriched);
1636
+ _chunkKWGXHPHLjs.printJson.call(void 0, enriched);
1637
1637
  return;
1638
1638
  }
1639
- _chunkQZWURUBPjs.printJson.call(void 0, payload);
1639
+ _chunkKWGXHPHLjs.printJson.call(void 0, payload);
1640
1640
  noticeToStderr(command);
1641
1641
  }
1642
1642
  function client() {
1643
- return new (0, _chunkHOTJSXLYjs.DeeplineClient)();
1643
+ return new (0, _chunk243O3FH5js.DeeplineClient)();
1644
1644
  }
1645
1645
  function clientWithTimeout(timeoutSeconds) {
1646
1646
  if (!timeoutSeconds) return client();
@@ -1648,7 +1648,7 @@ function clientWithTimeout(timeoutSeconds) {
1648
1648
  if (!Number.isFinite(seconds) || seconds <= 0) {
1649
1649
  throw new Error("--timeout must be a positive number of seconds.");
1650
1650
  }
1651
- return new (0, _chunkHOTJSXLYjs.DeeplineClient)({ timeout: seconds * 1e3 });
1651
+ return new (0, _chunk243O3FH5js.DeeplineClient)({ timeout: seconds * 1e3 });
1652
1652
  }
1653
1653
  function readStatus(payload) {
1654
1654
  if (!payload || typeof payload !== "object") return null;
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
1702
1702
  await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
1703
1703
  let published = false;
1704
1704
  if (publish) {
1705
- const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2UHKONON.js")));
1705
+ const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-EHSOSSHT.js")));
1706
1706
  const code = await handlePlayPublish([file]);
1707
1707
  if (code !== 0) {
1708
1708
  return {
@@ -1777,10 +1777,10 @@ async function handleTransform(id, options) {
1777
1777
  for (const workflowId of ids) {
1778
1778
  outcomes.push(await transformOne(api, workflowId, outDir, publish));
1779
1779
  }
1780
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
1780
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
1781
1781
  { outcomes, deprecation: null },
1782
1782
  {
1783
- json: _chunkQZWURUBPjs.shouldEmitJson.call(void 0, options.json),
1783
+ json: _chunkKWGXHPHLjs.shouldEmitJson.call(void 0, options.json),
1784
1784
  text: renderTransformReport(outcomes)
1785
1785
  }
1786
1786
  );
@@ -1801,11 +1801,11 @@ async function handleDelete(id, options) {
1801
1801
  }
1802
1802
  async function handleDisable(id, options) {
1803
1803
  const result = await client().disableWorkflow(id);
1804
- _chunkQZWURUBPjs.printJson.call(void 0, result);
1804
+ _chunkKWGXHPHLjs.printJson.call(void 0, result);
1805
1805
  }
1806
1806
  async function handleEnable(id, options) {
1807
1807
  const result = await client().enableWorkflow(id);
1808
- _chunkQZWURUBPjs.printJson.call(void 0, result);
1808
+ _chunkKWGXHPHLjs.printJson.call(void 0, result);
1809
1809
  }
1810
1810
  async function handleApply(options) {
1811
1811
  const body = await readJsonOption(options.payload, options.file);
@@ -1870,7 +1870,7 @@ async function handleTail(id, runId, options) {
1870
1870
  if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
1871
1871
  return;
1872
1872
  }
1873
- await _chunkQZWURUBPjs.sleep.call(void 0, intervalMs);
1873
+ await _chunkKWGXHPHLjs.sleep.call(void 0, intervalMs);
1874
1874
  }
1875
1875
  }
1876
1876
  function registerWorkflowCommands(program) {
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-CGj8V9mw.mjs';
2
+ import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-CVG1Et-4.mjs';
3
3
 
4
4
  /** Deepline SDK client with environment and local credential discovery. */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-DsxsQP-T.mjs';
2
+ import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-D2ZlBGxj.mjs';
3
3
  import { z } from 'zod';
4
4
  import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
5
5
 
@@ -8166,6 +8166,14 @@ declare class DeeplineClient {
8166
8166
  private requestPlaysPage;
8167
8167
  /** Read definition-level settings, independently of code revisions. */
8168
8168
  getPlaySettings(playName: string): Promise<PlaySettingsResult>;
8169
+ /** Register an editing attempt so the author's open working canvas can show a rejected save. */
8170
+ beginWorkingPlaySave(playName: string): Promise<{
8171
+ attemptId: string;
8172
+ }>;
8173
+ /** Report a save outcome for that specific editing attempt. */
8174
+ finishWorkingPlaySave(playName: string, attemptId: string, action: 'invalid_source' | 'saved'): Promise<{
8175
+ accepted: boolean;
8176
+ }>;
8169
8177
  /** Retry-safe field patch; omitted fields retain their current value. */
8170
8178
  updatePlaySettings(playName: string, patch: PlaySettingsPatch): Promise<PlaySettingsResult>;
8171
8179
  /** Read a Play's cron and webhook triggers and their scheduler state. */
@@ -8201,16 +8209,47 @@ declare class DeeplineClient {
8201
8209
  source: string;
8202
8210
  };
8203
8211
  }>;
8212
+ /** List the internal pilot's workspace connections. */
8213
+ listWorkspaceIntegrationConnections(): Promise<{
8214
+ connections: Array<{
8215
+ id: string;
8216
+ provider: string;
8217
+ owner: 'workspace';
8218
+ label: string;
8219
+ status: string;
8220
+ authorizationVersion: number;
8221
+ }>;
8222
+ }>;
8223
+ /** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
8224
+ manageWorkspaceIntegrationConnection(input: {
8225
+ action: 'connect' | 'reconnect' | 'replace' | 'disconnect';
8226
+ provider: 'hubspot' | 'google_calendar_availability';
8227
+ connectionId?: string;
8228
+ authorizationVersion?: number;
8229
+ }): Promise<{
8230
+ url?: string;
8231
+ }>;
8204
8232
  /** Get the dashboard link where a workspace owner or admin can connect a provider. */
8205
8233
  getIntegrationConnectLink(provider: string): Promise<{
8206
8234
  provider: string;
8207
8235
  connect_url: string;
8208
8236
  }>;
8209
8237
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
8210
- setIntegrationCredentials(provider: string, credentials: Record<string, string>): Promise<{
8238
+ setIntegrationCredentials(provider: string, credentials: Record<string, string>, options?: {
8239
+ expectedConnectionId?: string;
8240
+ }): Promise<{
8211
8241
  ok: boolean;
8212
8242
  credential_saved?: boolean;
8213
8243
  }>;
8244
+ /** Calendar discovery compatibility method. The managed pilot requires calendar IDs in tool and Play inputs. */
8245
+ listAvailabilityCalendars(cursor?: string): Promise<{
8246
+ connection_id: string;
8247
+ calendars: Array<{
8248
+ id: string;
8249
+ name: string;
8250
+ }>;
8251
+ cursor: string | null;
8252
+ }>;
8214
8253
  /** Start provider OAuth and return the URL to open in a browser. */
8215
8254
  startIntegrationOAuth(provider: string, options?: {
8216
8255
  preset?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-DsxsQP-T.js';
2
+ import { v as PlayCompilerManifest, ao as ToolResultBilling, D as DeeplineError, u as PlaySandboxRuntimeDeclaration, B as BillingEntitlements, I as IncludedCompute, aq as BillingBenefitValues } from './compiler-manifest-D2ZlBGxj.js';
3
3
  import { z } from 'zod';
4
4
  import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
5
5
 
@@ -8166,6 +8166,14 @@ declare class DeeplineClient {
8166
8166
  private requestPlaysPage;
8167
8167
  /** Read definition-level settings, independently of code revisions. */
8168
8168
  getPlaySettings(playName: string): Promise<PlaySettingsResult>;
8169
+ /** Register an editing attempt so the author's open working canvas can show a rejected save. */
8170
+ beginWorkingPlaySave(playName: string): Promise<{
8171
+ attemptId: string;
8172
+ }>;
8173
+ /** Report a save outcome for that specific editing attempt. */
8174
+ finishWorkingPlaySave(playName: string, attemptId: string, action: 'invalid_source' | 'saved'): Promise<{
8175
+ accepted: boolean;
8176
+ }>;
8169
8177
  /** Retry-safe field patch; omitted fields retain their current value. */
8170
8178
  updatePlaySettings(playName: string, patch: PlaySettingsPatch): Promise<PlaySettingsResult>;
8171
8179
  /** Read a Play's cron and webhook triggers and their scheduler state. */
@@ -8201,16 +8209,47 @@ declare class DeeplineClient {
8201
8209
  source: string;
8202
8210
  };
8203
8211
  }>;
8212
+ /** List the internal pilot's workspace connections. */
8213
+ listWorkspaceIntegrationConnections(): Promise<{
8214
+ connections: Array<{
8215
+ id: string;
8216
+ provider: string;
8217
+ owner: 'workspace';
8218
+ label: string;
8219
+ status: string;
8220
+ authorizationVersion: number;
8221
+ }>;
8222
+ }>;
8223
+ /** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
8224
+ manageWorkspaceIntegrationConnection(input: {
8225
+ action: 'connect' | 'reconnect' | 'replace' | 'disconnect';
8226
+ provider: 'hubspot' | 'google_calendar_availability';
8227
+ connectionId?: string;
8228
+ authorizationVersion?: number;
8229
+ }): Promise<{
8230
+ url?: string;
8231
+ }>;
8204
8232
  /** Get the dashboard link where a workspace owner or admin can connect a provider. */
8205
8233
  getIntegrationConnectLink(provider: string): Promise<{
8206
8234
  provider: string;
8207
8235
  connect_url: string;
8208
8236
  }>;
8209
8237
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
8210
- setIntegrationCredentials(provider: string, credentials: Record<string, string>): Promise<{
8238
+ setIntegrationCredentials(provider: string, credentials: Record<string, string>, options?: {
8239
+ expectedConnectionId?: string;
8240
+ }): Promise<{
8211
8241
  ok: boolean;
8212
8242
  credential_saved?: boolean;
8213
8243
  }>;
8244
+ /** Calendar discovery compatibility method. The managed pilot requires calendar IDs in tool and Play inputs. */
8245
+ listAvailabilityCalendars(cursor?: string): Promise<{
8246
+ connection_id: string;
8247
+ calendars: Array<{
8248
+ id: string;
8249
+ name: string;
8250
+ }>;
8251
+ cursor: string | null;
8252
+ }>;
8214
8253
  /** Start provider OAuth and return the URL to open in a browser. */
8215
8254
  startIntegrationOAuth(provider: string, options?: {
8216
8255
  preset?: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-CsRRWCFy.js';
2
+ import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-CdWH6Sii.js';
3
3
 
4
4
  /** Deepline SDK client with environment and local credential discovery. */
5
5
 
@@ -1535,6 +1535,12 @@ type PlayAuthoringBindings<TInput = Record<string, unknown>> = {
1535
1535
  sqlListeners?: PlaySqlListenerDeclaration[];
1536
1536
  secrets?: readonly string[];
1537
1537
  };
1538
+ /**
1539
+ * One durable tool call's retry policy, like a durable-execution activity
1540
+ * retry policy. Omitted fields take the live Durable retry policy for the
1541
+ * failure's class. Between attempts the run waits on a durable timer.
1542
+ */
1543
+ type PlayToolCallRetryPolicy = Static<(typeof PLAY_AUTHORING_FIELD_REGISTRY)['ctx.tools.execute.retry']['schema']>;
1538
1544
  /** The one public type for durable managed-tool calls. */
1539
1545
  type PlayToolExecutionRequest = {
1540
1546
  id: string;
@@ -1545,6 +1551,14 @@ type PlayToolExecutionRequest = {
1545
1551
  staleAfterSeconds?: DurableCallStaleAfterSeconds;
1546
1552
  timeoutMs?: PlayRuntimeTimeoutMs;
1547
1553
  receiptWaitMs?: PlayReceiptWaitMs;
1554
+ /**
1555
+ * The call's retry policy. The Play sees the call's error only after these
1556
+ * retries are spent, or at once for a `nonRetryable` class. Set a small
1557
+ * `maximumAttempts` (for example 3) on a call whose failure the Play
1558
+ * handles itself, such as a waterfall leg that falls back to the next
1559
+ * provider, so it never waits on a durable retry.
1560
+ */
1561
+ retry?: PlayToolCallRetryPolicy;
1548
1562
  };
1549
1563
  /** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
1550
1564
  type PlaySqlQuery = {
@@ -2664,6 +2678,36 @@ declare const PLAY_AUTHORING_FIELD_REGISTRY: {
2664
2678
  readonly description: string;
2665
2679
  readonly errorMessage: "staleAfterSeconds must be null, 0 (always execute), or a positive whole number of seconds.";
2666
2680
  };
2681
+ readonly 'ctx.tools.execute.retry': {
2682
+ readonly schema: _sinclair_typebox.TObject<{
2683
+ maximumAttempts: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2684
+ initialIntervalMs: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2685
+ backoffCoefficient: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2686
+ maximumIntervalMs: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2687
+ nonRetryable: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"never_sent" | "provider_unavailable" | "provider_ambiguous_500" | "timeout_after_send" | "rate_limit_429" | "billing_insufficient_credits" | "billing_monthly_cap">[]>>>;
2688
+ }>;
2689
+ readonly fixtures: {
2690
+ readonly valid: {
2691
+ readonly maximumAttempts: 1;
2692
+ };
2693
+ readonly invalid: {
2694
+ readonly maximumAttempts: 0;
2695
+ };
2696
+ readonly absent: undefined;
2697
+ readonly unresolved: {
2698
+ readonly expression: "retryPolicy";
2699
+ };
2700
+ readonly edition1: {
2701
+ readonly maximumAttempts: 1;
2702
+ };
2703
+ };
2704
+ readonly referenceType: "PlayToolCallRetryPolicy";
2705
+ readonly required: false;
2706
+ readonly resolution: "runtime-allowed";
2707
+ readonly issueCode: "play_authoring_durable_policy_invalid";
2708
+ readonly description: "Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure's class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65); initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h; the coefficient 1 to 10); nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry. Setting retry (an empty object takes the class defaults) is what makes a call retry durably for now; a call without it keeps its earlier behaviour.";
2709
+ readonly errorMessage: "retry must be an object with maximumAttempts (1-65), initialIntervalMs and maximumIntervalMs (1000-86400000 ms), backoffCoefficient (1-10) and nonRetryable (failure classes), and nothing else.";
2710
+ };
2667
2711
  readonly 'ctx.tools.execute.id': {
2668
2712
  readonly schema: _sinclair_typebox.TString;
2669
2713
  readonly fixtures: {
@@ -1535,6 +1535,12 @@ type PlayAuthoringBindings<TInput = Record<string, unknown>> = {
1535
1535
  sqlListeners?: PlaySqlListenerDeclaration[];
1536
1536
  secrets?: readonly string[];
1537
1537
  };
1538
+ /**
1539
+ * One durable tool call's retry policy, like a durable-execution activity
1540
+ * retry policy. Omitted fields take the live Durable retry policy for the
1541
+ * failure's class. Between attempts the run waits on a durable timer.
1542
+ */
1543
+ type PlayToolCallRetryPolicy = Static<(typeof PLAY_AUTHORING_FIELD_REGISTRY)['ctx.tools.execute.retry']['schema']>;
1538
1544
  /** The one public type for durable managed-tool calls. */
1539
1545
  type PlayToolExecutionRequest = {
1540
1546
  id: string;
@@ -1545,6 +1551,14 @@ type PlayToolExecutionRequest = {
1545
1551
  staleAfterSeconds?: DurableCallStaleAfterSeconds;
1546
1552
  timeoutMs?: PlayRuntimeTimeoutMs;
1547
1553
  receiptWaitMs?: PlayReceiptWaitMs;
1554
+ /**
1555
+ * The call's retry policy. The Play sees the call's error only after these
1556
+ * retries are spent, or at once for a `nonRetryable` class. Set a small
1557
+ * `maximumAttempts` (for example 3) on a call whose failure the Play
1558
+ * handles itself, such as a waterfall leg that falls back to the next
1559
+ * provider, so it never waits on a durable retry.
1560
+ */
1561
+ retry?: PlayToolCallRetryPolicy;
1548
1562
  };
1549
1563
  /** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
1550
1564
  type PlaySqlQuery = {
@@ -2664,6 +2678,36 @@ declare const PLAY_AUTHORING_FIELD_REGISTRY: {
2664
2678
  readonly description: string;
2665
2679
  readonly errorMessage: "staleAfterSeconds must be null, 0 (always execute), or a positive whole number of seconds.";
2666
2680
  };
2681
+ readonly 'ctx.tools.execute.retry': {
2682
+ readonly schema: _sinclair_typebox.TObject<{
2683
+ maximumAttempts: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2684
+ initialIntervalMs: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2685
+ backoffCoefficient: _sinclair_typebox.TOptional<_sinclair_typebox.TNumber>;
2686
+ maximumIntervalMs: _sinclair_typebox.TOptional<_sinclair_typebox.TInteger>;
2687
+ nonRetryable: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TUnion<_sinclair_typebox.TLiteral<"never_sent" | "provider_unavailable" | "provider_ambiguous_500" | "timeout_after_send" | "rate_limit_429" | "billing_insufficient_credits" | "billing_monthly_cap">[]>>>;
2688
+ }>;
2689
+ readonly fixtures: {
2690
+ readonly valid: {
2691
+ readonly maximumAttempts: 1;
2692
+ };
2693
+ readonly invalid: {
2694
+ readonly maximumAttempts: 0;
2695
+ };
2696
+ readonly absent: undefined;
2697
+ readonly unresolved: {
2698
+ readonly expression: "retryPolicy";
2699
+ };
2700
+ readonly edition1: {
2701
+ readonly maximumAttempts: 1;
2702
+ };
2703
+ };
2704
+ readonly referenceType: "PlayToolCallRetryPolicy";
2705
+ readonly required: false;
2706
+ readonly resolution: "runtime-allowed";
2707
+ readonly issueCode: "play_authoring_durable_policy_invalid";
2708
+ readonly description: "Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure's class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65); initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h; the coefficient 1 to 10); nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry. Setting retry (an empty object takes the class defaults) is what makes a call retry durably for now; a call without it keeps its earlier behaviour.";
2709
+ readonly errorMessage: "retry must be an object with maximumAttempts (1-65), initialIntervalMs and maximumIntervalMs (1000-86400000 ms), backoffCoefficient (1-10) and nonRetryable (failure classes), and nothing else.";
2710
+ };
2667
2711
  readonly 'ctx.tools.execute.id': {
2668
2712
  readonly schema: _sinclair_typebox.TString;
2669
2713
  readonly fixtures: {
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineError, T as ToolExecutionError, e as ToolExecutionErrorOptions } from './compiler-manifest-DsxsQP-T.mjs';
2
+ import { D as DeeplineError, T as ToolExecutionError, e as ToolExecutionErrorOptions } from './compiler-manifest-D2ZlBGxj.mjs';
3
3
 
4
4
  /** SQL may have committed, but its response was not confirmed. */
5
5
  declare class CustomerDbQueryOutcomeUnknownError extends DeeplineError {
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { D as DeeplineError, T as ToolExecutionError, e as ToolExecutionErrorOptions } from './compiler-manifest-DsxsQP-T.js';
2
+ import { D as DeeplineError, T as ToolExecutionError, e as ToolExecutionErrorOptions } from './compiler-manifest-D2ZlBGxj.js';
3
3
 
4
4
  /** SQL may have committed, but its response was not confirmed. */
5
5
  declare class CustomerDbQueryOutcomeUnknownError extends DeeplineError {
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { q as PlayBundleArtifact, u as PlaySandboxRuntimeDeclaration, v as PlayCompilerManifest, w as PlayArtifactKind, p as PlayArtifactCompatibility } from './compiler-manifest-DsxsQP-T.mjs';
2
+ import { q as PlayBundleArtifact, u as PlaySandboxRuntimeDeclaration, v as PlayCompilerManifest, w as PlayArtifactKind, p as PlayArtifactCompatibility } from './compiler-manifest-D2ZlBGxj.mjs';
3
3
 
4
4
  type ImportedPlayDependency = {
5
5
  filePath: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./text-imports.d.ts" />
2
- import { q as PlayBundleArtifact, u as PlaySandboxRuntimeDeclaration, v as PlayCompilerManifest, w as PlayArtifactKind, p as PlayArtifactCompatibility } from './compiler-manifest-DsxsQP-T.js';
2
+ import { q as PlayBundleArtifact, u as PlaySandboxRuntimeDeclaration, v as PlayCompilerManifest, w as PlayArtifactKind, p as PlayArtifactCompatibility } from './compiler-manifest-D2ZlBGxj.js';
3
3
 
4
4
  type ImportedPlayDependency = {
5
5
  filePath: string;