deepline 0.3.563 → 0.3.564

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 (135) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +8 -0
  3. package/dist/cli/auth-645UXOAZ.js +44 -0
  4. package/dist/cli/{auth-3YES4ACM.mjs → auth-PXZ7JZUT.mjs} +5 -5
  5. package/dist/cli/{billing-NZ2NCOQS.mjs → billing-AMYFMDZL.mjs} +8 -8
  6. package/dist/cli/{billing-L2GDKBXK.js → billing-OY2ZN5XJ.js} +99 -99
  7. package/dist/cli/{chunk-RP2LCS7G.mjs → chunk-2ISK6CUL.mjs} +11 -11
  8. package/dist/cli/{chunk-H2N324LF.mjs → chunk-2PMHEUED.mjs} +3 -3
  9. package/dist/cli/{chunk-ERT4ZMZT.js → chunk-2SKEXMFV.js} +5 -5
  10. package/dist/cli/{chunk-T2RNEBV7.js → chunk-4JQ6MHE7.js} +4 -4
  11. package/dist/cli/{chunk-GVRVZQBY.mjs → chunk-4NNNJLAZ.mjs} +2 -2
  12. package/dist/cli/{chunk-DA24O3ZV.js → chunk-4SV43Z64.js} +3 -3
  13. package/dist/cli/{chunk-L5QJRMFJ.mjs → chunk-56P2BEVI.mjs} +2 -2
  14. package/dist/cli/{chunk-2MAP42AM.mjs → chunk-655PNNU7.mjs} +1 -1
  15. package/dist/cli/{chunk-6LPMQPSQ.mjs → chunk-7DU4VODD.mjs} +2 -2
  16. package/dist/cli/{chunk-IICHFEFE.js → chunk-7NSHH3NB.js} +5 -5
  17. package/dist/cli/{chunk-OZC6SSOB.js → chunk-BRQVKZWJ.js} +7 -7
  18. package/dist/cli/{chunk-O3NLECXL.mjs → chunk-CXN574UU.mjs} +1 -1
  19. package/dist/cli/{chunk-NCGDBNNF.mjs → chunk-DHZOC2QX.mjs} +2 -2
  20. package/dist/cli/{chunk-ZX3UZCWC.mjs → chunk-DTTMFSNG.mjs} +1 -1
  21. package/dist/cli/{chunk-L5O7MWRZ.mjs → chunk-DYTTZHYX.mjs} +5 -5
  22. package/dist/cli/{chunk-QGIHGITM.js → chunk-GWTFA5GD.js} +3 -3
  23. package/dist/cli/{chunk-6U7CIG3C.mjs → chunk-HEWVHSNN.mjs} +4 -4
  24. package/dist/cli/{chunk-4MPLA5RD.js → chunk-HGGIWRA5.js} +48 -48
  25. package/dist/cli/{chunk-SJ2LY4V5.js → chunk-HPXN5QZZ.js} +20 -20
  26. package/dist/cli/{chunk-4KHRPJOW.js → chunk-HXZSXPT2.js} +53 -53
  27. package/dist/cli/{chunk-FCRBXLIJ.js → chunk-I2GVGCMM.js} +12 -12
  28. package/dist/cli/{chunk-QGNITJYC.js → chunk-I4XWKMGR.js} +15 -15
  29. package/dist/cli/{chunk-LIO7CPM3.js → chunk-IW3N7ARM.js} +8 -8
  30. package/dist/cli/{chunk-6UHRBEDV.mjs → chunk-JVSHMUGE.mjs} +3 -3
  31. package/dist/cli/{chunk-TX5PQ7KP.js → chunk-KBGP4CS5.js} +10 -10
  32. package/dist/cli/{chunk-NS56OQUQ.js → chunk-KR76WIOX.js} +1 -1
  33. package/dist/cli/{chunk-BP2XRVBA.mjs → chunk-MY45K7SA.mjs} +5 -5
  34. package/dist/cli/{chunk-JVXHVEWX.mjs → chunk-OCLHNDVN.mjs} +5 -5
  35. package/dist/cli/{chunk-K5FNC4VL.mjs → chunk-QHBYLHOG.mjs} +2 -2
  36. package/dist/cli/{chunk-XWGWVLQQ.mjs → chunk-QQTZ6KG4.mjs} +4 -4
  37. package/dist/cli/{chunk-VYY6HNOC.js → chunk-R5555CB5.js} +2 -2
  38. package/dist/cli/{chunk-G5CY6KI2.js → chunk-RBTOZO5M.js} +41 -41
  39. package/dist/cli/{chunk-YDXFVE4V.mjs → chunk-RK5EKJAT.mjs} +1 -1
  40. package/dist/cli/{chunk-2UW5A57I.js → chunk-RKG2E2JF.js} +9 -9
  41. package/dist/cli/{chunk-XY5DE4TK.mjs → chunk-RW6PFYT5.mjs} +5 -5
  42. package/dist/cli/{chunk-AYNDNXBJ.mjs → chunk-TK6YKQ45.mjs} +1 -1
  43. package/dist/cli/{chunk-XDZZCRUG.mjs → chunk-TVF7XVPN.mjs} +1 -1
  44. package/dist/cli/{chunk-XTSQ3ZV5.mjs → chunk-UWX4TTJU.mjs} +2 -2
  45. package/dist/cli/{chunk-MGOCWY7J.js → chunk-V2GHSOQB.js} +100 -100
  46. package/dist/cli/{chunk-DVWFK676.js → chunk-V2SNCH5X.js} +6 -6
  47. package/dist/cli/{chunk-V4KKZGLT.js → chunk-WDXXHTIF.js} +23 -23
  48. package/dist/cli/{chunk-U77PK5R3.js → chunk-WSEMXB7X.js} +20 -20
  49. package/dist/cli/{chunk-POGS26GF.mjs → chunk-WXB7PU3O.mjs} +1 -1
  50. package/dist/cli/{chunk-DFCBNTVQ.mjs → chunk-XP6ALUAZ.mjs} +2 -2
  51. package/dist/cli/{chunk-K77ANXGU.js → chunk-XVYU3J2J.js} +13 -13
  52. package/dist/cli/{chunk-NTRTFEI4.js → chunk-XWDCKDUP.js} +26 -26
  53. package/dist/cli/{chunk-H3UIWEXF.js → chunk-Y2FZJRRM.js} +2 -2
  54. package/dist/cli/{chunk-UUEVGLGO.mjs → chunk-YIDXJD5L.mjs} +1 -1
  55. package/dist/cli/{chunk-QOLFZD6Q.js → chunk-YMQOTCLU.js} +2 -2
  56. package/dist/cli/{chunk-HST5XA3B.mjs → chunk-ZJ23RI3B.mjs} +2 -2
  57. package/dist/cli/{chunk-UMJWODG7.mjs → chunk-ZOITMXVO.mjs} +1 -1
  58. package/dist/cli/{chunk-CH7OVBBJ.js → chunk-ZZW5A4HZ.js} +5 -5
  59. package/dist/cli/{concurrent-runs-help-VEZX3RK4.mjs → concurrent-runs-help-5GPKNDAY.mjs} +6 -6
  60. package/dist/cli/concurrent-runs-help-QKZXIMSW.js +22 -0
  61. package/dist/cli/{csv-RJBNLD23.mjs → csv-ARPN6J6K.mjs} +4 -4
  62. package/dist/cli/{csv-W5C4JCYL.js → csv-X3FHV56H.js} +13 -13
  63. package/dist/cli/{db-VVGP2KCM.mjs → db-2HWSS3MA.mjs} +6 -6
  64. package/dist/cli/{db-GYCRUH4V.js → db-WINZJRWC.js} +27 -27
  65. package/dist/cli/{describe-HZW272Y6.mjs → describe-333JCD22.mjs} +18 -18
  66. package/dist/cli/describe-6TJYCPFQ.js +50 -0
  67. package/dist/cli/{executions-N4ZA4ZD5.mjs → executions-JYYXIRE6.mjs} +6 -6
  68. package/dist/cli/{executions-D37NX6CD.js → executions-UHZHVQLO.js} +8 -8
  69. package/dist/cli/{feedback-W6CY6UBA.js → feedback-6G4SDI7M.js} +14 -14
  70. package/dist/cli/{feedback-4PB4ACBV.mjs → feedback-KNGQ4VMG.mjs} +6 -6
  71. package/dist/cli/{git-WHIEYIVM.mjs → git-DREIWOYN.mjs} +5 -5
  72. package/dist/cli/git-TQNP4MAD.js +26 -0
  73. package/dist/cli/index.js +143 -143
  74. package/dist/cli/index.mjs +45 -45
  75. package/dist/cli/{integrations-ASNRHKLO.mjs → integrations-UY3T3ZHA.mjs} +7 -7
  76. package/dist/cli/{integrations-HXY5DR6D.js → integrations-V6EO6JAM.js} +20 -20
  77. package/dist/cli/{legacy-noops-PJNDUOWG.js → legacy-noops-7LZ2HNLB.js} +9 -9
  78. package/dist/cli/{legacy-noops-YYX2W2WX.mjs → legacy-noops-FSL5Y4TO.mjs} +6 -6
  79. package/dist/cli/{mcp-APKPI24N.js → mcp-TAVIRUQC.js} +24 -24
  80. package/dist/cli/{mcp-T32DPP4D.mjs → mcp-WDJV3OCV.mjs} +4 -4
  81. package/dist/cli/{monitors-BY4DJFCF.js → monitors-HGT2RVR5.js} +100 -100
  82. package/dist/cli/{monitors-DTJD3IUI.mjs → monitors-L5FSJSVD.mjs} +7 -7
  83. package/dist/cli/{org-2GMHKAQK.js → org-4LNYSIEM.js} +121 -121
  84. package/dist/cli/{org-GQYIJBKO.mjs → org-J5DJCLTU.mjs} +6 -6
  85. package/dist/cli/{outcomes-4XY4F57P.js → outcomes-4QO264GU.js} +14 -14
  86. package/dist/cli/{outcomes-3ASEQLIF.mjs → outcomes-5DZ5EZ5Q.mjs} +6 -6
  87. package/dist/cli/{play-2LDJMIG2.js → play-FZY7NZAM.js} +324 -324
  88. package/dist/cli/{play-EX7PB6CI.mjs → play-SETNQCBB.mjs} +19 -19
  89. package/dist/cli/{providers-IDIFP5PU.js → providers-754HLYAW.js} +9 -9
  90. package/dist/cli/{providers-GAERKWYW.mjs → providers-PIS6IQVA.mjs} +6 -6
  91. package/dist/cli/{quickstart-7NL5YAJF.js → quickstart-2TIUCHQF.js} +6 -6
  92. package/dist/cli/{quickstart-E2GCIGR4.mjs → quickstart-5P4NYWZK.mjs} +4 -4
  93. package/dist/cli/{run-3CEY5JF3.js → run-OQNK7G3I.js} +44 -44
  94. package/dist/cli/{run-2EPOAEJ5.mjs → run-WAN4VZMS.mjs} +23 -23
  95. package/dist/cli/{search-TYRKGVKB.mjs → search-PTX7IMBB.mjs} +7 -7
  96. package/dist/cli/search-VXKJDQA5.js +32 -0
  97. package/dist/cli/{search-output-FRRT574G.js → search-output-AXVUC3TF.js} +6 -6
  98. package/dist/cli/{search-output-O7FYSGYQ.mjs → search-output-N44NPUN6.mjs} +4 -4
  99. package/dist/cli/{secrets-5W2ZF2JB.js → secrets-32WRPZB2.js} +15 -15
  100. package/dist/cli/{secrets-5YL7RU2B.mjs → secrets-ZODIPUMI.mjs} +6 -6
  101. package/dist/cli/{sessions-VWENSY3G.mjs → sessions-JRIS3JMT.mjs} +6 -6
  102. package/dist/cli/sessions-MW3SUF7R.js +23 -0
  103. package/dist/cli/{settings-W6FCYDJC.mjs → settings-OI3OHCD5.mjs} +12 -12
  104. package/dist/cli/{settings-JQOMJTOC.js → settings-YIZUG6T3.js} +85 -85
  105. package/dist/cli/{setup-3JUQWZTS.mjs → setup-4QQ33WUA.mjs} +9 -9
  106. package/dist/cli/{setup-DJIVQUBT.js → setup-AF3I4UPE.js} +49 -49
  107. package/dist/cli/skills-ECMGSQM4.js +37 -0
  108. package/dist/cli/{skills-7JTWCFL3.mjs → skills-EITRSX56.mjs} +7 -7
  109. package/dist/cli/{tools-DRR3KDV2.mjs → tools-CMOLGIDR.mjs} +17 -17
  110. package/dist/cli/tools-QTTCIEQM.js +57 -0
  111. package/dist/cli/update-N3YQGALD.js +37 -0
  112. package/dist/cli/{update-KL43AZPW.mjs → update-PGEARBAI.mjs} +9 -9
  113. package/dist/cli/{views-FFTXTJ7U.mjs → views-2H77STII.mjs} +6 -6
  114. package/dist/cli/{views-HX4GM53H.js → views-KFLXOZ5N.js} +21 -21
  115. package/dist/cli/{workflow-R2K6CH2X.js → workflow-HCEMVZAZ.js} +17 -17
  116. package/dist/cli/{workflow-QO7BRZLM.mjs → workflow-XWMAYWVX.mjs} +7 -7
  117. package/dist/index.js +9 -9
  118. package/dist/index.mjs +6 -6
  119. package/dist/install-integrity.json +112 -112
  120. package/dist/release.d.mts +1 -1
  121. package/dist/release.d.ts +1 -1
  122. package/dist/release.js +2 -2
  123. package/dist/release.mjs +1 -1
  124. package/dist/server.js +5 -5
  125. package/dist/server.mjs +3 -3
  126. package/package.json +1 -1
  127. package/dist/cli/auth-UC22BJN2.js +0 -44
  128. package/dist/cli/concurrent-runs-help-NMNGH7QN.js +0 -22
  129. package/dist/cli/describe-HJ564FPP.js +0 -50
  130. package/dist/cli/git-LMRN2YR5.js +0 -26
  131. package/dist/cli/search-ILJXFKNF.js +0 -32
  132. package/dist/cli/sessions-YMXBFVB3.js +0 -23
  133. package/dist/cli/skills-T36PD3IA.js +0 -37
  134. package/dist/cli/tools-X53FZHIC.js +0 -57
  135. package/dist/cli/update-BISEE3LC.js +0 -37
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVYY6HNOCjs = require('./chunk-VYY6HNOC.js');
3
+ var _chunkR5555CB5js = require('./chunk-R5555CB5.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunk4MPLA5RDjs = require('./chunk-4MPLA5RD.js');
8
+ var _chunkHGGIWRA5js = require('./chunk-HGGIWRA5.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunk4MPLA5RDjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkVYY6HNOCjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkHGGIWRA5js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkR5555CB5js.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunk4MPLA5RDjs.requireSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkHGGIWRA5js.requireSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
29
29
  })
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
- _chunk4MPLA5RDjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
32
+ _chunkHGGIWRA5js.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
33
33
  quietAdvisory: true
34
34
  });
35
35
  }
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkSJ2LY4V5js = require('./chunk-SJ2LY4V5.js');
7
+ var _chunkHPXN5QZZjs = require('./chunk-HPXN5QZZ.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunk4MPLA5RDjs = require('./chunk-4MPLA5RD.js');
12
+ var _chunkHGGIWRA5js = require('./chunk-HGGIWRA5.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkU77PK5R3js = require('./chunk-U77PK5R3.js');
16
+ var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
17
17
 
18
18
 
19
- var _chunkDA24O3ZVjs = require('./chunk-DA24O3ZV.js');
19
+ var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
20
20
 
21
21
 
22
- var _chunkT2RNEBV7js = require('./chunk-T2RNEBV7.js');
22
+ var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunkDA24O3ZVjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunk4SV43Z64js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkT2RNEBV7js.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk4JQ6MHE7js.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkT2RNEBV7js.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkT2RNEBV7js.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk4JQ6MHE7js.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk4JQ6MHE7js.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkT2RNEBV7js.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk4JQ6MHE7js.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
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") || !_chunkSJ2LY4V5js.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4MPLA5RDjs.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") || !_chunkHPXN5QZZjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkHGGIWRA5js.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkT2RNEBV7js.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk4JQ6MHE7js.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunkSJ2LY4V5js.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkHPXN5QZZjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunk4MPLA5RDjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunkHGGIWRA5js.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -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()]) || _chunkT2RNEBV7js.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk4JQ6MHE7js.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 = _chunkSJ2LY4V5js.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkHPXN5QZZjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunkSJ2LY4V5js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkHPXN5QZZjs.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 (_chunkU77PK5R3js.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkWSEMXB7Xjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkU77PK5R3js.addJsonNotice.call(void 0, {
173
+ _chunkWSEMXB7Xjs.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 (!_chunkSJ2LY4V5js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkHPXN5QZZjs.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 _chunkSJ2LY4V5js.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkHPXN5QZZjs.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 _chunk4MPLA5RDjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunkHGGIWRA5js.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 (!_chunkU77PK5R3js.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkWSEMXB7Xjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -4,14 +4,14 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkDA24O3ZVjs = require('./chunk-DA24O3ZV.js');
7
+ var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkT2RNEBV7js = require('./chunk-T2RNEBV7.js');
14
+ var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.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: _chunkT2RNEBV7js.detectAgentRuntime.call(void 0, )
334
+ agent_runtime: _chunk4JQ6MHE7js.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 = _chunkT2RNEBV7js.agentSessionIdFromEnvironment.call(void 0, );
355
+ const agentSessionId = _chunk4JQ6MHE7js.agentSessionIdFromEnvironment.call(void 0, );
356
356
  return {
357
- ..._chunkT2RNEBV7js.deploymentProtectionHeaders.call(void 0, ),
357
+ ..._chunk4JQ6MHE7js.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/${_chunkT2RNEBV7js.SDK_VERSION}`,
361
+ "User-Agent": `deepline-ts-sdk/${_chunk4JQ6MHE7js.SDK_VERSION}`,
362
362
  "X-Deepline-Client-Family": "sdk",
363
363
  "X-Deepline-CLI-Family": "sdk",
364
- "X-Deepline-Agent-Runtime": _chunkT2RNEBV7js.detectAgentRuntime.call(void 0, ),
365
- "X-Deepline-CLI-Version": _chunkT2RNEBV7js.SDK_VERSION,
366
- "X-Deepline-SDK-Version": _chunkT2RNEBV7js.SDK_VERSION
364
+ "X-Deepline-Agent-Runtime": _chunk4JQ6MHE7js.detectAgentRuntime.call(void 0, ),
365
+ "X-Deepline-CLI-Version": _chunk4JQ6MHE7js.SDK_VERSION,
366
+ "X-Deepline-SDK-Version": _chunk4JQ6MHE7js.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 = _chunkDA24O3ZVjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
394
+ apiKey = _chunk4SV43Z64js.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: _chunkT2RNEBV7js.SDK_VERSION,
421
+ cli_version: _chunk4JQ6MHE7js.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: _chunkT2RNEBV7js.SDK_VERSION,
541
+ cli_version: _chunk4JQ6MHE7js.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 = _chunkDA24O3ZVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
- const apiKey = _chunkDA24O3ZVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
561
+ const baseUrl = _chunk4SV43Z64js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
562
+ const apiKey = _chunk4SV43Z64js.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 = _chunkDA24O3ZVjs.resolveConfig.call(void 0, );
918
- return { config, http: new (0, _chunkDA24O3ZVjs.HttpClient)(config) };
917
+ const config = _chunk4SV43Z64js.resolveConfig.call(void 0, );
918
+ return { config, http: new (0, _chunk4SV43Z64js.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: _chunkT2RNEBV7js.detectAgentRuntime.call(void 0, )
1259
+ agent_runtime: _chunk4JQ6MHE7js.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 _chunkT2RNEBV7js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1506
+ return _chunk4JQ6MHE7js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
1507
1507
  ...valueRecord,
1508
- command_context: _chunkDA24O3ZVjs.resolveCliCommandContext.call(void 0, )
1508
+ command_context: _chunk4SV43Z64js.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, _chunkT2RNEBV7js.readToolFailureHint.call(void 0, error));
1680
+ const retry = cliRetryGuidance(payloadError, _chunk4JQ6MHE7js.readToolFailureHint.call(void 0, error));
1681
1681
  return {
1682
1682
  ok: false,
1683
1683
  status: "failed",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-BP2XRVBA.mjs";
3
+ } from "./chunk-MY45K7SA.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  httpJson
3
- } from "./chunk-H2N324LF.mjs";
3
+ } from "./chunk-2PMHEUED.mjs";
4
4
  import {
5
5
  PRICING_PAGE_NOTE
6
6
  } from "./chunk-2RIKOPIM.mjs";
7
7
  import {
8
8
  autoDetectBaseUrl,
9
9
  resolveApiKeyForBaseUrl
10
- } from "./chunk-UMJWODG7.mjs";
10
+ } from "./chunk-ZOITMXVO.mjs";
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkQOLFZD6Qjs = require('./chunk-QOLFZD6Q.js');
3
+ var _chunkYMQOTCLUjs = require('./chunk-YMQOTCLU.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkU77PK5R3js = require('./chunk-U77PK5R3.js');
7
+ var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkT2RNEBV7js = require('./chunk-T2RNEBV7.js');
12
+ var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkT2RNEBV7js.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunk4JQ6MHE7js.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkT2RNEBV7js.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunk4JQ6MHE7js.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkT2RNEBV7js.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunk4JQ6MHE7js.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkT2RNEBV7js.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkT2RNEBV7js.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunk4JQ6MHE7js.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk4JQ6MHE7js.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkT2RNEBV7js.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunk4JQ6MHE7js.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunkWSEMXB7Xjs.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkQOLFZD6Qjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkYMQOTCLUjs.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
565
+ _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
597
+ _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
705
+ _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkU77PK5R3js = require('./chunk-U77PK5R3.js');
5
+ var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
6
6
 
7
7
 
8
- var _chunkDA24O3ZVjs = require('./chunk-DA24O3ZV.js');
8
+ var _chunk4SV43Z64js = require('./chunk-4SV43Z64.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkWSEMXB7Xjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
39
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
139
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
153
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
200
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkWSEMXB7Xjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
227
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
254
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkWSEMXB7Xjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
269
+ _chunkWSEMXB7Xjs.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 = _chunkDA24O3ZVjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunk4SV43Z64js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkU77PK5R3js.openInBrowser.call(void 0, connectUrl);
292
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkWSEMXB7Xjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
322
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkWSEMXB7Xjs.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
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
371
+ _chunkWSEMXB7Xjs.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 } = _chunkU77PK5R3js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkWSEMXB7Xjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkU77PK5R3js.printCommandEnvelope.call(void 0,
392
+ _chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -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 _chunk4MPLA5RDjs = require('./chunk-4MPLA5RD.js');
3
+ var _chunkHGGIWRA5js = require('./chunk-HGGIWRA5.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 = _chunk4MPLA5RDjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkHGGIWRA5js.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",