deepline 0.3.471 → 0.3.473

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 (146) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +9 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +7 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +17 -0
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +55 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +14 -5
  8. package/dist/cli/auth-IJOWKNSB.js +41 -0
  9. package/dist/cli/{auth-MUCIXHJF.mjs → auth-KLJOQ4DZ.mjs} +5 -5
  10. package/dist/cli/{billing-QGCTDE2N.mjs → billing-DNDYNBQ7.mjs} +6 -6
  11. package/dist/cli/{billing-BQQNTCTV.js → billing-IQNJXKH5.js} +79 -79
  12. package/dist/cli/{chunk-DFMFYOML.js → chunk-36KEQFWZ.js} +13 -13
  13. package/dist/cli/{chunk-FX3QM6WN.js → chunk-3J2N7YF5.js} +18 -4
  14. package/dist/cli/{chunk-ZHM7VCKH.js → chunk-3LFSIUFI.js} +21 -21
  15. package/dist/cli/{chunk-EYKMITTY.mjs → chunk-3OPQLFUK.mjs} +4 -4
  16. package/dist/cli/{chunk-V6OMS7E2.js → chunk-4IOY2SCQ.js} +10 -2
  17. package/dist/cli/{chunk-CR2F3JZN.js → chunk-4U3RNA3J.js} +51 -51
  18. package/dist/cli/{chunk-5QWGL2QO.js → chunk-63OOFT6B.js} +272 -258
  19. package/dist/cli/{chunk-AMUSZHCE.mjs → chunk-6QS7522K.mjs} +2 -2
  20. package/dist/cli/{chunk-K5USD25Z.mjs → chunk-6YOGOXOJ.mjs} +26 -12
  21. package/dist/cli/{chunk-6DTW6JND.js → chunk-6ZTSHKJF.js} +19 -5
  22. package/dist/cli/{chunk-SIQV6UYG.mjs → chunk-ABLEU3QI.mjs} +5 -5
  23. package/dist/cli/{chunk-T5GRG37B.js → chunk-AK7UKQ5R.js} +5 -5
  24. package/dist/cli/{chunk-KSUGLTX3.js → chunk-B3BM3PAI.js} +6 -6
  25. package/dist/cli/{chunk-E2SHDT7T.mjs → chunk-CNCK2D6B.mjs} +2 -2
  26. package/dist/cli/{chunk-E3WTQ3JI.js → chunk-D22QIUE3.js} +9 -9
  27. package/dist/cli/{chunk-TWRK4NOU.js → chunk-D4B3EV55.js} +36 -36
  28. package/dist/cli/{chunk-YRM5TPXL.js → chunk-DD7E4ZVH.js} +7 -7
  29. package/dist/cli/{chunk-ZMJOSD7R.mjs → chunk-EUHTZV2E.mjs} +1 -1
  30. package/dist/cli/{chunk-4OAA43RX.mjs → chunk-EVLUSXQG.mjs} +2 -2
  31. package/dist/cli/{chunk-MLQJVAVS.js → chunk-F4PUDYBY.js} +3 -3
  32. package/dist/cli/{chunk-EHVVDHNU.mjs → chunk-GAWP2YF5.mjs} +1 -1
  33. package/dist/cli/{chunk-FVGT5EBA.mjs → chunk-GE5GPLNM.mjs} +1 -1
  34. package/dist/cli/{chunk-IE5KAVTI.mjs → chunk-GISBRE2H.mjs} +3 -3
  35. package/dist/cli/{chunk-VVY3HGFM.mjs → chunk-GQBAJTQU.mjs} +2 -2
  36. package/dist/cli/{chunk-U5RGCQWJ.mjs → chunk-GTH7JORC.mjs} +2 -2
  37. package/dist/cli/{chunk-ZAF54BQK.mjs → chunk-HQCTPAXP.mjs} +1 -1
  38. package/dist/cli/{chunk-G6RQXAJ2.js → chunk-IC6AHOYS.js} +1 -1
  39. package/dist/cli/{chunk-PVEEGJFN.mjs → chunk-IFZ76E5H.mjs} +16 -2
  40. package/dist/cli/{chunk-NLT3CFVJ.js → chunk-MREO5LZD.js} +2 -2
  41. package/dist/cli/{chunk-GPSVXVDZ.js → chunk-N4ZCMQ54.js} +8 -8
  42. package/dist/cli/{chunk-2KBRY5CA.mjs → chunk-NTFM7JQW.mjs} +3 -3
  43. package/dist/cli/{chunk-NBPNYD54.js → chunk-OHUGXZ7N.js} +16 -16
  44. package/dist/cli/{chunk-X3RAGNNZ.mjs → chunk-OWUZKXE7.mjs} +1 -1
  45. package/dist/cli/{chunk-VDRGX2XL.js → chunk-PMJAGTSQ.js} +5 -5
  46. package/dist/cli/{chunk-IPFUDUSY.mjs → chunk-QD6IW2HP.mjs} +4 -4
  47. package/dist/cli/{chunk-OYHCMKZM.mjs → chunk-QG3THSTN.mjs} +2 -2
  48. package/dist/cli/{chunk-4PT2WZD2.js → chunk-QI73EL5C.js} +26 -26
  49. package/dist/cli/{chunk-RUWBAU6V.js → chunk-RVRG57OB.js} +8 -8
  50. package/dist/cli/{chunk-XSX6TJUA.mjs → chunk-SD7QWZTV.mjs} +10 -2
  51. package/dist/cli/{chunk-FJBGBPYY.mjs → chunk-SWAYZST7.mjs} +2 -2
  52. package/dist/cli/{chunk-3PT2HJKC.mjs → chunk-TBLBYIKO.mjs} +1 -1
  53. package/dist/cli/{chunk-NPJY5QRC.js → chunk-TUFQFTOC.js} +53 -53
  54. package/dist/cli/{chunk-RWCTGSD7.js → chunk-UON3WCBD.js} +3 -3
  55. package/dist/cli/{chunk-ATKFOOVD.mjs → chunk-V25CXRQ7.mjs} +5 -5
  56. package/dist/cli/{chunk-DV4V5IWI.mjs → chunk-VGVSHQN5.mjs} +5 -5
  57. package/dist/cli/{chunk-RYGJWMWL.mjs → chunk-VS7JKS22.mjs} +1 -1
  58. package/dist/cli/{chunk-J2NYCUTK.js → chunk-WGQKOLXH.js} +94 -89
  59. package/dist/cli/{chunk-MV6HL67R.mjs → chunk-X6R5UNDZ.mjs} +6 -1
  60. package/dist/cli/{chunk-DK5Y5BD3.js → chunk-YH5SFKHJ.js} +4 -4
  61. package/dist/cli/{chunk-WDXJUZCY.js → chunk-YHB6MASP.js} +2 -2
  62. package/dist/cli/{chunk-V2WMJXU6.mjs → chunk-YUNPYX5T.mjs} +19 -5
  63. package/dist/cli/{chunk-VGIAOWCD.js → chunk-ZVLYUKJU.js} +5 -5
  64. package/dist/cli/command-docs.js +2 -2
  65. package/dist/cli/command-docs.mjs +1 -1
  66. package/dist/cli/{csv-Q6BSRCBJ.mjs → csv-NCY5MWS2.mjs} +4 -4
  67. package/dist/cli/{csv-UE7RZDUV.js → csv-OVV3HWN4.js} +13 -13
  68. package/dist/cli/{db-T7A7EE3D.js → db-BOELNDS4.js} +27 -27
  69. package/dist/cli/{db-FI6XXB2H.mjs → db-VPH6JHUD.mjs} +6 -6
  70. package/dist/cli/describe-7SFESEFL.js +48 -0
  71. package/dist/cli/{describe-4GGU6NU3.mjs → describe-FFDCPYZH.mjs} +19 -19
  72. package/dist/cli/describe-core.d.mts +2 -2
  73. package/dist/cli/describe-core.d.ts +2 -2
  74. package/dist/cli/describe-core.js +3 -3
  75. package/dist/cli/describe-core.mjs +2 -2
  76. package/dist/cli/{executions-S46XI7NX.mjs → executions-5GCCDENS.mjs} +6 -6
  77. package/dist/cli/{executions-4I6F5RMS.js → executions-RF44ANF5.js} +8 -8
  78. package/dist/cli/{feedback-VEGUNKSP.js → feedback-NJM3V7QV.js} +8 -8
  79. package/dist/cli/{feedback-3LJ7NZE7.mjs → feedback-OI2A5L6F.mjs} +4 -4
  80. package/dist/cli/git-4V5ZS5SE.js +25 -0
  81. package/dist/cli/{git-W7SFD7AA.mjs → git-EOGSZ3T2.mjs} +5 -5
  82. package/dist/cli/index.js +139 -139
  83. package/dist/cli/index.mjs +41 -41
  84. package/dist/cli/{legacy-noops-3EMB5SJH.js → legacy-noops-5QM7XGGX.js} +8 -8
  85. package/dist/cli/{legacy-noops-FIR5PSHG.mjs → legacy-noops-UYKK7AAB.mjs} +5 -5
  86. package/dist/cli/{monitors-53LPJH6R.js → monitors-52GW2V4V.js} +91 -91
  87. package/dist/cli/{monitors-4DKW25PV.mjs → monitors-N3ITC5MP.mjs} +7 -7
  88. package/dist/cli/{org-CYLJFX4Q.js → org-ADF47NPV.js} +72 -72
  89. package/dist/cli/{org-6ZV2DBGI.mjs → org-KUZUG33W.mjs} +6 -6
  90. package/dist/cli/{pages-V3LEXCRL.mjs → pages-C3S5WU3S.mjs} +6 -6
  91. package/dist/cli/{pages-42E3WIMH.js → pages-H3H7ODBN.js} +17 -17
  92. package/dist/cli/{play-X7REMNNG.mjs → play-SZETTQPV.mjs} +47 -19
  93. package/dist/cli/{play-O3OY556F.js → play-YWZWBG32.js} +334 -306
  94. package/dist/cli/{providers-L2DJVAXN.mjs → providers-FSCD35HB.mjs} +6 -6
  95. package/dist/cli/{providers-NZ7TISS3.js → providers-V3BP7ZB2.js} +9 -9
  96. package/dist/cli/{quickstart-IKNGAQRO.js → quickstart-ICULVGAR.js} +6 -6
  97. package/dist/cli/{quickstart-ROWMAUXQ.mjs → quickstart-SYZCT2WI.mjs} +4 -4
  98. package/dist/cli/{run-PJI577J2.mjs → run-HA5B3AYQ.mjs} +24 -24
  99. package/dist/cli/{run-JG6DLOYR.js → run-WUJSKGUM.js} +39 -39
  100. package/dist/cli/{search-DOVJ745X.mjs → search-A27AGYDV.mjs} +7 -7
  101. package/dist/cli/search-XATDPNEM.js +32 -0
  102. package/dist/cli/{secrets-OKDFNCRJ.mjs → secrets-2L4VRJ2F.mjs} +6 -6
  103. package/dist/cli/{secrets-R5LWXIG6.js → secrets-ODX56QBF.js} +15 -15
  104. package/dist/cli/{sessions-L3DSAY2T.js → sessions-DVZ4FECP.js} +6 -6
  105. package/dist/cli/{sessions-KX4C2CKS.mjs → sessions-PRF36DHO.mjs} +5 -5
  106. package/dist/cli/{settings-W3SMDBYS.mjs → settings-LUATIKJE.mjs} +11 -11
  107. package/dist/cli/{settings-NKTNNTAP.js → settings-RJT5DBWG.js} +78 -78
  108. package/dist/cli/{setup-5WZEXWQR.js → setup-FJSBKCLU.js} +44 -44
  109. package/dist/cli/{setup-7KFKKW2W.mjs → setup-IQXTYLRH.mjs} +9 -9
  110. package/dist/cli/skills-N6CPBF6T.js +31 -0
  111. package/dist/cli/{skills-X5TLATOL.mjs → skills-XJH4ZC5Y.mjs} +7 -7
  112. package/dist/cli/{tools-27J5EOKO.mjs → tools-IGXLZCKZ.mjs} +17 -17
  113. package/dist/cli/tools-YMVEVRCE.js +55 -0
  114. package/dist/cli/{update-EWL477FJ.mjs → update-AH7G5VSL.mjs} +9 -9
  115. package/dist/cli/update-MUCWGTXH.js +33 -0
  116. package/dist/cli/{workflow-GFNGGHJE.js → workflow-IQ2J7LWM.js} +17 -17
  117. package/dist/cli/{workflow-YXR6YMT2.mjs → workflow-WOYSCWVD.mjs} +7 -7
  118. package/dist/{client-DitOgp8N.d.mts → client-C9bJ0QXu.d.mts} +1 -1
  119. package/dist/{client-DIpVmXcj.d.ts → client-CuNH54w3.d.ts} +1 -1
  120. package/dist/{client-core-k543Fg6D.d.ts → client-core-C8Q6DKga.d.ts} +11 -1
  121. package/dist/{client-core-COZteOww.d.mts → client-core-CSiXbe2n.d.mts} +11 -1
  122. package/dist/index.d.mts +3 -3
  123. package/dist/index.d.ts +3 -3
  124. package/dist/index.js +9 -9
  125. package/dist/index.mjs +6 -6
  126. package/dist/install-integrity.json +106 -106
  127. package/dist/plays/play-description.d.mts +1 -1
  128. package/dist/plays/play-description.d.ts +1 -1
  129. package/dist/plays/run-request.d.mts +1 -1
  130. package/dist/plays/run-request.d.ts +1 -1
  131. package/dist/release.d.mts +1 -1
  132. package/dist/release.d.ts +1 -1
  133. package/dist/release.js +2 -2
  134. package/dist/release.mjs +1 -1
  135. package/dist/server.d.mts +2 -2
  136. package/dist/server.d.ts +2 -2
  137. package/dist/server.js +5 -5
  138. package/dist/server.mjs +3 -3
  139. package/package.json +1 -1
  140. package/dist/cli/auth-2MMOFS3O.js +0 -41
  141. package/dist/cli/describe-UM2VGRY7.js +0 -48
  142. package/dist/cli/git-EVWKNIUA.js +0 -25
  143. package/dist/cli/search-RHKW5GSR.js +0 -32
  144. package/dist/cli/skills-UFAABPCQ.js +0 -31
  145. package/dist/cli/tools-IVU3BCIY.js +0 -55
  146. package/dist/cli/update-G7HFHKPG.js +0 -33
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
9
+ var _chunkDD7E4ZVHjs = require('./chunk-DD7E4ZVH.js');
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
247
247
  const logicalValue = parseSerializedDatasetValue(value);
