deepline 0.3.550 → 0.3.552

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 (192) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
  5. package/dist/bundling-sources/sdk/src/types.ts +22 -0
  6. package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +42 -0
  7. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  8. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
  9. package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +31 -0
  10. package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
  11. package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +163 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +2 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
  18. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
  19. package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +187 -16
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +102 -29
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +854 -3
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -1
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +6 -2
  25. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
  26. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +43 -0
  27. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
  28. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +38 -5
  29. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
  30. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +16 -0
  31. package/dist/cli/{auth-UJCAHGZG.mjs → auth-KVSBJZOX.mjs} +5 -5
  32. package/dist/cli/auth-MMNVWATX.js +43 -0
  33. package/dist/cli/{billing-RYWMI7JJ.mjs → billing-54RHFEBI.mjs} +20 -13
  34. package/dist/cli/{billing-VO2O5O5O.js → billing-FQREA7UA.js} +109 -102
  35. package/dist/cli/chunk-2RIKOPIM.mjs +9 -0
  36. package/dist/cli/{chunk-XYIECA7M.js → chunk-2WFPHBR4.js} +30 -8
  37. package/dist/cli/{chunk-SBNNK73L.js → chunk-3FD5EQ62.js} +6 -6
  38. package/dist/cli/{chunk-JLFOQRWM.js → chunk-45PVGZST.js} +270 -270
  39. package/dist/cli/{chunk-YSYOQYZE.js → chunk-4MK42735.js} +48 -44
  40. package/dist/cli/{chunk-2IW5GKB4.js → chunk-4NQF6KJ3.js} +13 -13
  41. package/dist/cli/{chunk-72NXIFOT.mjs → chunk-4TALT2M3.mjs} +1 -1
  42. package/dist/cli/{chunk-ADWMIZCB.js → chunk-4UUR4TCH.js} +22 -13
  43. package/dist/cli/{chunk-EMPXPEIQ.mjs → chunk-57VZVF5D.mjs} +3 -3
  44. package/dist/cli/{chunk-5J3TRWTB.js → chunk-634ZDA3F.js} +1 -1
  45. package/dist/cli/{chunk-FMXLQHM2.mjs → chunk-6O5HOODW.mjs} +13 -13
  46. package/dist/cli/{chunk-HCFH2V27.mjs → chunk-6PRW5UBA.mjs} +3 -2
  47. package/dist/cli/{chunk-N2Y2IGNB.mjs → chunk-6RZOWL2V.mjs} +1 -1
  48. package/dist/cli/{chunk-JKLDCFY5.js → chunk-6YCA5NKJ.js} +11 -11
  49. package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
  50. package/dist/cli/{chunk-DGUTBLXF.js → chunk-77AAAGVB.js} +3 -2
  51. package/dist/cli/{chunk-OKNOQRQ3.js → chunk-7IKQKKNX.js} +3 -3
  52. package/dist/cli/{chunk-JYUIIDZO.js → chunk-ADRC5I3R.js} +23 -22
  53. package/dist/cli/{chunk-IZCPOX7X.mjs → chunk-AQWQ2BFX.mjs} +1 -1
  54. package/dist/cli/{chunk-7BWMCVYU.mjs → chunk-AWJPDPMA.mjs} +1 -1
  55. package/dist/cli/{chunk-S6XOKGBF.mjs → chunk-AZQ264ID.mjs} +1 -1
  56. package/dist/cli/{chunk-EU23QOJ6.js → chunk-BAIST2BR.js} +26 -26
  57. package/dist/cli/{chunk-6P7TGCHQ.mjs → chunk-BGBJV26E.mjs} +10 -3
  58. package/dist/cli/{chunk-COHCKZQK.mjs → chunk-DJ2JDK4O.mjs} +2 -1
  59. package/dist/cli/{chunk-E4S7OE7B.mjs → chunk-EOPEYCY7.mjs} +3 -3
  60. package/dist/cli/{chunk-LUULRAQB.mjs → chunk-EUPVF4SU.mjs} +10 -7
  61. package/dist/cli/{chunk-TB3WT76F.js → chunk-F2LH7TGF.js} +23 -20
  62. package/dist/cli/{chunk-UL7HWZO7.mjs → chunk-FTJLJCE5.mjs} +2 -2
  63. package/dist/cli/{chunk-3WG2GURT.js → chunk-G4O75EXF.js} +9 -9
  64. package/dist/cli/{chunk-7AOFSZJM.mjs → chunk-GGGAEVCX.mjs} +23 -1
  65. package/dist/cli/{chunk-R5CYKRA2.js → chunk-GKYAYLRI.js} +12 -12
  66. package/dist/cli/{chunk-UV4RU2TE.js → chunk-H4ALLC2X.js} +2 -0
  67. package/dist/cli/{chunk-LWHWMU4V.js → chunk-HO3XK3R7.js} +7 -7
  68. package/dist/cli/{chunk-E2QVWDDW.mjs → chunk-HYC4MKGK.mjs} +3 -3
  69. package/dist/cli/{chunk-KSUTNW3X.js → chunk-IDVVIXPJ.js} +42 -41
  70. package/dist/cli/{chunk-BJO7ZXAK.js → chunk-IHRKLXZN.js} +5 -5
  71. package/dist/cli/{chunk-ZQZOYGDC.mjs → chunk-IYSTRCLX.mjs} +5 -4
  72. package/dist/cli/{chunk-SMLWC7PM.js → chunk-JWUAX6OP.js} +10 -10
  73. package/dist/cli/{chunk-RKF263LR.js → chunk-KWSH5T7K.js} +25 -18
  74. package/dist/cli/{chunk-I62PCYU6.js → chunk-MF2GHZDO.js} +2 -2
  75. package/dist/cli/{chunk-XKE2PGZ2.js → chunk-PFO3ISXA.js} +26 -15
  76. package/dist/cli/{chunk-MXEYNRTZ.mjs → chunk-PTVD2GVQ.mjs} +6 -5
  77. package/dist/cli/{chunk-QD2KT7II.mjs → chunk-QAORXEY3.mjs} +2 -2
  78. package/dist/cli/{chunk-2AKS64KJ.mjs → chunk-QILKGXYF.mjs} +2 -2
  79. package/dist/cli/{chunk-DJWM5OOY.mjs → chunk-QPKH23EC.mjs} +4 -4
  80. package/dist/cli/{chunk-MAE3AKDR.mjs → chunk-QX7LFGJR.mjs} +18 -9
  81. package/dist/cli/{chunk-CIBQVA6V.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
  82. package/dist/cli/{chunk-MJDQZYKO.js → chunk-RBEUVDZF.js} +10 -6
  83. package/dist/cli/{chunk-RS6ZSKX6.js → chunk-RQZQVFCJ.js} +2 -2
  84. package/dist/cli/{chunk-QNWNR6DG.js → chunk-S46HWQKO.js} +53 -53
  85. package/dist/cli/{chunk-4NQWUUOH.mjs → chunk-S5S355UY.mjs} +2 -2
  86. package/dist/cli/{chunk-NM3AYEDI.js → chunk-SHLFOPD6.js} +5 -5
  87. package/dist/cli/{chunk-K7JZV4QW.mjs → chunk-U7QRMBIY.mjs} +2 -2
  88. package/dist/cli/{chunk-ECWOIXAV.js → chunk-UPMRIVZB.js} +14 -12
  89. package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
  90. package/dist/cli/{chunk-RINUMR6C.js → chunk-VQALXEXO.js} +20 -19
  91. package/dist/cli/{chunk-F2RXBNT5.mjs → chunk-WE5HES3H.mjs} +7 -5
  92. package/dist/cli/{chunk-GWNYLIF7.mjs → chunk-WEHCBH5R.mjs} +4 -2
  93. package/dist/cli/{chunk-SZNX3XU3.js → chunk-WLN3SUIA.js} +3 -3
  94. package/dist/cli/{chunk-3W44AJOE.js → chunk-XVB7V4N7.js} +18 -16
  95. package/dist/cli/{chunk-HEVUFICQ.mjs → chunk-YJHE3O5M.mjs} +9 -5
  96. package/dist/cli/{chunk-GVW5V562.mjs → chunk-YLTMXJFC.mjs} +7 -3
  97. package/dist/cli/{chunk-TL3WIXDH.mjs → chunk-Z5TSLLOW.mjs} +19 -8
  98. package/dist/cli/{chunk-KLQILE2I.mjs → chunk-ZIAXDBXX.mjs} +2 -2
  99. package/dist/cli/command-docs.js +4 -4
  100. package/dist/cli/command-docs.mjs +3 -3
  101. package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
  102. package/dist/cli/{concurrent-runs-help-766HVJR3.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +7 -7
  103. package/dist/cli/{csv-VU52KZOX.mjs → csv-2PTVDNO6.mjs} +10 -5
  104. package/dist/cli/{csv-4DZKGYCU.js → csv-F5VAGX4K.js} +19 -14
  105. package/dist/cli/{db-UBGW373S.mjs → db-IEDXAUF7.mjs} +6 -6
  106. package/dist/cli/{db-KPIH4HPW.js → db-Z3OIUFMM.js} +27 -27
  107. package/dist/cli/{describe-NGITP6RA.mjs → describe-QDANCTS3.mjs} +21 -21
  108. package/dist/cli/describe-VUTT5ZKU.js +50 -0
  109. package/dist/cli/describe-core.d.mts +4 -2
  110. package/dist/cli/describe-core.d.ts +4 -2
  111. package/dist/cli/describe-core.js +4 -4
  112. package/dist/cli/describe-core.mjs +3 -3
  113. package/dist/cli/{executions-G3X25U3V.js → executions-H6H5655J.js} +8 -8
  114. package/dist/cli/{executions-CO5UF3CV.mjs → executions-R3LP74QN.mjs} +6 -6
  115. package/dist/cli/{feedback-ZYF65WPH.js → feedback-VFOUR66B.js} +14 -14
  116. package/dist/cli/{feedback-M2L5DVN2.mjs → feedback-WL3MRVT5.mjs} +6 -6
  117. package/dist/cli/git-ETB3GH3K.js +25 -0
  118. package/dist/cli/{git-AYJD5CLS.mjs → git-YX2J4GCI.mjs} +5 -5
  119. package/dist/cli/index.js +148 -148
  120. package/dist/cli/index.mjs +47 -47
  121. package/dist/cli/{integrations-LKEGGTZO.mjs → integrations-5ZK5KLVP.mjs} +7 -7
  122. package/dist/cli/{integrations-GSXXJ4CF.js → integrations-E2JZYKHS.js} +15 -15
  123. package/dist/cli/{legacy-noops-MZDLLEKN.js → legacy-noops-3VW4IJTH.js} +9 -9
  124. package/dist/cli/{legacy-noops-UF4GKMD4.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
  125. package/dist/cli/{mcp-RTNC6LP3.js → mcp-UQV2K4EW.js} +24 -24
  126. package/dist/cli/{mcp-NHQ6RMBP.mjs → mcp-V6MGCYAG.mjs} +4 -4
  127. package/dist/cli/{monitors-NC4ZR5DH.mjs → monitors-GGKS5W6M.mjs} +7 -7
  128. package/dist/cli/{monitors-WMWB6EKQ.js → monitors-R3BBDCRC.js} +100 -100
  129. package/dist/cli/{org-33Q7CXJB.js → org-GRYVMNSW.js} +88 -88
  130. package/dist/cli/{org-ZXUSYREQ.mjs → org-Z37NGJV4.mjs} +6 -6
  131. package/dist/cli/{play-N24XV6TI.js → play-2MVO27VO.js} +332 -332
  132. package/dist/cli/{play-IPWFGNRE.mjs → play-MDWPR4XG.mjs} +19 -19
  133. package/dist/cli/{providers-AUI7MMQS.js → providers-2AACRUZH.js} +9 -9
  134. package/dist/cli/{providers-MSVE7UZS.mjs → providers-AKDYFZJZ.mjs} +6 -6
  135. package/dist/cli/{quickstart-PSC6VTRI.js → quickstart-H6IV3PV3.js} +6 -6
  136. package/dist/cli/{quickstart-OME5XMW5.mjs → quickstart-QDGRJFZY.mjs} +4 -4
  137. package/dist/cli/{run-UTIX7CJY.js → run-2634REDK.js} +47 -47
  138. package/dist/cli/{run-EYTT2DHO.mjs → run-RTSQNGRD.mjs} +26 -26
  139. package/dist/cli/{search-FVE7PM72.mjs → search-6AOJ4XPP.mjs} +7 -7
  140. package/dist/cli/search-VTW2YNBS.js +32 -0
  141. package/dist/cli/{search-output-TQMY6BDG.mjs → search-output-6ADMTOU5.mjs} +40 -10
  142. package/dist/cli/{search-output-O463JNLR.js → search-output-S5ODBL5E.js} +43 -13
  143. package/dist/cli/{secrets-TWZ2GO73.js → secrets-LHCIIHMT.js} +15 -15
  144. package/dist/cli/{secrets-KCJJAHQB.mjs → secrets-TFIFBFB3.mjs} +6 -6
  145. package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
  146. package/dist/cli/{sessions-ZCWAA7QL.mjs → sessions-WHBVUHVW.mjs} +6 -6
  147. package/dist/cli/{settings-SCR654U7.js → settings-CP4FVK2W.js} +85 -85
  148. package/dist/cli/{settings-4JFKCKII.mjs → settings-EBONWL5C.mjs} +12 -12
  149. package/dist/cli/{setup-Q2YOPGOI.mjs → setup-I5AZE3IU.mjs} +15 -10
  150. package/dist/cli/{setup-O6GH3UWT.js → setup-LFGHTNLQ.js} +55 -50
  151. package/dist/cli/skills-R7EBXREW.js +36 -0
  152. package/dist/cli/{skills-QHPZ6H2G.mjs → skills-W76AO5XE.mjs} +7 -7
  153. package/dist/cli/{tools-YO22H46E.mjs → tools-7IJHGF6W.mjs} +19 -19
  154. package/dist/cli/tools-V7U2BDXM.js +57 -0
  155. package/dist/cli/update-4COPZETK.js +34 -0
  156. package/dist/cli/{update-WHBC5IHE.mjs → update-GFOPZTHY.mjs} +9 -9
  157. package/dist/cli/{views-4CZJ5BLG.js → views-BPL2TQJ4.js} +21 -21
  158. package/dist/cli/{views-XNLXV2BT.mjs → views-D4NX4SBG.mjs} +6 -6
  159. package/dist/cli/{workflow-QUWP2CG2.mjs → workflow-YXP42FUI.mjs} +7 -7
  160. package/dist/cli/{workflow-C4VBARIE.js → workflow-ZYNAUCKC.js} +17 -17
  161. package/dist/{client-Ceo295L2.d.ts → client-Bf3IpUKN.d.ts} +1 -1
  162. package/dist/{client-BEJqhQAj.d.mts → client-CyXGrO4D.d.mts} +1 -1
  163. package/dist/{client-core-BPYuWfBC.d.ts → client-core-BWd0lX0Z.d.ts} +110 -4
  164. package/dist/{client-core-BqetRxx-.d.mts → client-core-BxsLnXlm.d.mts} +110 -4
  165. package/dist/index.d.mts +3 -3
  166. package/dist/index.d.ts +3 -3
  167. package/dist/index.js +9 -9
  168. package/dist/index.mjs +6 -6
  169. package/dist/install-integrity.json +127 -126
  170. package/dist/plays/play-description.d.mts +1 -1
  171. package/dist/plays/play-description.d.ts +1 -1
  172. package/dist/plays/run-request.d.mts +1 -1
  173. package/dist/plays/run-request.d.ts +1 -1
  174. package/dist/release.d.mts +1 -1
  175. package/dist/release.d.ts +1 -1
  176. package/dist/release.js +2 -2
  177. package/dist/release.mjs +1 -1
  178. package/dist/server.d.mts +2 -2
  179. package/dist/server.d.ts +2 -2
  180. package/dist/server.js +5 -5
  181. package/dist/server.mjs +3 -3
  182. package/package.json +1 -1
  183. package/dist/cli/auth-J4OW5RNJ.js +0 -43
  184. package/dist/cli/chunk-NIPLY25A.mjs +0 -7
  185. package/dist/cli/concurrent-runs-help-3XZIHVRP.js +0 -21
  186. package/dist/cli/describe-4BI6E2CM.js +0 -50
  187. package/dist/cli/git-QRZP4DNA.js +0 -25
  188. package/dist/cli/search-CQ6JG2EN.js +0 -32
  189. package/dist/cli/sessions-LMPXUPUH.js +0 -22
  190. package/dist/cli/skills-M4CFE65Z.js +0 -36
  191. package/dist/cli/tools-CV7XA2V6.js +0 -57
  192. package/dist/cli/update-PUWBKPWJ.js +0 -34
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkMJDQZYKOjs = require('./chunk-MJDQZYKO.js');
40
+ var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
41
41
 
42
42
 
43
43
  var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
@@ -689,7 +689,7 @@ var ToolCalls = class {
689
689
  idempotencyKey,
690
690
  onResponse: (response2) => {
691
691
  lastResponse = null;
692
- atomicToolsSupported = response2.headers.get(_chunkMJDQZYKOjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
692
+ atomicToolsSupported = response2.headers.get(_chunkRBEUVDZFjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
693
693
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
694
694
  if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
695
695
  try {
@@ -1076,15 +1076,15 @@ function runtimeSelectionHeaders(runtime, env) {
1076
1076
  }
1077
1077
  const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
1078
1078
  return {
1079
- [_chunkMJDQZYKOjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1080
- ...receivers ? { [_chunkMJDQZYKOjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1079
+ [_chunkRBEUVDZFjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1080
+ ...receivers ? { [_chunkRBEUVDZFjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1081
1081
  };
1082
1082
  }
1083
1083
  function playRunStartHeaders(runtime, env) {
1084
1084
  const headers = runtimeSelectionHeaders(runtime, env);
1085
1085
  const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
1086
1086
  if (!experimentSwitches) return headers;
1087
- return { ...headers, [_chunkMJDQZYKOjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1087
+ return { ...headers, [_chunkRBEUVDZFjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1088
1088
  }
1089
1089
  function normalizeTestPolicyOverrides(value, source) {
1090
1090
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1154,7 +1154,7 @@ var PlayClient = class {
1154
1154
  return _chunkSL6MYJYMjs.startPlayRun.call(void 0,
1155
1155
  this.http,
1156
1156
  resolved.request,
1157
- _optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkMJDQZYKOjs.SDK_API_MAJOR) } : headers,
1157
+ _optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkRBEUVDZFjs.SDK_API_MAJOR) } : headers,
1158
1158
  options
1159
1159
  );
1160
1160
  }
@@ -3076,8 +3076,9 @@ var RUN_WATCH_STARTUP_POLL_INTERVAL_MS = 300;
3076
3076
  var RUN_WATCH_STARTUP_WINDOW_MS = 6e3;
3077
3077
  var RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS = 500;
3078
3078
  var RUN_WATCH_INTERACTIVE_WINDOW_MS = 3e4;
3079
- var RUN_WATCH_SERVER_WAIT_MS = 0;
3080
- var RUN_WATCH_SERVER_WAIT_FROM_START = false;
3079
+ var RUN_WATCH_SERVER_WAIT_MS = 2e4;
3080
+ var RUN_WATCH_SERVER_WAIT_FROM_START = true;
3081
+ var RUN_WATCH_HOLD_HEADER = "x-deepline-run-watch-hold";
3081
3082
  var TERMINAL_LOG_PROJECTION_RETRY_LIMIT = 3;
3082
3083
  function waitForNextPoll(ms, signal) {
3083
3084
  if (_optionalChain([signal, 'optionalAccess', _118 => _118.aborted])) {
@@ -3172,14 +3173,16 @@ async function* watchRunEvents(options) {
3172
3173
  let outageNoticeSent = false;
3173
3174
  let pollCount = 0;
3174
3175
  let terminalLogProjectionRetries = 0;
3176
+ let serverHoldDeclined = false;
3175
3177
  while (!_optionalChain([signal, 'optionalAccess', _123 => _123.aborted])) {
3176
3178
  const pollStartedAt = Date.now();
3177
3179
  const poll = ++pollCount;
3178
3180
  const watchedMs = pollStartedAt - watchStartedAt;
3179
3181
  const pastStartup = watchedMs >= RUN_WATCH_STARTUP_WINDOW_MS;
3180
3182
  const pastInteractive = watchedMs >= RUN_WATCH_INTERACTIVE_WINDOW_MS;
3181
- const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
3182
- const pollIntervalMs = _nullishCoalesce(options.pollIntervalMs, () => ( (serverWaitMs > 0 ? 0 : pastInteractive ? RUN_WATCH_POLL_INTERVAL_MS : pastStartup ? RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS)));
3183
+ const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && !serverHoldDeclined && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
3184
+ const clientPollIntervalMs = _nullishCoalesce(options.pollIntervalMs, () => ( (pastInteractive ? RUN_WATCH_POLL_INTERVAL_MS : pastStartup ? RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS)));
3185
+ const pollIntervalMs = clientPollIntervalMs;
3183
3186
  let snapshot;
3184
3187
  let terminalStatus;
3185
3188
  let responseStatus;
@@ -3203,10 +3206,13 @@ async function* watchRunEvents(options) {
3203
3206
  serverWaitMs > 0 ? `${path}&waitForTerminalMs=${serverWaitMs}` : path,
3204
3207
  {
3205
3208
  signal,
3206
- ...options.onPoll ? {
3209
+ ...options.onPoll || serverWaitMs > 0 ? {
3207
3210
  onResponse: (response2) => {
3208
3211
  responseStatus = response2.status;
3209
3212
  serverTiming = _nullishCoalesce(response2.headers.get("server-timing"), () => ( void 0));
3213
+ if (serverWaitMs > 0 && response2.ok && response2.headers.get(RUN_WATCH_HOLD_HEADER) !== "applied") {
3214
+ serverHoldDeclined = true;
3215
+ }
3210
3216
  }
3211
3217
  } : {}
3212
3218
  }
@@ -3226,7 +3232,9 @@ async function* watchRunEvents(options) {
3226
3232
  if (_optionalChain([signal, 'optionalAccess', _124 => _124.aborted])) {
3227
3233
  return;
3228
3234
  }
3229
- if (!isTransientPlayRunReadError(error)) {
3235
+ const heldTimeout = serverWaitMs > 0 && error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "NETWORK_TIMEOUT";
3236
+ if (heldTimeout) serverHoldDeclined = true;
3237
+ if (!heldTimeout && !isTransientPlayRunReadError(error)) {
3230
3238
  throw error;
3231
3239
  }
3232
3240
  consecutiveFailures += 1;
@@ -3383,7 +3391,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3383
3391
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3384
3392
  );
3385
3393
  }
3386
- return { [_chunkMJDQZYKOjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3394
+ return { [_chunkRBEUVDZFjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3387
3395
  }
3388
3396
  function sleep(ms) {
3389
3397
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4298,7 +4306,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4298
4306
  );
4299
4307
  const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
4300
4308
  ...runtimeHeaders,
4301
- "X-Deepline-API-Major": String(_chunkMJDQZYKOjs.SDK_API_MAJOR)
4309
+ "X-Deepline-API-Major": String(_chunkRBEUVDZFjs.SDK_API_MAJOR)
4302
4310
  } : runtimeHeaders;
4303
4311
  const http = this.http;
4304
4312
  let submitted = false;
@@ -6748,7 +6756,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6748
6756
  action: options.action,
6749
6757
  ...options.action === "start_or_change" && options.billingEmail ? { billing_email: options.billingEmail } : {},
6750
6758
  ...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {},
6751
- ...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {}
6759
+ ...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {},
6760
+ // Sent only for an annual purchase, so a monthly request's body (and
6761
+ // its idempotency hash) is unchanged.
6762
+ ...options.action === "start_or_change" && options.billingInterval === "year" ? { billing_interval: "year" } : {}
6752
6763
  },
6753
6764
  { "Idempotency-Key": idempotencyKey },
6754
6765
  { maxRetries: 0, exactUrlOnly: true }
@@ -4,21 +4,21 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-F2RXBNT5.mjs";
7
+ } from "./chunk-WE5HES3H.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  syncSdkSkillsIfNeeded
11
- } from "./chunk-HEVUFICQ.mjs";
11
+ } from "./chunk-YJHE3O5M.mjs";
12
12
  import {
13
13
  addJsonNotice,
14
14
  isJsonOutputMode
15
- } from "./chunk-HCFH2V27.mjs";
15
+ } from "./chunk-6PRW5UBA.mjs";
16
16
  import {
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-72NXIFOT.mjs";
18
+ } from "./chunk-4TALT2M3.mjs";
19
19
  import {
20
20
  SDK_VERSION
21
- } from "./chunk-GVW5V562.mjs";
21
+ } from "./chunk-YLTMXJFC.mjs";
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -103,6 +103,7 @@ function relaunchCurrentCommand(plan, runtime = {}) {
103
103
  const args = plan.kind === "python-sidecar" ? argv.slice(2) : argv.slice(1);
104
104
  const platform = runtime.platform ?? process.platform;
105
105
  const child = spawn(command, args, {
106
+ windowsHide: true,
106
107
  stdio: "inherit",
107
108
  // The Node executable is a native binary and must be spawned directly;
108
109
  // passing `C:\Program Files\...\node.exe` through cmd.exe splits it
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-N2Y2IGNB.mjs";
3
+ } from "./chunk-6RZOWL2V.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-HEVUFICQ.mjs";
8
+ } from "./chunk-YJHE3O5M.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-TL3WIXDH.mjs";
3
+ } from "./chunk-Z5TSLLOW.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-72NXIFOT.mjs";
7
+ } from "./chunk-4TALT2M3.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-CIBQVA6V.mjs";
6
+ } from "./chunk-QY3ZNU6Z.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-HCFH2V27.mjs";
11
+ } from "./chunk-6PRW5UBA.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-72NXIFOT.mjs";
15
+ } from "./chunk-4TALT2M3.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-TQMY6BDG.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-6ADMTOU5.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PRICING_PAGE_NOTE
3
- } from "./chunk-NIPLY25A.mjs";
3
+ } from "./chunk-2RIKOPIM.mjs";
4
4
  import {
5
5
  PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS
6
- } from "./chunk-5LUF4LAR.mjs";
6
+ } from "./chunk-6ZORHRKB.mjs";
7
7
 
8
8
  // src/cli/command-docs.ts
9
9
  var PLAY_RUNTIME_PRICING_NOTE = `With included compute pricing, large (4gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.large}\xD7 and xlarge (8gb) costs ${PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS.xlarge}\xD7 the standard (1gb) hourly rate. Included compute applies proportionally.`;
@@ -470,7 +470,7 @@ Purpose:
470
470
  When:
471
471
  First, whenever you do not already know what to run.
472
472
  Input:
473
- Search for one capability at a time.
473
+ Pass a full tool ID for an exact lookup, or search for one capability at a time.
474
474
  Include the input fields, the result you need, and requirements.
475
475
  Leave out customer data like names and domains, and export details like filenames.
476
476
  For a workflow with distinct steps, search for each step separately.
@@ -496,8 +496,10 @@ Examples:
496
496
  ]]
497
497
  Output:
498
498
  A ranked list. Each result has an id, its kind, what it does, and its price.
499
- Tools that need a provider connection are flagged. Describe the tool to
500
- see how to connect it.
499
+ An exact lookup reports whether the tool matched in this scope. If it
500
+ misses, check the account and workspace before searching by task.
501
+ Tool results include an exact describe command, required inputs, known
502
+ effects, and available authorization metadata.
501
503
  When search suggests a rewrite, retry with the core task in a shorter query.
502
504
  [[cli:
503
505
  Multiple queries print one section per query in argument order. With --json,
@@ -974,10 +976,11 @@ Input:
974
976
  --payload is an alias of --input. There is no --payload-file flag; use
975
977
  @path. --out <file.csv> writes row-shaped output to a CSV file.
976
978
  --connection <name> selects a workspace authorization for supported
977
- HubSpot and Google Calendar tools. A Google Workspace authorization uses its
978
- approved domain, for example --connection deepline.com. Pass calendar emails
979
- in the tool input. Omitting --connection uses the caller's personal account
980
- where personal connections are supported.
979
+ operations. For Google Workspace team availability, choose the approved
980
+ domain as the connection and pass primary work emails in calendarIds.
981
+ For booking, organizerEmail selects the primary calendar that receives the
982
+ event. Verify the calendars with a read-only call before publishing booking.
983
+ Where supported, omitting --connection uses the caller's default account.
981
984
  deepline integrations list --json lists workspace authorization names.
982
985
  Each authorization grants specific scopes. Missing scopes fail the call.
983
986
  ]]
@@ -999,6 +1002,12 @@ Failures:
999
1002
  fix the key, plan or input instead of retrying.
1000
1003
  ]]
1001
1004
  [[mcp:
1005
+ Named authorizations:
1006
+ Pass the authorized connection name as connection alongside tool_id and
1007
+ input. For Google Workspace, choose the approved domain and pass primary
1008
+ work emails in input.calendarIds for a read-only availability check. Use
1009
+ the same connection in the Play. For booking, input.organizerEmail selects
1010
+ the primary calendar that receives the event.
1002
1011
  Output:
1003
1012
  data, the provider result, and credits_used when it is reported.
1004
1013
  ]]
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-TL3WIXDH.mjs";
3
+ } from "./chunk-Z5TSLLOW.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-72NXIFOT.mjs";
7
+ } from "./chunk-4TALT2M3.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
18
18
 
19
19
 
20
- var _chunk5J3TRWTBjs = require('./chunk-5J3TRWTB.js');
20
+ var _chunk634ZDA3Fjs = require('./chunk-634ZDA3F.js');
21
21
 
22
22
  // src/version.ts
23
- var SDK_VERSION = _chunk5J3TRWTBjs.SDK_RELEASE.version;
24
- var SDK_API_MAJOR = _chunk5J3TRWTBjs.SDK_RELEASE.contracts.api.currentMajor;
25
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk5J3TRWTBjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
23
+ var SDK_VERSION = _chunk634ZDA3Fjs.SDK_RELEASE.version;
24
+ var SDK_API_MAJOR = _chunk634ZDA3Fjs.SDK_RELEASE.contracts.api.currentMajor;
25
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk634ZDA3Fjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
26
26
 
27
27
  // src/agent-runtime.ts
28
28
  var _fs = require('fs');
@@ -949,8 +949,12 @@ function parseRetryAfterHint(response) {
949
949
  const header = response.headers.get("retry-after");
950
950
  if (header) {
951
951
  const seconds = Number(header);
952
- if (Number.isFinite(seconds) && seconds > 0) {
953
- return { delayMs: seconds * 1e3, exact: false };
952
+ if (Number.isFinite(seconds)) {
953
+ return seconds > 0 ? { delayMs: seconds * 1e3, exact: false } : null;
954
+ }
955
+ const retryAtMs = Date.parse(header);
956
+ if (Number.isFinite(retryAtMs)) {
957
+ return { delayMs: Math.max(0, retryAtMs - Date.now()), exact: false };
954
958
  }
955
959
  }
956
960
  return null;
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkRINUMR6Cjs = require('./chunk-RINUMR6C.js');
3
+ var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkRINUMR6Cjs.printCommandEnvelope.call(void 0,
60
+ _chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );