deepline 0.3.477 → 0.3.478

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 (165) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +5 -4
  2. package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
  3. package/dist/bundling-sources/sdk/src/http.ts +2 -0
  4. package/dist/bundling-sources/sdk/src/play.ts +8 -2
  5. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
  8. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +11 -1
  9. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -27
  14. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
  15. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
  16. package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
  17. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
  18. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
  19. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
  20. package/dist/cli/{auth-XVXRRWIQ.mjs → auth-SA4DJCSO.mjs} +5 -5
  21. package/dist/cli/auth-U5SNVC5F.js +41 -0
  22. package/dist/cli/{billing-2H7GFJDT.js → billing-462SAHWX.js} +107 -87
  23. package/dist/cli/{billing-EOPUJ4JI.mjs → billing-Z4D35MV5.mjs} +34 -14
  24. package/dist/cli/{chunk-SG2SZQ4K.mjs → chunk-2FTUPGTN.mjs} +2 -2
  25. package/dist/cli/{chunk-NO7ZC2GV.mjs → chunk-2JS5DNVX.mjs} +5 -5
  26. package/dist/cli/{chunk-3UKKM6OS.js → chunk-2MSKG4ER.js} +7 -6
  27. package/dist/cli/{chunk-ISEUOYCB.mjs → chunk-3LTLQAU4.mjs} +4 -4
  28. package/dist/cli/{chunk-C2V2HQDW.mjs → chunk-3V7INABZ.mjs} +2 -2
  29. package/dist/cli/{chunk-C2AN2HTB.mjs → chunk-4C3TMIF3.mjs} +4 -4
  30. package/dist/cli/{chunk-2YNLW43I.mjs → chunk-4RJRGQ5Y.mjs} +2 -2
  31. package/dist/cli/{chunk-M2UL4ZS5.js → chunk-4RV7U3RP.js} +7 -7
  32. package/dist/cli/{chunk-PQQNMMWM.mjs → chunk-645RNF2Y.mjs} +1 -1
  33. package/dist/cli/{chunk-THMGJOR4.js → chunk-6EEMW7YP.js} +8 -8
  34. package/dist/cli/{chunk-YZA5UJXM.mjs → chunk-75DAGCEX.mjs} +1 -1
  35. package/dist/cli/{chunk-QODW5ILA.mjs → chunk-7HTWT3Z4.mjs} +2 -2
  36. package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
  37. package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
  38. package/dist/cli/{chunk-23EEVP5W.js → chunk-A5LPDB6N.js} +6 -6
  39. package/dist/cli/{chunk-NJMYX2TP.mjs → chunk-ABBP5ZCI.mjs} +3 -3
  40. package/dist/cli/{chunk-347EE4YE.js → chunk-AQYSZYNE.js} +8 -8
  41. package/dist/cli/{chunk-RGNMMDSJ.js → chunk-AYW242XF.js} +37 -37
  42. package/dist/cli/{chunk-6IJJCRE5.mjs → chunk-BLAZVZVD.mjs} +23 -5
  43. package/dist/cli/{chunk-ZDPL5AIK.js → chunk-D2LKEQKI.js} +5 -5
  44. package/dist/cli/{chunk-RLCAECZH.mjs → chunk-F2SJYUBW.mjs} +5 -5
  45. package/dist/cli/{chunk-XQLYPHYW.mjs → chunk-F44O4PEP.mjs} +1 -1
  46. package/dist/cli/{chunk-7CILZKLE.js → chunk-HMUBLAT4.js} +5 -5
  47. package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
  48. package/dist/cli/{chunk-4RAENEAX.js → chunk-IWYWZXCA.js} +53 -53
  49. package/dist/cli/{chunk-2QT6KN54.js → chunk-J3ZYRN5L.js} +10 -10
  50. package/dist/cli/{chunk-RHIFH3GD.mjs → chunk-JH775FF6.mjs} +1 -1
  51. package/dist/cli/{chunk-ACDXGOXE.js → chunk-KBBZXWXF.js} +63 -11
  52. package/dist/cli/{chunk-LJYTYNQZ.mjs → chunk-M5USVQ33.mjs} +55 -3
  53. package/dist/cli/{chunk-2GZFIWSA.mjs → chunk-N573OK4W.mjs} +4 -4
  54. package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
  55. package/dist/cli/{chunk-DFKHXZQ7.mjs → chunk-PHBOI24Y.mjs} +10 -10
  56. package/dist/cli/{chunk-WRHLAAGN.mjs → chunk-PLJV6SX4.mjs} +1 -1
  57. package/dist/cli/{chunk-C46DWB56.mjs → chunk-PPHHPAQV.mjs} +1 -1
  58. package/dist/cli/{chunk-UBNS6GSV.js → chunk-PZHRNSMU.js} +21 -21
  59. package/dist/cli/{chunk-KMXBZIKO.mjs → chunk-QB3Q73LP.mjs} +2 -2
  60. package/dist/cli/{chunk-255O6APS.js → chunk-QVZNUQAP.js} +2 -2
  61. package/dist/cli/{chunk-6KKDIISC.js → chunk-S3BKOCVB.js} +1 -1
  62. package/dist/cli/{chunk-JS4UO6G4.mjs → chunk-S7UEKKOX.mjs} +2 -1
  63. package/dist/cli/{chunk-KWQNNPMH.js → chunk-SCHE5QRN.js} +3 -3
  64. package/dist/cli/{chunk-E2CUSH56.js → chunk-SXY4DOVA.js} +16 -16
  65. package/dist/cli/{chunk-SVU2VR6Q.mjs → chunk-TLF3KGWG.mjs} +2 -2
  66. package/dist/cli/{chunk-LXKGZKTL.js → chunk-TQWI7LJX.js} +26 -26
  67. package/dist/cli/{chunk-NC52JG66.js → chunk-TW3TTKW5.js} +3 -3
  68. package/dist/cli/{chunk-R5FNCFEK.js → chunk-UXQVSDFP.js} +3 -3
  69. package/dist/cli/{chunk-DMWHEYZM.js → chunk-V7I65ME7.js} +2 -2
  70. package/dist/cli/{chunk-CH4VMDB5.js → chunk-VE25VUTE.js} +70 -52
  71. package/dist/cli/{chunk-3W6E3WVU.js → chunk-XFY3JOP2.js} +9 -9
  72. package/dist/cli/{chunk-75NLWBYQ.js → chunk-XOORR6P3.js} +93 -93
  73. package/dist/cli/chunk-YGCKMI5P.js +127 -0
  74. package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
  75. package/dist/cli/{chunk-DS3DZUES.mjs → chunk-ZSU3C4ST.mjs} +2 -2
  76. package/dist/cli/command-docs.js +2 -2
  77. package/dist/cli/command-docs.mjs +1 -1
  78. package/dist/cli/{csv-IDRPTSSC.mjs → csv-3SNWBO5F.mjs} +4 -4
  79. package/dist/cli/{csv-ECB7TYR2.js → csv-LAYTDYIF.js} +13 -13
  80. package/dist/cli/{db-FOBZD44N.mjs → db-72JKGQSK.mjs} +6 -6
  81. package/dist/cli/{db-S74XZZ77.js → db-OOUOSURL.js} +27 -27
  82. package/dist/cli/describe-7HYV44MO.js +48 -0
  83. package/dist/cli/{describe-KMTPPI2J.mjs → describe-KDPNOEUJ.mjs} +17 -17
  84. package/dist/cli/describe-core.d.mts +3 -3
  85. package/dist/cli/describe-core.d.ts +3 -3
  86. package/dist/cli/{executions-4JAIVE2E.mjs → executions-O6JS3UKX.mjs} +6 -6
  87. package/dist/cli/{executions-ZE3JMNA4.js → executions-RJNMGJEE.js} +8 -8
  88. package/dist/cli/{feedback-W6VA47A3.js → feedback-FXB6NV3Y.js} +8 -8
  89. package/dist/cli/{feedback-EUX5PDBA.mjs → feedback-T3JH3CWC.mjs} +4 -4
  90. package/dist/cli/git-5LTKPXGN.js +25 -0
  91. package/dist/cli/{git-UOVG4PLH.mjs → git-6KAQSH5J.mjs} +5 -5
  92. package/dist/cli/index.js +161 -142
  93. package/dist/cli/index.mjs +65 -46
  94. package/dist/cli/{legacy-noops-ZBWUNFWV.mjs → legacy-noops-7HDGEGTK.mjs} +5 -5
  95. package/dist/cli/{legacy-noops-3H35EH5Y.js → legacy-noops-PAOGRKUK.js} +8 -8
  96. package/dist/cli/{monitors-PI3KPLR2.js → monitors-KQFI7TVJ.js} +91 -91
  97. package/dist/cli/{monitors-AYSGSUAK.mjs → monitors-LE2AYK3Z.mjs} +7 -7
  98. package/dist/cli/{org-MVS3Y6BK.js → org-J6XFHDJE.js} +72 -72
  99. package/dist/cli/{org-2BIG7U4V.mjs → org-Z4DMJ72I.mjs} +6 -6
  100. package/dist/cli/{pages-4TRRL24G.mjs → pages-5LYS6Y4I.mjs} +6 -6
  101. package/dist/cli/{pages-VB6FOVDE.js → pages-FIXBZQJG.js} +17 -17
  102. package/dist/cli/{play-BLT6IT2O.js → play-D7WPXADH.js} +585 -678
  103. package/dist/cli/{play-JR3VUOZM.mjs → play-GILXXIN7.mjs} +26 -119
  104. package/dist/cli/{providers-BBXIAGW4.js → providers-KN7YACT6.js} +9 -9
  105. package/dist/cli/{providers-547DPK4S.mjs → providers-OQWL4Q4W.mjs} +6 -6
  106. package/dist/cli/{quickstart-NTLXD7HS.mjs → quickstart-2LRIORFM.mjs} +4 -4
  107. package/dist/cli/{quickstart-RNPI5B6J.js → quickstart-M2OBP3W3.js} +6 -6
  108. package/dist/cli/{run-BCCEXBOG.js → run-6YZZO7VM.js} +36 -36
  109. package/dist/cli/{run-QZ4SFECD.mjs → run-GYRBKQZT.mjs} +22 -22
  110. package/dist/cli/search-OVKWA4AV.js +32 -0
  111. package/dist/cli/{search-PYNELH4C.mjs → search-VUPK6BNU.mjs} +7 -7
  112. package/dist/cli/{secrets-VD35LMYJ.js → secrets-RE3UMZB7.js} +15 -15
  113. package/dist/cli/{secrets-O5WGREQ7.mjs → secrets-ULRGU7NM.mjs} +6 -6
  114. package/dist/cli/{sessions-2TL6Z5J5.mjs → sessions-2ZZVJ3P2.mjs} +5 -5
  115. package/dist/cli/{sessions-NGGIBYXF.js → sessions-T4UMHNDW.js} +6 -6
  116. package/dist/cli/{settings-ERFNZRHO.js → settings-BRV6AYFM.js} +78 -78
  117. package/dist/cli/{settings-6KM74AJT.mjs → settings-PDY4TJU6.mjs} +11 -11
  118. package/dist/cli/{setup-Y3BN6XRS.mjs → setup-CXL6C5Z5.mjs} +9 -9
  119. package/dist/cli/{setup-6X7EJ6RG.js → setup-JONYJYBK.js} +44 -44
  120. package/dist/cli/{skills-OUBQASHI.mjs → skills-TOMVQD5O.mjs} +7 -7
  121. package/dist/cli/skills-UK5AK35I.js +33 -0
  122. package/dist/cli/{tools-EELZ5FF5.mjs → tools-B2LJK4MM.mjs} +16 -16
  123. package/dist/cli/tools-HH6E5G7J.js +55 -0
  124. package/dist/cli/{update-TX7SW32Y.mjs → update-CD6T2REC.mjs} +9 -9
  125. package/dist/cli/update-EGXT3EIJ.js +33 -0
  126. package/dist/cli/{workflow-5AI2BJA7.js → workflow-PZML43E2.js} +17 -17
  127. package/dist/cli/{workflow-PUNQG7LG.mjs → workflow-ZAOBP6I7.mjs} +7 -7
  128. package/dist/{client-AjmfA5nR.d.mts → client-B1s1yJdT.d.mts} +1 -1
  129. package/dist/{client-DMyY-QL8.d.ts → client-DqUseRzd.d.ts} +1 -1
  130. package/dist/{client-core-C705vFyV.d.ts → client-core-Bd7tP9Uz.d.ts} +45 -6
  131. package/dist/{client-core-CpBbvLEX.d.mts → client-core-BijQEQ70.d.mts} +45 -6
  132. package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-B1m5tRzz.d.mts} +23 -17
  133. package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-B1m5tRzz.d.ts} +23 -17
  134. package/dist/{errors-CRO2qQ6k.d.ts → errors-3g71OMXy.d.ts} +1 -1
  135. package/dist/{errors-DIHVetNY.d.mts → errors-QiC6am-q.d.mts} +1 -1
  136. package/dist/{index-DVZ_X4Gb.d.mts → index-Biz5toO4.d.mts} +1 -1
  137. package/dist/{index-B8DVoeYt.d.ts → index-CIBiwzhK.d.ts} +1 -1
  138. package/dist/index.d.mts +15 -9
  139. package/dist/index.d.ts +15 -9
  140. package/dist/index.js +9 -9
  141. package/dist/index.mjs +6 -6
  142. package/dist/install-integrity.json +112 -110
  143. package/dist/plays/bundle-play-file.d.mts +3 -3
  144. package/dist/plays/bundle-play-file.d.ts +3 -3
  145. package/dist/plays/bundle-play-file.mjs +2 -1
  146. package/dist/plays/play-description.d.mts +2 -2
  147. package/dist/plays/play-description.d.ts +2 -2
  148. package/dist/plays/run-request.d.mts +2 -2
  149. package/dist/plays/run-request.d.ts +2 -2
  150. package/dist/release.d.mts +1 -1
  151. package/dist/release.d.ts +1 -1
  152. package/dist/release.js +2 -2
  153. package/dist/release.mjs +1 -1
  154. package/dist/server.d.mts +4 -4
  155. package/dist/server.d.ts +4 -4
  156. package/dist/server.js +5 -5
  157. package/dist/server.mjs +3 -3
  158. package/package.json +1 -1
  159. package/dist/cli/auth-QITP34OX.js +0 -41
  160. package/dist/cli/describe-PI7HCT7K.js +0 -48
  161. package/dist/cli/git-NDOGCQZY.js +0 -25
  162. package/dist/cli/search-YHEICYQL.js +0 -32
  163. package/dist/cli/skills-F7MPYC4P.js +0 -33
  164. package/dist/cli/tools-MCWDAK53.js +0 -55
  165. package/dist/cli/update-G5BRJOVT.js +0 -33
