deepline 0.3.544 → 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 (192) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +5 -0
  2. package/dist/bundling-sources/sdk/src/errors.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/http-core.ts +41 -12
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
  6. package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
  8. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +35 -3
  9. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
  10. package/dist/bundling-sources/shared_libs/play-data-plane/contracts.ts +5 -0
  11. package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +27 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +8 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +40 -3
  15. package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +19 -3
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +18 -4
  17. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +441 -103
  18. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +322 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +200 -64
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +65 -2
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +5 -3
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +32 -0
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +206 -12
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +30 -2
  26. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +30 -1
  27. package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +35 -2
  28. package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +35 -1
  29. package/dist/bundling-sources/shared_libs/security/email-domain.ts +19 -0
  30. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +2 -0
  31. package/dist/cli/{auth-IMWJAHPU.mjs → auth-KFWG72AZ.mjs} +6 -6
  32. package/dist/cli/auth-W32GMYND.js +43 -0
  33. package/dist/cli/{billing-YQMW3QJI.mjs → billing-MMZ336HO.mjs} +10 -10
  34. package/dist/cli/{billing-Y55PR2PV.js → billing-OQVOAZ4S.js} +98 -98
  35. package/dist/cli/{chunk-RJPDCSTD.mjs → chunk-3DUNNZB6.mjs} +4 -4
  36. package/dist/cli/{chunk-G26VJCNT.js → chunk-4AZLGNXV.js} +36 -26
  37. package/dist/cli/{chunk-Y3T5GWYK.mjs → chunk-5OEFXAKP.mjs} +5 -1
  38. package/dist/cli/{chunk-RG34YBDE.js → chunk-5V7NZKGG.js} +2 -2
  39. package/dist/cli/{chunk-UHIAQPVA.js → chunk-5VNQMVCU.js} +26 -26
  40. package/dist/cli/{chunk-PDJ4UDCO.js → chunk-5W4ENHWM.js} +12 -12
  41. package/dist/cli/{chunk-3JDA23NN.mjs → chunk-6FBDTYR2.mjs} +2 -2
  42. package/dist/cli/{chunk-KE6CSCUF.js → chunk-6LG7MLJ2.js} +44 -44
  43. package/dist/cli/{chunk-HXM2JUGD.mjs → chunk-6Y5TU3R7.mjs} +2 -2
  44. package/dist/cli/{chunk-PFGOCUH3.mjs → chunk-7MY7KWJS.mjs} +1 -1
  45. package/dist/cli/{chunk-57G4NYOL.mjs → chunk-7ZW67ME6.mjs} +1 -1
  46. package/dist/cli/{chunk-JBWOE6AP.js → chunk-BTFUAGHC.js} +16 -16
  47. package/dist/cli/{chunk-5PR4VLLL.mjs → chunk-EEG46QZY.mjs} +2 -2
  48. package/dist/cli/{chunk-3I26HMJ7.js → chunk-EEJHB76U.js} +9 -9
  49. package/dist/cli/{chunk-2GJZLIKW.js → chunk-EITMD3A5.js} +1 -1
  50. package/dist/cli/{chunk-Z44YTSTA.js → chunk-F2VEFMU5.js} +13 -13
  51. package/dist/cli/{chunk-4JQEAYN3.js → chunk-F5YQXCP3.js} +5 -1
  52. package/dist/cli/{chunk-BEQ7RQLT.mjs → chunk-GOOF7E2B.mjs} +5 -5
  53. package/dist/cli/{chunk-PMW5YP72.mjs → chunk-GYTSDSQD.mjs} +11 -11
  54. package/dist/cli/{chunk-ZY6FL4O4.js → chunk-H7Q5IDO3.js} +19 -19
  55. package/dist/cli/{chunk-GV45TTI6.mjs → chunk-HJR2DDJS.mjs} +2 -2
  56. package/dist/cli/{chunk-7HMMTSDA.js → chunk-IVWU7SJC.js} +5 -5
  57. package/dist/cli/{chunk-WBSGPLH5.mjs → chunk-J65HJCJO.mjs} +2 -2
  58. package/dist/cli/{chunk-REEOMNCO.mjs → chunk-JA633HRV.mjs} +3 -3
  59. package/dist/cli/{chunk-HVJQF5BI.mjs → chunk-JARZ47OP.mjs} +2 -2
  60. package/dist/cli/{chunk-IFIJ4DBJ.js → chunk-JCH4UNNS.js} +2 -2
  61. package/dist/cli/{chunk-COJHT2KF.js → chunk-JCWNF44W.js} +22 -22
  62. package/dist/cli/{chunk-3KGMM4KS.js → chunk-JVOUQFHT.js} +1 -1
  63. package/dist/cli/{chunk-W7X4KH45.js → chunk-JYG4XZLT.js} +99 -99
  64. package/dist/cli/{chunk-HBSWATOU.mjs → chunk-K2XELBPF.mjs} +5 -5
  65. package/dist/cli/{chunk-HAQRF6DJ.mjs → chunk-KUK7ARXA.mjs} +2 -2
  66. package/dist/cli/{chunk-WUEORIOY.mjs → chunk-LHE2TSV6.mjs} +1 -1
  67. package/dist/cli/{chunk-7GNZEOTH.js → chunk-LIJKRDDG.js} +6 -6
  68. package/dist/cli/{chunk-SKS53WM6.mjs → chunk-LX2TC3HO.mjs} +4 -4
  69. package/dist/cli/{chunk-GQHRGBHV.js → chunk-MEGHIX4M.js} +5 -5
  70. package/dist/cli/{chunk-H4SAHB3Q.mjs → chunk-MI7X6V6V.mjs} +3 -3
  71. package/dist/cli/{chunk-ON56ISO6.js → chunk-MXQP7CXZ.js} +8 -8
  72. package/dist/cli/{chunk-PKRW76XG.js → chunk-ND7SFRQL.js} +2 -2
  73. package/dist/cli/{chunk-CQBIO6HW.mjs → chunk-NURW5XH4.mjs} +1 -1
  74. package/dist/cli/{chunk-Q7ZOWNKR.mjs → chunk-OAKWSLKS.mjs} +2 -2
  75. package/dist/cli/{chunk-SK3HPU2J.mjs → chunk-P7A3H6G5.mjs} +1 -1
  76. package/dist/cli/{chunk-UNMNGRPB.js → chunk-PMDHY2YK.js} +7 -7
  77. package/dist/cli/{chunk-LW274RO7.mjs → chunk-PU3ZAG6V.mjs} +1 -1
  78. package/dist/cli/{chunk-ZHY4T5M6.mjs → chunk-RO66FPTS.mjs} +22 -12
  79. package/dist/cli/{chunk-DYDHLBSK.js → chunk-SH32HL7I.js} +53 -53
  80. package/dist/cli/{chunk-DF2X7GJG.js → chunk-SYTWWVIQ.js} +5 -5
  81. package/dist/cli/{chunk-JWVG7ZPX.js → chunk-TBWYZOSV.js} +3 -3
  82. package/dist/cli/{chunk-RUFR4PUO.js → chunk-UQJBV5PM.js} +10 -10
  83. package/dist/cli/{chunk-LPUBBUKX.mjs → chunk-UREAIHUU.mjs} +2 -2
  84. package/dist/cli/{chunk-22OBDYHP.js → chunk-VAT2SXFF.js} +12 -12
  85. package/dist/cli/{chunk-LQ6RRYXN.mjs → chunk-VPERQ3U6.mjs} +5 -5
  86. package/dist/cli/{chunk-456RRXAP.mjs → chunk-VTK3HGMN.mjs} +5 -5
  87. package/dist/cli/{chunk-DVDWAC2M.mjs → chunk-VXTTAYOT.mjs} +2 -2
  88. package/dist/cli/{chunk-4PKHFW56.js → chunk-WKHPLBJK.js} +15 -15
  89. package/dist/cli/{chunk-YIRVKMON.mjs → chunk-X5KOHDJN.mjs} +1 -1
  90. package/dist/cli/{chunk-C4P2KLWT.js → chunk-Z3UEBFIN.js} +41 -41
  91. package/dist/cli/command-docs.js +2 -2
  92. package/dist/cli/command-docs.mjs +1 -1
  93. package/dist/cli/concurrent-runs-help-6QT7ZR4W.js +21 -0
  94. package/dist/cli/{concurrent-runs-help-KBWPKSTP.mjs → concurrent-runs-help-C2O5YKQA.mjs} +7 -7
  95. package/dist/cli/{csv-XGGDZTQI.js → csv-MJDNOIQJ.js} +14 -14
  96. package/dist/cli/{csv-M5EBEMZH.mjs → csv-Z4DNGR54.mjs} +5 -5
  97. package/dist/cli/{db-M6FJ6J6E.mjs → db-4RL2BNOF.mjs} +7 -7
  98. package/dist/cli/{db-CVPR54XK.js → db-S5QVPK5E.js} +32 -32
  99. package/dist/cli/{describe-X6QA2U3C.mjs → describe-L4P5SZLQ.mjs} +19 -19
  100. package/dist/cli/describe-VLU2LUDJ.js +50 -0
  101. package/dist/cli/describe-core.d.mts +3 -3
  102. package/dist/cli/describe-core.d.ts +3 -3
  103. package/dist/cli/describe-core.js +1 -1
  104. package/dist/cli/describe-core.mjs +1 -1
  105. package/dist/cli/{executions-VJEEWN22.js → executions-MFZ2Z36O.js} +9 -9
  106. package/dist/cli/{executions-EHTS2XJX.mjs → executions-RR6O3XK5.mjs} +7 -7
  107. package/dist/cli/{feedback-76VGY4GP.mjs → feedback-EQBQ3ABB.mjs} +7 -7
  108. package/dist/cli/{feedback-DQPUCUXO.js → feedback-YDAG7VH2.js} +15 -15
  109. package/dist/cli/git-E6W44F5M.js +25 -0
  110. package/dist/cli/{git-IY6DKKLR.mjs → git-YGLCCU35.mjs} +6 -6
  111. package/dist/cli/index.js +150 -150
  112. package/dist/cli/index.mjs +46 -46
  113. package/dist/cli/{integrations-242LE3TQ.mjs → integrations-FWYXSBHK.mjs} +8 -8
  114. package/dist/cli/{integrations-CQSTIKFY.js → integrations-IQXYMRMW.js} +16 -16
  115. package/dist/cli/{legacy-noops-SWTSTMRY.mjs → legacy-noops-I4YRIX5F.mjs} +7 -7
  116. package/dist/cli/{legacy-noops-U72DO6ZF.js → legacy-noops-U7LI7UXC.js} +10 -10
  117. package/dist/cli/{mcp-L473BKLJ.js → mcp-GX2UKKWU.js} +25 -25
  118. package/dist/cli/{mcp-JJH6JR52.mjs → mcp-QJBMB6VS.mjs} +5 -5
  119. package/dist/cli/{monitors-3TF2DOFD.js → monitors-WCJYINGX.js} +164 -106
  120. package/dist/cli/{monitors-VSYHUBKC.mjs → monitors-Z6EGKYJP.mjs} +70 -12
  121. package/dist/cli/{org-YKVI2ZTI.js → org-7SKG423N.js} +89 -89
  122. package/dist/cli/{org-S5VIKU2E.mjs → org-NNHICBR2.mjs} +7 -7
  123. package/dist/cli/{play-DOWEG45Y.js → play-4P4DTG3Q.js} +318 -318
  124. package/dist/cli/{play-C7T5A3QM.mjs → play-CXDFPJ7Z.mjs} +18 -18
  125. package/dist/cli/{providers-TAZPPFTB.js → providers-EE4TUE3O.js} +10 -10
  126. package/dist/cli/{providers-BMVVX3VD.mjs → providers-VQLQ7DTR.mjs} +7 -7
  127. package/dist/cli/{quickstart-A3WKMKTW.mjs → quickstart-IYNJRB5G.mjs} +5 -5
  128. package/dist/cli/{quickstart-HD6FQXGR.js → quickstart-RVXHK4WA.js} +7 -7
  129. package/dist/cli/{run-BVVV2UX7.js → run-R3F34KU3.js} +44 -44
  130. package/dist/cli/{run-FV7TWNOC.mjs → run-VBQPPMEX.mjs} +24 -24
  131. package/dist/cli/{search-MGK6WIKS.mjs → search-B7R62HX5.mjs} +8 -8
  132. package/dist/cli/search-UUVFXZRA.js +32 -0
  133. package/dist/cli/{search-output-GM7LDZKE.mjs → search-output-LNQQXIGZ.mjs} +5 -5
  134. package/dist/cli/{search-output-6Y7KEPIE.js → search-output-LWHWEPOT.js} +7 -7
  135. package/dist/cli/{secrets-4RFAR7YI.mjs → secrets-NM3VAJLO.mjs} +7 -7
  136. package/dist/cli/{secrets-SISXIXSZ.js → secrets-QBOZ7WTD.js} +16 -16
  137. package/dist/cli/sessions-K3PD73Q2.js +22 -0
  138. package/dist/cli/{sessions-CE3OMEG7.mjs → sessions-R5BSIJ4I.mjs} +7 -7
  139. package/dist/cli/{settings-4HPM3K4A.js → settings-POYWKNRD.js} +86 -86
  140. package/dist/cli/{settings-E22IDSX2.mjs → settings-S4PN7WLY.mjs} +13 -13
  141. package/dist/cli/{setup-BK65MDZ6.mjs → setup-PFLXVBTL.mjs} +10 -10
  142. package/dist/cli/{setup-BDRSNLKX.js → setup-VHB4Z654.js} +50 -50
  143. package/dist/cli/skills-QNE2EYT3.js +36 -0
  144. package/dist/cli/{skills-FI2GZMR4.mjs → skills-W2TELEU7.mjs} +8 -8
  145. package/dist/cli/tools-3RLI4HGF.js +57 -0
  146. package/dist/cli/{tools-HMMWYUNW.mjs → tools-M4FA6N3Y.mjs} +18 -18
  147. package/dist/cli/update-UT6KIW2W.js +34 -0
  148. package/dist/cli/{update-WDKBSXV5.mjs → update-W7LIHEA7.mjs} +10 -10
  149. package/dist/cli/{views-775AUDWQ.js → views-DJXAGD7V.js} +22 -22
  150. package/dist/cli/{views-JYIJCO23.mjs → views-KTVPV6UP.mjs} +7 -7
  151. package/dist/cli/{workflow-FKKHE3IU.mjs → workflow-LGKCRODX.mjs} +8 -8
  152. package/dist/cli/{workflow-4H6KQRFQ.js → workflow-NVZDJKH2.js} +18 -18
  153. package/dist/{client-DD_FyJVd.d.ts → client-CCyWJqAI.d.ts} +1 -1
  154. package/dist/{client-ANT3pyoa.d.mts → client-Tp1LSULB.d.mts} +1 -1
  155. package/dist/{client-core-QHmo73k1.d.ts → client-core-BpYiYEfu.d.ts} +10 -1
  156. package/dist/{client-core-Dg9tKhdB.d.mts → client-core-D8eCZz3O.d.mts} +10 -1
  157. package/dist/{compiler-manifest-BWFtsQIC.d.ts → compiler-manifest-EBWEUj0b.d.mts} +35 -0
  158. package/dist/{compiler-manifest-BWFtsQIC.d.mts → compiler-manifest-EBWEUj0b.d.ts} +35 -0
  159. package/dist/{errors-Lm9_vJHZ.d.ts → errors-CParKUQR.d.mts} +2 -2
  160. package/dist/{errors-CwKXXtuu.d.mts → errors-Qt0OTA7_.d.ts} +2 -2
  161. package/dist/{index-DjwsAt82.d.mts → index-BMUVCNp7.d.mts} +1 -1
  162. package/dist/{index-3vJ-V9yw.d.ts → index-CoqDkIw0.d.ts} +1 -1
  163. package/dist/index.d.mts +7 -7
  164. package/dist/index.d.ts +7 -7
  165. package/dist/index.js +10 -10
  166. package/dist/index.mjs +7 -7
  167. package/dist/install-integrity.json +126 -124
  168. package/dist/plays/bundle-play-file.d.mts +3 -3
  169. package/dist/plays/bundle-play-file.d.ts +3 -3
  170. package/dist/plays/bundle-play-file.mjs +20 -1
  171. package/dist/plays/play-description.d.mts +2 -2
  172. package/dist/plays/play-description.d.ts +2 -2
  173. package/dist/plays/run-request.d.mts +2 -2
  174. package/dist/plays/run-request.d.ts +2 -2
  175. package/dist/release.d.mts +1 -1
  176. package/dist/release.d.ts +1 -1
  177. package/dist/release.js +2 -2
  178. package/dist/release.mjs +1 -1
  179. package/dist/server.d.mts +4 -4
  180. package/dist/server.d.ts +4 -4
  181. package/dist/server.js +10 -10
  182. package/dist/server.mjs +4 -4
  183. package/package.json +1 -1
  184. package/dist/cli/auth-ENBXAKQS.js +0 -43
  185. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +0 -21
  186. package/dist/cli/describe-RUODIS6M.js +0 -50
  187. package/dist/cli/git-RLHTSYRY.js +0 -25
  188. package/dist/cli/search-VJFCWUZN.js +0 -32
  189. package/dist/cli/sessions-OWWZJZXH.js +0 -22
  190. package/dist/cli/skills-ZLBFUAFR.js +0 -36
  191. package/dist/cli/tools-3K72VE33.js +0 -57
  192. package/dist/cli/update-QZV6DH5V.js +0 -34
@@ -1,9 +1,9 @@
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 _chunkJWVG7ZPXjs = require('./chunk-JWVG7ZPX.js');
3
+ var _chunkTBWYZOSVjs = require('./chunk-TBWYZOSV.js');
4
4
 
5
5
 
6
- var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
6
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
17
+ var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunkG26VJCNTjs = require('./chunk-G26VJCNT.js');
24
+ var _chunk4AZLGNXVjs = require('./chunk-4AZLGNXV.js');
25
25
 
26
26
 
27
- var _chunk3KGMM4KSjs = require('./chunk-3KGMM4KS.js');
27
+ var _chunkJVOUQFHTjs = require('./chunk-JVOUQFHT.js');
28
28
 
29
29
  // src/compat.ts
30
30
  var _crypto = require('crypto');
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
59
59
  return value === "1" || value === "true" || value === "yes";
60
60
  }
61
61
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
62
- return _path.join.call(void 0, _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
63
63
  }
64
64
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
65
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
67
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
68
68
  return JSON.stringify({
69
69
  baseUrl: baseUrl.replace(/\/$/, ""),
70
- version: _chunkG26VJCNTjs.SDK_VERSION,
71
- apiContract: _chunkG26VJCNTjs.SDK_API_CONTRACT,
72
- apiMajor: _chunkG26VJCNTjs.SDK_API_MAJOR,
70
+ version: _chunk4AZLGNXVjs.SDK_VERSION,
71
+ apiContract: _chunk4AZLGNXVjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunk4AZLGNXVjs.SDK_API_MAJOR,
73
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
74
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
75
75
  });
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
77
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
78
78
  return JSON.stringify({
79
79
  baseUrl: baseUrl.replace(/\/$/, ""),
80
- version: _chunkG26VJCNTjs.SDK_VERSION,
81
- apiContract: _chunkG26VJCNTjs.SDK_API_CONTRACT,
80
+ version: _chunk4AZLGNXVjs.SDK_VERSION,
81
+ apiContract: _chunk4AZLGNXVjs.SDK_API_CONTRACT,
82
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
83
83
  });
