deepline 0.3.502 → 0.3.504

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 (211) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +26 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +9 -0
  5. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  6. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  8. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
  9. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  10. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  15. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  16. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  18. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  20. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  22. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  25. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  26. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  38. package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
  39. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
  40. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
  41. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
  42. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
  43. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
  44. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
  45. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
  46. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
  47. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
  48. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
  49. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
  50. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
  51. package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
  52. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
  53. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
  54. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  55. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
  56. package/dist/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
  57. package/dist/cli/auth-UPK4IIIN.js +43 -0
  58. package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
  59. package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
  60. package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
  61. package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
  62. package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
  63. package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
  64. package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
  65. package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
  66. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  67. package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
  68. package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
  69. package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
  70. package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
  71. package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
  72. package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
  73. package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
  74. package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
  75. package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
  76. package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
  77. package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
  78. package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
  79. package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
  80. package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
  81. package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
  82. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
  83. package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
  84. package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
  85. package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
  86. package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
  87. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  88. package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
  89. package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
  90. package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
  91. package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
  92. package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
  93. package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
  94. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  95. package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
  96. package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
  97. package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
  98. package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
  99. package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
  100. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  101. package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
  102. package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
  103. package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
  104. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
  105. package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
  106. package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
  107. package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
  108. package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
  109. package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
  110. package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
  111. package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
  112. package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
  113. package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
  114. package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
  115. package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
  116. package/dist/cli/command-docs.d.mts +2 -1
  117. package/dist/cli/command-docs.d.ts +2 -1
  118. package/dist/cli/command-docs.js +6 -2
  119. package/dist/cli/command-docs.mjs +5 -1
  120. package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
  121. package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
  122. package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
  123. package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
  124. package/dist/cli/describe-OYS7LZJD.js +49 -0
  125. package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
  126. package/dist/cli/describe-core.d.mts +8 -4
  127. package/dist/cli/describe-core.d.ts +8 -4
  128. package/dist/cli/describe-core.js +4 -4
  129. package/dist/cli/describe-core.mjs +3 -3
  130. package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
  131. package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
  132. package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
  133. package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
  134. package/dist/cli/git-5YQJSJFR.js +25 -0
  135. package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
  136. package/dist/cli/index.js +144 -142
  137. package/dist/cli/index.mjs +44 -42
  138. package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
  139. package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
  140. package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
  141. package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
  142. package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
  143. package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
  144. package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
  145. package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
  146. package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
  147. package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
  148. package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
  149. package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
  150. package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
  151. package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
  152. package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
  153. package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
  154. package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
  155. package/dist/cli/search-R5VEWJO2.js +32 -0
  156. package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
  157. package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
  158. package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
  159. package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
  160. package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
  161. package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
  162. package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
  163. package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
  164. package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
  165. package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
  166. package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
  167. package/dist/cli/skills-FB6TV52O.js +36 -0
  168. package/dist/cli/tools-L2364RPA.js +56 -0
  169. package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
  170. package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
  171. package/dist/cli/update-ESYJGYVZ.js +34 -0
  172. package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
  173. package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.js} +17 -17
  174. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  175. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  176. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  177. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  178. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  179. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  180. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  181. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  182. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  183. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  184. package/dist/index.d.mts +7 -7
  185. package/dist/index.d.ts +7 -7
  186. package/dist/index.js +9 -9
  187. package/dist/index.mjs +6 -6
  188. package/dist/install-integrity.json +125 -116
  189. package/dist/plays/bundle-play-file.d.mts +3 -3
  190. package/dist/plays/bundle-play-file.d.ts +3 -3
  191. package/dist/plays/bundle-play-file.mjs +12 -5
  192. package/dist/plays/play-description.d.mts +2 -2
  193. package/dist/plays/play-description.d.ts +2 -2
  194. package/dist/plays/run-request.d.mts +2 -2
  195. package/dist/plays/run-request.d.ts +2 -2
  196. package/dist/release.d.mts +1 -1
  197. package/dist/release.d.ts +1 -1
  198. package/dist/release.js +2 -2
  199. package/dist/release.mjs +1 -1
  200. package/dist/server.d.mts +4 -4
  201. package/dist/server.d.ts +4 -4
  202. package/dist/server.js +5 -5
  203. package/dist/server.mjs +3 -3
  204. package/package.json +1 -1
  205. package/dist/cli/auth-VM3IKP5F.js +0 -43
  206. package/dist/cli/describe-JOUAXXPE.js +0 -49
  207. package/dist/cli/git-OPKIC6JQ.js +0 -25
  208. package/dist/cli/search-6U54Y3OK.js +0 -32
  209. package/dist/cli/skills-VHININXC.js +0 -36
  210. package/dist/cli/tools-XMBMHVKF.js +0 -56
  211. package/dist/cli/update-H7JVW43I.js +0 -34
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-W5CHE5Q2.mjs";
5
+ } from "./chunk-Y6XKCEPK.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-3MJSWVQ2.mjs";
8
+ } from "./chunk-YOQ2NNDO.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-ZNB6GR3P.mjs";
3
+ } from "./chunk-Z6FXUDIL.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-NZXB27TP.mjs";
8
+ } from "./chunk-XHZSPMNC.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-HIVRCTDR.mjs";
6
+ } from "./chunk-OX2D6BG4.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-N4TR6QRI.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-2MVIS2UI.mjs";
14
+ } from "./chunk-3MLFFWDM.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -458,7 +458,9 @@ var PLAY_RUN_RESERVED_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
458
458
  "--debug",