@@ -325,6 +325,7 @@ When:
325
325
  Input:
326
326
  --run-id <run-id> scopes the spend to one play run. --limit and --cursor
327
327
  page the recent-call list. --json prints JSON.
328
+ --recent-only returns just the recent billing activity page and workspace ID.
328
329
  --events reads raw usage-event history instead of the spend summary. Combine
329
330
  it with --run-id, --limit (1\u2013500), and --cursor; not --offset or --request-id.
330
331
  Follow next_cursor until null, even when entries is empty.
@@ -819,8 +820,9 @@ Authoring rules:
819
820
  or { webhook: {} }. A cron run receives {} unless cron.input is written
820
821
  inline; it is pinned with the published revision.
821
822
  Runtime: The default Play runtime is 30 minutes. Standard uses 1 GiB / 1 CPU.
822
- Select runtime.size 'large' (4 GiB / 2 CPU) or 'xlarge' (8 GiB / 4 CPU)
823
- when a step needs more memory.
823
+ Set runtime.size to 'standard' or '1gb' (1 GiB / 1 CPU), 'large' or '4gb'
824
+ (4 GiB / 2 CPU), or 'xlarge' or '8gb' (8 GiB / 4 CPU).
825
+ Each alias selects the same profile and price as its named size.
824
826
  Compute pricing follows the workspace plan.