84
84
  }
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
103
103
  }
104
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
105
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
106
- const path = _path.join.call(void 0, _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
107
107
  try {
108
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
109
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
190
190
  );
191
191
  try {
192
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
193
- url.searchParams.set("version", _chunkG26VJCNTjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunk4AZLGNXVjs.SDK_VERSION);
194
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
195
195
  url.searchParams.set("command", options.command.trim());
196
196
  }
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
198
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
199
199
  url.searchParams.set(
200
200
  "skills_cli_capability",
201
- String(_chunk3KGMM4KSjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkJVOUQFHTjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
202
202
  );
203
203
  }
204
204
  if (options.catalog) {
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
210
210
  const response = await fetch(url, {
211
211
  method: "GET",
212
212
  headers: {
213
- ..._chunkG26VJCNTjs.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunkG26VJCNTjs.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunkG26VJCNTjs.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunkG26VJCNTjs.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunkG26VJCNTjs.SDK_API_CONTRACT,
213
+ ..._chunk4AZLGNXVjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunk4AZLGNXVjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunk4AZLGNXVjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunk4AZLGNXVjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunk4AZLGNXVjs.SDK_API_CONTRACT,
218
218
  "X-Deepline-CLI-Update-Preferences": "1",
219
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
220
- ...options.catalog ? { Authorization: `Bearer ${_chunkON56ISO6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkMXQP7CXZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
221
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
222
222
  },
223
223
  signal: controller.signal
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
386
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
387
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
388
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
389
- const agents = _nullishCoalesce(options.agents, () => ( _chunkON56ISO6js.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkMXQP7CXZjs.DEFAULT_SKILL_AGENTS));
390
390
  const values = {
391
391
  skills_index_url: skillsIndexUrl(baseUrl),
392
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
514
514
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
515
515
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
516
516
  function shouldSkipSkillsSync() {
517
- if (_chunkG26VJCNTjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunk4AZLGNXVjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
518
518
  return true;
519
519
  }
520
520
  const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
521
521
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
522
522
  }
523
523
  function unavailableSkillsNoticePath(baseUrl) {
524
- return _path.join.call(void 0, _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
525
525
  }
526
526
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
527
527
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
528
- var agentLeaseSegment = _chunkON56ISO6js.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunkMXQP7CXZjs.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunkON56ISO6js.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunkMXQP7CXZjs.KNOWN_SKILL_AGENTS] : agents;
531
531
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
532
532
  }
533
533
  function inProgressSkillsSyncPath(baseUrl, agent) {
534
534
  return _path.join.call(void 0,
535
- _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl),
536
536
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
537
537
  );
538
538
  }
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
691
691
  constructor(baseUrl, error) {
692
692
  const detail = error instanceof Error ? error.message : String(error);
693
693
  super(
694
- `Could not save skills state in ${_chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
695
695
  );
696
696
  this.name = "SkillsStateUnavailableError";
697
697
  }
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
776
776
  }
777
777
  function deferredSkillsNoticePath(baseUrl, agents) {
778
778
  return _path.join.call(void 0,
779
- _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl),
780
780
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
781
781
  );
782
782
  }
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
810
810
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
811
811
  }
812
812
  function flushDeferredSkillsSyncNotices(baseUrl) {
813
- if (shouldSkipSkillsSync() || _chunkON56ISO6js.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunkON56ISO6js.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunkMXQP7CXZjs.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunkMXQP7CXZjs.resolveAutoSyncSkillAgents.call(void 0, );
815
815
  if (agents.length === 0) return;
816
816
  flushDeferredSkillsNotices(baseUrl, agents);
817
817
  }
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
833
833
  }
834
834
  function failedSkillsSyncPath(baseUrl, agents) {
835
835
  return _path.join.call(void 0,
836
- _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl),
836
+ _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl),
837
837
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
838
838
  );
839
839
  }
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
862
862
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
863
863
  writeMarkedSkillsSyncVersion(path, remoteVersion);
