deepline 0.3.553 → 0.3.555

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 (166) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +8 -2
  3. package/dist/cli/auth-MRVTS74X.js +44 -0
  4. package/dist/cli/{auth-I3QAU4RV.mjs → auth-UFANBJW3.mjs} +5 -5
  5. package/dist/cli/{billing-YGFFVAIC.js → billing-BGIT2VYM.js} +102 -102
  6. package/dist/cli/{billing-3IC54OQQ.mjs → billing-S7MCXBND.mjs} +9 -9
  7. package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
  8. package/dist/cli/{chunk-LH5PZKER.mjs → chunk-57J3OOCR.mjs} +1 -1
  9. package/dist/cli/{chunk-55F6HNOY.mjs → chunk-5J6TKML2.mjs} +4 -4
  10. package/dist/cli/{chunk-LFOERUQY.mjs → chunk-66BQY77L.mjs} +1 -1
  11. package/dist/cli/{chunk-IMX7J4DU.js → chunk-6F5GNZQH.js} +5 -5
  12. package/dist/cli/{chunk-AGLR6QVN.js → chunk-6M2SDRWN.js} +4 -4
  13. package/dist/cli/{chunk-NDNHYONK.mjs → chunk-6R5Y7U52.mjs} +2 -2
  14. package/dist/cli/{chunk-2B5B5KAW.js → chunk-72VEVAIX.js} +53 -50
  15. package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-732RWNDP.mjs} +3 -3
  16. package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-7H753VC5.mjs} +1 -1
  17. package/dist/cli/{chunk-FM7LPUPA.js → chunk-7LM55DIN.js} +41 -41
  18. package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-ASDVROA5.mjs} +5 -5
  19. package/dist/cli/{chunk-INEMTYMT.mjs → chunk-AUY53RLU.mjs} +7 -7
  20. package/dist/cli/{chunk-MLABYI4M.js → chunk-AYCC5JAS.js} +3 -3
  21. package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-BTKVXI3G.mjs} +7 -2
  22. package/dist/cli/chunk-BVXIGOBZ.js +32 -0
  23. package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-DFL3UBW2.mjs} +1 -1
  24. package/dist/cli/{chunk-CACFJODG.js → chunk-DYWOBLYL.js} +8 -8
  25. package/dist/cli/{chunk-HEBO3XNZ.js → chunk-EG44APVW.js} +12 -12
  26. package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
  27. package/dist/cli/{chunk-72V4PDH5.mjs → chunk-FO3U5YTL.mjs} +3 -3
  28. package/dist/cli/{chunk-DP64MD6U.mjs → chunk-HQK2NPXE.mjs} +1 -1
  29. package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-I45RNMNZ.mjs} +13 -13
  30. package/dist/cli/{chunk-RTV4RF7N.js → chunk-IHWXC7UU.js} +26 -26
  31. package/dist/cli/{chunk-IUOGII7D.js → chunk-KSUI4YX5.js} +6 -6
  32. package/dist/cli/{chunk-3NTP2OSG.js → chunk-LU25WURE.js} +13 -13
  33. package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
  34. package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-M2CW4UZV.mjs} +4 -4
  35. package/dist/cli/{chunk-LRDHPOZW.js → chunk-M5YBTQQX.js} +53 -53
  36. package/dist/cli/{chunk-7GEMELKI.js → chunk-MIXPZ4G7.js} +431 -330
  37. package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-MOJ65E7L.js} +9 -9
  38. package/dist/cli/{chunk-AGICYWGN.mjs → chunk-N55EUVKV.mjs} +2 -2
  39. package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-NFWZAQAU.mjs} +1 -1
  40. package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
  41. package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-PGPPZMXD.mjs} +1 -1
  42. package/dist/cli/{chunk-DP2VH7CO.js → chunk-QMDG7FKA.js} +14 -12
  43. package/dist/cli/{chunk-JLGP5XAJ.js → chunk-QZ2C5ARH.js} +5 -5
  44. package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-RL7ZI4ZG.mjs} +133 -32
  45. package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-RO7SIWBG.mjs} +2 -2
  46. package/dist/cli/{chunk-XLIHTJVM.js → chunk-RWT6N2SU.js} +20 -20
  47. package/dist/cli/{chunk-BVDKFS2T.js → chunk-S2CNGS7O.js} +2 -2
  48. package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-S65SZ74B.mjs} +5 -3
  49. package/dist/cli/{chunk-WOCHZCUJ.js → chunk-SE56PJ46.js} +2 -2
  50. package/dist/cli/{chunk-7YRJ5UC4.js → chunk-SF2LIUVO.js} +20 -20
  51. package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
  52. package/dist/cli/{chunk-6NE3RRRY.js → chunk-T3QSHU6E.js} +1 -1
  53. package/dist/cli/{chunk-UVQJYV76.mjs → chunk-T4BFNFBL.mjs} +2 -2
  54. package/dist/cli/{chunk-YUA6HA6D.js → chunk-TFPKGTMD.js} +2 -2
  55. package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
  56. package/dist/cli/{chunk-Y6SP3JMI.js → chunk-U6KGXTYS.js} +30 -30
  57. package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-UUU5WUKM.mjs} +2 -2
  58. package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-UYYOO7VT.mjs} +10 -7
  59. package/dist/cli/{chunk-45OAVGU6.mjs → chunk-W6K6WULS.mjs} +2 -2
  60. package/dist/cli/{chunk-74RES4DS.js → chunk-W7SPSF63.js} +5 -5
  61. package/dist/cli/{chunk-4747TPLV.js → chunk-WTQGJBHD.js} +3 -3
  62. package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
  63. package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-XIHZUWIG.mjs} +1 -1
  64. package/dist/cli/{chunk-7O6J6A7P.js → chunk-YI4ADWTN.js} +7 -2
  65. package/dist/cli/{chunk-7SERLBNR.js → chunk-YXH5Q7OY.js} +20 -20
  66. package/dist/cli/{chunk-SBH4CKPN.js → chunk-Z2T7XTND.js} +10 -10
  67. package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-Z3O5GCQM.mjs} +2 -2
  68. package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-ZU6A4H6P.mjs} +2 -2
  69. package/dist/cli/command-docs.js +2 -2
  70. package/dist/cli/command-docs.mjs +1 -1
  71. package/dist/cli/concurrent-runs-help-CHBVPWYT.js +22 -0
  72. package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
  73. package/dist/cli/{csv-ZXZGHWOM.mjs → csv-K7FNSHIM.mjs} +4 -4
  74. package/dist/cli/{csv-SA6ELJY6.js → csv-Q2Y3KKK2.js} +13 -13
  75. package/dist/cli/{db-A54SP6AD.mjs → db-74RBHX6G.mjs} +7 -7
  76. package/dist/cli/{db-JHFEIQBU.js → db-E4XSIQDS.js} +29 -29
  77. package/dist/cli/describe-TUW35JSY.js +50 -0
  78. package/dist/cli/describe-UYB6WDHS.mjs +50 -0
  79. package/dist/cli/describe-core.d.mts +2 -2
  80. package/dist/cli/describe-core.d.ts +2 -2
  81. package/dist/cli/describe-core.js +5 -5
  82. package/dist/cli/describe-core.mjs +4 -4
  83. package/dist/cli/{executions-HL2M2DFU.mjs → executions-6LKXZRL4.mjs} +6 -6
  84. package/dist/cli/{executions-TLFZRHBJ.js → executions-LX6HJM72.js} +8 -8
  85. package/dist/cli/{feedback-5UEX5UZK.js → feedback-7D2JRVOM.js} +14 -14
  86. package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-B2V64TYZ.mjs} +6 -6
  87. package/dist/cli/{git-LKGXVIVC.mjs → git-7KNCB2HN.mjs} +5 -5
  88. package/dist/cli/git-TH4M62KL.js +26 -0
  89. package/dist/cli/index.js +147 -147
  90. package/dist/cli/index.mjs +46 -46
  91. package/dist/cli/{integrations-6RUTLMN7.js → integrations-34UK7XET.js} +15 -15
  92. package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-J3RHOSAR.mjs} +7 -7
  93. package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-HXJ6UMK7.js} +9 -9
  94. package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
  95. package/dist/cli/{mcp-6LWFP7RW.js → mcp-EZENPRPY.js} +24 -24
  96. package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-JZPAPQYI.mjs} +4 -4
  97. package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-GF2WEFF6.mjs} +7 -7
  98. package/dist/cli/{monitors-STM6A7OU.js → monitors-GS2P4OUK.js} +100 -100
  99. package/dist/cli/{org-ZOBSNSIB.js → org-V56HBHPB.js} +121 -121
  100. package/dist/cli/{org-3SYOUQCX.mjs → org-WJ2RO7ZE.mjs} +6 -6
  101. package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-D6KXYKGW.js} +14 -14
  102. package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-WP5WV54Y.mjs} +6 -6
  103. package/dist/cli/{play-SN5YWLS7.mjs → play-FHHCHNQH.mjs} +36 -24
  104. package/dist/cli/{play-SM4CW2GS.js → play-PXUVRS4K.js} +387 -375
  105. package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-HJ77LN3M.mjs} +6 -6
  106. package/dist/cli/{providers-WZARYMCF.js → providers-TOXIJOY2.js} +9 -9
  107. package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-MDXLT5SR.js} +6 -6
  108. package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UEQHXEWP.mjs} +4 -4
  109. package/dist/cli/{run-FLZ6OTM7.js → run-2MXAEH6U.js} +55 -59
  110. package/dist/cli/{run-ZUHCZOJS.mjs → run-ZZ5ABZL7.mjs} +34 -38
  111. package/dist/cli/search-6DT2TGOU.js +32 -0
  112. package/dist/cli/{search-HLPPKQEO.mjs → search-AF4XVWC2.mjs} +7 -7
  113. package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-3GFQJJGJ.mjs} +6 -6
  114. package/dist/cli/{search-output-RXJLU36B.js → search-output-LEKJVZSH.js} +9 -9
  115. package/dist/cli/{secrets-QJNG7G2Y.js → secrets-MR2FNFGD.js} +15 -15
  116. package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-TLH3FKCT.mjs} +6 -6
  117. package/dist/cli/sessions-EJYLWV2M.js +23 -0
  118. package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-LUL5P66K.mjs} +6 -6
  119. package/dist/cli/{settings-RR3LZXL7.mjs → settings-AWSRUTZR.mjs} +12 -12
  120. package/dist/cli/{settings-44I44P5F.js → settings-Z2HYUOL7.js} +85 -85
  121. package/dist/cli/{setup-KTEYOCJO.js → setup-FIMXN4IC.js} +51 -54
  122. package/dist/cli/{setup-KGWRWH4B.mjs → setup-PFPAJOUI.mjs} +11 -14
  123. package/dist/cli/skills-232RNG5G.js +37 -0
  124. package/dist/cli/{skills-FPRID2I5.mjs → skills-5DKSATY5.mjs} +7 -7
  125. package/dist/cli/{tools-PI4WMDLY.mjs → tools-BDNASCSH.mjs} +20 -20
  126. package/dist/cli/tools-P7FBJVJA.js +57 -0
  127. package/dist/cli/{update-VJOJAZ7B.mjs → update-CAFUZ5XT.mjs} +9 -9
  128. package/dist/cli/update-OC4UB2XE.js +37 -0
  129. package/dist/cli/{views-OVPSINZO.mjs → views-7PDXZUQA.mjs} +6 -6
  130. package/dist/cli/{views-NTUOLNQU.js → views-XJOBO6US.js} +21 -21
  131. package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-2BMUGN7M.mjs} +7 -7
  132. package/dist/cli/{workflow-2UDYDM6F.js → workflow-KCPLU5R7.js} +17 -17
  133. package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
  134. package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
  135. package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
  136. package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -2
  137. package/dist/index.d.mts +3 -3
  138. package/dist/index.d.ts +3 -3
  139. package/dist/index.js +9 -9
  140. package/dist/index.mjs +6 -6
  141. package/dist/install-integrity.json +126 -126
  142. package/dist/plays/play-description.d.mts +1 -1
  143. package/dist/plays/play-description.d.ts +1 -1
  144. package/dist/plays/run-request.d.mts +1 -1
  145. package/dist/plays/run-request.d.ts +1 -1
  146. package/dist/release.d.mts +1 -1
  147. package/dist/release.d.ts +1 -1
  148. package/dist/release.js +2 -2
  149. package/dist/release.mjs +1 -1
  150. package/dist/server.d.mts +2 -2
  151. package/dist/server.d.ts +2 -2
  152. package/dist/server.js +5 -5
  153. package/dist/server.mjs +3 -3
  154. package/package.json +1 -1
  155. package/dist/cli/auth-MQCN7WGZ.js +0 -44
  156. package/dist/cli/chunk-AID3OYVJ.js +0 -8
  157. package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
  158. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
  159. package/dist/cli/describe-PHQ33AGS.mjs +0 -50
  160. package/dist/cli/describe-RHJ4XRFI.js +0 -50
  161. package/dist/cli/git-4JWOOHBG.js +0 -26
  162. package/dist/cli/search-JJWVHR3N.js +0 -32
  163. package/dist/cli/sessions-DHTBT2GN.js +0 -23
  164. package/dist/cli/skills-EPZPEXI2.js +0 -37
  165. package/dist/cli/tools-IGQQ5TML.js +0 -57
  166. package/dist/cli/update-4RNCVYGE.js +0 -37
