deepline 0.3.501 → 0.3.503

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 (210) 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/starter-templates.ts +0 -8
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  8. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
  10. package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
  15. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
  16. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
  18. package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
  20. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
  22. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
  23. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
  24. package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -0
  27. package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
  29. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +70 -1
  30. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
  31. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
  32. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
  33. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
  34. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
  35. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
  36. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
  37. package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
  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 +1453 -160
  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/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
  57. package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
  58. package/dist/cli/auth-ZCMSXZO4.js +43 -0
  59. package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
  60. package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
  61. package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
  62. package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
  63. package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
  64. package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
  65. package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
  66. package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
  67. package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
  68. package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
  69. package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
  70. package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
  71. package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
  72. package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
  73. package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
  74. package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
  75. package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
  76. package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
  77. package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
  78. package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
  79. package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
  80. package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
  81. package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
  82. package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
  83. package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
  84. package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
  85. package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
  86. package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
  87. package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
  88. package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
  89. package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
  90. package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
  91. package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
  92. package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
  93. package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
  94. package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
  95. package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
  96. package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
  97. package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
  98. package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
  99. package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
  100. package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
  101. package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
  102. package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
  103. package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
  104. package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
  105. package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
  106. package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
  107. package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
  108. package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
  109. package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
  110. package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
  111. package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
  112. package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
  113. package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
  114. package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
  115. package/dist/cli/command-docs.js +2 -2
  116. package/dist/cli/command-docs.mjs +1 -1
  117. package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
  118. package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
  119. package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
  120. package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
  121. package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
  122. package/dist/cli/describe-LE7EZCL4.js +49 -0
  123. package/dist/cli/describe-core.d.mts +8 -4
  124. package/dist/cli/describe-core.d.ts +8 -4
  125. package/dist/cli/describe-core.js +4 -5
  126. package/dist/cli/describe-core.mjs +3 -4
  127. package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
  128. package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
  129. package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
  130. package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
  131. package/dist/cli/git-26AH4XIO.js +25 -0
  132. package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
  133. package/dist/cli/index.js +142 -142
  134. package/dist/cli/index.mjs +42 -42
  135. package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
  136. package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
  137. package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
  138. package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
  139. package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
  140. package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
  141. package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
  142. package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
  143. package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
  144. package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
  145. package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
  146. package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
  147. package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
  148. package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
  149. package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
  150. package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
  151. package/dist/cli/search-CTKSEVSO.js +32 -0
  152. package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
  153. package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
  154. package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
  155. package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
  156. package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
  157. package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
  158. package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
  159. package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
  160. package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
  161. package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
  162. package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
  163. package/dist/cli/skills-6RD25MVM.js +36 -0
  164. package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
  165. package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
  166. package/dist/cli/tools-TDZH4XHS.js +56 -0
  167. package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
  168. package/dist/cli/update-Y32VT4VL.js +34 -0
  169. package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
  170. package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.js} +17 -17
  171. package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
  172. package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
  173. package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
  174. package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
  175. package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
  176. package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
  177. package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
  178. package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
  179. package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
  180. package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
  181. package/dist/index.d.mts +7 -7
  182. package/dist/index.d.ts +7 -7
  183. package/dist/index.js +9 -9
  184. package/dist/index.mjs +6 -6
  185. package/dist/install-integrity.json +124 -118
  186. package/dist/plays/bundle-play-file.d.mts +3 -3
  187. package/dist/plays/bundle-play-file.d.ts +3 -3
  188. package/dist/plays/bundle-play-file.mjs +8 -1
  189. package/dist/plays/play-description.d.mts +2 -2
  190. package/dist/plays/play-description.d.ts +2 -2
  191. package/dist/plays/run-request.d.mts +2 -2
  192. package/dist/plays/run-request.d.ts +2 -2
  193. package/dist/release.d.mts +1 -1
  194. package/dist/release.d.ts +1 -1
  195. package/dist/release.js +2 -2
  196. package/dist/release.mjs +1 -1
  197. package/dist/server.d.mts +4 -4
  198. package/dist/server.d.ts +4 -4
  199. package/dist/server.js +5 -5
  200. package/dist/server.mjs +3 -3
  201. package/package.json +1 -1
  202. package/dist/cli/auth-VP7PMXKQ.js +0 -43
  203. package/dist/cli/chunk-XK5DMLZE.js +0 -111
  204. package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
  205. package/dist/cli/describe-SEXUJLE4.js +0 -50
  206. package/dist/cli/git-VNS7UQWN.js +0 -25
  207. package/dist/cli/search-I425FRTK.js +0 -32
  208. package/dist/cli/skills-6ZNMO2PR.js +0 -36
  209. package/dist/cli/tools-DPV2JES6.js +0 -57
  210. package/dist/cli/update-Q5GUDEAW.js +0 -34
