deepline 0.3.519 → 0.3.520

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 (141) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +160 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +22 -0
  4. package/dist/cli/{artifacts-YRKH7KNC.js → artifacts-4DSPSIU5.js} +18 -18
  5. package/dist/cli/{artifacts-ZZULJ6X5.mjs → artifacts-D6PU7SBC.mjs} +6 -6
  6. package/dist/cli/{auth-WU2BDO3T.mjs → auth-MXKNPUXW.mjs} +5 -5
  7. package/dist/cli/auth-TH4JV6BH.js +43 -0
  8. package/dist/cli/{billing-DG62VVXW.mjs → billing-SQ26NKGH.mjs} +6 -6
  9. package/dist/cli/{billing-MUMMBMQK.js → billing-WEYCNJIR.js} +79 -79
  10. package/dist/cli/{chunk-XUCAH3LN.js → chunk-2BJILUE3.js} +10 -10
  11. package/dist/cli/{chunk-UB2REJPL.mjs → chunk-2EDGA7OE.mjs} +2 -2
  12. package/dist/cli/{chunk-ZQ23WQP3.js → chunk-3YHS4BLB.js} +2 -2
  13. package/dist/cli/{chunk-ORNLTNBN.js → chunk-4VR5OTYP.js} +44 -44
  14. package/dist/cli/{chunk-F6XD4CRW.js → chunk-5ECMRQCL.js} +1 -1
  15. package/dist/cli/{chunk-N3LUYBOB.mjs → chunk-5TEXJM6F.mjs} +10 -10
  16. package/dist/cli/{chunk-NIJE62ZD.mjs → chunk-6GI7BYSL.mjs} +1 -1
  17. package/dist/cli/{chunk-NH22WUUG.mjs → chunk-6T2LB43P.mjs} +2 -2
  18. package/dist/cli/{chunk-IMIHYCJ5.mjs → chunk-6VY2SJ6B.mjs} +5 -5
  19. package/dist/cli/{chunk-4ECU5DI3.js → chunk-6XJA23MZ.js} +26 -26
  20. package/dist/cli/{chunk-P62S3ZMS.js → chunk-74MOIEDC.js} +11 -11
  21. package/dist/cli/{chunk-GO467AXG.js → chunk-7QAX5VBT.js} +41 -41
  22. package/dist/cli/{chunk-EMV6EHK2.js → chunk-7VJKHJY7.js} +9 -9
  23. package/dist/cli/{chunk-AL7FDMD6.mjs → chunk-A5VR463F.mjs} +1 -1
  24. package/dist/cli/{chunk-RQDD2VV3.js → chunk-AM7HMWNA.js} +5 -5
  25. package/dist/cli/{chunk-RHQKDHCX.mjs → chunk-ASGGZ6BI.mjs} +2 -2
  26. package/dist/cli/{chunk-S7R4O62I.js → chunk-AVW2LKRF.js} +6 -6
  27. package/dist/cli/{chunk-TT2XB433.js → chunk-BHAP6FIZ.js} +4 -4
  28. package/dist/cli/{chunk-52DFTRVC.js → chunk-D5VTWJ7K.js} +16 -16
  29. package/dist/cli/{chunk-YRU46P7H.mjs → chunk-DQQ6FDE6.mjs} +1 -1
  30. package/dist/cli/{chunk-C7ZD4LXZ.js → chunk-FWGTBR3W.js} +2 -2
  31. package/dist/cli/{chunk-G2QD575P.js → chunk-GVTHFDKN.js} +6 -6
  32. package/dist/cli/{chunk-PK6VYYEY.js → chunk-I4GBCKBL.js} +5 -5
  33. package/dist/cli/{chunk-XBS4RDKU.js → chunk-JO2MQ6XR.js} +96 -96
  34. package/dist/cli/{chunk-HKKC7J6K.mjs → chunk-KCISDDNK.mjs} +6 -6
  35. package/dist/cli/{chunk-3CUIIVGR.mjs → chunk-KKSMHTQO.mjs} +1 -1
  36. package/dist/cli/{chunk-E6YWCXII.js → chunk-KTAOVRXT.js} +16 -16
  37. package/dist/cli/{chunk-LKYLIZ5X.js → chunk-LUIPBI6P.js} +2 -2
  38. package/dist/cli/{chunk-25WXWSFS.js → chunk-LYIJ3YUP.js} +22 -22
  39. package/dist/cli/{chunk-J4X4RNSP.mjs → chunk-M6YHS5V7.mjs} +3 -3
  40. package/dist/cli/{chunk-CRE3OGHH.mjs → chunk-NLIO6QLP.mjs} +2 -2
  41. package/dist/cli/{chunk-FEJKDR67.mjs → chunk-NNUJQ5O2.mjs} +1 -1
  42. package/dist/cli/{chunk-A7W3CCU5.mjs → chunk-NPRSGUHB.mjs} +5 -5
  43. package/dist/cli/{chunk-MI5DKOBD.mjs → chunk-NWSKBWQM.mjs} +2 -2
  44. package/dist/cli/{chunk-I3ICKVYH.js → chunk-ORAWUIMN.js} +53 -53
  45. package/dist/cli/{chunk-CBMTBMIJ.mjs → chunk-QQGRQRCS.mjs} +1 -1
  46. package/dist/cli/{chunk-SBF4K3QF.mjs → chunk-QSWPDYOP.mjs} +4 -4
  47. package/dist/cli/{chunk-FJAGGBDR.mjs → chunk-SHB2BNI6.mjs} +23 -1
  48. package/dist/cli/{chunk-R3OAKFHJ.mjs → chunk-TQTQ3YYA.mjs} +5 -5
  49. package/dist/cli/{chunk-Y7D6L4M7.mjs → chunk-U5646OVV.mjs} +5 -5
  50. package/dist/cli/{chunk-BQYXIAJM.js → chunk-UA4MXESL.js} +3 -3
  51. package/dist/cli/{chunk-AXA5DFY5.mjs → chunk-V6BUWQBI.mjs} +1 -1
  52. package/dist/cli/{chunk-FTJ2D3XD.mjs → chunk-VSLU4JZV.mjs} +3 -3
  53. package/dist/cli/{chunk-O655PVT4.js → chunk-VSPNBBRT.js} +29 -7
  54. package/dist/cli/{chunk-5A2SIIPH.mjs → chunk-XU57CH42.mjs} +1 -1
  55. package/dist/cli/{chunk-UMPHUAGZ.js → chunk-XXDY7K7F.js} +3 -3
  56. package/dist/cli/{chunk-4PWBHYH4.js → chunk-Y5QYWFRI.js} +7 -7
  57. package/dist/cli/{chunk-HXPHRSNM.js → chunk-YHHLLONU.js} +14 -14
  58. package/dist/cli/{chunk-RQ2BHYUM.mjs → chunk-YP3G2CP6.mjs} +2 -2
  59. package/dist/cli/{chunk-RU5JRQKJ.mjs → chunk-YVQLXMJU.mjs} +2 -2
  60. package/dist/cli/{csv-3TUJHAOW.mjs → csv-T7HIELZ2.mjs} +4 -4
  61. package/dist/cli/{csv-BKWIYPMK.js → csv-VJNR6FOZ.js} +13 -13
  62. package/dist/cli/{db-EJMJDKDA.js → db-JF2I54V7.js} +27 -27
  63. package/dist/cli/{db-I75IQ7XI.mjs → db-OE2EXZXL.mjs} +6 -6
  64. package/dist/cli/describe-4FLGKRCA.js +50 -0
  65. package/dist/cli/{describe-RUFLLRIN.mjs → describe-HXZZC3LC.mjs} +18 -18
  66. package/dist/cli/describe-core.d.mts +2 -2
  67. package/dist/cli/describe-core.d.ts +2 -2
  68. package/dist/cli/{executions-VW3MYJEE.mjs → executions-4BXRIJFF.mjs} +6 -6
  69. package/dist/cli/{executions-TQJCMUUG.js → executions-UQ2H6MJZ.js} +8 -8
  70. package/dist/cli/{feedback-UFAEXH5B.js → feedback-MKFN7DYY.js} +10 -10
  71. package/dist/cli/{feedback-76342G7E.mjs → feedback-TXF5CQKA.mjs} +5 -5
  72. package/dist/cli/git-B2QO3SLK.js +25 -0
  73. package/dist/cli/{git-L5XKAODI.mjs → git-MG3NAV65.mjs} +5 -5
  74. package/dist/cli/index.js +141 -141
  75. package/dist/cli/index.mjs +43 -43
  76. package/dist/cli/{legacy-noops-DM66YISP.js → legacy-noops-R76I2OWW.js} +9 -9
  77. package/dist/cli/{legacy-noops-DKAZ7JG3.mjs → legacy-noops-XSDY46XD.mjs} +6 -6
  78. package/dist/cli/{monitors-NKDIH4TY.js → monitors-FS3DIDM7.js} +100 -100
  79. package/dist/cli/{monitors-QXEJI54B.mjs → monitors-NVT5YQKV.mjs} +7 -7
  80. package/dist/cli/{org-NKIIBUNO.js → org-SBI6FC6D.js} +72 -72
  81. package/dist/cli/{org-KZQCVREB.mjs → org-XU7JONWS.mjs} +6 -6
  82. package/dist/cli/{pages-UJUFCJEL.js → pages-2CZFJJV6.js} +18 -18
  83. package/dist/cli/{pages-E7IT5SWT.mjs → pages-AFB5DVBR.mjs} +6 -6
  84. package/dist/cli/{play-AKL5E2DF.mjs → play-EQEIT5S4.mjs} +18 -18
  85. package/dist/cli/{play-SPI5MO67.js → play-WZH72UGC.js} +317 -317
  86. package/dist/cli/{providers-6HSSVI74.mjs → providers-3VXTATHF.mjs} +6 -6
  87. package/dist/cli/{providers-4NVQ3FSC.js → providers-SHSVUQA3.js} +9 -9
  88. package/dist/cli/{quickstart-EHLEHSMI.mjs → quickstart-45YS4SOD.mjs} +4 -4
  89. package/dist/cli/{quickstart-FEQD7S4Z.js → quickstart-KPVPK3VL.js} +6 -6
  90. package/dist/cli/{run-GH6ECTJF.js → run-U5RWBX5J.js} +41 -41
  91. package/dist/cli/{run-IWVM7BD6.mjs → run-XEHRZT57.mjs} +23 -23
  92. package/dist/cli/{search-X4CDMN7J.mjs → search-V7XIWBQ2.mjs} +8 -8
  93. package/dist/cli/search-Z2V43OPM.js +33 -0
  94. package/dist/cli/{search-output-PJ7N5WUQ.mjs → search-output-3KAJUV2A.mjs} +4 -4
  95. package/dist/cli/{search-output-IIYMGZTQ.js → search-output-ZNIICV5Z.js} +6 -6
  96. package/dist/cli/{secrets-QPP2FXID.js → secrets-53TUV6JK.js} +15 -15
  97. package/dist/cli/{secrets-4YPMC7XZ.mjs → secrets-SCSG3QXJ.mjs} +6 -6
  98. package/dist/cli/sessions-BOJCVLR7.js +18 -0
  99. package/dist/cli/{sessions-BEOI47VZ.mjs → sessions-MCTHLLK3.mjs} +6 -6
  100. package/dist/cli/{settings-VHULXNY3.mjs → settings-Q2HKACSE.mjs} +13 -13
  101. package/dist/cli/{settings-FZDONKPW.js → settings-ZNOXOIX2.js} +86 -86
  102. package/dist/cli/{setup-LZ6IN5JS.js → setup-GO4EULLY.js} +50 -50
  103. package/dist/cli/{setup-5IV3NHGD.mjs → setup-WKM35SZJ.mjs} +10 -10
  104. package/dist/cli/skills-B4BAH2B2.js +37 -0
  105. package/dist/cli/{skills-FZAFBW5J.mjs → skills-DZZLW6OV.mjs} +8 -8
  106. package/dist/cli/{tools-TLBH3RFK.mjs → tools-EKVSK6X4.mjs} +17 -17
  107. package/dist/cli/tools-Z5NCKIAB.js +57 -0
  108. package/dist/cli/{update-KPLIZYOV.mjs → update-FPHYVHSC.mjs} +10 -10
  109. package/dist/cli/update-XCL7F5T6.js +35 -0
  110. package/dist/cli/{workflow-ACHPT3DD.js → workflow-27H3NCNY.js} +17 -17
  111. package/dist/cli/{workflow-GYJOYYWK.mjs → workflow-5YAZK5EI.mjs} +7 -7
  112. package/dist/{client-CswZYCGj.d.ts → client-DhEOE19l.d.ts} +1 -1
  113. package/dist/{client-core-C1xVOg8Y.d.mts → client-core-BGiSMrBD.d.mts} +1 -1
  114. package/dist/{client-core-D2pLt36Q.d.ts → client-core-DYCGaRBZ.d.ts} +1 -1
  115. package/dist/{client-CpSiHSti.d.mts → client-lJmz2QwF.d.mts} +1 -1
  116. package/dist/index.d.mts +3 -3
  117. package/dist/index.d.ts +3 -3
  118. package/dist/index.js +9 -9
  119. package/dist/index.mjs +6 -6
  120. package/dist/install-integrity.json +108 -108
  121. package/dist/plays/play-description.d.mts +1 -1
  122. package/dist/plays/play-description.d.ts +1 -1
  123. package/dist/plays/run-request.d.mts +1 -1
  124. package/dist/plays/run-request.d.ts +1 -1
  125. package/dist/release.d.mts +1 -1
  126. package/dist/release.d.ts +1 -1
  127. package/dist/release.js +2 -2
  128. package/dist/release.mjs +1 -1
  129. package/dist/server.d.mts +2 -2
  130. package/dist/server.d.ts +2 -2
  131. package/dist/server.js +5 -5
  132. package/dist/server.mjs +3 -3
  133. package/package.json +1 -1
  134. package/dist/cli/auth-DF6WJLN2.js +0 -43
  135. package/dist/cli/describe-EAK3MPTG.js +0 -50
  136. package/dist/cli/git-OOCPCIGZ.js +0 -25
  137. package/dist/cli/search-NIRYA3VL.js +0 -33
  138. package/dist/cli/sessions-5I2IFTW7.js +0 -18
  139. package/dist/cli/skills-WJWLFSHI.js +0 -37
  140. package/dist/cli/tools-SH35NRGU.js +0 -57
  141. package/dist/cli/update-MA46YSGR.js +0 -35
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
3
+ var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
60
+ _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkUMPHUAGZjs = require('./chunk-UMPHUAGZ.js');
3
+ var _chunkXXDY7K7Fjs = require('./chunk-XXDY7K7F.js');
4
4
 
