deepline 0.3.545 → 0.3.546

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 (186) hide show
  1. package/dist/bundling-sources/sdk/src/errors.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/http-core.ts +41 -12
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  5. package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +5 -0
  6. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +27 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +8 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +40 -3
  10. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +19 -3
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +18 -4
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +441 -103
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +322 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +200 -64
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +65 -2
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -3
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +32 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +206 -12
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +30 -2
  20. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +30 -1
  21. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +35 -2
  22. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +35 -1
  23. package/dist/bundling-sources/shared_libs/security/email-domain.ts +19 -0
  24. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +2 -0
  25. package/dist/cli/{auth-VZAMAMFW.mjs → auth-KFWG72AZ.mjs} +6 -6
  26. package/dist/cli/auth-W32GMYND.js +43 -0
  27. package/dist/cli/{billing-DADQUQEZ.mjs → billing-MMZ336HO.mjs} +10 -10
  28. package/dist/cli/{billing-ASZJDFH2.js → billing-OQVOAZ4S.js} +98 -98
  29. package/dist/cli/{chunk-HLUNTJBO.mjs → chunk-3DUNNZB6.mjs} +4 -4
  30. package/dist/cli/{chunk-YRQKRQDU.js → chunk-4AZLGNXV.js} +36 -26
  31. package/dist/cli/{chunk-Y3T5GWYK.mjs → chunk-5OEFXAKP.mjs} +5 -1
  32. package/dist/cli/{chunk-ERLW6RPA.js → chunk-5V7NZKGG.js} +2 -2
  33. package/dist/cli/{chunk-34UKDHRL.js → chunk-5VNQMVCU.js} +26 -26
  34. package/dist/cli/{chunk-DZTVDL2X.js → chunk-5W4ENHWM.js} +12 -12
  35. package/dist/cli/{chunk-7JZ27AFH.mjs → chunk-6FBDTYR2.mjs} +2 -2
  36. package/dist/cli/{chunk-QM7PHHYZ.js → chunk-6LG7MLJ2.js} +44 -44
  37. package/dist/cli/{chunk-7MFATEUC.mjs → chunk-6Y5TU3R7.mjs} +2 -2
  38. package/dist/cli/{chunk-52C6W7FG.mjs → chunk-7MY7KWJS.mjs} +1 -1
  39. package/dist/cli/{chunk-7P72EGLK.mjs → chunk-7ZW67ME6.mjs} +1 -1
  40. package/dist/cli/{chunk-TQKHXMV3.js → chunk-BTFUAGHC.js} +16 -16
  41. package/dist/cli/{chunk-LWPFMYSO.mjs → chunk-EEG46QZY.mjs} +2 -2
  42. package/dist/cli/{chunk-NCX2JH2F.js → chunk-EEJHB76U.js} +9 -9
  43. package/dist/cli/{chunk-2GJZLIKW.js → chunk-EITMD3A5.js} +1 -1
  44. package/dist/cli/{chunk-DGKDCZGC.js → chunk-F2VEFMU5.js} +13 -13
  45. package/dist/cli/{chunk-4JQEAYN3.js → chunk-F5YQXCP3.js} +5 -1
  46. package/dist/cli/{chunk-2CBX43LP.mjs → chunk-GOOF7E2B.mjs} +5 -5
  47. package/dist/cli/{chunk-YWTRCKGD.mjs → chunk-GYTSDSQD.mjs} +11 -11
  48. package/dist/cli/{chunk-G5TV6WLV.js → chunk-H7Q5IDO3.js} +19 -19
  49. package/dist/cli/{chunk-3TCHX7YK.mjs → chunk-HJR2DDJS.mjs} +2 -2
  50. package/dist/cli/{chunk-OGQYAJSO.js → chunk-IVWU7SJC.js} +5 -5
  51. package/dist/cli/{chunk-XGEUPU3L.mjs → chunk-J65HJCJO.mjs} +2 -2
  52. package/dist/cli/{chunk-Z4Y4BLW7.mjs → chunk-JA633HRV.mjs} +3 -3
  53. package/dist/cli/{chunk-LTCEZWPZ.mjs → chunk-JARZ47OP.mjs} +2 -2
  54. package/dist/cli/{chunk-5YYWZ43J.js → chunk-JCH4UNNS.js} +2 -2
  55. package/dist/cli/{chunk-7MHBJU73.js → chunk-JCWNF44W.js} +22 -22
  56. package/dist/cli/{chunk-C6XYSTBW.js → chunk-JVOUQFHT.js} +1 -1
  57. package/dist/cli/{chunk-HR5BT42R.js → chunk-JYG4XZLT.js} +99 -99
  58. package/dist/cli/{chunk-KYO2FICL.mjs → chunk-K2XELBPF.mjs} +5 -5
  59. package/dist/cli/{chunk-2HFSYH7V.mjs → chunk-KUK7ARXA.mjs} +2 -2
  60. package/dist/cli/{chunk-WP36UBRY.mjs → chunk-LHE2TSV6.mjs} +1 -1
  61. package/dist/cli/{chunk-N4LADLCO.js → chunk-LIJKRDDG.js} +6 -6
  62. package/dist/cli/{chunk-KRW727W6.mjs → chunk-LX2TC3HO.mjs} +4 -4
  63. package/dist/cli/{chunk-QI57XUGA.js → chunk-MEGHIX4M.js} +5 -5
  64. package/dist/cli/{chunk-Z7QM244Q.mjs → chunk-MI7X6V6V.mjs} +3 -3
  65. package/dist/cli/{chunk-CJ7DBYEQ.js → chunk-MXQP7CXZ.js} +8 -8
  66. package/dist/cli/{chunk-GFRJU2KB.js → chunk-ND7SFRQL.js} +2 -2
  67. package/dist/cli/{chunk-CQBIO6HW.mjs → chunk-NURW5XH4.mjs} +1 -1
  68. package/dist/cli/{chunk-GWDPNOA7.mjs → chunk-OAKWSLKS.mjs} +2 -2
  69. package/dist/cli/{chunk-XBYQZEUE.mjs → chunk-P7A3H6G5.mjs} +1 -1
  70. package/dist/cli/{chunk-NZDZGK35.js → chunk-PMDHY2YK.js} +7 -7
  71. package/dist/cli/{chunk-4NZ3OZNO.mjs → chunk-PU3ZAG6V.mjs} +1 -1
  72. package/dist/cli/{chunk-3M2QH3KA.mjs → chunk-RO66FPTS.mjs} +22 -12
  73. package/dist/cli/{chunk-3NG43NXB.js → chunk-SH32HL7I.js} +53 -53
  74. package/dist/cli/{chunk-IYJO3RWR.js → chunk-SYTWWVIQ.js} +5 -5
  75. package/dist/cli/{chunk-FB7UPZ6M.js → chunk-TBWYZOSV.js} +3 -3
  76. package/dist/cli/{chunk-CXETRZ3G.js → chunk-UQJBV5PM.js} +10 -10
  77. package/dist/cli/{chunk-HPX7LLAM.mjs → chunk-UREAIHUU.mjs} +2 -2
  78. package/dist/cli/{chunk-2FF3O2Y2.js → chunk-VAT2SXFF.js} +12 -12
  79. package/dist/cli/{chunk-NAN3A4IF.mjs → chunk-VPERQ3U6.mjs} +5 -5
  80. package/dist/cli/{chunk-XMUPZINS.mjs → chunk-VTK3HGMN.mjs} +5 -5
  81. package/dist/cli/{chunk-JL5JU3LD.mjs → chunk-VXTTAYOT.mjs} +2 -2
  82. package/dist/cli/{chunk-EK5C2R7S.js → chunk-WKHPLBJK.js} +15 -15
  83. package/dist/cli/{chunk-EWA3M54M.mjs → chunk-X5KOHDJN.mjs} +1 -1
  84. package/dist/cli/{chunk-D3SXB2NX.js → chunk-Z3UEBFIN.js} +41 -41
  85. package/dist/cli/command-docs.js +2 -2
  86. package/dist/cli/command-docs.mjs +1 -1
  87. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +21 -0
  88. package/dist/cli/{concurrent-runs-help-YP7ALTDB.mjs → concurrent-runs-help-C2O5YKQA.mjs} +7 -7
  89. package/dist/cli/{csv-67WT5EGR.js → csv-MJDNOIQJ.js} +14 -14
  90. package/dist/cli/{csv-D5ITFSYI.mjs → csv-Z4DNGR54.mjs} +5 -5
  91. package/dist/cli/{db-SZYBRFYG.mjs → db-4RL2BNOF.mjs} +7 -7
  92. package/dist/cli/{db-GZS76X7R.js → db-S5QVPK5E.js} +32 -32
  93. package/dist/cli/{describe-YJ7ZLLLI.mjs → describe-L4P5SZLQ.mjs} +19 -19
  94. package/dist/cli/describe-VLU2LUDJ.js +50 -0
  95. package/dist/cli/describe-core.d.mts +3 -3
  96. package/dist/cli/describe-core.d.ts +3 -3
  97. package/dist/cli/describe-core.js +1 -1
  98. package/dist/cli/describe-core.mjs +1 -1
  99. package/dist/cli/{executions-O5USTYGL.js → executions-MFZ2Z36O.js} +9 -9
  100. package/dist/cli/{executions-HMYGR32E.mjs → executions-RR6O3XK5.mjs} +7 -7
  101. package/dist/cli/{feedback-Z3NXWYUO.mjs → feedback-EQBQ3ABB.mjs} +7 -7
  102. package/dist/cli/{feedback-RHLFDCRS.js → feedback-YDAG7VH2.js} +15 -15
  103. package/dist/cli/git-E6W44F5M.js +25 -0
  104. package/dist/cli/{git-CLFKXELB.mjs → git-YGLCCU35.mjs} +6 -6
  105. package/dist/cli/index.js +150 -150
  106. package/dist/cli/index.mjs +46 -46
  107. package/dist/cli/{integrations-FOACOBQB.mjs → integrations-FWYXSBHK.mjs} +8 -8
  108. package/dist/cli/{integrations-TZ4QEQGV.js → integrations-IQXYMRMW.js} +16 -16
  109. package/dist/cli/{legacy-noops-6F6Y3BV7.mjs → legacy-noops-I4YRIX5F.mjs} +7 -7
  110. package/dist/cli/{legacy-noops-QRDOS33V.js → legacy-noops-U7LI7UXC.js} +10 -10
  111. package/dist/cli/{mcp-ETMMDDGB.js → mcp-GX2UKKWU.js} +25 -25
  112. package/dist/cli/{mcp-UXRCWOZU.mjs → mcp-QJBMB6VS.mjs} +5 -5
  113. package/dist/cli/{monitors-DITT7QTV.js → monitors-WCJYINGX.js} +102 -102
  114. package/dist/cli/{monitors-6XEWR46R.mjs → monitors-Z6EGKYJP.mjs} +8 -8
  115. package/dist/cli/{org-4DE37X3L.js → org-7SKG423N.js} +89 -89
  116. package/dist/cli/{org-CVSSH73G.mjs → org-NNHICBR2.mjs} +7 -7
  117. package/dist/cli/{play-RH6P45CI.js → play-4P4DTG3Q.js} +318 -318
  118. package/dist/cli/{play-Y5NCHOKK.mjs → play-CXDFPJ7Z.mjs} +18 -18
  119. package/dist/cli/{providers-DU42DLOL.js → providers-EE4TUE3O.js} +10 -10
  120. package/dist/cli/{providers-VHUHC4IZ.mjs → providers-VQLQ7DTR.mjs} +7 -7
  121. package/dist/cli/{quickstart-HJY5YYE5.mjs → quickstart-IYNJRB5G.mjs} +5 -5
  122. package/dist/cli/{quickstart-XJ43JLEC.js → quickstart-RVXHK4WA.js} +7 -7
  123. package/dist/cli/{run-JXUS7QFI.js → run-R3F34KU3.js} +44 -44
  124. package/dist/cli/{run-JAIXHVH7.mjs → run-VBQPPMEX.mjs} +24 -24
  125. package/dist/cli/{search-RDMNM2AX.mjs → search-B7R62HX5.mjs} +8 -8
  126. package/dist/cli/search-UUVFXZRA.js +32 -0
  127. package/dist/cli/{search-output-ZKTR3WTJ.mjs → search-output-LNQQXIGZ.mjs} +5 -5
  128. package/dist/cli/{search-output-RKAM2HBH.js → search-output-LWHWEPOT.js} +7 -7
  129. package/dist/cli/{secrets-WSW3FTF6.mjs → secrets-NM3VAJLO.mjs} +7 -7
  130. package/dist/cli/{secrets-TKFVMAYX.js → secrets-QBOZ7WTD.js} +16 -16
  131. package/dist/cli/sessions-K3PD73Q2.js +22 -0
  132. package/dist/cli/{sessions-724BK6VP.mjs → sessions-R5BSIJ4I.mjs} +7 -7
  133. package/dist/cli/{settings-5LJZDAZU.js → settings-POYWKNRD.js} +86 -86
  134. package/dist/cli/{settings-YRC7J75G.mjs → settings-S4PN7WLY.mjs} +13 -13
  135. package/dist/cli/{setup-STNPX5MK.mjs → setup-PFLXVBTL.mjs} +10 -10
  136. package/dist/cli/{setup-2F3DBSOS.js → setup-VHB4Z654.js} +50 -50
  137. package/dist/cli/skills-QNE2EYT3.js +36 -0
  138. package/dist/cli/{skills-D5PK56FO.mjs → skills-W2TELEU7.mjs} +8 -8
  139. package/dist/cli/tools-3RLI4HGF.js +57 -0
  140. package/dist/cli/{tools-WOGWMBA3.mjs → tools-M4FA6N3Y.mjs} +18 -18
  141. package/dist/cli/update-UT6KIW2W.js +34 -0
  142. package/dist/cli/{update-PC6XSWMI.mjs → update-W7LIHEA7.mjs} +10 -10
  143. package/dist/cli/{views-HLCLAPWN.js → views-DJXAGD7V.js} +22 -22
  144. package/dist/cli/{views-IIHT4RYQ.mjs → views-KTVPV6UP.mjs} +7 -7
  145. package/dist/cli/{workflow-HK4MZ7LK.mjs → workflow-LGKCRODX.mjs} +8 -8
  146. package/dist/cli/{workflow-CCZ2A7DI.js → workflow-NVZDJKH2.js} +18 -18
  147. package/dist/{client-BQ6yuSjM.d.ts → client-CCyWJqAI.d.ts} +1 -1
  148. package/dist/{client-DfdUc_MY.d.mts → client-Tp1LSULB.d.mts} +1 -1
  149. package/dist/{client-core-3GQ8WMuk.d.ts → client-core-BpYiYEfu.d.ts} +1 -1
  150. package/dist/{client-core-ClsNRytk.d.mts → client-core-D8eCZz3O.d.mts} +1 -1
  151. package/dist/{compiler-manifest-BWFtsQIC.d.mts → compiler-manifest-EBWEUj0b.d.mts} +35 -0
  152. package/dist/{compiler-manifest-BWFtsQIC.d.ts → compiler-manifest-EBWEUj0b.d.ts} +35 -0
  153. package/dist/{errors-Lm9_vJHZ.d.ts → errors-CParKUQR.d.mts} +2 -2
  154. package/dist/{errors-CwKXXtuu.d.mts → errors-Qt0OTA7_.d.ts} +2 -2
  155. package/dist/{index-DjwsAt82.d.mts → index-BMUVCNp7.d.mts} +1 -1
  156. package/dist/{index-3vJ-V9yw.d.ts → index-CoqDkIw0.d.ts} +1 -1
  157. package/dist/index.d.mts +7 -7
  158. package/dist/index.d.ts +7 -7
  159. package/dist/index.js +10 -10
  160. package/dist/index.mjs +7 -7
  161. package/dist/install-integrity.json +126 -124
  162. package/dist/plays/bundle-play-file.d.mts +3 -3
  163. package/dist/plays/bundle-play-file.d.ts +3 -3
  164. package/dist/plays/bundle-play-file.mjs +20 -1
  165. package/dist/plays/play-description.d.mts +2 -2
  166. package/dist/plays/play-description.d.ts +2 -2
  167. package/dist/plays/run-request.d.mts +2 -2
  168. package/dist/plays/run-request.d.ts +2 -2
  169. package/dist/release.d.mts +1 -1
  170. package/dist/release.d.ts +1 -1
  171. package/dist/release.js +2 -2
  172. package/dist/release.mjs +1 -1
  173. package/dist/server.d.mts +4 -4
  174. package/dist/server.d.ts +4 -4
  175. package/dist/server.js +10 -10
  176. package/dist/server.mjs +4 -4
  177. package/package.json +1 -1
  178. package/dist/cli/auth-455MB4K6.js +0 -43
  179. package/dist/cli/concurrent-runs-help-GFWXOKF5.js +0 -21
  180. package/dist/cli/describe-ZRGYAEBT.js +0 -50
  181. package/dist/cli/git-RC4XDATD.js +0 -25
  182. package/dist/cli/search-O5VVMXII.js +0 -32
  183. package/dist/cli/sessions-3PWFWCHO.js +0 -22
  184. package/dist/cli/skills-RFOMVXIT.js +0 -36
  185. package/dist/cli/tools-CAO6EVUW.js +0 -57
  186. package/dist/cli/update-L4DQZY3G.js +0 -34
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-YWTRCKGD.mjs";
3
+ } from "./chunk-GYTSDSQD.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-7P72EGLK.mjs";
6
+ } from "./chunk-7ZW67ME6.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,16 +14,16 @@ import {
14
14
  } from "./chunk-7AOFSZJM.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-3TCHX7YK.mjs";