825
827
  [[cli:Use deepline billing quote for the session ceiling.]]
826
828
  Set runtime.timeout to extend a run up to 4h.
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-C46DWB56.mjs";
5
+ } from "./chunk-PPHHPAQV.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-NJMYX2TP.mjs";
9
+ } from "./chunk-ABBP5ZCI.mjs";
10
10
  import {
11
11
  arrayField,
12
12
  formatModelDescription,
@@ -48,10 +48,10 @@ import {
48
48
  } from "./chunk-FIVKWNMT.mjs";
49
49
  import {
50
50
  DeeplineClient
51
- } from "./chunk-SG2SZQ4K.mjs";
51
+ } from "./chunk-2FTUPGTN.mjs";
52
52
  import {
53
53
  validateExecutionIdempotencyKey
54
- } from "./chunk-JS4UO6G4.mjs";
54
+ } from "./chunk-S7UEKKOX.mjs";
55
55
  import {
56
56
  stableStringify
57
57
  } from "./chunk-UBKA33KY.mjs";
@@ -61,18 +61,18 @@ import {
61
61
  maybeAutoUpdateAndRelaunch,
62
62
  registerCompatibilityCatalog,
63
63
  runToolExecuteStage
64
- } from "./chunk-RLCAECZH.mjs";
64
+ } from "./chunk-F2SJYUBW.mjs";
65
65
  import {
66
66
  isCliTraceEnabled,
67
67
  recordCliTrace,
68
68
  resolveCliMaintenancePolicy
69
- } from "./chunk-XQLYPHYW.mjs";
69
+ } from "./chunk-F44O4PEP.mjs";
70
70
  import {
71
71
  checkSdkCompatibility,
72
72
  enforceSdkCompatibilityResponse,
73
73
  flushDeferredSkillsSyncNotices,
74
74
  syncSdkSkillsIfNeeded
75
- } from "./chunk-C2AN2HTB.mjs";
75
+ } from "./chunk-4C3TMIF3.mjs";
76
76
  import {
77
77
  printCommandEnvelope,
78
78
  printCompactJson,
@@ -80,12 +80,12 @@ import {
80
80
  printJsonError,
81
81
  renderCommandEnvelopeText,
82
82
  shouldEmitJson
83
- } from "./chunk-QODW5ILA.mjs";
83
+ } from "./chunk-7HTWT3Z4.mjs";
84
84
  import {
85
85
  readSdkSkillsLocalVersion,
86
86
  resolveConfig,
87
87
  sdkCliStateDirPath
88
- } from "./chunk-YZA5UJXM.mjs";
88
+ } from "./chunk-75DAGCEX.mjs";
89
89
  import {
90
90
  DeeplineError
91
91
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1038,7 +1038,7 @@ Examples:
1038
1038
  process.exitCode = await narrowView();
1039
1039
  return;
1040
1040
  }