@@ -4,14 +4,14 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
7
+ var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
14
+ var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
15
15
 
16
16
 
17
17
 
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
331
331
  node_version: process.version,
332
332
  runtime: "Node.js",
333
333
  hostname: _os.hostname.call(void 0, ),
334
- agent_runtime: _chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, )
334
+ agent_runtime: _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )
335
335
  };
336
336
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
337
337
  const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
352
352
  return context;
353
353
  }
354
354
  function failureReportHeaders(apiKey) {
355
- const agentSessionId = _chunkAGLR6QVNjs.agentSessionIdFromEnvironment.call(void 0, );
355
+ const agentSessionId = _chunk6M2SDRWNjs.agentSessionIdFromEnvironment.call(void 0, );
356
356
  return {
357
- ..._chunkAGLR6QVNjs.deploymentProtectionHeaders.call(void 0, ),
357
+ ..._chunk6M2SDRWNjs.deploymentProtectionHeaders.call(void 0, ),
358
358
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
359
359
  Authorization: `Bearer ${apiKey}`,
360
360
  "Content-Type": "application/json",
361
- "User-Agent": `deepline-ts-sdk/${_chunkAGLR6QVNjs.SDK_VERSION}`,
361
+ "User-Agent": `deepline-ts-sdk/${_chunk6M2SDRWNjs.SDK_VERSION}`,
362
362
  "X-Deepline-Client-Family": "sdk",
363
363
  "X-Deepline-CLI-Family": "sdk",
364
- "X-Deepline-Agent-Runtime": _chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, ),
365
- "X-Deepline-CLI-Version": _chunkAGLR6QVNjs.SDK_VERSION,
366
- "X-Deepline-SDK-Version": _chunkAGLR6QVNjs.SDK_VERSION
364
+ "X-Deepline-Agent-Runtime": _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, ),
365
+ "X-Deepline-CLI-Version": _chunk6M2SDRWNjs.SDK_VERSION,
366
+ "X-Deepline-SDK-Version": _chunk6M2SDRWNjs.SDK_VERSION
367
367
  };