459
459
  "--full",
460
460
  "--force",
461
+ "--from-start",
461
462
  "--force-tool-refresh",
463
+ "--refresh-cache",
462
464
  "--open",
463
465
  "--debug-map-latency"
464
466
  ]);
@@ -593,8 +595,8 @@ function parsePlayRunOptions(args, initialInput = null) {
593
595
  const dryRun = args.includes("--dry-run");
594
596
  let jsonOutput = dryRun ? argsWantJson(args) : watch ? args.includes("--json") : argsWantJson(args);
595
597
  const fullJson = args.includes("--full");
596
- const force = args.includes("--force");
597
- const forceToolRefresh = args.includes("--force-tool-refresh");
598
+ const force = args.includes("--force") || args.includes("--from-start");
599
+ const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
598
600
  const open = args.includes("--open");
599
601
  const debugMapLatency = args.includes("--debug-map-latency");
600
602
  let logLevel = "info";
@@ -1017,8 +1019,10 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1017
1019
  fullJson,
1018
1020
  jsonFields,
1019
1021
  waitTimeoutMs,
1020
- force: options.force ?? base.force,
1021
- forceToolRefresh: options.forceToolRefresh ?? base.forceToolRefresh,
1022
+ // The new names are aliases: an explicit legacy value still wins, exactly
1023
+ // as before, and an unset option inherits the base run's choice.
1024
+ force: options.force ?? (options.fromStart || void 0) ?? base.force,
1025
+ forceToolRefresh: options.forceToolRefresh ?? (options.refreshCache || void 0) ?? base.forceToolRefresh,
1022
1026
  maxConcurrentExternalCalls: externalCalls,
1023
1027
  maxConcurrentRows: rows,
1024
1028
  maxCredits,
@@ -0,0 +1,209 @@
1
+ import {
2
+ MAX_PLAY_SANDBOX_RUNTIME_LIMITS,
3
+ PLAY_SANDBOX_SIZE_LIMITS,
4
+ STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS,
5
+ modalSandboxMemoryLimitGiBForPlay,
6
+ playSandboxSizeForLimits
7
+ } from "./chunk-7I4B6V2S.mjs";
8
+
9
+ // ../play-runtime/worker-api-types.ts
10
+ var DAYTONA_COMPUTE_PRICING_USD = {
11
+ vcpuSecond: 14e-6,
12
+ memoryGiBSecond: 45e-7,
13
+ storageGiBSecond: 3e-8,
14
+ includedStorageGiB: 5
15
+ };
16
+ var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
17
+ physicalCoreSecond: 3942e-8,
18
+ memoryGiBSecond: 667e-8
19
+ };
20
+ var MODAL_SANDBOX_CPU_CORES = 0.5;
21
+ function modalSandboxResourcesForPlay(input) {
22
+ return {
23
+ physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
24
+ memoryMiB: input.memoryGiB * 1024
25
+ };
26
+ }
27
+ function roundUsd(amount) {
28
+ return Number(Math.max(0, amount).toFixed(12));
29
+ }
30
+ function sandboxSizeMetadata(cpu, memoryGiB) {
31
+ const entry = Object.entries(PLAY_SANDBOX_SIZE_LIMITS).find(
32
+ ([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
33
+ );
34
+ return entry ? { sandboxSize: entry[0] } : {};
35
+ }
36
+ function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
37
+ if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
38
+ return {};
39
+ }
40
+ return {
41
+ maxBillingDurationSeconds,
42
+ ...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
43
+ };
44
+ }
45
+ function resolveDaytonaSandboxComputeItem(input) {
46
+ const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
47
+ const cpu = Math.max(0, input.cpu);
48
+ const memoryGiB = Math.max(0, input.memoryGiB);
49
+ const billableDiskGiB = Math.max(
50
+ 0,
51
+ input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
52
+ );
53
+ const providerCostUsd = roundUsd(
54
+ billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
55
+ );
56
+ return {
57
+ itemId: input.itemId,
58
+ source: input.source ?? "daytona",
59
+ unit: "sandbox_second",
60
+ units: billableSeconds,
61
+ providerCostUsd,
62
+ metadata: {
63
+ ...sandboxSizeMetadata(cpu, memoryGiB),
64
+ sandboxId: input.sandboxId ?? null,
65
+ cpu,
66
+ memoryGiB,
67
+ diskGiB: Math.max(0, input.diskGiB),
68
+ billableDiskGiB,
69
+ startedAt: input.startedAt,
70
+ endedAt: input.endedAt,
71
+ ...runtimeLimitMetadata(
72
+ input.maxBillingDurationSeconds,
73
+ input.observedWallTimeSeconds
74
+ )
75
+ }
76
+ };
77
+ }
78
+ function resolveModalSandboxComputeItem(input) {
79
+ const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
80
+ const physicalCpuCores = Math.max(0, input.physicalCpuCores);
81
+ const memoryGiB = Math.max(0, input.memoryGiB);
82
+ const providerCostUsd = roundUsd(
83
+ billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
84
+ );
85
+ return {
86
+ itemId: input.itemId,
87
+ source: "modal",
88
+ unit: "sandbox_second",
89
+ units: billableSeconds,
90
+ providerCostUsd,
91
+ metadata: {
92
+ ...sandboxSizeMetadata(
93
+ physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
94
+ memoryGiB
95
+ ),
96
+ sandboxId: input.sandboxId ?? null,
97
+ physicalCpuCores,
98
+ memoryGiB,
99
+ ...input.memoryLimitGiB === void 0 ? {} : {
100
+ memoryLimitGiB: input.memoryLimitGiB,
101
+ // The Preview evaluation preserves the existing compute price.
102
+ // Sampled burst cost is diagnostic until provider billing can be
103
+ // reconciled; a hard ceiling is never presented as actual usage.
104
+ costBasis: "reserved_resources"
105
+ },
106
+ startedAt: input.startedAt,
107
+ endedAt: input.endedAt,
108
+ ...runtimeLimitMetadata(
109
+ input.maxBillingDurationSeconds,
110
+ input.observedWallTimeSeconds
111
+ )
112
+ }
113
+ };
114
+ }
115
+
116
+ // ../play-runtime/runtime-constants.ts
117
+ var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
118
+ var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
119
+ var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
120
+ var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
121
+ var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
122
+ var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
123
+ var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
124
+
125
+ // ../billing/compute-pricing-contract.ts
126
+ var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
127
+ var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
128
+ var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
129
+ var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
130
+ var PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS = {
131
+ standard: 1,
132
+ large: 2.5,
133
+ xlarge: 5
134
+ };
135
+ var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
136
+ ...Object.values(PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
137
+ const modalResources = modalSandboxResourcesForPlay(profile);
138
+ return [
139
+ resolveDaytonaSandboxComputeItem({
140
+ itemId: "billing-cap",
141
+ wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
142
+ cpu: profile.cpu,
143
+ memoryGiB: profile.memoryGiB,
144
+ diskGiB: profile.diskGiB
145
+ }).providerCostUsd,
146
+ resolveModalSandboxComputeItem({
147
+ itemId: "billing-cap",
148
+ wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
149
+ physicalCpuCores: modalResources.physicalCpuCores,
150
+ memoryGiB: profile.memoryGiB
151
+ }).providerCostUsd
152
+ ];
153
+ })
154
+ );
155
+ function roundUpCredits(value) {
156
+ if (!Number.isFinite(value) || value <= 0) return 0;
157
+ return Math.ceil(value * 100) / 100;
158
+ }
159
+ function maximumPlaySandboxBillingSeconds(limits) {
160
+ return Math.min(
161
+ limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
162
+ MAX_SANDBOX_COMPUTE_BILLING_SECONDS
163
+ );
164
+ }
165
+ function estimateDaytonaMaximumComputeCredits(limits) {
166
+ const item = resolveDaytonaSandboxComputeItem({
167
+ itemId: "estimate",
168
+ wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
169
+ cpu: limits.cpu,
170
+ memoryGiB: limits.memoryGiB,
171
+ diskGiB: limits.diskGiB
172
+ });
173
+ return roundUpCredits(
174
+ item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
175
+ );
176
+ }
177
+ function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
178
+ const resources = modalSandboxResourcesForPlay(limits);
179
+ const item = resolveModalSandboxComputeItem({
180
+ itemId: "estimate",
181
+ wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
182
+ physicalCpuCores: resources.physicalCpuCores,
183
+ memoryGiB: elasticMemory ? modalSandboxMemoryLimitGiBForPlay(limits) : limits.memoryGiB
184
+ });
185
+ return roundUpCredits(
186
+ item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
187
+ );
188
+ }
189
+ function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
190
+ return Math.max(
191
+ estimateDaytonaMaximumComputeCredits(limits),
192
+ estimateModalMaximumComputeCredits(limits, elasticMemory)
193
+ );
194
+ }
195
+ function formatNonStandardSandboxRuntimeWarning(limits) {
196
+ const size = playSandboxSizeForLimits(limits);
197
+ if (!size) return null;
198
+ if (size === "standard" && limits.timeoutSeconds <= STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
199
+ return null;
200
+ }
201
+ const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
202
+ const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
203
+ return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
204
+ }
205
+
206
+ export {
207
+ PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS,
208
+ formatNonStandardSandboxRuntimeWarning
209
+ };
@@ -1,11 +1,11 @@
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 _chunkAJL2Q6IQjs = require('./chunk-AJL2Q6IQ.js');
3
+ var _chunkUXQQPMYOjs = require('./chunk-UXQQPMYO.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
8
+ var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkQNELA7SXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkAJL2Q6IQjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkWZSFIJMGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkQNELA7SXjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunkQNELA7SXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkWZSFIJMGjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -3,14 +3,14 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkXMKUJ44Zjs = require('./chunk-XMKUJ44Z.js');
6
+ var _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
7
7
 
8
8
 
9
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
9
+ var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
13
+ var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
14
14
 
15
15
  // src/cli/commands/search.ts
16
16
  var _commander = require('commander');
@@ -20,7 +20,7 @@ var _fs = require('fs');
20
20
  var _path = require('path');
21
21
  var SEARCH_REF_TTL_MS = 15 * 6e4;
22
22
  function lastSearchPath() {
23
- return _path.join.call(void 0, _chunkJLYDLK6Xjs.sdkCliStateDirPath.call(void 0, _chunkJLYDLK6Xjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
23
+ return _path.join.call(void 0, _chunkWBIDPDKJjs.sdkCliStateDirPath.call(void 0, _chunkWBIDPDKJjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
24
24
  }
25
25
  function rememberSearchRef(searchRef) {
26
26
  try {
@@ -119,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
119
119
  console.error("--summary-width must be an integer of at least 2.");
120
120
  return 1;
121
121
  }
122
- const { search_ref: searchRef, ...result } = await new (0, _chunkXMKUJ44Zjs.DeeplineClient)().search({
122
+ const { search_ref: searchRef, ...result } = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().search({
123
123
  query,
124
124
  types,
125
125
  exclude,
@@ -133,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
133
133
  });
134
134
  if (searchRef) rememberSearchRef(searchRef);
135
135
  pointAtDescribe(result);
136
- const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-KXP4FA62.js")));
137
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, result, {
136
+ const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-R5XDNILW.js")));
137
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, {
138
138
  json: options.json === true,
139
139
  text: renderSearchResults(result, summaryWidth)
140
140
  });
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.502",
52
+ version: "0.3.504",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
3
+ var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkWZSFIJMGjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.502",
52
+ version: "0.3.504",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -3,7 +3,7 @@ import {
3
3
  formatModelDescription,
4
4
  publicToolSchemas,
5
5
  toolMetadataJsonForDescribe
6
- } from "./chunk-JFUXUSKB.mjs";
6
+ } from "./chunk-R2VZVHJP.mjs";
7
7
  import {
8
8
  buildPlayDashboardUrl,
9
9
  byokLines,
@@ -13,7 +13,7 @@ import {
13
13
  examples,
14
14
  schemaLines,
15
15
  topLevelField
16
- } from "./chunk-SAW3FBCA.mjs";
16
+ } from "./chunk-ITJ7NB2D.mjs";
17
17
  import {
18
18
  DeeplineError
19
19
  } from "./chunk-HBL4PM5Q.mjs";
@@ -144,14 +144,10 @@ async function findNamed(reference, options, lookups) {
144
144
  const tool = async () => {
145
145
  const record = await lookups.tool(name);
146
146
  if (!record) return null;
147
- const { byok } = record;
148
147
  const features = toolFeatures(record);
149
148
  return {
150
149
  described: {
151
150
  ...describedTool(record, name),
152
- // Shown when the tool runs only on your own credentials; otherwise
153
- // it is a feature, described with --feature byok.
154
- ...byok?.required === true ? { byok } : {},
155
151
  ...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
156
152
  },
157
153
  record: toolMetadataJsonForDescribe(
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
31
31
 
32
32
 
33
33
 
34
- var _chunkEUWRKWT4js = require('./chunk-EUWRKWT4.js');
34
+ var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
35
35
 
36
36
 
37
37
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -652,7 +652,7 @@ var ToolCalls = class {
652
652
  idempotencyKey,
653
653
  onResponse: (response2) => {
654
654
  lastResponse = null;
655
- atomicToolsSupported = response2.headers.get(_chunkEUWRKWT4js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
655
+ atomicToolsSupported = response2.headers.get(_chunkUJMBG5JUjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
656
656
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
657
657
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
658
658
  try {
@@ -1107,8 +1107,8 @@ function runtimeSelectionHeaders(runtime, env) {
1107
1107
  }
1108
1108
  const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
1109
1109
  return {
1110
- [_chunkEUWRKWT4js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1111
- ...receivers ? { [_chunkEUWRKWT4js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1110
+ [_chunkUJMBG5JUjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1111
+ ...receivers ? { [_chunkUJMBG5JUjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1112
1112
  };
1113
1113
  }
1114
1114
  function normalizeTestPolicyOverrides(value, source) {
@@ -1179,7 +1179,7 @@ var PlayClient = class {
1179
1179
  return _chunkRNSHCJMEjs.startPlayRun.call(void 0,
1180
1180
  this.http,
1181
1181
  resolved.request,
1182
- _optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkEUWRKWT4js.SDK_API_MAJOR) } : headers,
1182
+ _optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkUJMBG5JUjs.SDK_API_MAJOR) } : headers,
1183
1183
  options
1184
1184
  );
1185
1185
  }
@@ -3260,7 +3260,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3260
3260
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3261
3261
  );
3262
3262
  }
3263
- return { [_chunkEUWRKWT4js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3263
+ return { [_chunkUJMBG5JUjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3264
3264
  }
3265
3265
  function sleep(ms) {
3266
3266
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3535,6 +3535,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
3535
3535
  searchEvents: (options) => this.searchRunEvents(options),
3536
3536
  input: (runId) => this.getRunInput(runId),
3537
3537
  rerun: (runId, options) => this.rerun(runId, options),
3538
+ resume: (runId) => this.resumeRun(runId),
3538
3539
  exportDatasetRows: (input) => this.getPlaySheetRows(input),
3539
3540
  rowHistory: (input) => this.getPlayRunRowHistory(input),
3540
3541
  stop: (runId, options) => this.stopRun(runId, options),
@@ -4071,7 +4072,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4071
4072
  );
4072
4073
  const headers = _optionalChain([options, 'optionalAccess', _184 => _184.cliAdmission]) ? {
4073
4074
  ...runtimeHeaders,
4074
- "X-Deepline-API-Major": String(_chunkEUWRKWT4js.SDK_API_MAJOR)
4075
+ "X-Deepline-API-Major": String(_chunkUJMBG5JUjs.SDK_API_MAJOR)
4075
4076
  } : runtimeHeaders;
4076
4077
  const http = this.http;
4077
4078
  let submitted = false;
@@ -4975,6 +4976,19 @@ var DeeplineClient = (_class = class _DeeplineClient {
4975
4976
  { "Idempotency-Key": idempotencyKey || globalThis.crypto.randomUUID() }
4976
4977
  );
4977
4978
  }
4979
+ /**
4980
+ * Continue a failed or cancelled run as the same run. Completed calls are
4981
+ * reused; only work the run had not finished runs. A run can be resumed for
4982
+ * 14 days after it stops. Refusals (still active, last attempt still
4983
+ * finishing, sandbox cleanup pending, window expired) throw a
4984
+ * {@link DeeplineError} with the server's code.
4985
+ */
4986
+ async resumeRun(runId) {
4987
+ return this.http.post(
4988
+ `/api/v2/runs/${encodeURIComponent(runId)}/resume`,
4989
+ {}
4990
+ );
4991
+ }
4978
4992
  /**
4979
4993
  * Read a run's retained text tail (default 200), full retained stream (`all`), or terminal failure window (`failed`, at most 20). These are existing reads; sampling and retention loss cannot be recovered. See [run logs and events](run-events.md) for structured search and payload retrieval.
4980
4994
  *
@@ -5446,6 +5460,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
5446
5460
  async getNotificationSettings() {
5447
5461
  return this.http.get("/api/v2/settings/notifications");
5448
5462
  }
5463
+ /** Get the dashboard link where a workspace owner or admin can connect a provider. */
5464
+ async getIntegrationConnectLink(provider) {
5465
+ const params = new URLSearchParams({ provider });
5466
+ return this.http.get(`/api/v2/integrations/connect?${params}`);
5467
+ }
5449
5468
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
5450
5469
  async setIntegrationCredentials(provider, credentials) {
5451
5470
  return this.http.post("/api/v2/integrations/connect", {
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
 
4
- var _chunkDYHTXGLXjs = require('./chunk-DYHTXGLX.js');
4
+ var _chunk6SMR7LU7js = require('./chunk-6SMR7LU7.js');
5
5
 
6
6
 
7
- var _chunk2S2F6YSIjs = require('./chunk-2S2F6YSI.js');
7
+ var _chunkGRAGUYIEjs = require('./chunk-GRAGUYIE.js');
8
8
 
9
9
 
10
- var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
10
+ var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
11
11
 
12
12
 
13
- var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
13
+ var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
14
14
 
15
15
 
16
- var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
16
+ var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkWZSFIJMGjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkDYHTXGLXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkDYHTXGLXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunk6SMR7LU7js.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunk6SMR7LU7js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkJLYDLK6Xjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkWZSFIJMGjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJLYDLK6Xjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkWBIDPDKJjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunk2S2F6YSIjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkGRAGUYIEjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
1284
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
1327
+ _chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion