deepline 0.3.527 → 0.3.529

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 (147) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +197 -207
  3. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +66 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +156 -161
  6. package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +56 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +11 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +36 -6
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +35 -5
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +12 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +16 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +26 -5
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +129 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-claim-loop-timing.ts +145 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +48 -5
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +475 -101
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +13 -5
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +30 -1
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +43 -16
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +105 -13
  23. package/dist/bundling-sources/shared_libs/play-runtime/tool-call/result-receipt-policy.ts +10 -1
  24. package/dist/cli/auth-P7M7SXM5.js +43 -0
  25. package/dist/cli/{auth-LRMMQFJ4.mjs → auth-V7A6TU4G.mjs} +5 -5
  26. package/dist/cli/{billing-WZZDXVRJ.mjs → billing-5VBUYPWW.mjs} +6 -6
  27. package/dist/cli/{billing-M76MMWZB.js → billing-XF6SAA5Y.js} +79 -79
  28. package/dist/cli/{chunk-HB3YUHEL.js → chunk-2GV54JFN.js} +44 -44
  29. package/dist/cli/{chunk-ETXQZGQU.js → chunk-4722FTYU.js} +16 -16
  30. package/dist/cli/{chunk-AXFHQWGA.mjs → chunk-4A4OQMJX.mjs} +1 -1
  31. package/dist/cli/{chunk-66YLAQ2X.js → chunk-4BKE63Q7.js} +26 -26
  32. package/dist/cli/{chunk-UKOG6PCB.mjs → chunk-5NZEA2YV.mjs} +1 -1
  33. package/dist/cli/{chunk-JEIGNX3G.mjs → chunk-6XZIXDLC.mjs} +5 -5
  34. package/dist/cli/{chunk-RGL2YGJZ.js → chunk-7RTDSHMB.js} +2 -2
  35. package/dist/cli/{chunk-2A6IRSE6.js → chunk-7SRZTSHU.js} +5 -5
  36. package/dist/cli/{chunk-7DPWGAOU.js → chunk-7Z3ZXSOX.js} +3 -3
  37. package/dist/cli/{chunk-JSEISVAZ.js → chunk-AP7DNG6D.js} +4 -4
  38. package/dist/cli/{chunk-P5ZU5ZHA.mjs → chunk-BOWZ3OOU.mjs} +1 -1
  39. package/dist/cli/{chunk-YUYDP2EG.js → chunk-BRQDN67G.js} +6 -6
  40. package/dist/cli/{chunk-VV2AFJ3I.mjs → chunk-C2WTS7WY.mjs} +5 -5
  41. package/dist/cli/{chunk-GIRMVMXP.mjs → chunk-DKX5CGTG.mjs} +1 -1
  42. package/dist/cli/{chunk-OXHY3LD3.js → chunk-DPGPXARU.js} +53 -53
  43. package/dist/cli/{chunk-JSVHBJE2.mjs → chunk-E7CN5GEM.mjs} +2 -2
  44. package/dist/cli/{chunk-KDFUQRVU.mjs → chunk-ETCGTKLF.mjs} +1 -1
  45. package/dist/cli/{chunk-UJHS2O5O.mjs → chunk-EW33RCLA.mjs} +3 -3
  46. package/dist/cli/{chunk-OLSATEDQ.js → chunk-FCNSJHED.js} +6 -6
  47. package/dist/cli/{chunk-YKPMIJJ2.mjs → chunk-FWC47SCG.mjs} +2 -2
  48. package/dist/cli/{chunk-VTXBV4AX.mjs → chunk-FXHKNZM2.mjs} +1 -1
  49. package/dist/cli/{chunk-MMM2WMTF.mjs → chunk-G4SYSUDB.mjs} +5 -5
  50. package/dist/cli/{chunk-HA2J2OAS.mjs → chunk-GPU4ULMY.mjs} +10 -10
  51. package/dist/cli/{chunk-3L2DNG5X.js → chunk-H2JAXOPP.js} +11 -11
  52. package/dist/cli/{chunk-QKY3H3HA.mjs → chunk-HV4UKMBB.mjs} +4 -4
  53. package/dist/cli/{chunk-QKKT5G4K.mjs → chunk-K55VBSCA.mjs} +3 -3
  54. package/dist/cli/{chunk-EOL7PXLW.js → chunk-KAI64HV7.js} +7 -7
  55. package/dist/cli/{chunk-YJ4YVFXC.js → chunk-KSUWW26I.js} +13 -13
  56. package/dist/cli/{chunk-XI47UAVU.js → chunk-L3J7IAYE.js} +9 -9
  57. package/dist/cli/{chunk-R6IWWPY7.js → chunk-M47I47FK.js} +14 -14
  58. package/dist/cli/{chunk-E4TEZE62.mjs → chunk-NDVCVFZW.mjs} +2 -2
  59. package/dist/cli/{chunk-UAQ7ZWRP.js → chunk-NVH6ULDP.js} +22 -22
  60. package/dist/cli/{chunk-M45S7JAY.mjs → chunk-NVSMSP2J.mjs} +2 -2
  61. package/dist/cli/{chunk-SRQQAUXN.js → chunk-OA4FI5ZM.js} +2 -2
  62. package/dist/cli/{chunk-NVII3RWQ.mjs → chunk-PAAREIKG.mjs} +2 -2
  63. package/dist/cli/{chunk-5YR6CDJ2.mjs → chunk-PJDYY5JL.mjs} +6 -6
  64. package/dist/cli/{chunk-LHMHUA5D.js → chunk-PNWBODCB.js} +7 -7
  65. package/dist/cli/{chunk-C7A44BZ7.js → chunk-QTQWPSAK.js} +3 -3
  66. package/dist/cli/{chunk-MIL5YDKZ.mjs → chunk-R62Z4INU.mjs} +2 -2
  67. package/dist/cli/{chunk-YSDPYQBH.js → chunk-RWY2QLJ4.js} +41 -41
  68. package/dist/cli/{chunk-XYG4IOJK.js → chunk-TEFO5AS2.js} +98 -98
  69. package/dist/cli/{chunk-ZHY7AY5V.js → chunk-UMCEXTRM.js} +16 -16
  70. package/dist/cli/{chunk-77VNC2KF.mjs → chunk-XE4PQE2O.mjs} +1 -1
  71. package/dist/cli/{chunk-OKRBGXDI.js → chunk-XEZSORKG.js} +5 -5
  72. package/dist/cli/{chunk-3PQDEBO6.js → chunk-XZ6OY3BH.js} +1 -1
  73. package/dist/cli/{chunk-2L3HVEBM.mjs → chunk-Y4P6XJHU.mjs} +1 -1
  74. package/dist/cli/{chunk-RMCKTV4R.mjs → chunk-YVJJEMNQ.mjs} +1 -1
  75. package/dist/cli/{chunk-HQZLTK3P.js → chunk-ZEIN5YJS.js} +2 -2
  76. package/dist/cli/{chunk-RTPLRMEB.mjs → chunk-ZULLXAJJ.mjs} +5 -5
  77. package/dist/cli/{chunk-4YN7DZEA.mjs → chunk-ZYMX7KZE.mjs} +2 -2
  78. package/dist/cli/{csv-FEFNXZF7.mjs → csv-IHLVHG35.mjs} +4 -4
  79. package/dist/cli/{csv-IRP6VT7Q.js → csv-VEKMGGOE.js} +13 -13
  80. package/dist/cli/{db-Y5VNPNRD.js → db-NTFFISQG.js} +27 -27
  81. package/dist/cli/{db-IHECMWZ3.mjs → db-RKLVYARP.mjs} +6 -6
  82. package/dist/cli/{describe-XCVC2WLL.mjs → describe-62ELB5DZ.mjs} +18 -18
  83. package/dist/cli/describe-JXOGKT6C.js +50 -0
  84. package/dist/cli/{executions-3FWZYUJV.mjs → executions-5BMZW4C7.mjs} +6 -6
  85. package/dist/cli/{executions-QH3KJ6MA.js → executions-X7NMKMXW.js} +8 -8
  86. package/dist/cli/{feedback-BGHWMOLH.js → feedback-RDN5O4AT.js} +14 -14
  87. package/dist/cli/{feedback-F3OZXOPM.mjs → feedback-UHHWCIFD.mjs} +6 -6
  88. package/dist/cli/{git-RWPH3D75.mjs → git-3M33GKOW.mjs} +5 -5
  89. package/dist/cli/git-7VZGGIGZ.js +25 -0
  90. package/dist/cli/index.js +141 -141
  91. package/dist/cli/index.mjs +43 -43
  92. package/dist/cli/{legacy-noops-5ADSTBJ5.mjs → legacy-noops-7RVRPF5B.mjs} +6 -6
  93. package/dist/cli/{legacy-noops-G6CYD5LM.js → legacy-noops-ENKN6JU4.js} +9 -9
  94. package/dist/cli/{monitors-AFNAU3A2.mjs → monitors-FJPDMUQ6.mjs} +7 -7
  95. package/dist/cli/{monitors-VZCBZO26.js → monitors-YOWDFGIR.js} +100 -100
  96. package/dist/cli/{org-X4QRYBC4.js → org-4GBLI75H.js} +86 -86
  97. package/dist/cli/{org-JVLYTU24.mjs → org-H24LOZAC.mjs} +6 -6
  98. package/dist/cli/{pages-VELKZKBL.mjs → pages-BKM2D6BV.mjs} +6 -6
  99. package/dist/cli/{pages-YMM4KBW5.js → pages-WWVLYB5K.js} +18 -18
  100. package/dist/cli/{play-MIY6BYRB.mjs → play-M3CSYH3A.mjs} +18 -18
  101. package/dist/cli/{play-J7DEBHI7.js → play-TXHKCG6B.js} +317 -317
  102. package/dist/cli/{providers-2H3W3W7G.mjs → providers-EW5WTMTX.mjs} +6 -6
  103. package/dist/cli/{providers-TOUB7Y2A.js → providers-XL4SNFHU.js} +9 -9
  104. package/dist/cli/{quickstart-LHY2LN3P.js → quickstart-AFQ5MCDL.js} +6 -6
  105. package/dist/cli/{quickstart-GKAS5265.mjs → quickstart-SZSLS553.mjs} +4 -4
  106. package/dist/cli/{run-QCAVDPE5.js → run-MOFHGYSN.js} +41 -41
  107. package/dist/cli/{run-KYGNOWYD.mjs → run-TWXFNH6U.mjs} +23 -23
  108. package/dist/cli/{search-YPGAIFDX.mjs → search-2SW4V4IR.mjs} +8 -8
  109. package/dist/cli/search-V2AGWRLO.js +33 -0
  110. package/dist/cli/{search-output-ASELNQ2U.js → search-output-CJGRPJYD.js} +6 -6
  111. package/dist/cli/{search-output-OOC3VK4T.mjs → search-output-I6DNYXNT.mjs} +4 -4
  112. package/dist/cli/{secrets-VJ4XYSMZ.mjs → secrets-4XXLR6QO.mjs} +6 -6
  113. package/dist/cli/{secrets-KX3TQB4R.js → secrets-SD43HSLX.js} +15 -15
  114. package/dist/cli/{sessions-KUN7H7E5.mjs → sessions-7G32HW5R.mjs} +6 -6
  115. package/dist/cli/sessions-FIRDFPIZ.js +22 -0
  116. package/dist/cli/{settings-JKFYZ2IT.mjs → settings-HSYRY2L5.mjs} +13 -13
  117. package/dist/cli/{settings-5NIF4BU7.js → settings-SYEBDDDJ.js} +86 -86
  118. package/dist/cli/{setup-MYV3IHPS.js → setup-VTWCVCTK.js} +50 -50
  119. package/dist/cli/{setup-5AX3TN6G.mjs → setup-XZVBPKZK.mjs} +10 -10
  120. package/dist/cli/{skills-JLS4CINQ.mjs → skills-OMPEUMRT.mjs} +8 -8
  121. package/dist/cli/skills-RUY7CION.js +37 -0
  122. package/dist/cli/tools-KLIW7G6T.js +57 -0
  123. package/dist/cli/{tools-VBYKD3MJ.mjs → tools-UEDNJI4G.mjs} +17 -17
  124. package/dist/cli/{update-QWAIVJRI.mjs → update-4YVCUSSI.mjs} +10 -10
  125. package/dist/cli/update-FDUZRKKU.js +35 -0
  126. package/dist/cli/{views-TBWGZAVZ.mjs → views-4FP4AJQ2.mjs} +6 -6
  127. package/dist/cli/{views-ZW56JZB5.js → views-ZCCSKWMP.js} +18 -18
  128. package/dist/cli/{workflow-X7UQPJMQ.mjs → workflow-A2D5FALP.mjs} +7 -7
  129. package/dist/cli/{workflow-EKSZST6M.js → workflow-SM4OD4VJ.js} +17 -17
  130. package/dist/index.js +9 -9
  131. package/dist/index.mjs +6 -6
  132. package/dist/install-integrity.json +105 -104
  133. package/dist/release.d.mts +1 -1
  134. package/dist/release.d.ts +1 -1
  135. package/dist/release.js +2 -2
  136. package/dist/release.mjs +1 -1
  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-C7BBYIQD.js +0 -43
  141. package/dist/cli/describe-MNJVJHRE.js +0 -50
  142. package/dist/cli/git-MDOHEW5J.js +0 -25
  143. package/dist/cli/search-G67CEHR7.js +0 -33
  144. package/dist/cli/sessions-QILPX4XQ.js +0 -22
  145. package/dist/cli/skills-NG32XTZI.js +0 -37
  146. package/dist/cli/tools-OZG3V77R.js +0 -57
  147. package/dist/cli/update-YL5WVSKU.js +0 -35