5
5
 
6
- var _chunkHXPHRSNMjs = require('./chunk-HXPHRSNM.js');
6
+ var _chunkYHHLLONUjs = require('./chunk-YHHLLONU.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkHXPHRSNMjs = require('./chunk-HXPHRSNM.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
17
+ var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunkTT2XB433js = require('./chunk-TT2XB433.js');
24
+ var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
25
25
 
26
26
 
27
- var _chunkF6XD4CRWjs = require('./chunk-F6XD4CRW.js');
27
+ var _chunk5ECMRQCLjs = require('./chunk-5ECMRQCL.js');
28
28
 
29
29
  // src/compat.ts
30
30
  var _crypto = require('crypto');
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
59
59
  return value === "1" || value === "true" || value === "yes";
60
60
  }
61
61
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
62
- return _path.join.call(void 0, _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
63
63
  }
64
64
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
65
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
67
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
68
68
  return JSON.stringify({
69
69
  baseUrl: baseUrl.replace(/\/$/, ""),
70
- version: _chunkTT2XB433js.SDK_VERSION,
71
- apiContract: _chunkTT2XB433js.SDK_API_CONTRACT,
72
- apiMajor: _chunkTT2XB433js.SDK_API_MAJOR,
70
+ version: _chunkBHAP6FIZjs.SDK_VERSION,
71
+ apiContract: _chunkBHAP6FIZjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunkBHAP6FIZjs.SDK_API_MAJOR,
73
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
74
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
75
75
  });
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
77
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
78
78
  return JSON.stringify({
79
79
  baseUrl: baseUrl.replace(/\/$/, ""),
80
- version: _chunkTT2XB433js.SDK_VERSION,
81
- apiContract: _chunkTT2XB433js.SDK_API_CONTRACT,
80
+ version: _chunkBHAP6FIZjs.SDK_VERSION,
81
+ apiContract: _chunkBHAP6FIZjs.SDK_API_CONTRACT,
82
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
83
83
  });