1041
- const { describeAnything } = await import("./describe-KMTPPI2J.mjs");
1041
+ const { describeAnything } = await import("./describe-KDPNOEUJ.mjs");
1042
1042
  process.exitCode = await describeAnything(
1043
1043
  toolId,
1044
1044
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-QODW5ILA.mjs";
3
+ } from "./chunk-7HTWT3Z4.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  csvSafeJsonString,
8
8
  csvStringFromRows
9
- } from "./chunk-QODW5ILA.mjs";
9
+ } from "./chunk-7HTWT3Z4.mjs";
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkE2CUSH56js = require('./chunk-E2CUSH56.js');
7
+ var _chunkSXY4DOVAjs = require('./chunk-SXY4DOVA.js');
8
8
 
9
9
 
10
- var _chunk4RAENEAXjs = require('./chunk-4RAENEAX.js');
10
+ var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
14
+ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
15
15
 
16
16
 
17
- var _chunkNC52JG66js = require('./chunk-NC52JG66.js');
17
+ var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
18
18
 
19
19
 
20
- var _chunkACDXGOXEjs = require('./chunk-ACDXGOXE.js');
20
+ var _chunkKBBZXWXFjs = require('./chunk-KBBZXWXF.js');
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
44
44
  async function reportAutoUpdateEvent(input) {
45
45
  let apiKey = "";
46
46
  try {
47
- apiKey = _chunkNC52JG66js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkTW3TTKW5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
48
  } catch (e2) {
49
49
  return;
50
50
  }
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
60
60
  headers: {
61
61
  Authorization: `Bearer ${apiKey}`,
62
62
  "Content-Type": "application/json",
63
- "User-Agent": `deepline-ts-sdk/${_chunkACDXGOXEjs.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkKBBZXWXFjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkACDXGOXEjs.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkACDXGOXEjs.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkKBBZXWXFjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkKBBZXWXFjs.SDK_VERSION
68
68
  },
69
69
  body: JSON.stringify({
70
70
  event: input.event,
71
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkACDXGOXEjs.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkKBBZXWXFjs.SDK_VERSION,
72
72
  target_version: input.response.latest,
73
73
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
74
74
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -87,13 +87,13 @@ function envTruthy(name) {
87
87
  return value === "1" || value === "true" || value === "yes";
88
88
  }
89
89
  function shouldSkipSelfUpdate(policy) {
90
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkE2CUSH56js.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4RAENEAXjs.isCiEnvironment.call(void 0, );
90
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkSXY4DOVAjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkIWYWZXCAjs.isCiEnvironment.call(void 0, );
91
91
  }
92
92
  function isDowngradeAutoUpdateResponse(response) {
93
93
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
94
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkACDXGOXEjs.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkKBBZXWXFjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkE2CUSH56js.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkSXY4DOVAjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
97
  }
98
98
  function relaunchCurrentCommand(plan, runtime = {}) {
99
99
  return new Promise((resolve) => {
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
146
146
  }
147
147
  if (isDowngradeAutoUpdateResponse(response)) {
148
148
  const target = response.latest;
149
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkACDXGOXEjs.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkKBBZXWXFjs.SDK_VERSION;
150
150
  process.stderr.write(
151
151
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
152
152
  `
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
154
154
  return false;
155
155
  }
156
156
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
157
- const plan = _chunkE2CUSH56js.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkSXY4DOVAjs.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkE2CUSH56js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkSXY4DOVAjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
163
  return false;
164
164
  }