864
864
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
865
- const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkON56ISO6js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
865
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkMXQP7CXZjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
866
866
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
867
867
  notice(
868
868
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
950
950
  return sortedUniqueSkillNames(v1SkillNames2);
951
951
  }
952
952
  function isDefaultAgentSet(agents) {
953
- return agents.length === _chunkON56ISO6js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkON56ISO6js.DEFAULT_SKILL_AGENTS[index]);
953
+ return agents.length === _chunkMXQP7CXZjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkMXQP7CXZjs.DEFAULT_SKILL_AGENTS[index]);
954
954
  }
955
955
  function safeSkillFilePath(value) {
956
956
  if (typeof value !== "string" || !value) return false;
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1107
1107
  method: "POST",
1108
1108
  headers: { "Content-Type": "application/json" },
1109
1109
  body: JSON.stringify({
1110
- sdk_cli: { version: _chunkG26VJCNTjs.SDK_VERSION },
1110
+ sdk_cli: { version: _chunk4AZLGNXVjs.SDK_VERSION },
1111
1111
  skills: {
1112
1112
  version: localVersion,
1113
- capability: _chunk3KGMM4KSjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1113
+ capability: _chunkJVOUQFHTjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1114
1114
  }
1115
1115
  }),
1116
1116
  signal: controller.signal
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
1149
1149
  }