@@ -2,11 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
6
-
7
-
8
-
9
- var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
5
+ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
10
6
 
11
7
 
12
8
  var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
@@ -18,6 +14,116 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
18
14
 
19
15
  var _chunkBLMB4N63js = require('./chunk-BLMB4N63.js');
20
16
 
17
+ // src/cli/tool-description.ts
18
+ function observedMaxText(pricing) {
19
+ const max = recordValue(recordValue(pricing).observedMax);
20
+ if (typeof max.creditsPerCall !== "number" || max.creditsPerCall <= 0)
21
+ return "";
22
+ const avg = typeof max.avgCreditsPerCall === "number" && typeof max.sampleCount === "number" ? `${max.avgCreditsPerCall} avg, ` : "";
23
+ const calls = avg && typeof max.sampleCount === "number" ? `${max.sampleCount} observed, ` : "";
24
+ return `observed ${avg}${max.creditsPerCall} max credits/call (${calls}last ${String(max.windowDays)} days)`;
25
+ }
26
+ var Capability = class _Capability {
27
+ #catalogEntry;
28
+ constructor(catalogEntry) {
29
+ this.#catalogEntry = catalogEntry;
30
+ }
31
+ static fromCatalogEntry(catalogEntry) {
32
+ return new _Capability(catalogEntry);
33
+ }
34
+ describe() {
35
+ return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
36
+ }
37
+ };
38
+ var CapabilityDescription = class _CapabilityDescription {
39
+ #catalogEntry;
40
+ constructor(catalogEntry) {
41
+ this.#catalogEntry = catalogEntry;
42
+ }
43
+ static fromCatalogEntry(catalogEntry) {
44
+ return new _CapabilityDescription(catalogEntry);
45
+ }
46
+ /**
47
+ * The customer price already resolved by the catalog. This intentionally
48
+ * omits provider-price fields, even when a catalog Adapter carried them.
49
+ */
50
+ customerCost() {
51
+ const legacyCost = recordValue(this.#catalogEntry.cost);
52
+ const pricing = recordValue(this.#catalogEntry.pricing);
53
+ const unit = stringValue(pricing.unit);
54
+ const legacyPricingModel = stringValue(
55
+ _nullishCoalesce(legacyCost.pricingModel, () => ( legacyCost.pricing_model))
56
+ );
57
+ const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
58
+ const canonicalCredits = pricingNumber(
59
+ pricing,
60
+ "creditsPerUnit",
61
+ "credits_per_unit",
62
+ _nullishCoalesce(this.#catalogEntry.deeplineCreditsPerPricingUnit, () => ( this.#catalogEntry.deepline_credits_per_pricing_unit))
63
+ );
64
+ const canonicalUsd = pricingNumber(
65
+ pricing,
66
+ "usdPerUnit",
67
+ "usd_per_unit",
68
+ _nullishCoalesce(this.#catalogEntry.deeplineUsdPerPricingUnit, () => ( this.#catalogEntry.deepline_usd_per_pricing_unit))
69
+ );
70
+ const billingSource = stringValue(
71
+ _nullishCoalesce(this.#catalogEntry.billingSource, () => ( this.#catalogEntry.billing_source))
72
+ );
73
+ const billingSourceLabel = stringValue(
74
+ _nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
75
+ );
76
+ const isFree = billingSource === "free";
77
+ const displayText = stringValue(
78
+ _nullishCoalesce(pricing.displayText, () => ( pricing.display_text))
79
+ );
80
+ const summary = stringValue(pricing.summary);
81
+ const showManagedPricing = !isFree && billingSource !== "own_provider_credentials";
82
+ const details = !isFree && Array.isArray(pricing.details) ? pricing.details.filter(
83
+ (value) => typeof value === "string"
84
+ ) : [];
85
+ return {
86
+ pricingModel: pricingModel || null,
87
+ unit: unit || null,
88
+ displayText: isFree ? "Free" : displayText,
89
+ summary: isFree ? null : summary,
90
+ billingMode: stringValue(
91
+ _nullishCoalesce(legacyCost.billingMode, () => ( legacyCost.billing_mode))
92
+ ),
93
+ billingSource,
94
+ billingSourceLabel,
95
+ deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
96
+ deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
97
+ ...pricing.estimatedRange && showManagedPricing ? {
98
+ estimatedRange: pricing.estimatedRange
99
+ } : {},
100
+ ...pricing.observedReference && showManagedPricing ? {
101
+ observedReference: pricing.observedReference
102
+ } : {},
103
+ ...details.length || showManagedPricing && (pricing.estimatedRange || pricing.observedReference) ? { details } : {},
104
+ ...pricing.observedMax && showManagedPricing ? {
105
+ observedMax: pricing.observedMax
106
+ } : {}
107
+ };
108
+ }
109
+ };
110
+ function recordValue(value) {
111
+ return value && typeof value === "object" && !Array.isArray(value) ? value : {};
112
+ }
113
+ function stringValue(value) {
114
+ return typeof value === "string" && value.trim() ? value : null;
115
+ }
116
+ function numberValue(value) {
117
+ return typeof value === "number" && Number.isFinite(value) ? value : null;
118
+ }
119
+ function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
120
+ for (const key of [canonicalKey, aliasKey]) {
121
+ if (Object.prototype.hasOwnProperty.call(pricing, key))
122
+ return numberValue(pricing[key]);
123
+ }
124
+ return numberValue(legacyValue);
125
+ }
126
+
21
127
  // src/cli/described-tool.ts
22
128
  function isPlayLikeTool(tool) {
23
129
  const record = tool;
@@ -74,7 +180,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
74
180
  const extractedValues = extractionContractEntries(
75
181
  arrayField(toolExecutionResult, "extractedValues", "extracted_values")
76
182
  );
77
- const pricing = _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost();
183
+ const pricing = Capability.fromCatalogEntry(tool).describe().customerCost();
78
184
  const executionMetadataRecord = recordField(
79
185
  tool,
80
186
  "executionMetadata",
@@ -174,7 +280,7 @@ function extractorValueType(name) {
174
280
  }
175
281
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
176
282
  if (!named) return { type: "string" };
177
- const { type, fields } = _chunkJO5FFSR7js.schemaField.call(void 0, name, named.schema, true);
283
+ const { type, fields } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, named.schema, true);
178
284
  return { type, ...fields ? { fields } : {}, shape: named.shape };
179
285
  }
180
286
  function jsonSchemaOf(wrapper) {
@@ -211,7 +317,7 @@ function describedTool(tool, requestedToolId) {
211
317
  description,
212
318
  cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
213
319
  guidance: [],
214
- inputs: _chunkJO5FFSR7js.schemaFields.call(void 0,
320
+ inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0,
215
321
  recordField(tool, "payload_schema", "payloadSchema")
216
322
  ),
217
323
  outputs: [],
@@ -248,7 +354,7 @@ function describedTool(tool, requestedToolId) {
248
354
  (path) => path.replace(/^toolResponse\.raw\./, "")
249
355
  );
250
356
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
251
- const { fields, ...typed } = _chunkJO5FFSR7js.schemaField.call(void 0, name, node, true);
357
+ const { fields, ...typed } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, node, true);
252
358
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
253
359
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
254
360
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -289,16 +395,25 @@ function describedTool(tool, requestedToolId) {
289
395
  };
290
396
  });
291
397
  const playReference = isPlayLikeTool(tool) ? playReferenceForTool(tool) : null;
398
+ const { byok } = tool;
399
+ const credentialStatus = stringField(
400
+ tool,
401
+ "credentialStatus",
402
+ "credential_status"
403
+ );
404
+ const provider = stringField(tool, "provider");
405
+ const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline tools connect ${provider} --link --json` : void 0;
292
406
  return {
293
407
  kind: "tool",
294
408
  id: String(contract.toolId),
409
+ ...provider ? { provider } : {},
295
410
  displayName,
296
411
  description,
297
412
  cost: [
298
413
  stringField(cost, "displayText"),
299
414
  // "Free (free)" says the same thing twice.
300
415
  billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
301
- _chunkXK5DMLZEjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkXK5DMLZEjs.observedMaxText.call(void 0, cost)}`
416
+ observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
302
417
  ].filter(Boolean).join(" ") || void 0,
303
418
  guidance: [
304
419
  ...contract.deprecated === true ? [`Deprecated. ${stringField(deprecation, "message")}`.trim()] : [],
@@ -308,13 +423,17 @@ function describedTool(tool, requestedToolId) {
308
423
  ],
309
424
  rateLimit: withPlanRateLimit(
310
425
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
311
- _chunkJO5FFSR7js.rateLimitSummary.call(void 0,
426
+ _chunkNTLBZUHDjs.rateLimitSummary.call(void 0,
312
427
  recordField(contract, "executionMetadata").configuredRateLimits
313
428
  )
314
429
  ),
315
- inputs: _chunkJO5FFSR7js.schemaFields.call(void 0, inputSchema),
430
+ ..._optionalChain([byok, 'optionalAccess', _4 => _4.required]) === true ? { byok } : {},
431
+ ...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
432
+ ...credentialStatus ? { credentialStatus } : {},
433
+ ...connectCommand ? { connectCommand } : {},
434
+ inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0, inputSchema),
316
435
  outputs: [...lists, ...values].map(({ field }) => field),
317
- rawResponse: _chunkJO5FFSR7js.schemaFields.call(void 0, outputSchema),
436
+ rawResponse: _chunkNTLBZUHDjs.schemaFields.call(void 0, outputSchema),
318
437
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
319
438
  };
320
439
  }
@@ -389,13 +508,13 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
389
508
  deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
390
509
  deepline_pricing_summary: _snakeDeeplinePricingSummary,
391
510
  deepline_pricing_details: _snakeDeeplinePricingDetails,
392
- // BYOK is shown only on request, via describe --feature byok.
511
+ // The shared description adds BYOK when the tool needs its own credentials.
393
512
  byok: _byok,
394
513
  ...publicTool
395
514
  } = tool;