@@ -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 _chunkC7A44BZ7js = require('./chunk-C7A44BZ7.js');
3
+ var _chunkQTQWPSAKjs = require('./chunk-QTQWPSAK.js');
4
4
 
5
5
 
6
- var _chunkR6IWWPY7js = require('./chunk-R6IWWPY7.js');
6
+ var _chunkM47I47FKjs = require('./chunk-M47I47FK.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkR6IWWPY7js = require('./chunk-R6IWWPY7.js');
14
14
 
15
15
 
16
16
 
17
- var _chunk7DPWGAOUjs = require('./chunk-7DPWGAOU.js');
17
+ var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunkJSEISVAZjs = require('./chunk-JSEISVAZ.js');
24
+ var _chunkAP7DNG6Djs = require('./chunk-AP7DNG6D.js');
25
25
 
26
26
 
27
- var _chunk3PQDEBO6js = require('./chunk-3PQDEBO6.js');
27
+ var _chunkXZ6OY3BHjs = require('./chunk-XZ6OY3BH.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, _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunk7Z3ZXSOXjs.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: _chunkJSEISVAZjs.SDK_VERSION,
71
- apiContract: _chunkJSEISVAZjs.SDK_API_CONTRACT,
72
- apiMajor: _chunkJSEISVAZjs.SDK_API_MAJOR,
70
+ version: _chunkAP7DNG6Djs.SDK_VERSION,
71
+ apiContract: _chunkAP7DNG6Djs.SDK_API_CONTRACT,
72
+ apiMajor: _chunkAP7DNG6Djs.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: _chunkJSEISVAZjs.SDK_VERSION,
81
- apiContract: _chunkJSEISVAZjs.SDK_API_CONTRACT,
80
+ version: _chunkAP7DNG6Djs.SDK_VERSION,
81
+ apiContract: _chunkAP7DNG6Djs.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, _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunk7Z3ZXSOXjs.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", _chunkJSEISVAZjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunkAP7DNG6Djs.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(_chunk3PQDEBO6js.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkXZ6OY3BHjs.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
- ..._chunkJSEISVAZjs.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunkJSEISVAZjs.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunkJSEISVAZjs.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunkJSEISVAZjs.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunkJSEISVAZjs.SDK_API_CONTRACT,
213
+ ..._chunkAP7DNG6Djs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunkAP7DNG6Djs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunkAP7DNG6Djs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunkAP7DNG6Djs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunkAP7DNG6Djs.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 ${_chunk7DPWGAOUjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunk7Z3ZXSOXjs.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, () => ( _chunk7DPWGAOUjs.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunk7Z3ZXSOXjs.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 (_chunkJSEISVAZjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunkAP7DNG6Djs.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, _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunk7Z3ZXSOXjs.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 = _chunk7DPWGAOUjs.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunk7Z3ZXSOXjs.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunk7DPWGAOUjs.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunk7Z3ZXSOXjs.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
- _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunk7Z3ZXSOXjs.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 ${_chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunk7Z3ZXSOXjs.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
- _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunk7Z3ZXSOXjs.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() || _chunk7DPWGAOUjs.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunk7DPWGAOUjs.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunk7Z3ZXSOXjs.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunk7Z3ZXSOXjs.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
- _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl),
836
+ _chunk7Z3ZXSOXjs.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, _chunk7DPWGAOUjs.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, _chunk7Z3ZXSOXjs.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 === _chunk7DPWGAOUjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk7DPWGAOUjs.DEFAULT_SKILL_AGENTS[index]);
953
+ return agents.length === _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk7Z3ZXSOXjs.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: _chunkJSEISVAZjs.SDK_VERSION },
1110
+ sdk_cli: { version: _chunkAP7DNG6Djs.SDK_VERSION },
1111
1111
  skills: {
1112
1112
  version: localVersion,
1113
- capability: _chunk3PQDEBO6js.SDK_RELEASE.packageCapabilities.skillsGuidance
1113
+ capability: _chunkXZ6OY3BHjs.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
- _chunk7DPWGAOUjs.sdkCliStateDirPath.call(void 0, baseUrl),
1152
+ _chunk7Z3ZXSOXjs.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 = _chunk7DPWGAOUjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1231
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk7Z3ZXSOXjs.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 = _chunkC7A44BZ7js.getActiveCliProgress.call(void 0, );
1373
+ const progress = _chunkQTQWPSAKjs.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 = _chunk7DPWGAOUjs.hasActivePluginSkills.call(void 0, );
1384
+ const usingPluginSkills = _chunk7Z3ZXSOXjs.hasActivePluginSkills.call(void 0, );
1385
1385
  if (usingPluginSkills) {
1386
1386
  return;
1387
1387
  }
1388
- const agents = _chunk7DPWGAOUjs.resolveAutoSyncSkillAgents.call(void 0, );
1388
+ const agents = _chunk7Z3ZXSOXjs.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 = _chunk7DPWGAOUjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1425
+ const localVersion = _chunk7Z3ZXSOXjs.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 _chunkR6IWWPY7js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1547
+ void _chunkM47I47FKjs.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 _chunkR6IWWPY7js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1578
+ void _chunkM47I47FKjs.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 (!_chunk7DPWGAOUjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1591
+ if (!_chunk7Z3ZXSOXjs.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
  );
@@ -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(); } }
2
2
 
3
- var _chunkXYG4IOJKjs = require('./chunk-XYG4IOJK.js');
3
+ var _chunkTEFO5AS2js = require('./chunk-TEFO5AS2.js');
4
4
 
5
5
 
6
- var _chunkYUYDP2EGjs = require('./chunk-YUYDP2EG.js');
6
+ var _chunkBRQDN67Gjs = require('./chunk-BRQDN67G.js');
7
7
 
8
8
 
9
9
 
@@ -14,18 +14,18 @@ var _chunk5YAJGRWBjs = require('./chunk-5YAJGRWB.js');
14
14
  var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
15
15
 
16
16
 
17
- var _chunkOKRBGXDIjs = require('./chunk-OKRBGXDI.js');
17
+ var _chunkXEZSORKGjs = require('./chunk-XEZSORKG.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkR6IWWPY7js = require('./chunk-R6IWWPY7.js');
21
+ var _chunkM47I47FKjs = require('./chunk-M47I47FK.js');
22
22
 
23
23
 
24
- var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
24
+ var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
25
25
 
26
26
 
27
27
 
28
- var _chunk7DPWGAOUjs = require('./chunk-7DPWGAOU.js');
28
+ var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.js');
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  var _fs = require('fs');
@@ -34,14 +34,14 @@ var _path = require('path');
34
34
  // src/cli/doc-read-reporting.ts
35
35
  var REPORT_TIMEOUT_MS = 1e3;
36
36
  async function reportDocRead(docId) {
37
- if (_chunkR6IWWPY7js.isFailureReportingDisabled.call(void 0, )) return;
37
+ if (_chunkM47I47FKjs.isFailureReportingDisabled.call(void 0, )) return;
38
38
  try {
39
- const baseUrl = _chunk7DPWGAOUjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
- const apiKey = _chunk7DPWGAOUjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
+ const baseUrl = _chunk7Z3ZXSOXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
+ const apiKey = _chunk7Z3ZXSOXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
41
41
  if (!apiKey) return;
42
42
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
43
  method: "POST",
44
- headers: _chunkR6IWWPY7js.failureReportHeaders.call(void 0, apiKey),
44
+ headers: _chunkM47I47FKjs.failureReportHeaders.call(void 0, apiKey),
45
45
  body: JSON.stringify({ doc_id: docId }),
46
46
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
47
  });
@@ -54,16 +54,16 @@ function nothingNamed(name) {
54
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
55
55
  }
56
56
  function findNamed2(name, options) {
57
- return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkOKRBGXDIjs.DeeplineClient)()));
57
+ return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkXEZSORKGjs.DeeplineClient)()));
58
58
  }