165
165
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
166
166
  deferredAutoUpdate = async () => {
167
167
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
168
168
  };
169
- if (_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkM2UL4ZS5js.addJsonNotice.call(void 0, {
171
+ _chunk4RV7U3RPjs.addJsonNotice.call(void 0, {
172
172
  code: "sdk_update_queued",
173
173
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
174
174
  });
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
181
181
  return true;
182
182
  }
183
183
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
184
- if (!_chunkE2CUSH56js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkSXY4DOVAjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
185
  const autoUpdate = response.auto_update;
186
186
  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";
187
187
  process.stderr.write(
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
194
194
  event: "started",
195
195
  installKind: plan.kind
196
196
  });
197
- const updateResult = await _chunkE2CUSH56js.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkSXY4DOVAjs.runAutomaticUpdatePlan.call(void 0, plan);
198
198
  if (updateResult.status === "skipped_previous_failure") {
199
199
  void reportAutoUpdateEvent({
200
200
  baseUrl,
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
245
245
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
246
246
  var activeToolExecuteCommand = null;
247
247
  function progressLine(line) {
248
- if (!_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-QODW5ILA.mjs";
5
+ } from "./chunk-7HTWT3Z4.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-YZA5UJXM.mjs";
8
+ } from "./chunk-75DAGCEX.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk4RAENEAXjs = require('./chunk-4RAENEAX.js');
3
+ var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.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 = _chunk4RAENEAXjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkIWYWZXCAjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -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.477",
52
+ version: "0.3.478",
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."
@@ -26,7 +26,7 @@ import {
26
26
  RETAINED_PIPELINE_RECEIVERS_HEADER,
27
27
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
28
28
  SDK_API_MAJOR
29
- } from "./chunk-LJYTYNQZ.mjs";
29
+ } from "./chunk-M5USVQ33.mjs";
30
30
  import {
31
31
  CustomerDbQueryOutcomeUnknownError
32
32
  } from "./chunk-4QF2K7TM.mjs";
@@ -6033,6 +6033,7 @@ var DeeplineClient = class _DeeplineClient {
6033
6033
  }
6034
6034
  params.set("request_id", requestId);
6035
6035
  } else {
6036
+ if (options.recentOnly) params.set("recent_only", "true");
6036
6037
  if (options.limit !== void 0) {
6037
6038
  params.set("recent_limit", String(options.limit));
6038
6039
  }
@@ -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; } var _class;
2
2
 
3
- var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
3
+ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
17
17
 
18
18
  // --json output is one JSON document: progress never renders under it.
19
19
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);
20
- this.enabled = enabled && !_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, );
20
+ this.enabled = enabled && !_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, );
21
21
  }