368
368
  }
369
369
  async function postFailureReport(input) {
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
391
391
  if (isFailureReportingDisabled()) return false;
392
392
  let apiKey = "";
393
393
  try {
394
- apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
394
+ apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
395
395
  } catch (e2) {
396
396
  return false;
397
397
  }
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
418
418
  failure_code: failureCode2,
419
419
  failure_stage: failureStage,
420
420
  error_body: "Automatic Deepline skills installation failed.",
421
- cli_version: _chunkAGLR6QVNjs.SDK_VERSION,
421
+ cli_version: _chunk6M2SDRWNjs.SDK_VERSION,
422
422
  context: {
423
423
  environment: buildEnvironmentContext(),
424
424
  skills_sync: {
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
538
538
  failure_kind: failureKind,
539
539
  failure_code: code,
540
540
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
541
- cli_version: _chunkAGLR6QVNjs.SDK_VERSION,
541
+ cli_version: _chunk6M2SDRWNjs.SDK_VERSION,
542
542
  context: {
543
543
  base_url: redactFailureText(input.baseUrl, 400),
544
544
  command_summary: sanitizeCommand(input.argv),
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
558
558
  if (isServerLoggedPlayRunStartFailure(input)) return false;
559
559
  const exitCode = resolvedExitCode(input);
560
560
  if (!shouldReport({ exitCode, error: input.error })) return false;
561
- const baseUrl = _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
- const apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
561
+ const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
+ const apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
563
563
  if (!apiKey) return false;
564
564
  return postFailureReport({
565
565
  baseUrl,
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
914
914
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
915
915
  var defaultBrowserCommandRunner = childProcess;
916
916
  function getAuthedHttpClient() {
917
- const config = _chunkMLABYI4Mjs.resolveConfig.call(void 0, );
918
- return { config, http: new (0, _chunkMLABYI4Mjs.HttpClient)(config) };
917
+ const config = _chunkAYCC5JASjs.resolveConfig.call(void 0, );
918
+ return { config, http: new (0, _chunkAYCC5JASjs.HttpClient)(config) };
919
919
  }
920
920
  function stableOsUserId() {
921
921
  try {
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
1256
1256
  os: `${process.platform} ${process.arch}`,
1257
1257
  node_version: process.version,
1258
1258
  home_dir: homeDir,
1259
- agent_runtime: _chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, )
1259
+ agent_runtime: _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )
1260
1260
  };
1261
1261
  const env = process.env;
1262
1262
  const optional = {
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
1503
1503
  }
1504
1504
  function withAgentCommandContext(value) {
1505
1505
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
1506
- return _chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1506
+ return _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1507
1507
  ...valueRecord,
1508
- command_context: _chunkMLABYI4Mjs.resolveCliCommandContext.call(void 0, )
1508
+ command_context: _chunkAYCC5JASjs.resolveCliCommandContext.call(void 0, )
1509
1509
  } : value;
1510
1510
  }
1511
1511
  function printJson(value, fields, options = {}) {
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
1677
1677
  ...upstreamResponse ? { upstreamResponse } : {},
1678
1678
  ...Object.keys(details).length > 0 ? { details } : {}
1679
1679
  };
1680
- const retry = cliRetryGuidance(payloadError, _chunkAGLR6QVNjs.readToolFailureHint.call(void 0, error));
1680
+ const retry = cliRetryGuidance(payloadError, _chunk6M2SDRWNjs.readToolFailureHint.call(void 0, error));
1681
1681
  return {
1682
1682
  ok: false,
1683
1683
  status: "failed",
@@ -1,6 +1,6 @@
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 _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
3
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
60
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -2,14 +2,14 @@ import {
2
2
  SCHEMA_LINE_LIMIT,
3
3
  fieldBlockLines,
4
4
  schemaFields
5
- } from "./chunk-E7WZOX2A.mjs";
5
+ } from "./chunk-XFZX6FNM.mjs";
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows,
9
9
  formatCliFailureDiagnostic,
10
10
  markJsonOutputHandled,
11
11
  writeRawStderr
12
- } from "./chunk-AGICYWGN.mjs";
12
+ } from "./chunk-N55EUVKV.mjs";
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -753,6 +753,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
753
753
  id: result.id,
754
754
  name: options.label ?? null,
755
755
  credits: result.credits ?? null,
756
+ ...result.creditsPostedSoFar ? { creditsPostedSoFar: true } : {},
756
757
  outputs,
757
758
  page: result.page ?? null,
758
759
  price: result.price ?? null,
@@ -824,6 +825,7 @@ var HEADLINES = {
824
825
  };
825
826
  var NEXT_NOTES = {
826
827
  billing: "what this call cost",
828
+ settledCost: "cost once every charge has posted",
827
829
  status: "check on the run",
828
830
  export: "save its rows once it finishes",
829
831
  getActorRun: "check the Apify run",
@@ -901,7 +903,7 @@ function receiptText(receipt, options, extra) {
901
903
  `${options.label?.endsWith("(tool)") ? "Call Id" : "Run Id"}: ${receipt.id}`
902
904
  ] : [],
903
905
  ...receipt.credits !== null ? [
904
- `Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}`
906
+ `Cost: ${receipt.credits} ${receipt.credits === 1 ? "credit" : "credits"}${receipt.creditsPostedSoFar ? " posted so far" : ""}`
905
907
  ] : [],
906
908
  ...receipt.price ? [`Price: ${receipt.price}`] : []
907
909
  ]
@@ -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 _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
3
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.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
- _chunkXLIHTJVMjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkRWT6N2SUjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,29 +1,29 @@
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 _chunk7GEMELKIjs = require('./chunk-7GEMELKI.js');
3
+ var _chunkMIXPZ4G7js = require('./chunk-MIXPZ4G7.js');
4
4
 
5
5
 
6
- var _chunkDP2VH7COjs = require('./chunk-DP2VH7CO.js');
6
+ var _chunkQMDG7FKAjs = require('./chunk-QMDG7FKA.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkIH6GDNKWjs = require('./chunk-IH6GDNKW.js');
11
+ var _chunkEN5NHCCQjs = require('./chunk-EN5NHCCQ.js');
12
12
 
13
13
 
14
- var _chunkTFEXSHPMjs = require('./chunk-TFEXSHPM.js');
14
+ var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
15
15
 
16
16
 
17
- var _chunkJLGP5XAJjs = require('./chunk-JLGP5XAJ.js');
17
+ var _chunkQZ2C5ARHjs = require('./chunk-QZ2C5ARH.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
22
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
26
+ var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  var _fs = require('fs');
@@ -32,14 +32,14 @@ var _path = require('path');
32
32
  // src/cli/doc-read-reporting.ts
33
33
  var REPORT_TIMEOUT_MS = 1e3;
34
34
  async function reportDocRead(docId) {
35
- if (_chunkXLIHTJVMjs.isFailureReportingDisabled.call(void 0, )) return;
35
+ if (_chunkRWT6N2SUjs.isFailureReportingDisabled.call(void 0, )) return;
36
36
  try {
37
- const baseUrl = _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
- const apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
37
+ const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
+ const apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
39
  if (!apiKey) return;
40
40
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
41
41
  method: "POST",
42
- headers: _chunkXLIHTJVMjs.failureReportHeaders.call(void 0, apiKey),
42
+ headers: _chunkRWT6N2SUjs.failureReportHeaders.call(void 0, apiKey),
43
43
  body: JSON.stringify({ doc_id: docId }),
44
44
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
45
45
  });
@@ -52,16 +52,16 @@ function nothingNamed(name) {
52
52
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
53
  }
54
54
  function findNamed2(name, options) {
55
- return _chunkIH6GDNKWjs.findNamed.call(void 0, name, options, _chunkIH6GDNKWjs.describeLookupsFor.call(void 0, new (0, _chunkJLGP5XAJjs.DeeplineClient)()));
55
+ return _chunkEN5NHCCQjs.findNamed.call(void 0, name, options, _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, new (0, _chunkQZ2C5ARHjs.DeeplineClient)()));
56
56
  }
57
57
  async function describeAnything(name, options, onMissing) {
58
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
59
- const lookups = _chunkIH6GDNKWjs.describeLookupsFor.call(void 0, client);
60
- const outcome = await _chunkIH6GDNKWjs.describeName.call(void 0, name, options, {
58
+ const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
59
+ const lookups = _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, client);
60
+ const outcome = await _chunkEN5NHCCQjs.describeName.call(void 0, name, options, {
61
61
  ...lookups,
62
62
  // `tools describe` has already fetched the tool for its compatibility check.
63
63
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
64
- seedStarterScript: _chunk7GEMELKIjs.seedToolListScript
64
+ seedStarterScript: _chunkMIXPZ4G7js.seedToolListScript
65
65
  });
66
66
  if (outcome.status === "missing") {
67
67
  if (onMissing) return onMissing();
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
90
90
  ` : text;
91
91
  _fs.writeFileSync.call(void 0, path, content);
92
92
  const bytes = Buffer.byteLength(content);
93
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
93
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
94
94
  { path, bytes },
95
95
  { json, text: `Wrote ${path} (${bytes} bytes)
96
96
  ` }
97
97
  );
98
98
  return 0;
99
99
  }
100
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, envelope, { json, text });
101
101
  return 0;
102
102
  }
103
103
  function registerDescribeCommand(program) {
104
- _chunkDP2VH7COjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
+ _chunkQMDG7FKAjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
105
105
  "Describe anything search returns: a tool, monitor type, or play."
106
106
  ).addHelpText(
107
107
  "after",
@@ -142,7 +142,7 @@ Schema size and format:
142
142
  by default; the output names them, and --verbose shows them.
143
143
  --fields email,miss_reason shows only the fields you name, plus every
144
144
  required input, and names the rest. Use it when you know what you need.
145
- A schema over ${_chunkTFEXSHPMjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
145
+ A schema over ${_chunkLY5MMXFFjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
146
146
  names. A shape used more than once is printed once under Types.
147
147
  --full-schema the normal output, with the schema not folded
148
148
  --schema-only only the schema, not folded, and nothing else
@@ -0,0 +1,32 @@
1
+ // src/cli/shell-quote.ts
2
+ function shellQuote(value) {
3
+ return `'${value.replace(/'/g, `'\\''`)}'`;
4
+ }
5
+ function shellArgument(value, platform = process.platform) {
6
+ if (platform !== "win32") return shellQuote(value);
7
+ if (/^[A-Za-z0-9_+:./\\-][A-Za-z0-9_+=:./\\-]*$/.test(value)) return value;
8
+ if (!/["\u201C\u201D\u201E$`!%\\\r\n]/.test(value)) return `"${value}"`;
9
+ return `'${value.replace(/['\u2018\u2019\u201A\u201B]/g, (quote) => quote + quote)}'`;
10
+ }
11
+ var EXAMPLE_INPUT_FILE = "input.json";
12
+ function exampleJsonInput(json, platform = process.platform) {
13
+ if (platform !== "win32") return { argument: `--input ${shellQuote(json)}` };
14
+ return {
15
+ argument: `--input-file ${EXAMPLE_INPUT_FILE}`,
16
+ file: { path: EXAMPLE_INPUT_FILE, contents: json }
17
+ };
18
+ }
19
+ function examplePlaceholderInput(platform = process.platform) {
20
+ return platform === "win32" ? `--input-file ${EXAMPLE_INPUT_FILE}` : `--input '{...}'`;
21
+ }
22
+ function exampleInputFileLine(file) {
23
+ return `Save this as ${file.path}: ${file.contents}`;
24
+ }
25
+
26
+ export {
27
+ shellQuote,
28
+ shellArgument,
29
+ exampleJsonInput,
30
+ examplePlaceholderInput,
31
+ exampleInputFileLine
32
+ };
@@ -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.553",
52
+ version: "0.3.555",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-LH5PZKER.mjs";
3
+ } from "./chunk-57J3OOCR.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-LFOERUQY.mjs";
7
+ } from "./chunk-66BQY77L.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -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 _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
3
+ var _chunk72VEVAIXjs = require('./chunk-72VEVAIX.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 = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk72VEVAIXjs.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
  windowsHide: true,
19
19
  encoding: "utf8",
@@ -2,7 +2,12 @@ import {
2
2
  rateLimitSummary,
3
3
  schemaField,
4
4
  schemaFields
5
- } from "./chunk-E7WZOX2A.mjs";
5
+ } from "./chunk-XFZX6FNM.mjs";
6
+ import {
7
+ exampleInputFileLine,
8
+ exampleJsonInput,
9
+ examplePlaceholderInput
10
+ } from "./chunk-STXDSVQZ.mjs";
6
11
  import {
7
12
  playToolListGetterMode
8
13
  } from "./chunk-FR2ILQ4G.mjs";
@@ -168,11 +173,16 @@ function playReferenceForTool(tool) {
168
173
  function playSearchCommandForToolId(toolId) {
169
174
  return `deepline search ${JSON.stringify(toolId.replace(/_/g, " "))}`;
170
175
  }
171
- function playRunCommandForTool(tool, toolId, input) {
176
+ function playRunCommandForTool(tool, toolId, input, platform = process.platform) {
172
177
  const playReference = playReferenceForTool(tool);
173
178
  if (!playReference) return playSearchCommandForToolId(toolId);
174
- const inputArg = input === void 0 ? "'{...}'" : `'${JSON.stringify(input)}'`;
175
- return `deepline run ${playReference} --input ${inputArg}`;
179
+ if (input === void 0) {
180
+ return `deepline run ${playReference} ${examplePlaceholderInput(platform)}`;
181
+ }
182
+ const { argument, file } = exampleJsonInput(JSON.stringify(input), platform);
183
+ const command = `deepline run ${playReference} ${argument}`;
184
+ return file ? `${exampleInputFileLine(file)}
185
+ ${command}` : command;
176
186
  }
177
187
  function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdition, seedStarterScript) {
178
188
  const toolId = String(tool.toolId || requestedToolId);
@@ -4,21 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk7SERLBNRjs = require('./chunk-7SERLBNR.js');
7
+ var _chunkYXH5Q7OYjs = require('./chunk-YXH5Q7OY.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
12
11
 
12
+ var _chunk72VEVAIXjs = require('./chunk-72VEVAIX.js');
13
13
 
14
14
 
15
- var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
16
15
 
16
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
17
17
 
18
- var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
19
18
 
19
+ var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
20
20
 
21
- var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
21
+
22
+ var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
22
23
 
23
24
  // src/cli/compatibility-catalog.ts
24
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
46
  async function reportAutoUpdateEvent(input) {
46
47
  let apiKey = "";
47
48
  try {
48
- apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunkAYCC5JASjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
50
  } catch (e2) {
50
51
  return;
51
52
  }
@@ -61,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
61
62
  headers: {
62
63
  Authorization: `Bearer ${apiKey}`,
63
64
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkAGLR6QVNjs.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk6M2SDRWNjs.SDK_VERSION}`,
65
66
  "X-Deepline-Client-Family": "sdk",
66
67
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkAGLR6QVNjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkAGLR6QVNjs.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk6M2SDRWNjs.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk6M2SDRWNjs.SDK_VERSION
69
70
  },
70
71
  body: JSON.stringify({
71
72
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAGLR6QVNjs.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk6M2SDRWNjs.SDK_VERSION,
73
74
  target_version: input.response.latest,
74
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,28 +89,27 @@ function envTruthy(name) {
88
89
  return value === "1" || value === "true" || value === "yes";
89
90
  }
90
91
  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") || !_chunk7SERLBNRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2B5B5KAWjs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkYXH5Q7OYjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk72VEVAIXjs.isCiEnvironment.call(void 0, );
92
93
  }
93
94
  function isDowngradeAutoUpdateResponse(response) {
94
95
  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()]) || _chunkAGLR6QVNjs.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk6M2SDRWNjs.SDK_VERSION;
96
97
  if (!target) return false;
97
- return _chunk7SERLBNRjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkYXH5Q7OYjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
99
  }
99
100
  function relaunchCurrentCommand(plan, runtime = {}) {
100
101
  return new Promise((resolve) => {
101
- const command = plan.kind === "python-sidecar" ? plan.sidecarPath : _nullishCoalesce(runtime.execPath, () => ( process.execPath));
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
- const args = plan.kind === "python-sidecar" ? argv.slice(2) : argv.slice(1);
104
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
105
- const child = _child_process.spawn.call(void 0, command, args, {
104
+ const launch = plan.kind === "python-sidecar" ? _chunk72VEVAIXjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
+ command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
+ args: argv.slice(1),
107
+ shell: false
108
+ };
109
+ const child = _child_process.spawn.call(void 0, launch.command, launch.args, {
106
110
  windowsHide: true,
107
111
  stdio: "inherit",
108
- // The Node executable is a native binary and must be spawned directly;
109
- // passing `C:\Program Files\...\node.exe` through cmd.exe splits it
110
- // at the first space. The Python-sidecar launcher is a `.cmd` file on
111
- // Windows and still needs the shell dispatch it has always used.
112
- shell: plan.kind === "python-sidecar" && platform === "win32",
112
+ shell: launch.shell,
113
113
  env: {
114
114
  ...process.env,
115
115
  DEEPLINE_NO_AUTO_UPDATE: "1"
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAGLR6QVNjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk6M2SDRWNjs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunk7SERLBNRjs.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkYXH5Q7OYjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkYXH5Q7OYjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkRWT6N2SUjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkXLIHTJVMjs.addJsonNotice.call(void 0, {
173
+ _chunkRWT6N2SUjs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkYXH5Q7OYjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  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";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunk7SERLBNRjs.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkYXH5Q7OYjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunk72VEVAIXjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkRWT6N2SUjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-LH5PZKER.mjs";
3
+ } from "./chunk-57J3OOCR.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-LFOERUQY.mjs";
7
+ } from "./chunk-66BQY77L.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-4BFTDNHU.mjs";
3
+ } from "./chunk-7H753VC5.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-AGICYWGN.mjs";
6
+ } from "./chunk-N55EUVKV.mjs";
7
7
  import {
8
8
  DEFAULT_MAX_RETRIES,
9
9
  DEFAULT_SKILL_AGENTS,
@@ -18,20 +18,20 @@ import {
18
18
  sdkCliStateDirPath,
19
19
  skillsAgentPathSegment,
20
20
  writeSdkSkillsLocalVersion
21
- } from "./chunk-LFOERUQY.mjs";
21
+ } from "./chunk-66BQY77L.mjs";
22
22
  import {
23
23
  SDK_API_CONTRACT,
24
24
  SDK_API_MAJOR,
25
25
  SDK_VERSION,
26
26
  deploymentProtectionHeaders,
27
27
  detectAgentRuntime
28
- } from "./chunk-OTV2UUKW.mjs";
28
+ } from "./chunk-XIHZUWIG.mjs";
29
29
  import {
30
30
  DeeplineError
31
31
  } from "./chunk-Z3A2S3QM.mjs";
32
32
  import {
33
33
  SDK_RELEASE
34
- } from "./chunk-GAVZ4EOD.mjs";
34
+ } from "./chunk-PGPPZMXD.mjs";
35
35
 
36
36
  // src/compat.ts
37
37
  import { randomUUID } from "crypto";
@@ -524,8 +524,11 @@ function resolveShellSpawn(command, args, platform = process.platform, env = pro
524
524
  return { command: executable, args: [...args], shell: false };
525
525
  }
526
526
  return {
527
- command: escapeCmdCommand(executable),
528
- args: args.map((arg) => escapeCmdArgument(arg)),
527
+ command: [
528
+ escapeCmdCommand(executable),
529
+ ...args.map((arg) => escapeCmdArgument(arg))
530
+ ].join(" "),
531
+ args: [],
529
532
  shell: true
530
533
  };
531
534
  }