396
515
  const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
397
516
  return {
398
- cost: _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
517
+ cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
399
518
  ...publicTool,
400
519
  toolId,
401
520
  provider: tool.provider,
@@ -480,9 +599,9 @@ function toolInputFieldsForDisplay(inputSchema) {
480
599
  );
481
600
  return fields.map((field) => {
482
601
  const jsonSchemaField = typeof field.name === "string" ? jsonSchemaFields.get(field.name) : void 0;
483
- const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _4 => _4.minItems]);
484
- const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.maxItems]);
485
- const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.items]);
602
+ const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.minItems]);
603
+ const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.maxItems]);
604
+ const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _7 => _7.items]);
486
605
  return {
487
606
  ...field,
488
607
  ...isRecord(items) ? { items } : {},
@@ -720,7 +839,7 @@ function formatModelDescription(description) {
720
839
  function appendNamespace(lines, namespace) {
721
840
  lines.push(`- ${namespace.provider} (${namespace.sourceSymbol})`);
722
841
  for (const field of namespace.fields) {
723
- const values = _optionalChain([field, 'access', _7 => _7.enumValues, 'optionalAccess', _8 => _8.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
842
+ const values = _optionalChain([field, 'access', _8 => _8.enumValues, 'optionalAccess', _9 => _9.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
724
843
  lines.push(
725
844
  ` - ${field.name}: ${field.type}${values} - ${field.description}`
726
845
  );
@@ -762,4 +881,6 @@ function arrayField2(value, key) {
762
881
 
763
882
 
764
883
 
765
- exports.isPlayLikeTool = isPlayLikeTool; exports.isMonitorTypeTool = isMonitorTypeTool; exports.playReferenceForTool = playReferenceForTool; exports.playSearchCommandForToolId = playSearchCommandForToolId; exports.playRunCommandForTool = playRunCommandForTool; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.samplePayloadForInputFields = samplePayloadForInputFields; exports.playResultExpression = playResultExpression; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.toolInputFieldsForDisplay = toolInputFieldsForDisplay; exports.toolOutputFieldsForDisplay = toolOutputFieldsForDisplay; exports.recursiveToolInputFieldsForDisplay = recursiveToolInputFieldsForDisplay; exports.isRecord = isRecord; exports.stringField = stringField; exports.arrayField = arrayField; exports.recordField = recordField; exports.formatModelDescription = formatModelDescription;
884
+
885
+
886
+ exports.observedMaxText = observedMaxText; exports.Capability = Capability; exports.isPlayLikeTool = isPlayLikeTool; exports.isMonitorTypeTool = isMonitorTypeTool; exports.playReferenceForTool = playReferenceForTool; exports.playSearchCommandForToolId = playSearchCommandForToolId; exports.playRunCommandForTool = playRunCommandForTool; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.samplePayloadForInputFields = samplePayloadForInputFields; exports.playResultExpression = playResultExpression; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.toolInputFieldsForDisplay = toolInputFieldsForDisplay; exports.toolOutputFieldsForDisplay = toolOutputFieldsForDisplay; exports.recursiveToolInputFieldsForDisplay = recursiveToolInputFieldsForDisplay; exports.isRecord = isRecord; exports.stringField = stringField; exports.arrayField = arrayField; exports.recordField = recordField; exports.formatModelDescription = formatModelDescription;
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
31
31
 
32
32
 
33
33
 
34
- var _chunkSV2TEZ2Mjs = require('./chunk-SV2TEZ2M.js');
34
+ var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.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(_chunkSV2TEZ2Mjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
655
+ atomicToolsSupported = response2.headers.get(_chunkFIUTDSJXjs.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
- [_chunkSV2TEZ2Mjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1111
- ...receivers ? { [_chunkSV2TEZ2Mjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1110
+ [_chunkFIUTDSJXjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1111
+ ...receivers ? { [_chunkFIUTDSJXjs.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(_chunkSV2TEZ2Mjs.SDK_API_MAJOR) } : headers,
1182
+ _optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkFIUTDSJXjs.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 { [_chunkSV2TEZ2Mjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3263
+ return { [_chunkFIUTDSJXjs.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(_chunkSV2TEZ2Mjs.SDK_API_MAJOR)
4075
+ "X-Deepline-API-Major": String(_chunkFIUTDSJXjs.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,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-VTDAJZIJ.mjs";
3
+ } from "./chunk-5GI6NKOE.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-MADTHS56.mjs";
7
+ } from "./chunk-L3TZV625.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-VTDAJZIJ.mjs";
6
+ } from "./chunk-5GI6NKOE.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-66XDYH5T.mjs";
14
+ } from "./chunk-KGLVATEB.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,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-VTDAJZIJ.mjs";
3
+ } from "./chunk-5GI6NKOE.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-MADTHS56.mjs";
7
+ } from "./chunk-L3TZV625.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-V5NHEYU7.mjs";
7
+ } from "./chunk-GLZBFBJS.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-J74N375S.mjs";
10
+ } from "./chunk-BI2Q45SY.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-66XDYH5T.mjs";
14
+ } from "./chunk-KGLVATEB.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-MADTHS56.mjs";
17
+ } from "./chunk-L3TZV625.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-EHVFBD36.mjs";
20
+ } from "./chunk-KPBBT6OS.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkBOFCF4L7js = require('./chunk-BOFCF4L7.js');
5
+ var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
6
6
 
7
7
 
8
- var _chunkSV2TEZ2Mjs = require('./chunk-SV2TEZ2M.js');
8
+ var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
9
9
 
10
10
 
11
11
 
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
293
293
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
294
294
  var defaultBrowserCommandRunner = childProcess;
295
295
  function getAuthedHttpClient() {
296
- const config = _chunkBOFCF4L7js.resolveConfig.call(void 0, );
297
- return { config, http: new (0, _chunkBOFCF4L7js.HttpClient)(config) };
296
+ const config = _chunkHS63YBT5js.resolveConfig.call(void 0, );
297
+ return { config, http: new (0, _chunkHS63YBT5js.HttpClient)(config) };
298
298
  }
299
299
  function stableOsUserId() {
300
300
  try {
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
634
634
  os: `${process.platform} ${process.arch}`,
635
635
  node_version: process.version,
636
636
  home_dir: homeDir,
637
- agent_runtime: _chunkSV2TEZ2Mjs.detectAgentRuntime.call(void 0, )
637
+ agent_runtime: _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, )
638
638
  };
639
639
  const env = process.env;
640
640
  const optional = {
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
881
881
  }
882
882
  function withAgentCommandContext(value) {
883
883
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
884
- return _chunkSV2TEZ2Mjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
884
+ return _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
885
885
  ...valueRecord,
886
- command_context: _chunkBOFCF4L7js.resolveCliCommandContext.call(void 0, )
886
+ command_context: _chunkHS63YBT5js.resolveCliCommandContext.call(void 0, )
887
887
  } : value;
888
888
  }
889
889
  function printJson(value, fields) {
@@ -2,13 +2,13 @@ import {
2
2
  SCHEMA_LINE_LIMIT,
3
3
  fieldBlockLines,
4
4
  schemaFields
5
- } from "./chunk-SAW3FBCA.mjs";
5
+ } from "./chunk-ITJ7NB2D.mjs";
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows,
9
9
  markJsonOutputHandled,
10
10
  writeRawStderr
11
- } from "./chunk-66XDYH5T.mjs";
11
+ } from "./chunk-KGLVATEB.mjs";
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunk4OXHLTCPjs = require('./chunk-4OXHLTCP.js');
19
+ var _chunkIIP46RVCjs = require('./chunk-IIP46RVC.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunk4OXHLTCPjs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunk4OXHLTCPjs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk4OXHLTCPjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunkIIP46RVCjs.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunkIIP46RVCjs.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkIIP46RVCjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
25
25
 
26
26
  // src/agent-runtime.ts
27
27
  var _os = require('os');
@@ -130,6 +130,7 @@ var _crypto = require('crypto');
130
130
  var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
131
131
  var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
132
132
  var MAX_RUNNER_HEARTBEAT_SILENCE_MS = 10 * 6e4;
133
+ var FENCE_COMMIT_ABANDON_MAX_MS = 10 * 6e4;
133
134
 
134
135
  // ../integration-contracts/execute-retry-contract.ts
135
136
  var EXECUTE_RETRY_POLICY_HEADER = "x-deepline-execute-retry-policy";