84
84
  }
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
103
103
  }
104
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
105
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
106
- const path = _path.join.call(void 0, _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
107
107
  try {
108
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
109
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
190
190
  );
191
191
  try {
192
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
193
- url.searchParams.set("version", _chunkTT2XB433js.SDK_VERSION);
193
+ url.searchParams.set("version", _chunkBHAP6FIZjs.SDK_VERSION);
194
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
195
195
  url.searchParams.set("command", options.command.trim());
196
196
  }
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
198
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
199
199
  url.searchParams.set(
200
200
  "skills_cli_capability",
201
- String(_chunkF6XD4CRWjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunk5ECMRQCLjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
202
202
  );
203
203
  }
204
204
  if (options.catalog) {
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
210
210
  const response = await fetch(url, {
211
211
  method: "GET",
212
212
  headers: {
213
- ..._chunkTT2XB433js.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunkTT2XB433js.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunkTT2XB433js.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunkTT2XB433js.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunkTT2XB433js.SDK_API_CONTRACT,
213
+ ..._chunkBHAP6FIZjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunkBHAP6FIZjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunkBHAP6FIZjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunkBHAP6FIZjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunkBHAP6FIZjs.SDK_API_CONTRACT,
218
218
  "X-Deepline-CLI-Update-Preferences": "1",
219
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
220
- ...options.catalog ? { Authorization: `Bearer ${_chunkBQYXIAJMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkUA4MXESLjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
221
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
222
222
  },
223
223
  signal: controller.signal
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
386
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
387
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
388
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
389
- const agents = _nullishCoalesce(options.agents, () => ( _chunkBQYXIAJMjs.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkUA4MXESLjs.DEFAULT_SKILL_AGENTS));
390
390
  const values = {
391
391
  skills_index_url: skillsIndexUrl(baseUrl),
392
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
514
514
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
515
515
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
516
516
  function shouldSkipSkillsSync() {
517
- if (_chunkTT2XB433js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
518
518
  return true;
519
519
  }
520
520
  const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
521
521
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
522
522
  }
523
523
  function unavailableSkillsNoticePath(baseUrl) {
524
- return _path.join.call(void 0, _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
525
525
  }
526
526
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
527
527
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
528
- var agentLeaseSegment = _chunkBQYXIAJMjs.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunkUA4MXESLjs.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunkBQYXIAJMjs.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunkUA4MXESLjs.KNOWN_SKILL_AGENTS] : agents;
531
531
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
532
532
  }
533
533
  function inProgressSkillsSyncPath(baseUrl, agent) {
534
534
  return _path.join.call(void 0,
535
- _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl),
536
536
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
537
537
  );
538
538
  }
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
691
691
  constructor(baseUrl, error) {
692
692
  const detail = error instanceof Error ? error.message : String(error);
693
693
  super(
694
- `Could not save skills state in ${_chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
695
695
  );
696
696
  this.name = "SkillsStateUnavailableError";
697
697
  }
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
776
776
  }
777
777
  function deferredSkillsNoticePath(baseUrl, agents) {
778
778
  return _path.join.call(void 0,
779
- _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl),
780
780
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
781
781
  );
782
782
  }
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
810
810
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
811
811
  }
812
812
  function flushDeferredSkillsSyncNotices(baseUrl) {
813
- if (shouldSkipSkillsSync() || _chunkBQYXIAJMjs.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunkBQYXIAJMjs.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunkUA4MXESLjs.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunkUA4MXESLjs.resolveAutoSyncSkillAgents.call(void 0, );
815
815
  if (agents.length === 0) return;
816
816
  flushDeferredSkillsNotices(baseUrl, agents);
817
817
  }
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
833
833
  }
834
834
  function failedSkillsSyncPath(baseUrl, agents) {
835
835
  return _path.join.call(void 0,
836
- _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl),
836
+ _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl),
837
837
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
838
838
  );
839
839
  }
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
862
862
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
863
863
  writeMarkedSkillsSyncVersion(path, remoteVersion);