248
248
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
249
249
  if (typeof logicalValue === "object") {
250
- return _chunkYRM5TPXLjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
250
+ return _chunkDD7E4ZVHjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
251
251
  }
252
252
  return logicalValue;
253
253
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkYRM5TPXLjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkDD7E4ZVHjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options) {
648
648
  let temp;
@@ -973,7 +973,21 @@ function resultLines(title, data, declared, options) {
973
973
  const indented = (lines) => lines.map((line) => ` ${line}`);
974
974
  const more = "Not everything is shown: --lines <n> shows more, --fields <paths> picks fields, --full shows every field's type.";
975
975
  if (_optionalChain([options, 'access', _13 => _13.fields, 'optionalAccess', _14 => _14.length])) {
976
- const { value, missing } = pickFields(data, options.fields);
976
+ const byName = new Map(
977
+ (_nullishCoalesce(declared, () => ( []))).map((output) => [output.name, output])
978
+ );
979
+ const named = options.fields.filter((path) => byName.has(path));
980
+ const picked = pickFields(
981
+ data,
982
+ options.fields.filter((path) => !byName.has(path))
983
+ );
984
+ const value = named.length === 0 ? picked.value : {
985
+ ...record(picked.value) ? picked.value : {},
986
+ ...Object.fromEntries(
987
+ named.map((name) => [name, byName.get(name).value])
988
+ )
989
+ };
990
+ const { missing } = picked;
977
991
  const outline2 = value === void 0 ? null : outlineLines(value, budget);
978
992
  return [
979
993
  `${title}${_optionalChain([outline2, 'optionalAccess', _15 => _15.note]) ? ` ${outline2.note}` : ""}`,
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkNBPNYD54js = require('./chunk-NBPNYD54.js');
7
+ var _chunkOHUGXZ7Njs = require('./chunk-OHUGXZ7N.js');
8
8
 
9
9
 
10
- var _chunkNPJY5QRCjs = require('./chunk-NPJY5QRC.js');
10
+ var _chunkTUFQFTOCjs = require('./chunk-TUFQFTOC.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
14
+ var _chunkDD7E4ZVHjs = require('./chunk-DD7E4ZVH.js');
15
15
 
16
16
 
17
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
17
+ var _chunkF4PUDYBYjs = require('./chunk-F4PUDYBY.js');
18
18
 
19
19
 
20
- var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
20
+ var _chunkYH5SFKHJjs = require('./chunk-YH5SFKHJ.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 = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkF4PUDYBYjs.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/${_chunkDK5Y5BD3js.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkYH5SFKHJjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkYH5SFKHJjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkYH5SFKHJjs.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()]) || _chunkDK5Y5BD3js.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkYH5SFKHJjs.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") || !_chunkNBPNYD54js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkNPJY5QRCjs.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") || !_chunkOHUGXZ7Njs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkTUFQFTOCjs.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()]) || _chunkDK5Y5BD3js.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkYH5SFKHJjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkNBPNYD54js.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkOHUGXZ7Njs.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()]) || _chunkDK5Y5BD3js.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkYH5SFKHJjs.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 = _chunkNBPNYD54js.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkOHUGXZ7Njs.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkNBPNYD54js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkOHUGXZ7Njs.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 (_chunkYRM5TPXLjs.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunkDD7E4ZVHjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkYRM5TPXLjs.addJsonNotice.call(void 0, {
171
+ _chunkDD7E4ZVHjs.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 (!_chunkNBPNYD54js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkOHUGXZ7Njs.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 _chunkNBPNYD54js.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkOHUGXZ7Njs.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 (!_chunkYRM5TPXLjs.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunkDD7E4ZVHjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-EHVVDHNU.mjs";
3
+ } from "./chunk-GAWP2YF5.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -12,7 +12,7 @@ import {
12
12
  sdkCliStateDirPath,
13
13
  skillsAgentPathSegment,
14
14
  writeSdkSkillsLocalVersion
15
- } from "./chunk-FVGT5EBA.mjs";
15
+ } from "./chunk-GE5GPLNM.mjs";
16
16
  import {
17
17
  SDK_API_CONTRACT,
18
18
  SDK_API_MAJOR,
@@ -20,13 +20,13 @@ import {
20
20
  agentSessionIdFromEnvironment,
21
21
  deploymentProtectionHeaders,
22
22
  detectAgentRuntime
23
- } from "./chunk-ZMJOSD7R.mjs";
23
+ } from "./chunk-EUHTZV2E.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-3PT2HJKC.mjs";
29
+ } from "./chunk-TBLBYIKO.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -306,8 +306,11 @@ function describedTool(tool, requestedToolId) {
306
306
  (line) => typeof line === "string" && /[a-z0-9]/i.test(line)
307
307
  )
308
308
  ],
309
- rateLimit: _chunkIAYSWZDJjs.rateLimitSummary.call(void 0,
310
- recordField(contract, "executionMetadata").configuredRateLimits
309
+ rateLimit: withPlanRateLimit(
310
+ recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
311
+ _chunkIAYSWZDJjs.rateLimitSummary.call(void 0,
312
+ recordField(contract, "executionMetadata").configuredRateLimits
313
+ )
311
314
  ),
312
315
  inputs: _chunkIAYSWZDJjs.schemaFields.call(void 0, inputSchema),
313
316
  outputs: [...lists, ...values].map(({ field }) => field),
@@ -315,6 +318,11 @@ function describedTool(tool, requestedToolId) {
315
318
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
316
319
  };
317
320
  }
321
+ function withPlanRateLimit(planRequestsPerMinute, sharedLimit) {
322
+ if (typeof planRequestsPerMinute !== "number") return sharedLimit;
323
+ const plan = `${planRequestsPerMinute} requests/minute for this workspace on its plan`;
324
+ return sharedLimit ? `${plan} (shared ceiling: ${sharedLimit})` : plan;
325
+ }
318
326
  function sampleValueForField(field) {
319
327
  const name = stringField(field, "name").toLowerCase();
320
328
  const type = stringField(field, "type").toLowerCase();
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
5
+ var _chunkDD7E4ZVHjs = require('./chunk-DD7E4ZVH.js');
6
6
 
7
7
 
8
8
 
@@ -22,12 +22,12 @@ var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
25
+ var _chunkF4PUDYBYjs = require('./chunk-F4PUDYBY.js');
26
26
 
27
27
 
28
28
 
29
29
 
30
- var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
30
+ var _chunkYH5SFKHJjs = require('./chunk-YH5SFKHJ.js');
31
31
 
32
32
  // src/cli/commands/auth.ts
33
33
 
@@ -54,7 +54,7 @@ function statusBannerLine(value) {
54
54
  return `Service notice: ${banner.message}`;
55
55
  }
56
56
  function envFilePath(baseUrl) {
57
- return _chunkMLQJVAVSjs.hostEnvFilePath.call(void 0, baseUrl);
57
+ return _chunkF4PUDYBYjs.hostEnvFilePath.call(void 0, baseUrl);
58
58
  }
59
59
  function normalizeAuthScope(value) {
60
60
  if (!value || value === "global") return "global";
@@ -67,7 +67,7 @@ function parseAuthScope(args) {
67
67
  }
68
68
  function pendingClaimPath(baseUrl, scope) {
69
69
  if (scope === "folder") {
70
- const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
70
+ const target = _chunkF4PUDYBYjs.resolveProjectPinTarget.call(void 0, );
71
71
  if (!target.ok) {
72
72
  throw new Error(
73
73
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -77,10 +77,10 @@ function pendingClaimPath(baseUrl, scope) {
77
77
  }
78
78
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
79
79
  }
80
- return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
80
+ return `${_chunkF4PUDYBYjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
81
81
  }
82
82
  function legacyPendingClaimTokenPath(baseUrl) {
83
- return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
83
+ return `${_chunkF4PUDYBYjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
84
84
  }
85
85
  function savePendingClaim(baseUrl, claim) {
86
86
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -182,21 +182,21 @@ function parseRegisterWaitMode(args) {
182
182
  function shouldWaitForRegisterClaim(mode) {
183
183
  if (mode === "yes") return true;
184
184
  if (mode === "no") return false;
185
- return _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
185
+ return _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
186
186
  }
187
187
  function saveEnvValues(values, baseUrl, scope) {
188
188
  const filtered = {
189
- ...values[_chunkMLQJVAVSjs.HOST_URL_ENV] ? { [_chunkMLQJVAVSjs.HOST_URL_ENV]: values[_chunkMLQJVAVSjs.HOST_URL_ENV] } : {},
190
- ...values[_chunkMLQJVAVSjs.API_KEY_ENV] ? { [_chunkMLQJVAVSjs.API_KEY_ENV]: values[_chunkMLQJVAVSjs.API_KEY_ENV] } : {},
191
- ...values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] } : {},
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV] } : {},
189
+ ...values[_chunkF4PUDYBYjs.HOST_URL_ENV] ? { [_chunkF4PUDYBYjs.HOST_URL_ENV]: values[_chunkF4PUDYBYjs.HOST_URL_ENV] } : {},
190
+ ...values[_chunkF4PUDYBYjs.API_KEY_ENV] ? { [_chunkF4PUDYBYjs.API_KEY_ENV]: values[_chunkF4PUDYBYjs.API_KEY_ENV] } : {},
191
+ ...values[_chunkF4PUDYBYjs.ACTIVE_ORG_ID_ENV] ? { [_chunkF4PUDYBYjs.ACTIVE_ORG_ID_ENV]: values[_chunkF4PUDYBYjs.ACTIVE_ORG_ID_ENV] } : {},
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkF4PUDYBYjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkF4PUDYBYjs.ACTIVE_ORG_NAME_ENV]: values[_chunkF4PUDYBYjs.ACTIVE_ORG_NAME_ENV] } : {},
193
193
  // An explicit empty list must reach the store: it clears a stale line.
194
- ...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.FEATURES_ENV) ? { [_chunkMLQJVAVSjs.FEATURES_ENV]: values[_chunkMLQJVAVSjs.FEATURES_ENV] } : {}
194
+ ...Object.prototype.hasOwnProperty.call(values, _chunkF4PUDYBYjs.FEATURES_ENV) ? { [_chunkF4PUDYBYjs.FEATURES_ENV]: values[_chunkF4PUDYBYjs.FEATURES_ENV] } : {}
195
195
  };
196
196
  if (scope === "folder") {
197
- _chunkMLQJVAVSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
197
+ _chunkF4PUDYBYjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
198
198
  } else {
199
- _chunkMLQJVAVSjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
199
+ _chunkF4PUDYBYjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
200
200
  }
201
201
  }
202
202
  function activeOrgEnvValues(data) {
@@ -204,21 +204,21 @@ function activeOrgEnvValues(data) {
204
204
  if (!orgId) return {};
205
205
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
206
206
  return {
207
- [_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: orgId,
208
- [_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: orgName,
209
- ..._chunkMLQJVAVSjs.featureEnvValues.call(void 0, data)
207
+ [_chunkF4PUDYBYjs.ACTIVE_ORG_ID_ENV]: orgId,
208
+ [_chunkF4PUDYBYjs.ACTIVE_ORG_NAME_ENV]: orgName,
209
+ ..._chunkF4PUDYBYjs.featureEnvValues.call(void 0, data)
210
210
  };
211
211
  }
212
212
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
213
213
  const headers = {
214
214
  "Content-Type": "application/json",
215
- "User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
215
+ "User-Agent": `deepline-ts-sdk/${_chunkYH5SFKHJjs.SDK_VERSION}`,
216
216
  "X-Deepline-Client-Family": "sdk",
217
217
  "X-Deepline-CLI-Family": "sdk",
218
- "X-Deepline-Agent-Runtime": _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ),
219
- "X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
220
- "X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION,
221
- "X-Deepline-API-Contract": _chunkDK5Y5BD3js.SDK_API_CONTRACT
218
+ "X-Deepline-Agent-Runtime": _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, ),
219
+ "X-Deepline-CLI-Version": _chunkYH5SFKHJjs.SDK_VERSION,
220
+ "X-Deepline-SDK-Version": _chunkYH5SFKHJjs.SDK_VERSION,
221
+ "X-Deepline-API-Contract": _chunkYH5SFKHJjs.SDK_API_CONTRACT
222
222
  };
223
223
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
224
224
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -264,7 +264,7 @@ async function readStatusBanner(baseUrl) {
264
264
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
265
265
  }
266
266
  async function reportSetupCompleted(input) {
267
- const apiKey = input.authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
267
+ const apiKey = input.authScope === "folder" ? _chunkF4PUDYBYjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkF4PUDYBYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
268
268
  if (!apiKey) return;
269
269
  try {
270
270
  await httpJson(
@@ -361,7 +361,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
361
361
  }
362
362
  }
363
363
  async function handleRegister(args) {
364
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
364
+ const baseUrl = _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
365
  let orgName = "";
366
366
  let orgId = "";
367
367
  let agentName = "";
@@ -416,19 +416,19 @@ async function handleRegister(args) {
416
416
  });
417
417
  saveEnvValues(
418
418
  {
419
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl
419
+ [_chunkF4PUDYBYjs.HOST_URL_ENV]: baseUrl
420
420
  },
421
421
  baseUrl,
422
422
  authScope
423
423
  );
424
424
  }
425
425
  if (claimUrl) {
426
- const shouldOpen = waitMode !== "no" && _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
426
+ const shouldOpen = waitMode !== "no" && _chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
427
427
  console.log(
428
428
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
429
429
  );
430
430
  console.log(` ${claimUrl}`);
431
- if (shouldOpen) _chunkYRM5TPXLjs.openInBrowser.call(void 0, claimUrl);
431
+ if (shouldOpen) _chunkDD7E4ZVHjs.openInBrowser.call(void 0, claimUrl);
432
432
  }
433
433
  if (data.cli_message) {
434
434
  console.log(String(data.cli_message));
@@ -471,8 +471,8 @@ async function handleRegister(args) {
471
471
  if (apiKey) {
472
472
  saveEnvValues(
473
473
  {
474
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
475
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
474
+ [_chunkF4PUDYBYjs.HOST_URL_ENV]: baseUrl,
475
+ [_chunkF4PUDYBYjs.API_KEY_ENV]: apiKey,
476
476
  ...activeOrgEnvValues(statusData)
477
477
  },
478
478
  baseUrl,
@@ -494,7 +494,7 @@ async function handleRegister(args) {
494
494
  }
495
495
  }
496
496
  async function handleWait(args) {
497
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
497
+ const baseUrl = _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
498
498
  let timeoutSeconds = 300;
499
499
  let requestedScope;
500
500
  if (args.includes("--auth-scope")) {
@@ -518,7 +518,7 @@ async function handleWait(args) {
518
518
  const authScope = resumed.scope;
519
519
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
520
520
  if (!pendingClaim) {
521
- const scopedApiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
521
+ const scopedApiKey = authScope === "folder" ? _chunkF4PUDYBYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkF4PUDYBYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
522
522
  if (scopedApiKey) {
523
523
  console.log("Already connected.");
524
524
  return EXIT_OK;
@@ -561,8 +561,8 @@ async function handleWait(args) {
561
561
  if (apiKey) {
562
562
  saveEnvValues(
563
563
  {
564
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
565
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
564
+ [_chunkF4PUDYBYjs.HOST_URL_ENV]: baseUrl,
565
+ [_chunkF4PUDYBYjs.API_KEY_ENV]: apiKey,
566
566
  ...activeOrgEnvValues(data)
567
567
  },
568
568
  baseUrl,
@@ -586,8 +586,8 @@ async function handleWait(args) {
586
586
  return EXIT_AUTH;
587
587
  }
588
588
  async function authStatusLine(timeoutMs = 3e3) {
589
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
- const apiKey = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
+ const baseUrl = _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
590
+ const apiKey = _chunkF4PUDYBYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
591
591
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
592
592
  try {
593
593
  const { status, data } = await httpJson(
@@ -610,9 +610,9 @@ async function authStatusLine(timeoutMs = 3e3) {
610
610
  }
611
611
  }
612
612
  async function handleStatus(args) {
613
- const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
613
+ const baseUrl = _chunkF4PUDYBYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
614
614
  const reveal = args.includes("--reveal");
615
- const jsonOutput = _chunkYRM5TPXLjs.argsWantJson.call(void 0, args);
615
+ const jsonOutput = _chunkDD7E4ZVHjs.argsWantJson.call(void 0, args);
616
616
  const hasExplicitAuthScope = args.includes("--auth-scope");
617
617
  let authScope = null;
618
618
  if (hasExplicitAuthScope) {
@@ -653,14 +653,14 @@ async function handleStatus(args) {
653
653
  };
654
654
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
655
655
  }
656
- const apiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
656
+ const apiKey = authScope === "folder" ? _chunkF4PUDYBYjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkF4PUDYBYjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkF4PUDYBYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
657
657
  if (!apiKey) {
658
658
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
659
659
  baseUrl,
660
660
  _nullishCoalesce(authScope, () => ( void 0))
661
661
  );
662
662
  if (pendingClaim) {
663
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
663
+ _chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
664
664
  {
665
665
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
666
666
  status: "pending",
@@ -681,7 +681,7 @@ async function handleStatus(args) {
681
681
  );
682
682
  return EXIT_OK;
683
683
  }
684
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
684
+ _chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
685
685
  {
686
686
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
687
687
  status: "not connected",
@@ -714,7 +714,7 @@ async function handleStatus(args) {
714
714
  }
715
715
  );
716
716
  if (status === 401 || status === 403) {
717
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
717
+ _chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
718
718
  {
719
719
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
720
720
  status: "unauthorized",
@@ -741,7 +741,7 @@ async function handleStatus(args) {
741
741
  console.error(`Auth status error (status ${status}).`);
742
742
  return EXIT_SERVER;
743
743
  }
744
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMLQJVAVSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
744
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkF4PUDYBYjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
745
745
  clearSatisfiedPendingClaim(
746
746
  baseUrl,
747
747
  resolvedAuthScope,
@@ -769,28 +769,28 @@ async function handleStatus(args) {
769
769
  if (apiKeyResp) {
770
770
  saveEnvValues(
771
771
  {
772
- [_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
773
- [_chunkMLQJVAVSjs.API_KEY_ENV]: apiKeyResp,
772
+ [_chunkF4PUDYBYjs.HOST_URL_ENV]: baseUrl,
773
+ [_chunkF4PUDYBYjs.API_KEY_ENV]: apiKeyResp,
774
774
  ...activeOrgEnvValues(data)
775
775
  },
776
776
  baseUrl,
777
777
  resolvedAuthScope
778
778
  );
779
779
  if (resolvedAuthScope === "folder") {
780
- const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
780
+ const target = _chunkF4PUDYBYjs.resolveProjectPinTarget.call(void 0, );
781
781
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
782
782
  } else {
783
783
  savedApiKeyPath = envFilePath(baseUrl);
784
784
  }
785
785
  }
786
- } else if (resolvedAuthScope === "folder" || _chunkMLQJVAVSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
- saveEnvValues(_chunkMLQJVAVSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
+ } else if (resolvedAuthScope === "folder" || _chunkF4PUDYBYjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
787
+ saveEnvValues(_chunkF4PUDYBYjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
788
788
  }
789
- _chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
789
+ _chunkDD7E4ZVHjs.printCommandEnvelope.call(void 0,
790
790
  {
791
791
  ...payload,
792
- ..._chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
- command_context: _chunkMLQJVAVSjs.resolveCliCommandContext.call(void 0,
792
+ ..._chunkYH5SFKHJjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
793
+ command_context: _chunkF4PUDYBYjs.resolveCliCommandContext.call(void 0,
794
794
  { baseUrl, apiKey },
795
795
  resolvedAuthScope
796
796
  )