22
22
  setLogWriter(writer) {
23
23
  this.logWriter = writer;
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
49
49
  this.logWriter(line);
50
50
  return;
51
51
  }
52
- if (_chunkM2UL4ZS5js.isJsonOutputMode.call(void 0, )) return;
52
+ if (_chunk4RV7U3RPjs.isJsonOutputMode.call(void 0, )) return;
53
53
  if (!this.enabled) {
54
54
  process.stderr.write(`${line}
55
55
  `);
@@ -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 _chunk255O6APSjs = require('./chunk-255O6APS.js');
4
+ var _chunkQVZNUQAPjs = require('./chunk-QVZNUQAP.js');
5
5
 
6
6
 
7
- var _chunkRGNMMDSJjs = require('./chunk-RGNMMDSJ.js');
7
+ var _chunkAYW242XFjs = require('./chunk-AYW242XF.js');
8
8
 
9
9
 
10
- var _chunk4RAENEAXjs = require('./chunk-4RAENEAX.js');
10
+ var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.js');
11
11
 
12
12
 
13
- var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
13
+ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
14
14
 
15
15
 
16
- var _chunkNC52JG66js = require('./chunk-NC52JG66.js');
16
+ var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.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 = _chunk4RAENEAXjs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkIWYWZXCAjs.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 ? _chunk255O6APSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunk255O6APSjs.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 ? _chunkQVZNUQAPjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkQVZNUQAPjs.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()]) || _chunkNC52JG66js.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkTW3TTKW5js.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 = _chunk4RAENEAXjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkIWYWZXCAjs.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, () => ( _chunkNC52JG66js.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkTW3TTKW5js.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 _chunkRGNMMDSJjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkAYW242XFjs.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
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
1284
+ _chunk4RV7U3RPjs.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
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunk4RV7U3RPjs.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
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
1327
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-JS4UO6G4.mjs";
6
+ } from "./chunk-S7UEKKOX.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-NELMCOWK.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-QODW5ILA.mjs";
14
+ } from "./chunk-7HTWT3Z4.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
5
+ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
6
6
 
7
7
 
8
- var _chunkNC52JG66js = require('./chunk-NC52JG66.js');
8
+ var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
39
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
139
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
153
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
200
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
227
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
254
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
269
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkNC52JG66js.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkTW3TTKW5js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkM2UL4ZS5js.openInBrowser.call(void 0, connectUrl);
292
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk4RV7U3RPjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
322
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
371
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk4RV7U3RPjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
392
+ _chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,