17
+ } from "./chunk-HJR2DDJS.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled,
21
21
  printCommandEnvelope
22
- } from "./chunk-JL5JU3LD.mjs";
22
+ } from "./chunk-VXTTAYOT.mjs";
23
23
  import {
24
24
  autoDetectBaseUrl,
25
25
  resolveApiKeyForBaseUrl
26
- } from "./chunk-7MFATEUC.mjs";
26
+ } from "./chunk-6Y5TU3R7.mjs";
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  import { writeFileSync } from "fs";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-4NZ3OZNO.mjs";
3
+ } from "./chunk-PU3ZAG6V.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-2CBX43LP.mjs";
8
+ } from "./chunk-GOOF7E2B.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-JL5JU3LD.mjs";
3
+ } from "./chunk-VXTTAYOT.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -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 _chunkGFRJU2KBjs = require('./chunk-GFRJU2KB.js');
3
+ var _chunkND7SFRQLjs = require('./chunk-ND7SFRQL.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkQM7PHHYZjs = require('./chunk-QM7PHHYZ.js');
8
+ var _chunk6LG7MLJ2js = require('./chunk-6LG7MLJ2.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") _chunkQM7PHHYZjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkGFRJU2KBjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunk6LG7MLJ2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkND7SFRQLjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkQM7PHHYZjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunk6LG7MLJ2js.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
- _chunkQM7PHHYZjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunk6LG7MLJ2js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-3TCHX7YK.mjs";
6
+ } from "./chunk-HJR2DDJS.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-JL5JU3LD.mjs";
11
+ } from "./chunk-VXTTAYOT.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-7MFATEUC.mjs";
15
+ } from "./chunk-6Y5TU3R7.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-ZKTR3WTJ.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-LNQQXIGZ.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -1,13 +1,13 @@
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 _chunk3NG43NXBjs = require('./chunk-3NG43NXB.js');
3
+ var _chunkSH32HL7Ijs = require('./chunk-SH32HL7I.js');
4
4
 