864
864
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
865
- const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkBQYXIAJMjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
865
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkUA4MXESLjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
866
866
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
867
867
  notice(
868
868
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
950
950
  return sortedUniqueSkillNames(v1SkillNames2);
951
951
  }
952
952
  function isDefaultAgentSet(agents) {
953
- return agents.length === _chunkBQYXIAJMjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkBQYXIAJMjs.DEFAULT_SKILL_AGENTS[index]);
953
+ return agents.length === _chunkUA4MXESLjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkUA4MXESLjs.DEFAULT_SKILL_AGENTS[index]);
954
954
  }
955
955
  function safeSkillFilePath(value) {
956
956
  if (typeof value !== "string" || !value) return false;
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1107
1107
  method: "POST",
1108
1108
  headers: { "Content-Type": "application/json" },
1109
1109
  body: JSON.stringify({
1110
- sdk_cli: { version: _chunkTT2XB433js.SDK_VERSION },
1110
+ sdk_cli: { version: _chunkBHAP6FIZjs.SDK_VERSION },
1111
1111
  skills: {
1112
1112
  version: localVersion,
1113
- capability: _chunkF6XD4CRWjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1113
+ capability: _chunk5ECMRQCLjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1114
1114
  }
1115
1115
  }),
1116
1116
  signal: controller.signal
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
1149
1149
  }