59
59
  async function describeAnything(name, options, onMissing) {
60
- const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
60
+ const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
61
61
  const lookups = _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, client);
62
62
  const outcome = await _chunk5YAJGRWBjs.describeName.call(void 0, name, options, {
63
63
  ...lookups,
64
64
  // `tools describe` has already fetched the tool for its compatibility check.
65
65
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
66
- seedStarterScript: _chunkXYG4IOJKjs.seedToolListScript
66
+ seedStarterScript: _chunkTEFO5AS2js.seedToolListScript
67
67
  });
68
68
  if (outcome.status === "missing") {
69
69
  if (onMissing) return onMissing();
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
89
89
  ` : text;
90
90
  _fs.writeFileSync.call(void 0, path, content);
91
91
  const bytes = Buffer.byteLength(content);
92
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
92
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
93
93
  { path, bytes },
94
94
  { json, text: `Wrote ${path} (${bytes} bytes)
95
95
  ` }
96
96
  );
97
97
  return 0;
98
98
  }
99
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, envelope, { json, text });
99
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0, envelope, { json, text });
100
100
  return 0;
101
101
  }
102
102
  function registerDescribeCommand(program) {
103
- _chunkYUYDP2EGjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
103
+ _chunkBRQDN67Gjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
104
  "Describe anything search returns: a tool, monitor type, or play."
105
105
  ).addHelpText(
106
106
  "after",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-JSVHBJE2.mjs";
3
+ } from "./chunk-E7CN5GEM.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
5
+ var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
6
6
 
7
7
 
8
- var _chunk7DPWGAOUjs = require('./chunk-7DPWGAOU.js');
8
+ var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
39
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
139
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
153
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
200
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
227
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
254
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
269
+ _chunkKAI64HV7js.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 = _chunk7DPWGAOUjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunk7Z3ZXSOXjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkEOL7PXLWjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkKAI64HV7js.openInBrowser.call(void 0, connectUrl);
292
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
322
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkKAI64HV7js.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
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
371
+ _chunkKAI64HV7js.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 } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
392
+ _chunkKAI64HV7js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-JSVHBJE2.mjs";
3
+ } from "./chunk-E7CN5GEM.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-4YN7DZEA.mjs";
6
+ } from "./chunk-ZYMX7KZE.mjs";
7
7
  import {
8
8
  resolveSdkCliFailureExitCode
9
- } from "./chunk-MIL5YDKZ.mjs";
9
+ } from "./chunk-R62Z4INU.mjs";
10
10
  import {
11
11
  errorToJsonPayload,
12
12
  printCommandEnvelope
13
- } from "./chunk-JSVHBJE2.mjs";
13
+ } from "./chunk-E7CN5GEM.mjs";
14
14
  import {
15
15
  resolveConfig,
16
16
  sdkCliStateDirPath
17
- } from "./chunk-77VNC2KF.mjs";
17
+ } from "./chunk-XE4PQE2O.mjs";
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  import { Option } from "commander";
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
136
136
  }
137
137
  const client = new DeeplineClient();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await import("./search-output-OOC3VK4T.mjs");
139
+ const renderer = json ? void 0 : await import("./search-output-I6DNYXNT.mjs");
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
3
+ var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkEOL7PXLWjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkKAI64HV7js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {