deepline 0.3.523 → 0.3.525

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 (177) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +68 -60
  2. package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
  3. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  6. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
  7. package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
  8. package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -0
  9. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  10. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  11. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +397 -22
  13. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +473 -13
  14. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
  22. package/dist/cli/auth-K7PMRXNG.js +43 -0
  23. package/dist/cli/{auth-ENQUQS56.mjs → auth-TH3VGYBK.mjs} +5 -5
  24. package/dist/cli/{billing-6A27ULCX.mjs → billing-CMHFI2LN.mjs} +8 -8
  25. package/dist/cli/{billing-6HONTJOY.js → billing-TWKVUFU2.js} +83 -83
  26. package/dist/cli/{chunk-JMMNCJ7Z.js → chunk-2WFVLOB7.js} +1 -1
  27. package/dist/cli/{chunk-S4YKRH3W.js → chunk-4UWXFXQF.js} +3 -3
  28. package/dist/cli/{chunk-PCORO245.mjs → chunk-5BSGWIQD.mjs} +2 -2
  29. package/dist/cli/{chunk-SBGKKOCC.js → chunk-5JFAQUZS.js} +26 -26
  30. package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
  31. package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
  32. package/dist/cli/{chunk-JVEFMOY2.mjs → chunk-7C4F4TLR.mjs} +1 -1
  33. package/dist/cli/{chunk-QMBL5ZIQ.mjs → chunk-7OF3A4KJ.mjs} +3 -3
  34. package/dist/cli/{chunk-326WVSWS.js → chunk-AVDEYOVP.js} +269 -269
  35. package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
  36. package/dist/cli/{chunk-ZWN4RXC2.js → chunk-CKTRQSRA.js} +22 -22
  37. package/dist/cli/{chunk-I62LJ7NU.mjs → chunk-CLTL7ZJI.mjs} +1 -1
  38. package/dist/cli/{chunk-IEVXYHGJ.js → chunk-CQSANB3V.js} +5 -5
  39. package/dist/cli/{chunk-QYXIODWH.js → chunk-CWRL6IQP.js} +44 -29
  40. package/dist/cli/{chunk-WVQOXYTQ.mjs → chunk-CZNEQMJR.mjs} +37 -34
  41. package/dist/cli/{chunk-4NWY7JBB.js → chunk-DYS3KWYF.js} +11 -11
  42. package/dist/cli/{chunk-HSVGP4CI.mjs → chunk-EP6YH6QJ.mjs} +2 -2
  43. package/dist/cli/{chunk-XYL26236.js → chunk-ESWM2JW4.js} +2 -2
  44. package/dist/cli/{chunk-6OZ2WSHD.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
  45. package/dist/cli/{chunk-6DBRBWHC.mjs → chunk-GCLNX72G.mjs} +2 -2
  46. package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
  47. package/dist/cli/{chunk-QSAC3IVI.mjs → chunk-IMO3HXWZ.mjs} +1 -1
  48. package/dist/cli/{chunk-JGZQBDYG.mjs → chunk-JVWSIA2V.mjs} +4 -4
  49. package/dist/cli/{chunk-7GNKAACY.js → chunk-KBOSALBI.js} +10 -10
  50. package/dist/cli/{chunk-K326BEVR.js → chunk-KEZ3KBWW.js} +10 -10
  51. package/dist/cli/{chunk-7M5FRSFP.mjs → chunk-KPINGHIF.mjs} +2 -2
  52. package/dist/cli/{chunk-UH3EAFFN.mjs → chunk-LAMGJQDY.mjs} +2 -2
  53. package/dist/cli/{chunk-UQN4VTZL.js → chunk-LE537GBC.js} +13 -6
  54. package/dist/cli/{chunk-PESMXAUG.js → chunk-LXKH4MKH.js} +6 -6
  55. package/dist/cli/{chunk-4V63IJCL.mjs → chunk-M43ZYNDA.mjs} +5 -5
  56. package/dist/cli/{chunk-XVXEARHC.js → chunk-MHBSRNI7.js} +41 -41
  57. package/dist/cli/{chunk-HUC5SGJQ.js → chunk-MRUFGOJR.js} +2 -2
  58. package/dist/cli/{chunk-RQN4PHRE.js → chunk-N4MMU3QF.js} +21 -21
  59. package/dist/cli/{chunk-2BRDHM4S.js → chunk-NB2ECLQE.js} +9 -9
  60. package/dist/cli/{chunk-DNXP3D5H.mjs → chunk-NO4URKKT.mjs} +5 -5
  61. package/dist/cli/{chunk-MZROKQV3.js → chunk-NRBCETWL.js} +44 -44
  62. package/dist/cli/{chunk-JCTTXLAZ.mjs → chunk-OWQF6WVH.mjs} +10 -3
  63. package/dist/cli/{chunk-NWTMQGPP.mjs → chunk-OXFIJYN3.mjs} +8 -8
  64. package/dist/cli/{chunk-FBMOBNJY.js → chunk-P62LON53.js} +2 -2
  65. package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
  66. package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
  67. package/dist/cli/{chunk-N5MLEXZ7.js → chunk-QR7VYYNM.js} +176 -173
  68. package/dist/cli/{chunk-RKREB7MU.mjs → chunk-RMZ6CISE.mjs} +3 -3
  69. package/dist/cli/{chunk-V46J3UTM.js → chunk-S5LUY3KJ.js} +7 -7
  70. package/dist/cli/{chunk-MCXPJYBN.js → chunk-TFEGJEYO.js} +3 -3
  71. package/dist/cli/{chunk-MT3WG3KR.js → chunk-TO72GW5I.js} +16 -16
  72. package/dist/cli/{chunk-H7275EZU.mjs → chunk-TXSBPBHB.mjs} +5 -5
  73. package/dist/cli/{chunk-SXTVJIGB.mjs → chunk-U4M32NFS.mjs} +1 -1
  74. package/dist/cli/{chunk-5WFQXAD4.mjs → chunk-UQYKSOGO.mjs} +5 -5
  75. package/dist/cli/{chunk-KILRUAXF.mjs → chunk-UXF3ODJJ.mjs} +2 -2
  76. package/dist/cli/{chunk-36LQQL5C.js → chunk-V2GN4PLK.js} +5 -5
  77. package/dist/cli/{chunk-HUIFUE4L.js → chunk-V65J64FL.js} +53 -53
  78. package/dist/cli/{chunk-U6DLLV3S.mjs → chunk-VYIAWAKJ.mjs} +1 -1
  79. package/dist/cli/{chunk-WGVJA4I5.js → chunk-WA3FG7DH.js} +14 -14
  80. package/dist/cli/{chunk-MHTRYBXY.mjs → chunk-WEYFSBAD.mjs} +44 -29
  81. package/dist/cli/{chunk-LZL6V5M5.mjs → chunk-WGRDOPAK.mjs} +2 -2
  82. package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
  83. package/dist/cli/{chunk-QOO5W5XS.mjs → chunk-YC7FKAJ4.mjs} +12 -12
  84. package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
  85. package/dist/cli/{chunk-F3WRLFFM.mjs → chunk-ZWFTHEPT.mjs} +2 -2
  86. package/dist/cli/command-docs.js +2 -2
  87. package/dist/cli/command-docs.mjs +1 -1
  88. package/dist/cli/{csv-UBACJK75.js → csv-5JHWVJ5N.js} +13 -13
  89. package/dist/cli/{csv-YFJ2JLUP.mjs → csv-OO554TPX.mjs} +4 -4
  90. package/dist/cli/{db-2ZPA2LZ7.js → db-CYQJ4OXF.js} +28 -28
  91. package/dist/cli/{db-NKGYTAQO.mjs → db-SQKJ6RKU.mjs} +7 -7
  92. package/dist/cli/describe-N7AKTUQV.mjs +50 -0
  93. package/dist/cli/describe-PASXOL3R.js +50 -0
  94. package/dist/cli/describe-core.d.mts +4 -2
  95. package/dist/cli/describe-core.d.ts +4 -2
  96. package/dist/cli/describe-core.js +5 -5
  97. package/dist/cli/describe-core.mjs +4 -4
  98. package/dist/cli/{executions-HTHQ7KKD.mjs → executions-F34DORW6.mjs} +7 -7
  99. package/dist/cli/{executions-NXMRGPIL.js → executions-K7EGCRKX.js} +9 -9
  100. package/dist/cli/{feedback-USP4T34P.mjs → feedback-GQHKCS66.mjs} +5 -5
  101. package/dist/cli/{feedback-TGVQACRO.js → feedback-NOQVCA3Q.js} +10 -10
  102. package/dist/cli/{git-KUONEHCD.mjs → git-2EEITXDB.mjs} +5 -5
  103. package/dist/cli/git-UU4YFJ2Q.js +25 -0
  104. package/dist/cli/index.js +146 -146
  105. package/dist/cli/index.mjs +45 -45
  106. package/dist/cli/{legacy-noops-B2GMHU42.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
  107. package/dist/cli/{legacy-noops-2JY3CQ24.js → legacy-noops-RFNHQ7RG.js} +9 -9
  108. package/dist/cli/{monitors-2OVBZJ6Z.mjs → monitors-RDMP6SPZ.mjs} +8 -8
  109. package/dist/cli/{monitors-XI6I52AX.js → monitors-UKRZ4BDK.js} +101 -101
  110. package/dist/cli/{org-5TUQ2H6Y.js → org-OX7TYTHV.js} +87 -87
  111. package/dist/cli/{org-BNJW764Y.mjs → org-RF3G4KMB.mjs} +7 -7
  112. package/dist/cli/{pages-QC3TQIPW.mjs → pages-FBM3MGSP.mjs} +7 -7
  113. package/dist/cli/{pages-UXCLX53Y.js → pages-MKQT5LFV.js} +19 -19
  114. package/dist/cli/{play-KRWMZ7FG.js → play-OOVX2DMV.js} +802 -713
  115. package/dist/cli/{play-45PPG5SZ.mjs → play-YWC2UORM.mjs} +197 -108
  116. package/dist/cli/{providers-RBUJ72Y3.js → providers-2CGZYLER.js} +10 -10
  117. package/dist/cli/{providers-JDT35MRL.mjs → providers-3PEQESIU.mjs} +7 -7
  118. package/dist/cli/{quickstart-JZ4Q3HFT.js → quickstart-6AANHKQZ.js} +6 -6
  119. package/dist/cli/{quickstart-GD2SWGAC.mjs → quickstart-KVB36SOW.mjs} +4 -4
  120. package/dist/cli/{run-JEAHA367.js → run-NJ7WV5TK.js} +46 -46
  121. package/dist/cli/{run-KIZ3HBI2.mjs → run-QC23NRKO.mjs} +27 -27
  122. package/dist/cli/{search-5UFNXHFK.mjs → search-7BMFFZI2.mjs} +9 -9
  123. package/dist/cli/search-NH4DTXUK.js +33 -0
  124. package/dist/cli/{search-output-HAXPKQO6.mjs → search-output-CALZ4ZI2.mjs} +4 -4
  125. package/dist/cli/{search-output-W3RDSVLE.js → search-output-XC2AVBFX.js} +6 -6
  126. package/dist/cli/{secrets-JAWT66B2.mjs → secrets-7ZHA57DI.mjs} +7 -7
  127. package/dist/cli/{secrets-PC7C2Q32.js → secrets-VHU4B2D4.js} +16 -16
  128. package/dist/cli/sessions-2TE5JWVP.js +18 -0
  129. package/dist/cli/{sessions-325V7G35.mjs → sessions-YYULWFZE.mjs} +6 -6
  130. package/dist/cli/{settings-FKHTA65P.mjs → settings-AVY4NNHI.mjs} +14 -14
  131. package/dist/cli/{settings-RGU6Y2QR.js → settings-WV77QJGD.js} +87 -87
  132. package/dist/cli/{setup-43GOYTFC.mjs → setup-AOUJ3RMU.mjs} +10 -10
  133. package/dist/cli/{setup-ZMZ7HU2I.js → setup-GE5TLTC4.js} +50 -50
  134. package/dist/cli/{skills-Q2VAHSXM.mjs → skills-FVWO2G66.mjs} +8 -8
  135. package/dist/cli/skills-OL7LD6QX.js +37 -0
  136. package/dist/cli/{tools-BUH7ZWDS.mjs → tools-URE655B4.mjs} +20 -20
  137. package/dist/cli/tools-VQ5JO6DI.js +57 -0
  138. package/dist/cli/{update-JFALWOHD.mjs → update-5B4G4345.mjs} +10 -10
  139. package/dist/cli/update-7ZOIOTZN.js +35 -0
  140. package/dist/cli/{artifacts-RBHR2DG4.mjs → views-GSECJ5IK.mjs} +77 -77
  141. package/dist/cli/views-IC762HEQ.js +270 -0
  142. package/dist/cli/{workflow-ISJKLY6X.mjs → workflow-6UQM565I.mjs} +8 -8
  143. package/dist/cli/{workflow-YELST32A.js → workflow-EME7ZEOV.js} +18 -18
  144. package/dist/{client-C2N7MofG.d.mts → client-Bd2meveV.d.mts} +1 -1
  145. package/dist/{client-C7lTRJjw.d.ts → client-CBCVhL8U.d.ts} +1 -1
  146. package/dist/{client-core-BTkDSKGn.d.mts → client-core-CGj8V9mw.d.mts} +110 -43
  147. package/dist/{client-core-hmhBi7Ib.d.ts → client-core-CsRRWCFy.d.ts} +110 -43
  148. package/dist/index.d.mts +3 -3
  149. package/dist/index.d.ts +3 -3
  150. package/dist/index.js +10 -10
  151. package/dist/index.mjs +7 -7
  152. package/dist/install-integrity.json +120 -118
  153. package/dist/plays/play-description.d.mts +1 -1
  154. package/dist/plays/play-description.d.ts +1 -1
  155. package/dist/plays/play-description.js +2 -2
  156. package/dist/plays/play-description.mjs +1 -1
  157. package/dist/plays/run-request.d.mts +1 -1
  158. package/dist/plays/run-request.d.ts +1 -1
  159. package/dist/release.d.mts +1 -1
  160. package/dist/release.d.ts +1 -1
  161. package/dist/release.js +2 -2
  162. package/dist/release.mjs +1 -1
  163. package/dist/server.d.mts +2 -2
  164. package/dist/server.d.ts +2 -2
  165. package/dist/server.js +6 -6
  166. package/dist/server.mjs +4 -4
  167. package/package.json +1 -1
  168. package/dist/cli/artifacts-RZTS2JHZ.js +0 -270
  169. package/dist/cli/auth-DPWYFQR5.js +0 -43
  170. package/dist/cli/describe-GX7DRKWZ.mjs +0 -50
  171. package/dist/cli/describe-WQZF7MEG.js +0 -50
  172. package/dist/cli/git-X3SCQREB.js +0 -25
  173. package/dist/cli/search-6JULJMD7.js +0 -33
  174. package/dist/cli/sessions-WFUCOJHZ.js +0 -18
  175. package/dist/cli/skills-3XTQ6FFM.js +0 -37
  176. package/dist/cli/tools-UK2R4YXQ.js +0 -57
  177. package/dist/cli/update-LNKPHS54.js +0 -35
@@ -3,7 +3,7 @@ import {
3
3
  formatModelDescription,
4
4
  publicToolSchemas,
5
5
  toolMetadataJsonForDescribe
6
- } from "./chunk-R2VZVHJP.mjs";
6
+ } from "./chunk-GESIFFQX.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-ITJ7NB2D.mjs";
16
+ } from "./chunk-7AOFSZJM.mjs";
17
17
  import {
18
18
  DeeplineError
19
19
  } from "./chunk-ZPGGW27Q.mjs";
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkMT3WG3KRjs = require('./chunk-MT3WG3KR.js');
7
+ var _chunkTO72GW5Ijs = require('./chunk-TO72GW5I.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkMZROKQV3js = require('./chunk-MZROKQV3.js');
11
+ var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
15
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
16
16
 
17
17
 
18
- var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
18
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
19
19
 
20
20
 
21
- var _chunkUQN4VTZLjs = require('./chunk-UQN4VTZL.js');
21
+ var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkMCXPJYBNjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkUQN4VTZLjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkLE537GBCjs.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkUQN4VTZLjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkUQN4VTZLjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkLE537GBCjs.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkLE537GBCjs.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkUQN4VTZLjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLE537GBCjs.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkMT3WG3KRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkMZROKQV3js.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkTO72GW5Ijs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkNRBCETWLjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkUQN4VTZLjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLE537GBCjs.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkMT3WG3KRjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkTO72GW5Ijs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkUQN4VTZLjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLE537GBCjs.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkMT3WG3KRjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkTO72GW5Ijs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkMT3WG3KRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkTO72GW5Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkV46J3UTMjs.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkV46J3UTMjs.addJsonNotice.call(void 0, {
172
+ _chunkS5LUY3KJjs.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkMT3WG3KRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkTO72GW5Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkMT3WG3KRjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkTO72GW5Ijs.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunkMZROKQV3js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunkNRBCETWLjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkV46J3UTMjs.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-6DBRBWHC.mjs";
3
+ } from "./chunk-GCLNX72G.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkN5MLEXZ7js = require('./chunk-N5MLEXZ7.js');
3
+ var _chunkQR7VYYNMjs = require('./chunk-QR7VYYNM.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
7
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkMCXPJYBNjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkN5MLEXZ7js.PlayClient)(
142
- new (0, _chunkMCXPJYBNjs.HttpClient)(config),
140
+ const config = _chunkTFEGJEYOjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkQR7VYYNMjs.PlayClient)(
142
+ new (0, _chunkTFEGJEYOjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -1181,18 +1181,16 @@ Related:
1181
1181
  "plays get": {
1182
1182
  core: `
1183
1183
  Purpose:
1184
- Full metadata for a play: revisions, source, triggers, and latest runs.
1184
+ [[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
1185
1185
  When:
1186
- Only when describe is not enough: reading the source ([[--source]] [[--out]]
1187
- file.play.ts), checking revisions, or auditing a saved play.
1186
+ [[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
1188
1187
  [[cli:
1189
1188
  Input:
1190
1189
  The play reference. --source prints or writes the source; --working,
1191
1190
  --live, --revision <n> pick which source.
1192
1191
  ]]
1193
1192
  Output (JSON):
1194
- The play record with revision and trigger metadata; with [[--source]], the
1195
- TypeScript source.
1193
+ [[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
1196
1194
  Cost:
1197
1195
  Free.
1198
1196
  `
@@ -1250,7 +1248,11 @@ Input:
1250
1248
  --no-wait returns the run id immediately instead of waiting.
1251
1249
  --run-id-file <path> writes the run id as soon as the server accepts it.
1252
1250
  --from-run <run-id> starts a new run with that run's retained input and
1253
- pinned revision instead of a target and input.
1251
+ pinned revision instead of a target and input. With it, --idempotency-key
1252
+ <key> and --input-overrides <json> work as on runs rerun: a key dedups only
1253
+ the exact same rerun intent (source run, resulting input, pinned revision);
1254
+ the same key with a changed input gets a 409 conflict. Use one stable key
1255
+ per exact intent. Without a key each invocation starts a new run.
1254
1256
  ]]
1255
1257
  [[cli:
1256
1258
  Output (JSON, printed when the run ends):
@@ -1498,7 +1500,7 @@ Input:
1498
1500
  [[cli:
1499
1501
  Output (JSON):
1500
1502
  kind "run_overview", runUrl (the Play page with this run selected),
1501
- run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
1503
+ run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
1502
1504
  reused, failed, completedRows}}, failures.steps[], errorDetails,
1503
1505
  rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
1504
1506
  storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
@@ -1528,6 +1530,15 @@ Output fields:
1528
1530
  run.status queued, running, completed, failed, or stopped. Only
1529
1531
  the last three are terminal.
1530
1532
  run.activity the current step while running, null when finished.
1533
+ run.retries failure-driven retries since the last resume:
1534
+ platformRecoveries {preCode, postCode} and
1535
+ recoveryOutcome (none, recovering, recovered,
1536
+ exhausted), plus resumeEpoch (runs resume count).
1537
+ Durable waits are not retries and are not counted. A
1538
+ retried attempt may repeat earlier work; these are
1539
+ counts, not proof that anything ran once. Provider
1540
+ retries inside one call are not counted; read them
1541
+ with runs logs <run-id> --kind activity.observed.
1531
1542
  steps[].label the step's state in one line, as the dashboard shows
1532
1543
  it.
1533
1544
  datasets[].summary.reportedPopulation {totalRows, persistedRows,
@@ -1784,7 +1795,11 @@ When:
1784
1795
  after fixing its cause, prefer runs resume.
1785
1796
  [[cli:
1786
1797
  Input:
1787
- The run id. --json.
1798
+ The run id. --json. --input-overrides <json> changes existing scalar input
1799
+ fields. --idempotency-key <key> makes a retry return the same rerun: a key
1800
+ dedups only the exact same rerun intent (source run, resulting input,
1801
+ pinned revision); the same key with a changed input gets a 409 conflict and
1802
+ starts nothing. Use one stable key per exact intent.
1788
1803
  ]]
1789
1804
  Output (JSON):
1790
1805
  The new run's package, as plays run --json prints.
@@ -2025,17 +2040,17 @@ Avoid:
2025
2040
  Do not post a link anywhere public: it opens the page for anyone holding it.
2026
2041
  `
2027
2042
  },
2028
- artifacts: {
2029
- rolloutFeature: "artifacts",
2043
+ views: {
2044
+ rolloutFeature: "views",
2030
2045
  core: `
2031
2046
  Purpose:
2032
- Show what a Play returns at a fixed URL, https://artifacts.deepline.com/<id>,
2047
+ Show what a Play returns at a fixed URL, https://views.deepline.com/<id>,
2033
2048
  and keep every run. Also called a report or dashboard; use it to turn a
2034
- static artifact into one that stays current.
2049
+ static view into one that stays current.
2035
2050
  When:
2036
2051
  To share results that change: run the Play again (or schedule it) and the
2037
- artifact shows the new run. People can switch to earlier runs in the
2038
- artifact itself.
2052
+ view shows the new run. People can switch to earlier runs in the
2053
+ view itself.
2039
2054
  How output is shown:
2040
2055
  HTML output, { type: "html", content: "<h1>\u2026</h1>" }, renders as a page in a
2041
2056
  sandbox. Scripts and https requests work; links to other sites ask first.
@@ -2044,16 +2059,16 @@ How output is shown:
2044
2059
  audio, video, files, graphs, and readable values for everything else; the
2045
2060
  same conventions as Deepline's browser extension.
2046
2061
  The sequence:
2047
- 1. Create it: [[artifacts create --name <name> --play <play>]]. The output
2062
+ 1. Create it: [[views create --name <name> --play <play>]]. The output
2048
2063
  prints the URL and id. --input saves the input Refresh runs the Play with.
2049
- 2. Fill it in: [[artifacts refresh <id>]] runs the Play. A scheduled Play
2064
+ 2. Fill it in: [[views refresh <id>]] runs the Play. A scheduled Play
2050
2065
  refreshes it automatically; every run of the Play appears in it.
2051
2066
  3. Share it: the URL opens for workspace members by default.
2052
- [[artifacts set-access <id> public]] lets anyone with the URL open it and
2067
+ [[views set-access <id> public]] lets anyone with the URL open it and
2053
2068
  see the output of every run of its Play, including runs started outside
2054
- the artifact (by hand, on a schedule, or from the CLI).
2055
- 4. Manage it: [[artifacts list]], [[artifacts get <id>]],
2056
- [[artifacts edit <id>]], [[artifacts runs <id>]], [[artifacts delete <id>]].
2069
+ the view (by hand, on a schedule, or from the CLI).
2070
+ 4. Manage it: [[views list]], [[views get <id>]],
2071
+ [[views edit <id>]], [[views runs <id>]], [[views delete <id>]].
2057
2072
  Buttons in HTML output:
2058
2073
  An HTML output may declare actions beside its content,
2059
2074
  actions: [{ id, type: "run_play", play, input? }], and use
@@ -2061,20 +2076,20 @@ Buttons in HTML output:
2061
2076
  opens a launch form where a signed-in member reviews the inputs and starts
2062
2077
  the run. Plays in this workspace only; never for public visitors.
2063
2078
  Permissions:
2064
- [[artifacts permissions]] shows who may create, edit, delete, set access, and
2065
- refresh; admins change them with [[artifacts permissions set]].
2079
+ [[views permissions]] shows who may create, edit, delete, set access, and
2080
+ refresh; admins change them with [[views permissions set]].
2066
2081
  Cost:
2067
- Artifacts are free. Refresh and buttons start ordinary Play runs.
2082
+ Views are free. Refresh and buttons start ordinary Play runs.
2068
2083
  Avoid:
2069
- Do not return secrets from a Play behind a public artifact, in any run. Do not create a
2070
- new artifact per run; one artifact keeps every run.
2084
+ Do not return secrets from a Play behind a public view, in any run. Do not create a
2085
+ new view per run; one view keeps every run.
2071
2086
  `
2072
2087
  },
2073
- "artifacts create": {
2074
- rolloutFeature: "artifacts",
2088
+ "views create": {
2089
+ rolloutFeature: "views",
2075
2090
  core: `
2076
2091
  Purpose:
2077
- Create an artifact that shows a Play's runs at a fixed URL.
2092
+ Create a view that shows a Play's runs at a fixed URL.
2078
2093
  [[cli:
2079
2094
  Input:
2080
2095
  --name <name> (1-120 characters). --play <play>: a Play in this workspace,
@@ -2084,7 +2099,7 @@ Input:
2084
2099
  Output (JSON):
2085
2100
  id, name, url, play, input, access (workspace).
2086
2101
  Errors (code):
2087
- name_invalid, play_invalid, input_invalid, forbidden, artifacts_not_enabled.
2102
+ name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
2088
2103
  Cost:
2089
2104
  Free.
2090
2105
  `
@@ -24,14 +24,14 @@ import {
24
24
  import {
25
25
  describePlayDetail,
26
26
  describePlayListItem
27
- } from "./chunk-S3A4IXBQ.mjs";
27
+ } from "./chunk-PSX3WHIH.mjs";
28
28
  import {
29
29
  ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER,
30
30
  COORDINATOR_INTERNAL_TOKEN_HEADER,
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-JCTTXLAZ.mjs";
34
+ } from "./chunk-OWQF6WVH.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-QNHHZ63P.mjs";
@@ -3747,75 +3747,75 @@ var DeeplineClient = class _DeeplineClient {
3747
3747
  );
3748
3748
  }
3749
3749
  // ——————————————————————————————————————————————————————————
3750
- // Artifacts
3750
+ // Views
3751
3751
  // ——————————————————————————————————————————————————————————
3752
- /** List this workspace's artifacts, most recently changed first. */
3753
- async listArtifacts(input) {
3752
+ /** List this workspace's views, most recently changed first. */
3753
+ async listViews(input) {
3754
3754
  const params = new URLSearchParams();
3755
3755
  if (input?.cursor) params.set("cursor", input.cursor);
3756
3756
  if (input?.limit) params.set("limit", String(input.limit));
3757
3757
  const query = params.size > 0 ? `?${params}` : "";
3758
- return await this.http.get(`/api/v2/artifacts${query}`);
3758
+ return await this.http.get(`/api/v2/views${query}`);
3759
3759
  }
3760
- /** One artifact and what the caller may do with it. */
3761
- async getArtifact(id) {
3760
+ /** One view and what the caller may do with it. */
3761
+ async getView(id) {
3762
3762
  return await this.http.get(
3763
- `/api/v2/artifacts/${encodeURIComponent(id)}`
3763
+ `/api/v2/views/${encodeURIComponent(id)}`
3764
3764
  );
3765
3765
  }
3766
- /** Create an artifact that shows a Play's runs at a fixed URL. */
3767
- async createArtifact(input) {
3768
- return await this.http.post("/api/v2/artifacts", input);
3766
+ /** Create a view that shows a Play's runs at a fixed URL. */
3767
+ async createView(input) {
3768
+ return await this.http.post("/api/v2/views", input);
3769
3769
  }
3770
3770
  /** Change the name, description, Play, or saved input. */
3771
- async updateArtifact(id, input) {
3771
+ async updateView(id, input) {
3772
3772
  return await this.http.patch(
3773
- `/api/v2/artifacts/${encodeURIComponent(id)}`,
3773
+ `/api/v2/views/${encodeURIComponent(id)}`,
3774
3774
  input
3775
3775
  );
3776
3776
  }
3777
- /** Who can open an artifact: workspace members, or anyone with its URL. */
3778
- async setArtifactAccess(id, access) {
3777
+ /** Who can open a view: workspace members, or anyone with its URL. */
3778
+ async setViewAccess(id, access) {
3779
3779
  return await this.http.post(
3780
- `/api/v2/artifacts/${encodeURIComponent(id)}/access`,
3780
+ `/api/v2/views/${encodeURIComponent(id)}/access`,
3781
3781
  { access }
3782
3782
  );
3783
3783
  }
3784
- /** Every run of the artifact's Play, newest first. */
3785
- async listArtifactRuns(id, input) {
3784
+ /** Every run of the view's Play, newest first. */
3785
+ async listViewRuns(id, input) {
3786
3786
  const params = new URLSearchParams();
3787
3787
  if (input?.limit) params.set("limit", String(input.limit));
3788
3788
  if (input?.offset) params.set("offset", String(input.offset));
3789
3789
  const query = params.size > 0 ? `?${params}` : "";
3790
3790
  return await this.http.get(
3791
- `/api/v2/artifacts/${encodeURIComponent(id)}/runs${query}`
3791
+ `/api/v2/views/${encodeURIComponent(id)}/runs${query}`
3792
3792
  );
3793
3793
  }
3794
3794
  /**
3795
- * Refresh an artifact: run its Play with its saved input (or `input`). The run
3796
- * goes through the normal run API; the artifact shows it when it finishes.
3795
+ * Refresh a view: run its Play with its saved input (or `input`). The run
3796
+ * goes through the normal run API; the view shows it when it finishes.
3797
3797
  */
3798
- async refreshArtifact(id, input) {
3799
- const intent = await this.http.post(`/api/v2/artifacts/${encodeURIComponent(id)}/refresh`, {});
3798
+ async refreshView(id, input) {
3799
+ const intent = await this.http.post(`/api/v2/views/${encodeURIComponent(id)}/refresh`, {});
3800
3800
  const started = await this.startPlayRun({
3801
3801
  name: intent.play,
3802
3802
  input: input ?? intent.input
3803
3803
  });
3804
- return { ...started, artifact: intent.id };
3804
+ return { ...started, view: intent.id };
3805
3805
  }
3806
- /** Delete an artifact. Its Play and runs are not touched. */
3807
- async deleteArtifact(id) {
3806
+ /** Delete a view. Its Play and runs are not touched. */
3807
+ async deleteView(id) {
3808
3808
  return await this.http.delete(
3809
- `/api/v2/artifacts/${encodeURIComponent(id)}`
3809
+ `/api/v2/views/${encodeURIComponent(id)}`
3810
3810
  );
3811
3811
  }
3812
- /** The workspace artifact rules and what the caller may do. */
3813
- async getArtifactPermissions() {
3814
- return await this.http.get("/api/v2/artifacts/permissions");
3812
+ /** The workspace view rules and what the caller may do. */
3813
+ async getViewPermissions() {
3814
+ return await this.http.get("/api/v2/views/permissions");
3815
3815
  }
3816
- /** Change artifact rules. Admins only; omitted verbs keep their rule. */
3817
- async setArtifactPermissions(rules) {
3818
- return await this.http.put("/api/v2/artifacts/permissions", { rules });
3816
+ /** Change view rules. Admins only; omitted verbs keep their rule. */
3817
+ async setViewPermissions(rules) {
3818
+ return await this.http.put("/api/v2/views/permissions", { rules });
3819
3819
  }
3820
3820
  /** List secret metadata visible to the current workspace. */
3821
3821
  async listSecrets() {
@@ -4835,6 +4835,9 @@ var DeeplineClient = class _DeeplineClient {
4835
4835
  if (options?.performance === true) {
4836
4836
  params.append("include", "performance");
4837
4837
  }
4838
+ if (options?.retries === true) {
4839
+ params.append("include", "retries");
4840
+ }
4838
4841
  const query = params.size > 0 ? `?${params.toString()}` : "";
4839
4842
  const response = await this.http.get(
4840
4843
  `/api/v2/runs/${encodeURIComponent(runId)}${query}`,
@@ -3,18 +3,18 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunk36LQQL5Cjs = require('./chunk-36LQQL5C.js');
6
+ var _chunkV2GN4PLKjs = require('./chunk-V2GN4PLK.js');
7
7
 
8
8
 
9
- var _chunkWGVJA4I5js = require('./chunk-WGVJA4I5.js');
9
+ var _chunkWA3FG7DHjs = require('./chunk-WA3FG7DH.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
13
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
17
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  var _commander = require('commander');
@@ -24,7 +24,7 @@ var _fs = require('fs');
24
24
  var _path = require('path');
25
25
  var SEARCH_REF_TTL_MS = 15 * 6e4;
26
26
  function lastSearchPath() {
27
- return _path.join.call(void 0, _chunkMCXPJYBNjs.sdkCliStateDirPath.call(void 0, _chunkMCXPJYBNjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
27
+ return _path.join.call(void 0, _chunkTFEGJEYOjs.sdkCliStateDirPath.call(void 0, _chunkTFEGJEYOjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
28
28
  }
29
29
  function rememberSearchRef(searchRef) {
30
30
  writeSearchRefs({ searchRef });
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  console.error("--summary-width must be an integer of at least 2.");
135
135
  return 1;
136
136
  }
137
- const client = new (0, _chunk36LQQL5Cjs.DeeplineClient)();
137
+ const client = new (0, _chunkV2GN4PLKjs.DeeplineClient)();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-W3RDSVLE.js")));
139
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-XC2AVBFX.js")));
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
159
159
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
160
160
  if (!multiple) {
161
161
  if (searchRef) rememberSearchRef(searchRef);
162
- _chunkV46J3UTMjs.printCommandEnvelope.call(void 0, result, { json, text });
162
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, result, { json, text });
163
163
  return 0;
164
164
  }
165
165
  searches.push({ ...result, query });
@@ -173,8 +173,8 @@ ${text}`);
173
173
  }
174
174
  } catch (error) {
175
175
  if (!multiple) throw error;
176
- const payload = _chunkV46J3UTMjs.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWGVJA4I5js.resolveSdkCliFailureExitCode.call(void 0, error)));
176
+ const payload = _chunkS5LUY3KJjs.errorToJsonPayload.call(void 0, error);
177
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWA3FG7DHjs.resolveSdkCliFailureExitCode.call(void 0, error)));
178
178
  searches.push({ ...payload, query, exitCode: queryExitCode });
179
179
  if (!json) {
180
180
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -186,7 +186,7 @@ Search failed.
186
186
  }
187
187
  }
188
188
  rememberSearchRefsByTool(refs);
189
- _chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
189
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
190
190
  { searches },
191
191
  {
192
192
  json,
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-6DBRBWHC.mjs";
5
+ } from "./chunk-GCLNX72G.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-SXTVJIGB.mjs";
8
+ } from "./chunk-U4M32NFS.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -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 _chunkMZROKQV3js = require('./chunk-MZROKQV3.js');
3
+ var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.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 = _chunkMZROKQV3js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkNRBCETWLjs.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,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-4V63IJCL.mjs";
3
+ } from "./chunk-M43ZYNDA.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-SXTVJIGB.mjs";
5
+ } from "./chunk-U4M32NFS.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-JCTTXLAZ.mjs";
8
+ } from "./chunk-OWQF6WVH.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  readToolUpstreamResponse,
@@ -2,7 +2,7 @@ import {
2
2
  rateLimitSummary,
3
3
  schemaField,
4
4
  schemaFields
5
- } from "./chunk-ITJ7NB2D.mjs";
5
+ } from "./chunk-7AOFSZJM.mjs";
6
6
  import {
7
7
  playToolListGetterMode
8
8
  } from "./chunk-FR2ILQ4G.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-6DBRBWHC.mjs";
3
+ } from "./chunk-GCLNX72G.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";