1150
1150
  function noInstallerProbePath(baseUrl) {
1151
1151
  return _path.join.call(void 0,
1152
- _chunkBQYXIAJMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1152
+ _chunkUA4MXESLjs.sdkCliStateDirPath.call(void 0, baseUrl),
1153
1153
  "skills-sync-no-installer-unknown.json"
1154
1154
  );
1155
1155
  }
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
1228
1228
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1229
1229
  return resolveShellSpawn(install.command, install.args, platform);
1230
1230
  }
1231
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkBQYXIAJMjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1231
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkUA4MXESLjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1232
1232
  const commands = [];
1233
1233
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1234
1234
  if (probes.bunx === "available") {
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
1370
1370
  }
1371
1371
  }
1372
1372
  function writeSdkSkillsStatusLine(line) {
1373
- const progress = _chunkUMPHUAGZjs.getActiveCliProgress.call(void 0, );
1373
+ const progress = _chunkXXDY7K7Fjs.getActiveCliProgress.call(void 0, );
1374
1374
  if (progress) {
1375
1375
  progress.writeLine(line);
1376
1376
  return;
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
1381
1381
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1382
1382
  const skip = shouldSkipSkillsSync();
1383
1383
  if (skip && !options.claim) return;
1384
- const usingPluginSkills = _chunkBQYXIAJMjs.hasActivePluginSkills.call(void 0, );
1384
+ const usingPluginSkills = _chunkUA4MXESLjs.hasActivePluginSkills.call(void 0, );
1385
1385
  if (usingPluginSkills) {
1386
1386
  return;
1387
1387
  }
1388
- const agents = _chunkBQYXIAJMjs.resolveAutoSyncSkillAgents.call(void 0, );
1388
+ const agents = _chunkUA4MXESLjs.resolveAutoSyncSkillAgents.call(void 0, );
1389
1389
  if (options.mode === "detached" && agents.length > 0) {
1390
1390
  flushDeferredSkillsNotices(baseUrl, agents);
1391
1391
  }
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1422
1422
  return;
1423
1423
  }
1424
1424
  try {
1425
- const localVersion = _chunkBQYXIAJMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1425
+ const localVersion = _chunkUA4MXESLjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1426
1426
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1427
1427
  needsUpdate: options.update.needs_update,
1428
1428
  remoteVersion: options.update.remote.version
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1544
1544
  update.remoteVersion,
1545
1545
  agents
1546
1546
  );
1547
- void _chunkHXPHRSNMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1547
+ void _chunkYHHLLONUjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1548
1548
  baseUrl,
1549
1549
  remoteSkillsVersion: update.remoteVersion,
1550
1550
  agents,
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1575
1575
  notice(
1576
1576
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1577
1577
  );
1578
- void _chunkHXPHRSNMjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1578
+ void _chunkYHHLLONUjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1579
1579
  baseUrl,
1580
1580
  remoteSkillsVersion: update.remoteVersion,
1581
1581
  agents,
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1588
1588
  }