1150
1150
  function noInstallerProbePath(baseUrl) {
1151
1151
  return _path.join.call(void 0,
1152
- _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, baseUrl),
1152
+ _chunkMXQP7CXZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1153
1153
  "skills-sync-no-installer-unknown.json"
1154
1154
  );
1155
1155
  }
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
1228
1228
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1229
1229
  return resolveShellSpawn(install.command, install.args, platform);
1230
1230
  }
1231
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkON56ISO6js.DEFAULT_SKILL_AGENTS, knownProbes) {
1231
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkMXQP7CXZjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1232
1232
  const commands = [];
1233
1233
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1234
1234
  if (probes.bunx === "available") {
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
1370
1370
  }
1371
1371
  }
1372
1372
  function writeSdkSkillsStatusLine(line) {
1373
- const progress = _chunkJWVG7ZPXjs.getActiveCliProgress.call(void 0, );
1373
+ const progress = _chunkTBWYZOSVjs.getActiveCliProgress.call(void 0, );
1374
1374
  if (progress) {
1375
1375
  progress.writeLine(line);
1376
1376
  return;
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
1381
1381
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1382
1382
  const skip = shouldSkipSkillsSync();
1383
1383
  if (skip && !options.claim) return;
1384
- const usingPluginSkills = _chunkON56ISO6js.hasActivePluginSkills.call(void 0, );
1384
+ const usingPluginSkills = _chunkMXQP7CXZjs.hasActivePluginSkills.call(void 0, );
1385
1385
  if (usingPluginSkills) {
1386
1386
  return;
1387
1387
  }
1388
- const agents = _chunkON56ISO6js.resolveAutoSyncSkillAgents.call(void 0, );
1388
+ const agents = _chunkMXQP7CXZjs.resolveAutoSyncSkillAgents.call(void 0, );
1389
1389
  if (options.mode === "detached" && agents.length > 0) {
1390
1390
  flushDeferredSkillsNotices(baseUrl, agents);
1391
1391
  }
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1422
1422
  return;
1423
1423
  }
1424
1424
  try {
1425
- const localVersion = _chunkON56ISO6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1425
+ const localVersion = _chunkMXQP7CXZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1426
1426
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1427
1427
  needsUpdate: options.update.needs_update,
1428
1428
  remoteVersion: options.update.remote.version
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1544
1544
  update.remoteVersion,
1545
1545
  agents
1546
1546
  );
1547
- void _chunkZY6FL4O4js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1547
+ void _chunkH7Q5IDO3js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1548
1548
  baseUrl,
1549
1549
  remoteSkillsVersion: update.remoteVersion,
1550
1550
  agents,
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1575
1575
  notice(
1576
1576
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1577
1577
  );
1578
- void _chunkZY6FL4O4js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1578
+ void _chunkH7Q5IDO3js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1579
1579
  baseUrl,
1580
1580
  remoteSkillsVersion: update.remoteVersion,
1581
1581
  agents,
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1588
1588
  }