5
5
 
6
6
  var _chunkUV4RU2TEjs = require('./chunk-UV4RU2TE.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
10
+ var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunkMXQP7CXZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunk3NG43NXBjs.httpJson.call(void 0,
31
+ const { status, data } = await _chunkSH32HL7Ijs.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-JL5JU3LD.mjs";
5
+ } from "./chunk-VXTTAYOT.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-7MFATEUC.mjs";
25
+ } from "./chunk-6Y5TU3R7.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-3M2QH3KA.mjs";
32
+ } from "./chunk-RO66FPTS.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-JL2OTMSG.mjs";
@@ -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(); } } 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 _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
4
+ var _chunk4AZLGNXVjs = require('./chunk-4AZLGNXV.js');
5
5
 
6
6
 
7
- var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
7
+ var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
8
8
 
9
9
  // src/config.ts
10
10
 
@@ -382,7 +382,7 @@ function resolveBaseUrlOnly(options) {
382
382
  _optionalChain([options, 'optionalAccess', _36 => _36.baseUrl, 'optionalAccess', _37 => _37.trim, 'call', _38 => _38()]) || autoDetectBaseUrl()
383
383
  );
384
384
  if (!baseUrl) {
385
- throw new (0, _chunk2GJZLIKWjs.ConfigError)(
385
+ throw new (0, _chunkEITMD3A5js.ConfigError)(
386
386
  `Invalid ${HOST_URL_ENV}. Expected an http(s) URL such as https://code.deepline.com.`
387
387
  );
388
388
  }
@@ -393,13 +393,13 @@ function resolveConfig(options) {
393
393
  _optionalChain([options, 'optionalAccess', _39 => _39.baseUrl, 'optionalAccess', _40 => _40.trim, 'call', _41 => _41()]) || autoDetectBaseUrl()
394
394
  );
395
395
  if (!baseUrl) {
396
- throw new (0, _chunk2GJZLIKWjs.ConfigError)(
396
+ throw new (0, _chunkEITMD3A5js.ConfigError)(
397
397
  `Invalid ${HOST_URL_ENV}. Expected an http(s) URL such as https://code.deepline.com.`
398
398
  );
399
399
  }
400
400
  const apiKey = resolveApiKeyForBaseUrl(baseUrl, _optionalChain([options, 'optionalAccess', _42 => _42.apiKey]));
401
401
  if (!apiKey) {
402
- throw new (0, _chunk2GJZLIKWjs.ConfigError)(
402
+ throw new (0, _chunkEITMD3A5js.ConfigError)(
403
403
  `No API key found. Set ${API_KEY_ENV}, add it to .env.deepline, or run: deepline auth register`
404
404
  );
405
405
  }
@@ -502,7 +502,7 @@ function findNearestGitCommonDir(startDir) {
502
502
  function saveProjectDeeplineEnvValues(values, startDir = process.cwd()) {
503
503
  const target = resolveProjectPinTarget(startDir);
504
504
  if (!target.ok) {
505
- throw new (0, _chunk2GJZLIKWjs.ConfigError)(
505
+ throw new (0, _chunkEITMD3A5js.ConfigError)(
506
506
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
507
507
  ", "
508
508
  )}. Set CLAUDE_PROJECT_DIR or cd into the intended project folder before running this command.`
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunkYRQKRQDUjs.HttpClient {
784
+ var HttpClient2 = class extends _chunk4AZLGNXVjs.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -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(); } }
2
2
 
3
- var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
3
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkG5TV6WLVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkH7Q5IDO3js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -36,7 +36,7 @@ var AuthError = class extends DeeplineError {
36
36
  }
37
37
  };
38
38
  var RateLimitError = class extends DeeplineError {
39
- /** Milliseconds to wait before retrying, from the `Retry-After` response header. Defaults to 5000. */
39
+ /** Milliseconds to wait before retrying: the exact `retry-after-ms` delay when Deepline sends one, else the `Retry-After` header. Defaults to 5000. */
40
40
  retryAfterMs;
41
41
  /** Constructed by the SDK after exhausting HTTP-level rate-limit retries. */
42
42
  constructor(retryAfterMs = 5e3, message) {
@@ -36,10 +36,10 @@ import {
36
36
  RETAINED_PIPELINE_RECEIVERS_HEADER,
37
37
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
38
38
  SDK_API_MAJOR
39
- } from "./chunk-3M2QH3KA.mjs";
39
+ } from "./chunk-RO66FPTS.mjs";
40
40
  import {
41
41
  CustomerDbQueryOutcomeUnknownError
42
- } from "./chunk-CQBIO6HW.mjs";
42
+ } from "./chunk-NURW5XH4.mjs";
43
43
  import {
44
44
  DeeplineError,
45
45
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-2CBX43LP.mjs";
3
+ } from "./chunk-GOOF7E2B.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -9,7 +9,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
12
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkG5TV6WLVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkH7Q5IDO3js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkG5TV6WLVjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkH7Q5IDO3js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
769
769
  };
770
770
  if (options.receiptOut && !skipReceiptFile) {
771
771
  persist(options.receiptOut, jsonText(receipt));
772
- _chunkG5TV6WLVjs.markJsonOutputHandled.call(void 0, );
772
+ _chunkH7Q5IDO3js.markJsonOutputHandled.call(void 0, );
773
773
  } else {
774
774
  printReceipt(receipt, options, {
775
775
  data: hasData ? result.data : void 0,
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
937
937
  problems.push(
938
938
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
939
939
  );
940
- const diagnostic = _chunkG5TV6WLVjs.formatCliFailureDiagnostic.call(void 0, error);
940
+ const diagnostic = _chunkH7Q5IDO3js.formatCliFailureDiagnostic.call(void 0, error);
941
941
  if (diagnostic) problems.push(...diagnostic.split("\n"));
942
942
  if (record(error) && typeof error.recoveryFile === "string") {
943
943
  problems.push(
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
1030
1030
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1031
1031
  ` : receiptText(receipt, options, extra);
1032
1032
  if (options.receiptOut !== void 0) {
1033
- _chunkG5TV6WLVjs.writeRawStderr.call(void 0, text);
1034
- _chunkG5TV6WLVjs.markJsonOutputHandled.call(void 0, );
1033
+ _chunkH7Q5IDO3js.writeRawStderr.call(void 0, text);
1034
+ _chunkH7Q5IDO3js.markJsonOutputHandled.call(void 0, );
1035
1035
  } else {
1036
1036
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1037
1037
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-JL5JU3LD.mjs";
3
+ } from "./chunk-VXTTAYOT.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,7 +2,7 @@ import {
2
2
  AuthError,
3
3
  RateLimitError,
4
4
  ToolRateLimitError
5
- } from "./chunk-CQBIO6HW.mjs";
5
+ } from "./chunk-NURW5XH4.mjs";
6
6
  import {
7
7
  apiErrorCodeFromResponse,
8
8
  apiErrorMessage
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-JL2OTMSG.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-52C6W7FG.mjs";
20
+ } from "./chunk-7MY7KWJS.mjs";
21
21
 
22
22
  // src/version.ts
23
23
  var SDK_VERSION = SDK_RELEASE.version;
@@ -479,7 +479,7 @@ var HttpClient = class {
479
479
  }
480
480
  let lastError = null;
481
481
  const candidateUrls = options?.exactUrlOnly ? [url] : buildCandidateUrls(url);
482
- let retryAfterDelayMs = null;
482
+ let retryAfterHint = null;
483
483
  let totalRetryWaitMs = 0;
484
484
  let maxRetries = options?.maxRetries ?? this.config.maxRetries;
485
485
  requestAttempts: for (let attempt = 0; attempt <= maxRetries; attempt++) {
@@ -490,8 +490,8 @@ var HttpClient = class {
490
490
  }
491
491
  if (attempt > 0) {
492
492
  const backoffMs = Math.min(1e3 * Math.pow(2, attempt - 1), 3e4);
493
- const delayMs = retryAfterDelayMs === null ? backoffMs : Math.max(backoffMs, retryAfterDelayMs);
494
- retryAfterDelayMs = null;
493
+ const delayMs = retryAfterHint === null ? backoffMs : retryAfterHint.exact && attempt === 1 ? retryAfterHint.delayMs : Math.max(backoffMs, retryAfterHint.delayMs);
494
+ retryAfterHint = null;
495
495
  if (totalRetryWaitMs + delayMs > MAX_AUTOMATIC_RETRY_WAIT_MS) {
496
496
  break requestAttempts;
497
497
  }
@@ -570,7 +570,10 @@ var HttpClient = class {
570
570
  retryAfterMs: failure.retryAfterMs ?? Math.max(0, retryAfter)
571
571
  });
572
572
  if (responseRetryAllowed && attempt < maxRetries) {
573
- retryAfterDelayMs = retryAfter;
573
+ retryAfterHint = parseRetryAfterHint(response) ?? {
574
+ delayMs: retryAfter,
575
+ exact: false
576
+ };
574
577
  break;
575
578
  }
576
579
  throw attachToolUpstreamResponse(lastError, parsed);
@@ -589,7 +592,10 @@ var HttpClient = class {
589
592
  const retryAfter = parseRetryAfter(response);
590
593
  lastError = new RateLimitError(retryAfter);
591
594
  if (responseRetryAllowed && attempt < maxRetries) {
592
- retryAfterDelayMs = retryAfter;
595
+ retryAfterHint = parseRetryAfterHint(response) ?? {
596
+ delayMs: retryAfter,
597
+ exact: false
598
+ };
593
599
  break;
594
600
  }
595
601
  throw options?.toolId ? attachToolUpstreamResponse(lastError, parsed) : lastError;
@@ -615,7 +621,7 @@ var HttpClient = class {
615
621
  }
616
622
  );
617
623
  if (retryableApiError && attempt < maxRetries) {
618
- retryAfterDelayMs = parseOptionalRetryAfter(response);
624
+ retryAfterHint = parseRetryAfterHint(response);
619
625
  break;
620
626
  }
621
627
  throw lastError;
@@ -627,7 +633,7 @@ var HttpClient = class {
627
633
  response: parsed
628
634
  });
629
635
  if (retryableApiError && attempt < maxRetries) {
630
- retryAfterDelayMs = parseOptionalRetryAfter(response);
636
+ retryAfterHint = parseRetryAfterHint(response);
631
637
  break;
632
638
  }
633
639
  throw options?.toolId ? attachToolUpstreamResponse(lastError, parsed) : lastError;
@@ -933,14 +939,18 @@ function detectHtmlErrorBody(body, contentType) {
933
939
  };
934
940
  }
935
941
  function parseRetryAfter(response) {
936
- return parseOptionalRetryAfter(response) ?? 5e3;
942
+ return parseRetryAfterHint(response)?.delayMs ?? 5e3;
937
943
  }
938
- function parseOptionalRetryAfter(response) {
944
+ function parseRetryAfterHint(response) {
945
+ const exactMs = Number(response.headers.get("retry-after-ms") ?? "");
946
+ if (Number.isFinite(exactMs) && exactMs > 0) {
947
+ return { delayMs: Math.ceil(exactMs), exact: true };
948
+ }
939
949
  const header = response.headers.get("retry-after");
940
950
  if (header) {
941
951
  const seconds = Number(header);
942
952
  if (Number.isFinite(seconds) && seconds > 0) {
943
- return seconds * 1e3;
953
+ return { delayMs: seconds * 1e3, exact: false };
944
954
  }
945
955
  }
946
956
  return null;