1589
1589
  }
1590
1590
  runLegacySkillsCleanup(agents);
1591
- if (!_chunkBQYXIAJMjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1591
+ if (!_chunkUA4MXESLjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1592
1592
  notice(
1593
1593
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1594
1594
  );
@@ -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.519",
52
+ version: "0.3.520",
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."
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-AL7FDMD6.mjs";
5
+ } from "./chunk-A5VR463F.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-Y7D6L4M7.mjs";
9
+ } from "./chunk-U5646OVV.mjs";
10
10
  import {
11
11
  Capability,
12
12
  arrayField,
@@ -46,10 +46,10 @@ import {
46
46
  } from "./chunk-FIVKWNMT.mjs";
47
47
  import {
48
48
  DeeplineClient
49
- } from "./chunk-NH22WUUG.mjs";
49
+ } from "./chunk-6T2LB43P.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-FJAGGBDR.mjs";
52
+ } from "./chunk-SHB2BNI6.mjs";
53
53
  import {
54
54
  stableStringify
55
55
  } from "./chunk-BMCRTI6Z.mjs";
@@ -59,18 +59,18 @@ import {
59
59
  maybeAutoUpdateAndRelaunch,
60
60
  registerCompatibilityCatalog,
61
61
  runToolExecuteStage
62
- } from "./chunk-A7W3CCU5.mjs";
62
+ } from "./chunk-NPRSGUHB.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-3CUIIVGR.mjs";
67
+ } from "./chunk-KKSMHTQO.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-R3OAKFHJ.mjs";
73
+ } from "./chunk-TQTQ3YYA.mjs";
74
74
  import {
75
75
  printCommandEnvelope,
76
76
  printCompactJson,
@@ -78,12 +78,12 @@ import {
78
78
  printJsonError,
79
79
  renderCommandEnvelopeText,
80
80
  shouldEmitJson
81
- } from "./chunk-CRE3OGHH.mjs";
81
+ } from "./chunk-NLIO6QLP.mjs";
82
82
  import {
83
83
  readSdkSkillsLocalVersion,
84
84
  resolveConfig,
85
85
  sdkCliStateDirPath
86
- } from "./chunk-CBMTBMIJ.mjs";
86
+ } from "./chunk-QQGRQRCS.mjs";
87
87
  import {
88
88
  DeeplineError
89
89
  } from "./chunk-ZPGGW27Q.mjs";