1589
1589
  }
1590
1590
  runLegacySkillsCleanup(agents);
1591
- if (!_chunkON56ISO6js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1591
+ if (!_chunkMXQP7CXZjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1592
1592
  notice(
1593
1593
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1594
1594
  );
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-ZHY4T5M6.mjs";
4
+ } from "./chunk-RO66FPTS.mjs";
5
5
  import {
6
6
  ConfigError
7
- } from "./chunk-CQBIO6HW.mjs";
7
+ } from "./chunk-NURW5XH4.mjs";
8
8
 
9
9
  // src/config.ts
10
10
  import {
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.544",
52
+ version: "0.3.546",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -9,7 +9,7 @@ import {
9
9
  formatCliFailureDiagnostic,
10
10
  markJsonOutputHandled,
11
11
  writeRawStderr
12
- } from "./chunk-DVDWAC2M.mjs";
12
+ } from "./chunk-VXTTAYOT.mjs";
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkIFIJ4DBJjs = require('./chunk-IFIJ4DBJ.js');
4
+ var _chunkJCH4UNNSjs = require('./chunk-JCH4UNNS.js');
5
5
 
6
6
 
7
- var _chunkC4P2KLWTjs = require('./chunk-C4P2KLWT.js');
7
+ var _chunkZ3UEBFINjs = require('./chunk-Z3UEBFIN.js');
8
8
 
9
9
 
10
- var _chunkKE6CSCUFjs = require('./chunk-KE6CSCUF.js');
10
+ var _chunk6LG7MLJ2js = require('./chunk-6LG7MLJ2.js');
11
11
 
12
12
 
13
- var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
13
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
14
14
 
15
15
 
16
- var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
16
+ var _chunkMXQP7CXZjs = require('./chunk-MXQP7CXZ.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkKE6CSCUFjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunk6LG7MLJ2js.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkIFIJ4DBJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkIFIJ4DBJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkJCH4UNNSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkJCH4UNNSjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkMXQP7CXZjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkKE6CSCUFjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunk6LG7MLJ2js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkON56ISO6js.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkMXQP7CXZjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkC4P2KLWTjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkZ3UEBFINjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1284
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
1327
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-H4SAHB3Q.mjs";
3
+ } from "./chunk-MI7X6V6V.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-NIPLY25A.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-HXM2JUGD.mjs";
10
+ } from "./chunk-6Y5TU3R7.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -3,7 +3,7 @@
3
3
  var _chunk2JHYYB3Fjs = require('./chunk-2JHYYB3F.js');
4
4
 
5
5
 
6
- var _chunkPDJ4UDCOjs = require('./chunk-PDJ4UDCO.js');
6
+ var _chunk5W4ENHWMjs = require('./chunk-5W4ENHWM.js');
7
7
 