@@ -1054,7 +1054,7 @@ Examples:
1054
1054
  process.exitCode = await narrowView();
1055
1055
  return;
1056
1056
  }
1057
- const { describeAnything } = await import("./describe-RUFLLRIN.mjs");
1057
+ const { describeAnything } = await import("./describe-HXZZC3LC.mjs");
1058
1058
  process.exitCode = await describeAnything(
1059
1059
  toolId,
1060
1060
  {
@@ -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.519",
52
+ version: "0.3.520",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-FJAGGBDR.mjs";
3
+ } from "./chunk-SHB2BNI6.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-CBMTBMIJ.mjs";
7
+ } from "./chunk-QQGRQRCS.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-AXA5DFY5.mjs";
4
+ } from "./chunk-V6BUWQBI.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-SBF4K3QF.mjs";
7
+ } from "./chunk-QSWPDYOP.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-R3OAKFHJ.mjs";
10
+ } from "./chunk-TQTQ3YYA.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-CRE3OGHH.mjs";
13
+ } from "./chunk-NLIO6QLP.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-CBMTBMIJ.mjs";
16
+ } from "./chunk-QQGRQRCS.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
5
+ var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
6
6
 
7
7
 
8
- var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
8
+ var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkY5QYWFRIjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
39
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
139
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
153
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
200
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkY5QYWFRIjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
227
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
254
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkY5QYWFRIjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
269
+ _chunkY5QYWFRIjs.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 = _chunkBQYXIAJMjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkUA4MXESLjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunk4PWBHYH4js.openInBrowser.call(void 0, connectUrl);
292
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkY5QYWFRIjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
322
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkY5QYWFRIjs.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
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
371
+ _chunkY5QYWFRIjs.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 } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkY5QYWFRIjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
392
+ _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,