8
8
 
9
9
  var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
@@ -11,7 +11,7 @@ var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
14
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
15
15
 
16
16
 
17
17
  var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkZY6FL4O4js.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkH7Q5IDO3js.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkZY6FL4O4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZY6FL4O4js.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkH7Q5IDO3js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkH7Q5IDO3js.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
657
657
  "--log-level requires one of: debug, info, warn, error."
658
658
  );
659
659
  }
660
- const parsed = _chunkPDJ4UDCOjs.parseLogLevel.call(void 0, value);
660
+ const parsed = _chunk5W4ENHWMjs.parseLogLevel.call(void 0, value);
661
661
  if (!parsed) {
662
662
  throw new Error(
663
663
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
990
990
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
991
991
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
992
992
  );
993
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkPDJ4UDCOjs.parseLogLevel.call(void 0, options.logLevel);
993
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk5W4ENHWMjs.parseLogLevel.call(void 0, options.logLevel);
994
994
  if (!logLevel)
995
995
  throw new Error("--log-level requires one of: debug, info, warn, error.");
996
996
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1004
1004
  if (debugAlias || debugMapLatency && logLevel === "info")
1005
1005
  logLevel = "debug";
1006
1006
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
1007
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZY6FL4O4js.parseJsonFields.call(void 0,
1008
- [...fullJson ? ["--full"] : [], ..._chunkZY6FL4O4js.jsonFieldArgs.call(void 0, options.json)],
1007
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkH7Q5IDO3js.parseJsonFields.call(void 0,
1008
+ [...fullJson ? ["--full"] : [], ..._chunkH7Q5IDO3js.jsonFieldArgs.call(void 0, options.json)],
1009
1009
  "run"
1010
1010
  ).fields;
1011
1011
  const watch = options.wait === false ? false : base.watch;
1012
1012
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
1013
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkZY6FL4O4js.argsWantJson.call(void 0, []) : explicitJson;
1013
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkH7Q5IDO3js.argsWantJson.call(void 0, []) : explicitJson;
1014
1014
  const verboseLogs = Boolean(
1015
1015
  debugAlias || logLevel === "debug" || debugMapLatency
1016
1016
  );
@@ -36,7 +36,7 @@ var AuthError = class extends _chunkBBTKAASQjs.DeeplineError {
36
36
  }
37
37
  };
38
38
  var RateLimitError = class extends _chunkBBTKAASQjs.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
 
41
41
  /** Constructed by the SDK after exhausting HTTP-level rate-limit retries. */
42
42
  constructor(retryAfterMs = 5e3, message) {
@@ -1,15 +1,15 @@
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 _chunkRG34YBDEjs = require('./chunk-RG34YBDE.js');
3
+ var _chunk5V7NZKGGjs = require('./chunk-5V7NZKGG.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
7
+ var _chunkH7Q5IDO3js = require('./chunk-H7Q5IDO3.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkG26VJCNTjs = require('./chunk-G26VJCNT.js');
12
+ var _chunk4AZLGNXVjs = require('./chunk-4AZLGNXV.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkG26VJCNTjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunk4AZLGNXVjs.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkG26VJCNTjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunk4AZLGNXVjs.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkG26VJCNTjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunk4AZLGNXVjs.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkG26VJCNTjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkG26VJCNTjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunk4AZLGNXVjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk4AZLGNXVjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkG26VJCNTjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunk4AZLGNXVjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkZY6FL4O4js.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkH7Q5IDO3js.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkRG34YBDEjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunk5V7NZKGGjs.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
565
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
597
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
705
+ _chunkH7Q5IDO3js.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,