deepline 0.3.503 → 0.3.505

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 (151) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  3. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
  8. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
  9. package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
  10. package/dist/cli/{auth-IC4WLSE3.mjs → auth-AHE2EDQA.mjs} +5 -5
  11. package/dist/cli/auth-SEPKNRHV.js +43 -0
  12. package/dist/cli/{billing-2VOV64SD.mjs → billing-7CPWTGGI.mjs} +19 -12
  13. package/dist/cli/{billing-LWQOII22.js → billing-JOIZPHON.js} +92 -85
  14. package/dist/cli/{chunk-33JUK73X.js → chunk-3YEOOXD4.js} +96 -37
  15. package/dist/cli/{chunk-FVDTERO2.js → chunk-45XYW477.js} +21 -21
  16. package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-4OFSAZN6.mjs} +1 -1
  17. package/dist/cli/{chunk-D27HP3HS.mjs → chunk-52FPW2RD.mjs} +2 -2
  18. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  19. package/dist/cli/{chunk-VC5B462T.mjs → chunk-5XT4DZQL.mjs} +2 -2
  20. package/dist/cli/{chunk-26RSSTCF.js → chunk-6FEN6VWZ.js} +26 -26
  21. package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-6U3AGJWI.mjs} +1 -1
  22. package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-7AD565DO.mjs} +1 -1
  23. package/dist/cli/{chunk-FZHOWPSN.js → chunk-7DDACLMX.js} +16 -16
  24. package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-7DDKLFOY.mjs} +3 -3
  25. package/dist/cli/{chunk-WHP3FJ7T.js → chunk-7QLK2GHL.js} +5 -5
  26. package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-ACI6CUDX.mjs} +11 -401
  27. package/dist/cli/{chunk-C5RQTTLP.js → chunk-BWAYMJ23.js} +7 -7
  28. package/dist/cli/{chunk-YXGPMTAK.js → chunk-CA3SYXCS.js} +2 -2
  29. package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-CSLLQWAB.mjs} +1 -1
  30. package/dist/cli/{chunk-F73PD2XD.js → chunk-EMUFF6EU.js} +7 -7
  31. package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
  32. package/dist/cli/{chunk-2626LTU3.js → chunk-GAUNJCXQ.js} +96 -96
  33. package/dist/cli/{chunk-A2C6ONWA.js → chunk-GXMNOUHP.js} +6 -6
  34. package/dist/cli/{chunk-MJQOG4TZ.js → chunk-HASFFOSU.js} +16 -16
  35. package/dist/cli/{chunk-TCQYWZFS.js → chunk-IDAE5VDH.js} +5 -5
  36. package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-IZYOYXG7.mjs} +4 -4
  37. package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-JA7YBRP4.mjs} +1 -1
  38. package/dist/cli/{chunk-HRTDCXHI.js → chunk-JSTKLYYD.js} +2 -2
  39. package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-JVKEZT7L.mjs} +48 -8
  40. package/dist/cli/{chunk-4IIYSBEP.js → chunk-K26YOPDO.js} +50 -10
  41. package/dist/cli/{chunk-2K2QBLYO.js → chunk-LC4FG34E.js} +53 -53
  42. package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-MAFZ64RN.mjs} +2 -2
  43. package/dist/cli/{chunk-B3X4YWQ6.js → chunk-MHZAG2ZQ.js} +80 -470
  44. package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-NARJWXBR.mjs} +2 -2
  45. package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-OA6U5NVB.mjs} +5 -5
  46. package/dist/cli/{chunk-URZNSJE2.mjs → chunk-OMEDQ77C.mjs} +93 -34
  47. package/dist/cli/{chunk-QIEYEY6Z.js → chunk-OORPAQVC.js} +8 -8
  48. package/dist/cli/{chunk-WS274KID.mjs → chunk-PDLOPF5L.mjs} +1 -1
  49. package/dist/cli/{chunk-KGLVATEB.mjs → chunk-PZN24YQQ.mjs} +2 -2
  50. package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
  51. package/dist/cli/chunk-QYGYVCRI.js +405 -0
  52. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  53. package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-RT3HJBIH.mjs} +12 -12
  54. package/dist/cli/{chunk-L3TZV625.mjs → chunk-SHKRL7CW.mjs} +1 -1
  55. package/dist/cli/{chunk-FIUTDSJX.js → chunk-SPN7U3MV.js} +4 -4
  56. package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-UZ24SF7N.mjs} +5 -5
  57. package/dist/cli/{chunk-AARF4SOW.js → chunk-VXKWF3AD.js} +9 -9
  58. package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-W6I4N4JN.mjs} +6 -6
  59. package/dist/cli/{chunk-PVA3MWCO.js → chunk-WPCF7C6B.js} +3 -3
  60. package/dist/cli/{chunk-3CXHK4TW.js → chunk-WTQLUULB.js} +6 -6
  61. package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-WTUC5VKB.mjs} +2 -2
  62. package/dist/cli/{chunk-IIP46RVC.js → chunk-XHPB6RGY.js} +1 -1
  63. package/dist/cli/{chunk-RVOBFO7C.js → chunk-Y52XY56V.js} +41 -41
  64. package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-YBIVVAL7.mjs} +2 -2
  65. package/dist/cli/{chunk-HS63YBT5.js → chunk-ZLN2B5YA.js} +3 -3
  66. package/dist/cli/command-docs.d.mts +2 -1
  67. package/dist/cli/command-docs.d.ts +2 -1
  68. package/dist/cli/command-docs.js +6 -2
  69. package/dist/cli/command-docs.mjs +5 -1
  70. package/dist/cli/{csv-NEWCNOSZ.js → csv-DZHVIW3G.js} +13 -13
  71. package/dist/cli/{csv-2TXOI3UE.mjs → csv-WTPI6ZON.mjs} +4 -4
  72. package/dist/cli/{db-J3IJS4OG.js → db-D7LPPNCC.js} +27 -27
  73. package/dist/cli/{db-PX7EQEIG.mjs → db-NR4PJ6AF.mjs} +6 -6
  74. package/dist/cli/describe-HVQBTKFM.js +50 -0
  75. package/dist/cli/{describe-GQHGTZSL.mjs → describe-NCKAJPUG.mjs} +18 -17
  76. package/dist/cli/describe-core.d.mts +2 -2
  77. package/dist/cli/describe-core.d.ts +2 -2
  78. package/dist/cli/{executions-FFKK24RY.mjs → executions-RQVJ4LAB.mjs} +6 -6
  79. package/dist/cli/{executions-RO3TJUXL.js → executions-UQG6LWEN.js} +8 -8
  80. package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-RD4Y3YQR.mjs} +4 -4
  81. package/dist/cli/{feedback-XRR4HIS6.js → feedback-TCHA67IA.js} +8 -8
  82. package/dist/cli/git-TUB2ZUEH.js +25 -0
  83. package/dist/cli/{git-FIPBVFYZ.mjs → git-Z7434B7Y.mjs} +5 -5
  84. package/dist/cli/index.js +145 -141
  85. package/dist/cli/index.mjs +51 -47
  86. package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-23WRA7DH.js} +8 -8
  87. package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
  88. package/dist/cli/{monitors-42PIGLBF.js → monitors-KOWN7M3V.js} +95 -95
  89. package/dist/cli/{monitors-24LDKDJX.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
  90. package/dist/cli/{org-GQMCA3MN.js → org-2T5K2VP5.js} +72 -72
  91. package/dist/cli/{org-4B7SCFRL.mjs → org-UBNRO5XO.mjs} +6 -6
  92. package/dist/cli/{pages-PD5EGL2R.mjs → pages-GHPJBVV3.mjs} +6 -6
  93. package/dist/cli/{pages-RL2M62GJ.js → pages-SRXTU7XO.js} +18 -18
  94. package/dist/cli/{play-FST6ZAHW.js → play-2HMZ57EZ.js} +324 -517
  95. package/dist/cli/{play-5V54VTUR.mjs → play-HRQKGTXA.mjs} +24 -217
  96. package/dist/cli/{providers-N5YVCKPL.mjs → providers-JWJRFRR5.mjs} +6 -6
  97. package/dist/cli/{providers-HBUUPN7J.js → providers-P5O676MZ.js} +9 -9
  98. package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-S7NZUQRO.mjs} +4 -4
  99. package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-YCY72TAO.js} +6 -6
  100. package/dist/cli/{run-FGOKCG4J.js → run-MHLLGF4G.js} +41 -40
  101. package/dist/cli/{run-JHI5MTHD.mjs → run-QWMRIUIU.mjs} +23 -22
  102. package/dist/cli/{search-EWIZBIY2.mjs → search-4BFTQUEP.mjs} +8 -7
  103. package/dist/cli/search-QPUHOEIL.js +33 -0
  104. package/dist/cli/{search-output-TMQTRC2W.js → search-output-62LBVZHN.js} +6 -6
  105. package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-LIYHDTBP.mjs} +4 -4
  106. package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-GW27V77E.mjs} +6 -6
  107. package/dist/cli/{secrets-5TSUEOJB.js → secrets-KKKHVSOO.js} +15 -15
  108. package/dist/cli/{sessions-BSGE5EET.js → sessions-R3OEINAR.js} +6 -6
  109. package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-R75LBGIL.mjs} +5 -5
  110. package/dist/cli/{settings-SGGFQV5R.mjs → settings-I3AQZSYG.mjs} +12 -11
  111. package/dist/cli/{settings-47LARBRU.js → settings-MQIHAEZN.js} +79 -78
  112. package/dist/cli/{setup-ATGNXQUK.mjs → setup-2YA5MYMS.mjs} +10 -9
  113. package/dist/cli/{setup-BNFZFXO6.js → setup-X3QRJERP.js} +50 -49
  114. package/dist/cli/{skills-CIMBRM5R.mjs → skills-7252FOOI.mjs} +8 -7
  115. package/dist/cli/skills-BPZWMZSL.js +37 -0
  116. package/dist/cli/tools-F7RVQ3IK.js +57 -0
  117. package/dist/cli/{tools-DTDXAULX.mjs → tools-SKQTSVGE.mjs} +17 -16
  118. package/dist/cli/{update-EOIJBJCO.mjs → update-GNBBSKTB.mjs} +10 -9
  119. package/dist/cli/update-TLSY6LC2.js +35 -0
  120. package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-OJSAL5FO.mjs} +7 -7
  121. package/dist/cli/{workflow-V5VKPICQ.js → workflow-QB7YYWPP.js} +17 -17
  122. package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
  123. package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
  124. package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
  125. package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
  126. package/dist/index.d.mts +3 -3
  127. package/dist/index.d.ts +3 -3
  128. package/dist/index.js +9 -9
  129. package/dist/index.mjs +6 -6
  130. package/dist/install-integrity.json +109 -104
  131. package/dist/plays/bundle-play-file.mjs +4 -4
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-ZCMSXZO4.js +0 -43
  146. package/dist/cli/describe-LE7EZCL4.js +0 -49
  147. package/dist/cli/git-26AH4XIO.js +0 -25
  148. package/dist/cli/search-CTKSEVSO.js +0 -32
  149. package/dist/cli/skills-6RD25MVM.js +0 -36
  150. package/dist/cli/tools-TDZH4XHS.js +0 -56
  151. package/dist/cli/update-Y32VT4VL.js +0 -34
@@ -1,8 +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 _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
3
+ var _chunkWPCF7C6Bjs = require('./chunk-WPCF7C6B.js');
4
4
 
5
5
 
6
+ var _chunkQYGYVCRIjs = require('./chunk-QYGYVCRI.js');
6
7
 
7
8
 
8
9
 
@@ -12,21 +13,18 @@ var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
12
13
 
13
14
 
14
15
 
15
- var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
16
16
 
17
+ var _chunkZLN2B5YAjs = require('./chunk-ZLN2B5YA.js');
17
18
 
18
19
 
19
20
 
20
21
 
21
22
 
22
23
 
23
- var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
24
+ var _chunkSPN7U3MVjs = require('./chunk-SPN7U3MV.js');
24
25
 
25
26
 
26
- var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
27
-
28
-
29
- var _chunkIIP46RVCjs = require('./chunk-IIP46RVC.js');
27
+ var _chunkXHPB6RGYjs = require('./chunk-XHPB6RGY.js');
30
28
 
31
29
  // src/compat.ts
32
30
  var _crypto = require('crypto');
@@ -61,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
61
59
  return value === "1" || value === "true" || value === "yes";
62
60
  }
63
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, )) {
64
- return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
65
63
  }
66
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, )) {
67
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -69,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
69
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
70
68
  return JSON.stringify({
71
69
  baseUrl: baseUrl.replace(/\/$/, ""),
72
- version: _chunkFIUTDSJXjs.SDK_VERSION,
73
- apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
74
- apiMajor: _chunkFIUTDSJXjs.SDK_API_MAJOR,
70
+ version: _chunkSPN7U3MVjs.SDK_VERSION,
71
+ apiContract: _chunkSPN7U3MVjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunkSPN7U3MVjs.SDK_API_MAJOR,
75
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
76
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
77
75
  });
@@ -79,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
79
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
80
78
  return JSON.stringify({
81
79
  baseUrl: baseUrl.replace(/\/$/, ""),
82
- version: _chunkFIUTDSJXjs.SDK_VERSION,
83
- apiContract: _chunkFIUTDSJXjs.SDK_API_CONTRACT,
80
+ version: _chunkSPN7U3MVjs.SDK_VERSION,
81
+ apiContract: _chunkSPN7U3MVjs.SDK_API_CONTRACT,
84
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
85
83
  });
86
84
  }
@@ -105,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
105
103
  }
106
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
107
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
108
- const path = _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
109
107
  try {
110
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
111
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -192,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
192
190
  );
193
191
  try {
194
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
195
- url.searchParams.set("version", _chunkFIUTDSJXjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunkSPN7U3MVjs.SDK_VERSION);
196
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
197
195
  url.searchParams.set("command", options.command.trim());
198
196
  }
@@ -200,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
200
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
201
199
  url.searchParams.set(
202
200
  "skills_cli_capability",
203
- String(_chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkXHPB6RGYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
204
202
  );
205
203
  }
206
204
  if (options.catalog) {
@@ -212,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
212
210
  const response = await fetch(url, {
213
211
  method: "GET",
214
212
  headers: {
215
- ..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
216
- "User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
217
- "X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION,
218
- "X-Deepline-API-Major": String(_chunkFIUTDSJXjs.SDK_API_MAJOR),
219
- "X-Deepline-API-Contract": _chunkFIUTDSJXjs.SDK_API_CONTRACT,
213
+ ..._chunkSPN7U3MVjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunkSPN7U3MVjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunkSPN7U3MVjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunkSPN7U3MVjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunkSPN7U3MVjs.SDK_API_CONTRACT,
220
218
  "X-Deepline-CLI-Update-Preferences": "1",
221
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
222
- ...options.catalog ? { Authorization: `Bearer ${_chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkZLN2B5YAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
223
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
224
222
  },
225
223
  signal: controller.signal
@@ -294,388 +292,6 @@ function enforceSdkCompatibilityResponse(response, options = {}) {
294
292
  }
295
293
  }
296
294
 
297
- // src/cli/failure-reporting.ts
298
-
299
- var FAILURE_REPORT_DISABLE_ENV = "DEEPLINE_DISABLE_FAILURE_REPORTING";
300
- var REPORT_FAILURE_TIMEOUT_MS = 1e4;
301
- var BACKGROUND_REPORT_FAILURE_TIMEOUT_MS = 2e3;
302
- var MAX_FAILURE_TEXT_CHARS = 4e3;
303
- var MAX_COMMAND_TOKENS = 3;
304
- var REPORTABLE_EXIT_CODES = /* @__PURE__ */ new Set([4, 5]);
305
- var EMAIL_RE = /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi;
306
- var UNIX_PATH_RE = /(?:\/Users\/|\/home\/|\/var\/folders\/|\/tmp\/|\/sessions\/)[^"'\n\r`]+/g;
307
- var WINDOWS_PATH_RE = /[A-Za-z]:(?:\\{1,2})(?:Users|Temp|tmp)(?:\\{1,2})[^"'\n\r`]+/g;
308
- var ASSIGNMENT_SECRET_RE = /\b(access[_-]?token|api[_-]?key|apikey|auth(?:orization)?|bearer|password|secret|session)\b(\s*[:=]\s*)(?!Bearer\s+\[redacted-secret\])([^\s,;]+)/gi;
309
- var BEARER_SECRET_RE = /\b(bearer)\s+([A-Za-z0-9._-]+)/gi;
310
- var GENERIC_TOKEN_RE = /\b(?:dlp|sk|ghp|xox[baprs])[-_A-Za-z0-9]{8,}\b/g;
311
- var SECRET_OPTION_RE = /^--?(?:access[-_]?token|api[-_]?key|apikey|auth(?:orization)?|bearer|password|secret|session|token)$/i;
312
- function truthyEnv(name) {
313
- return ["1", "true", "yes", "on"].includes(
314
- String(_nullishCoalesce(process.env[name], () => ( ""))).trim().toLowerCase()
315
- );
316
- }
317
- function isFailureReportingDisabled() {
318
- return truthyEnv(FAILURE_REPORT_DISABLE_ENV);
319
- }
320
- function redactFailureText(value, maxChars = MAX_FAILURE_TEXT_CHARS) {
321
- const home = _optionalChain([process, 'access', _53 => _53.env, 'access', _54 => _54.HOME, 'optionalAccess', _55 => _55.trim, 'call', _56 => _56()]);
322
- let text = String(_nullishCoalesce(value, () => ( "")));
323
- if (!text) return "";
324
- if (home && home !== "/") {
325
- text = text.split(home).join("~");
326
- }
327
- return text.replace(EMAIL_RE, "[redacted-email]").replace(UNIX_PATH_RE, "[redacted-path]").replace(WINDOWS_PATH_RE, "[redacted-path]").replace(BEARER_SECRET_RE, "$1 [redacted-secret]").replace(ASSIGNMENT_SECRET_RE, "$1$2[redacted-secret]").replace(GENERIC_TOKEN_RE, "[redacted-secret]").slice(0, maxChars);
328
- }
329
- function sanitizeCommand(argv, prefix = "deepline") {
330
- const tokens = [];
331
- for (let index = 0; index < argv.length; index += 1) {
332
- const arg = argv[index];
333
- const value = String(_nullishCoalesce(arg, () => ( ""))).trim();
334
- if (!value) continue;
335
- if (value.startsWith("-")) {
336
- if (!value.includes("=") && SECRET_OPTION_RE.test(value)) {
337
- index += 1;
338
- }
339
- continue;
340
- }
341
- tokens.push(redactFailureText(value, 200));
342
- if (tokens.length >= MAX_COMMAND_TOKENS) break;
343
- }
344
- return tokens.length > 0 ? [prefix, ...tokens].join(" ") : prefix;
345
- }
346
- function errorMessage(error) {
347
- if (error instanceof Error) return `${error.name}: ${error.message}`;
348
- return String(_nullishCoalesce(error, () => ( "")));
349
- }
350
- function errorStack(error) {
351
- if (error instanceof Error && error.stack) {
352
- return redactFailureText(error.stack);
353
- }
354
- return null;
355
- }
356
- function classifyNetworkFailure(error) {
357
- const seen = /* @__PURE__ */ new Set();
358
- let current = error;
359
- while (current && !seen.has(current)) {
360
- seen.add(current);
361
- const record = typeof current === "object" && current !== null ? current : {};
362
- const code = String(_nullishCoalesce(record.code, () => ( ""))).toLowerCase();
363
- const name = current instanceof Error ? current.name.toLowerCase() : "";
364
- const text = String(
365
- current instanceof Error ? current.message : current
366
- ).toLowerCase();
367
- const combined = `${code} ${name} ${text}`;
368
- if (combined.includes("aborterror") || combined.includes("timeout") || combined.includes("timed out") || combined.includes("etimedout")) {
369
- return "network_timeout";
370
- }
371
- if (combined.includes("enotfound") || combined.includes("eai_again") || combined.includes("getaddrinfo") || combined.includes("name or service not known") || combined.includes("temporary failure in name resolution")) {
372
- return "network_dns_resolution_failed";
373
- }
374
- if (combined.includes("econnrefused") || combined.includes("connection refused")) {
375
- return "network_connection_refused";
376
- }
377
- if (combined.includes("econnreset") || combined.includes("connection reset")) {
378
- return "network_connection_reset";
379
- }
380
- if (combined.includes("incompleteread") || combined.includes("incomplete read")) {
381
- return "network_incomplete_read";
382
- }
383
- if (combined.includes("remotedisconnected") || combined.includes("remote end closed connection") || combined.includes("other side closed") || combined.includes("socket hang up")) {
384
- return "network_remote_disconnected";
385
- }
386
- if (
387
- // Local filenames and retry commands may contain "ssl" or "tls".
388
- // Require a transport identifier or protocol failure text instead.
389
- code.includes("ssl") || code.includes("tls") || name.includes("ssl") || name.includes("tls") || /(?:^|[\s[(:])(?:ssl|tls)[\s:_-]+(?:error|handshake|certificate|routines|connection|failed|failure)(?:$|[\s:_-])/.test(
390
- text
391
- ) || combined.includes("unexpected_eof_while_reading")
392
- ) {
393
- return "network_ssl_error";
394
- }
395
- current = _nullishCoalesce(record.cause, () => ( record.context));
396
- }
397
- return "network_error";
398
- }
399
- function classifyNetworkCauseCategory(error) {
400
- const seen = /* @__PURE__ */ new Set();
401
- let cause = error;
402
- while (cause && typeof cause === "object" && !seen.has(cause)) {
403
- seen.add(cause);
404
- const record = cause;
405
- if (record.code === "UND_ERR_CONNECT_TIMEOUT") return "connect_timeout";
406
- cause = record.cause;
407
- }
408
- switch (classifyNetworkFailure(error)) {
409
- case "network_dns_resolution_failed":
410
- return "dns";
411
- case "network_ssl_error":
412
- return "tls";
413
- case "network_connection_reset":
414
- return "reset";
415
- case "network_timeout":
416
- return "timeout";
417
- default:
418
- return "unknown";
419
- }
420
- }
421
- function isNetworkFailure(error) {
422
- if (!(error instanceof Error)) return false;
423
- if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.statusCode) return false;
424
- const code = classifyNetworkFailure(error);
425
- return code !== "network_error" || /unable to connect|unable to stream/i.test(error.message);
426
- }
427
- function buildEnvironmentContext() {
428
- const context = {
429
- os: _os.platform.call(void 0, ),
430
- os_release: _os.release.call(void 0, ),
431
- platform: `${_os.platform.call(void 0, )}-${_os.release.call(void 0, )}-${process.arch}`,
432
- node_version: process.version,
433
- runtime: "Node.js",
434
- hostname: _os.hostname.call(void 0, ),
435
- agent_runtime: _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, )
436
- };
437
- for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
438
- const normalized = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58[key], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
439
- if (normalized) context[key.toLowerCase()] = normalized;
440
- }
441
- if (_optionalChain([process, 'access', _61 => _61.env, 'access', _62 => _62.CLAUDE_PROJECT_DIR, 'optionalAccess', _63 => _63.trim, 'call', _64 => _64()])) {
442
- context.claude_project_dir_present = "true";
443
- }
444
- if (_optionalChain([process, 'access', _65 => _65.env, 'access', _66 => _66.DEEPLINE_PLUGIN_ROOT, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()])) {
445
- context.deepline_plugin_root_present = "true";
446
- }
447
- if (_optionalChain([process, 'access', _69 => _69.env, 'access', _70 => _70.DEEPLINE_PLUGIN_SKILLS_DIR, 'optionalAccess', _71 => _71.trim, 'call', _72 => _72()])) {
448
- context.deepline_plugin_skills_dir_present = "true";
449
- }
450
- if (_optionalChain([process, 'access', _73 => _73.env, 'access', _74 => _74.HOME, 'optionalAccess', _75 => _75.trim, 'call', _76 => _76(), 'access', _77 => _77.startsWith, 'call', _78 => _78("/sessions/")])) {
451
- context.home_scope = "sessions";
452
- }
453
- return context;
454
- }
455
- function failureReportHeaders(apiKey) {
456
- const agentSessionId = _chunkFIUTDSJXjs.agentSessionIdFromEnvironment.call(void 0, );
457
- return {
458
- ..._chunkFIUTDSJXjs.deploymentProtectionHeaders.call(void 0, ),
459
- ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
460
- Authorization: `Bearer ${apiKey}`,
461
- "Content-Type": "application/json",
462
- "User-Agent": `deepline-ts-sdk/${_chunkFIUTDSJXjs.SDK_VERSION}`,
463
- "X-Deepline-Client-Family": "sdk",
464
- "X-Deepline-CLI-Family": "sdk",
465
- "X-Deepline-Agent-Runtime": _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ),
466
- "X-Deepline-CLI-Version": _chunkFIUTDSJXjs.SDK_VERSION,
467
- "X-Deepline-SDK-Version": _chunkFIUTDSJXjs.SDK_VERSION
468
- };
469
- }
470
- async function postFailureReport(input) {
471
- const controller = new AbortController();
472
- const timeout = setTimeout(() => controller.abort(), input.timeoutMs);
473
- if (input.background) timeout.unref();
474
- try {
475
- await fetch(new URL("/api/v2/cli/report-failure", input.baseUrl), {
476
- method: "POST",
477
- headers: failureReportHeaders(input.apiKey),
478
- body: JSON.stringify(input.body),
479
- signal: controller.signal
480
- });
481
- return true;
482
- } catch (e7) {
483
- return false;
484
- } finally {
485
- clearTimeout(timeout);
486
- }
487
- }
488
- function boundedTelemetryString(value, maxChars) {
489
- return redactFailureText(value.trim(), maxChars);
490
- }
491
- async function maybeReportAutomaticSkillsSyncFailure(input) {
492
- if (isFailureReportingDisabled()) return false;
493
- let apiKey = "";
494
- try {
495
- apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
496
- } catch (e8) {
497
- return false;
498
- }
499
- if (!apiKey) return false;
500
- const attempts = input.attempts.slice(0, 2).map((attempt) => ({
501
- installer: attempt.installer,
502
- outcome: attempt.outcome,
503
- exit_code: typeof attempt.exitCode === "number" && Number.isFinite(attempt.exitCode) ? Math.trunc(attempt.exitCode) : null
504
- }));
505
- const agents = input.agents.slice(0, 8).map((agent) => boundedTelemetryString(agent, 100)).filter(Boolean);
506
- const baseUrl = input.baseUrl.replace(/\/$/, "");
507
- const failureKind = "background_warning";
508
- const failureCode2 = "SKILLS_AUTO_SYNC_FAILED";
509
- const failureStage = "skills_install";
510
- return postFailureReport({
511
- baseUrl,
512
- apiKey,
513
- timeoutMs: BACKGROUND_REPORT_FAILURE_TIMEOUT_MS,
514
- background: true,
515
- body: {
516
- command: "deepline skills",
517
- subcommand: "skills",
518
- failure_kind: failureKind,
519
- failure_code: failureCode2,
520
- failure_stage: failureStage,
521
- error_body: "Automatic Deepline skills installation failed.",
522
- cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
523
- context: {
524
- environment: buildEnvironmentContext(),
525
- skills_sync: {
526
- skills_package: boundedTelemetryString(input.skillsPackage, 100),
527
- remote_skills_version: boundedTelemetryString(
528
- input.remoteSkillsVersion,
529
- 200
530
- ),
531
- agents,
532
- target_skill_count: Math.max(
533
- 0,
534
- Math.trunc(
535
- Number.isFinite(input.targetSkillCount) ? input.targetSkillCount : 0
536
- )
537
- ),
538
- marker_written: input.markerWritten,
539
- attempts
540
- }
541
- }
542
- }
543
- });
544
- }
545
- function subcommandFromArgv(argv) {
546
- return _nullishCoalesce(argv.find((arg) => arg && !arg.startsWith("-")), () => ( null));
547
- }
548
- function commandTokens(argv) {
549
- return argv.map((arg) => String(_nullishCoalesce(arg, () => ( ""))).trim()).filter((arg) => arg && !arg.startsWith("-"));
550
- }
551
- function isServerLoggedPlayRunStartFailure(input) {
552
- const [subcommand, command] = commandTokens(input.argv);
553
- return subcommand === "plays" && command === "run" && input.error instanceof _chunkDIAWYWT5js.DeeplineError && typeof input.error.statusCode === "number";
554
- }
555
- function shouldReport(input) {
556
- if (input.error !== void 0) return true;
557
- return input.exitCode !== null && REPORTABLE_EXIT_CODES.has(input.exitCode);
558
- }
559
- function failureCode(input) {
560
- if (input.error !== void 0) {
561
- if (isNetworkFailure(input.error))
562
- return classifyNetworkFailure(input.error);
563
- if (input.error instanceof _chunkDIAWYWT5js.DeeplineError && input.error.code) {
564
- return input.error.code;
565
- }
566
- if (input.error instanceof Error && input.error.name)
567
- return input.error.name;
568
- return "CLI_FAILURE";
569
- }
570
- return input.exitCode === 4 ? "network_error" : "command_exit";
571
- }
572
- function resolvedExitCode(input) {
573
- if (typeof input.exitCode === "number" && Number.isFinite(input.exitCode)) {
574
- return Math.trunc(input.exitCode);
575
- }
576
- if (input.error === void 0) return null;
577
- return isNetworkFailure(input.error) ? 4 : 5;
578
- }
579
- function resolveSdkCliFailureExitCode(error) {
580
- return isNetworkFailure(error) ? 4 : 1;
581
- }
582
- function resolvedFailureKind(input) {
583
- return input.error === void 0 ? "command_exit" : "uncaught_exception";
584
- }
585
- function safeRequestDiagnostics(error) {
586
- if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) return null;
587
- const request = _optionalChain([error, 'access', _79 => _79.details, 'optionalAccess', _80 => _80.request]);
588
- if (!request || typeof request !== "object" || Array.isArray(request))
589
- return null;
590
- const value = request;
591
- const result = {};
592
- if (typeof value.phase === "string" && [
593
- "before_request",
594
- "retry_wait",
595
- "awaiting_headers",
596
- "reading_body"
597
- ].includes(value.phase))
598
- result.phase = value.phase;
599
- if (typeof value.method === "string" && /^(GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS)$/.test(value.method))
600
- result.method = value.method;
601
- if (typeof value.url === "string") {
602
- try {
603
- const url = new URL(value.url);
604
- if (url.protocol === "https:" || url.protocol === "http:") {
605
- result.url = redactFailureText(`${url.origin}${url.pathname}`, 1e3);
606
- }
607
- } catch (e9) {
608
- }
609
- }
610
- if (typeof value.failedAtUtc === "string" && Number.isFinite(Date.parse(value.failedAtUtc))) {
611
- result.failedAtUtc = new Date(value.failedAtUtc).toISOString();
612
- }
613
- for (const key of ["elapsedMs", "attempts"]) {
614
- const number = value[key];
615
- if (typeof number === "number" && Number.isSafeInteger(number) && number >= 0)
616
- result[key] = number;
617
- }
618
- return Object.keys(result).length > 0 ? result : null;
619
- }
620
- function buildFailureReport(input) {
621
- const durationMs = Math.max(0, Date.now() - input.startedAtMs);
622
- const request = safeRequestDiagnostics(input.error);
623
- const failureKind = resolvedFailureKind({
624
- exitCode: input.exitCode,
625
- error: input.error
626
- });
627
- const code = failureCode({ exitCode: input.exitCode, error: input.error });
628
- const errorBody = input.error === void 0 ? `SDK CLI command exited ${_nullishCoalesce(input.exitCode, () => ( "unknown"))}` : errorMessage(input.error);
629
- const networkCauseCategory = input.error !== void 0 && isNetworkFailure(input.error) ? classifyNetworkCauseCategory(input.error) : null;
630
- return {
631
- command: sanitizeCommand(input.argv),
632
- subcommand: subcommandFromArgv(input.argv),
633
- error_status: input.exitCode,
634
- error_body: redactFailureText(errorBody),
635
- exit_code: input.exitCode,
636
- duration_ms: durationMs,
637
- error_class: input.error instanceof Error ? input.error.name : null,
638
- stack_trace: errorStack(input.error),
639
- failure_kind: failureKind,
640
- failure_code: code,
641
- failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
642
- cli_version: _chunkFIUTDSJXjs.SDK_VERSION,
643
- context: {
644
- base_url: redactFailureText(input.baseUrl, 400),
645
- command_summary: sanitizeCommand(input.argv),
646
- environment: buildEnvironmentContext(),
647
- ...request ? { request } : {},
648
- failure_kind: failureKind,
649
- failure_code: code,
650
- failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
651
- duration_ms: durationMs,
652
- ...input.exitCode !== null ? { exit_code: input.exitCode } : {},
653
- ...networkCauseCategory ? { network_cause_category: networkCauseCategory } : {}
654
- }
655
- };
656
- }
657
- async function maybeReportSdkCliFailure(input) {
658
- if (isFailureReportingDisabled()) return false;
659
- if (isServerLoggedPlayRunStartFailure(input)) return false;
660
- const exitCode = resolvedExitCode(input);
661
- if (!shouldReport({ exitCode, error: input.error })) return false;
662
- const baseUrl = _chunkHS63YBT5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
663
- const apiKey = _chunkHS63YBT5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
664
- if (!apiKey) return false;
665
- return postFailureReport({
666
- baseUrl,
667
- apiKey,
668
- timeoutMs: REPORT_FAILURE_TIMEOUT_MS,
669
- body: buildFailureReport({
670
- argv: input.argv,
671
- startedAtMs: input.startedAtMs,
672
- error: input.error,
673
- exitCode,
674
- baseUrl
675
- })
676
- });
677
- }
678
-
679
295
  // contracts/install-commands.json
680
296
  var install_commands_default = {
681
297
  skills: {
@@ -770,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
770
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
771
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
772
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
773
- const agents = _nullishCoalesce(options.agents, () => ( _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkZLN2B5YAjs.DEFAULT_SKILL_AGENTS));
774
390
  const values = {
775
391
  skills_index_url: skillsIndexUrl(baseUrl),
776
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -810,8 +426,8 @@ function escapeCmdArgument(arg, forBatchFile = true) {
810
426
  function escapeCmdCommand(command) {
811
427
  return command.replace(CMD_META_CHARS, "^$1");
812
428
  }
813
- function resolveShellSpawn(command, args, platform2 = process.platform, env = process.env, cwd = process.cwd()) {
814
- if (platform2 !== "win32") {
429
+ function resolveShellSpawn(command, args, platform = process.platform, env = process.env, cwd = process.cwd()) {
430
+ if (platform !== "win32") {
815
431
  return { command, args: [...args], shell: false };
816
432
  }
817
433
  const resolved = resolveWindowsExecutable(command, env, cwd);
@@ -844,7 +460,7 @@ function resolveWindowsExecutable(command, env, cwd) {
844
460
  ) : _path.win32.resolve(cwd, command + extension);
845
461
  try {
846
462
  if (_fs.statSync.call(void 0, candidate).isFile()) return candidate;
847
- } catch (e10) {
463
+ } catch (e7) {
848
464
  }
849
465
  }
850
466
  }
@@ -872,25 +488,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
872
488
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
873
489
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
874
490
  function shouldSkipSkillsSync() {
875
- if (_chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
491
+ if (_chunkSPN7U3MVjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
876
492
  return true;
877
493
  }
878
- const value = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
494
+ const value = _optionalChain([process, 'access', _53 => _53.env, 'access', _54 => _54.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _55 => _55.trim, 'call', _56 => _56(), 'access', _57 => _57.toLowerCase, 'call', _58 => _58()]);
879
495
  return value === "1" || value === "true" || value === "yes" || value === "on";
880
496
  }
881
497
  function unavailableSkillsNoticePath(baseUrl) {
882
- return _path.join.call(void 0, _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
498
+ return _path.join.call(void 0, _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
883
499
  }
884
500
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
885
501
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
886
- var agentLeaseSegment = _chunkHS63YBT5js.skillsAgentPathSegment;
502
+ var agentLeaseSegment = _chunkZLN2B5YAjs.skillsAgentPathSegment;
887
503
  function sortedLeaseAgents(agents) {
888
- const expanded = agents.includes("*") ? [...agents, ..._chunkHS63YBT5js.KNOWN_SKILL_AGENTS] : agents;
504
+ const expanded = agents.includes("*") ? [...agents, ..._chunkZLN2B5YAjs.KNOWN_SKILL_AGENTS] : agents;
889
505
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
890
506
  }
891
507
  function inProgressSkillsSyncPath(baseUrl, agent) {
892
508
  return _path.join.call(void 0,
893
- _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
509
+ _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl),
894
510
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
895
511
  );
896
512
  }
@@ -950,7 +566,7 @@ function quarantine(path, tag) {
950
566
  try {
951
567
  _fs.renameSync.call(void 0, path, holding);
952
568
  return holding;
953
- } catch (e11) {
569
+ } catch (e8) {
954
570
  return null;
955
571
  }
956
572
  }
@@ -1049,7 +665,7 @@ var SkillsStateUnavailableError = class extends Error {
1049
665
  constructor(baseUrl, error) {
1050
666
  const detail = error instanceof Error ? error.message : String(error);
1051
667
  super(
1052
- `Could not save skills state in ${_chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
668
+ `Could not save skills state in ${_chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1053
669
  );
1054
670
  this.name = "SkillsStateUnavailableError";
1055
671
  }
@@ -1070,7 +686,7 @@ function recordOwnPidOnInProgressSkillsSync(baseUrl, leases) {
1070
686
  `,
1071
687
  "utf-8"
1072
688
  );
1073
- } catch (e12) {
689
+ } catch (e9) {
1074
690
  }
1075
691
  }
1076
692
  }
@@ -1080,7 +696,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
1080
696
  if (!claimToken) {
1081
697
  try {
1082
698
  _fs.rmSync.call(void 0, dir, { recursive: true, force: true });
1083
- } catch (e13) {
699
+ } catch (e10) {
1084
700
  }
1085
701
  continue;
1086
702
  }
@@ -1091,7 +707,7 @@ function releaseInProgressSkillsSync(baseUrl, claimTokens) {
1091
707
  _fs.renameSync.call(void 0, tombstone, dir);
1092
708
  continue;
1093
709
  }
1094
- } catch (e14) {
710
+ } catch (e11) {
1095
711
  }
1096
712
  _fs.rmSync.call(void 0, tombstone, { recursive: true, force: true });
1097
713
  }
@@ -1124,7 +740,7 @@ async function acquireSkillsInstallLease(baseUrl, agents, version, options = {
1124
740
  if (Date.now() >= deadline) return null;
1125
741
  if (!waited) {
1126
742
  waited = true;
1127
- _optionalChain([options, 'access', _87 => _87.onWait, 'optionalCall', _88 => _88()]);
743
+ _optionalChain([options, 'access', _59 => _59.onWait, 'optionalCall', _60 => _60()]);
1128
744
  }
1129
745
  await new Promise((resolve) => setTimeout(resolve, pollMs));
1130
746
  }
@@ -1134,7 +750,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1134
750
  }
1135
751
  function deferredSkillsNoticePath(baseUrl, agents) {
1136
752
  return _path.join.call(void 0,
1137
- _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
753
+ _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl),
1138
754
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1139
755
  );
1140
756
  }
@@ -1145,7 +761,7 @@ function deferSkillsNotice(baseUrl, agents) {
1145
761
  _fs.mkdirSync.call(void 0, _path.dirname.call(void 0, path), { recursive: true });
1146
762
  _fs.appendFileSync.call(void 0, path, `${text.trimEnd()}
1147
763
  `, "utf-8");
1148
- } catch (e15) {
764
+ } catch (e12) {
1149
765
  }
1150
766
  };
1151
767
  }
@@ -1157,19 +773,19 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1157
773
  let text = "";
1158
774
  try {
1159
775
  text = _fs.readFileSync.call(void 0, tombstone, "utf-8");
1160
- } catch (e16) {
776
+ } catch (e13) {
1161
777
  return;
1162
778
  } finally {
1163
779
  try {
1164
780
  _fs.unlinkSync.call(void 0, tombstone);
1165
- } catch (e17) {
781
+ } catch (e14) {
1166
782
  }
1167
783
  }
1168
784
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1169
785
  }
1170
786
  function flushDeferredSkillsSyncNotices(baseUrl) {
1171
- if (shouldSkipSkillsSync() || _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, )) return;
1172
- const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
787
+ if (shouldSkipSkillsSync() || _chunkZLN2B5YAjs.hasActivePluginSkills.call(void 0, )) return;
788
+ const agents = _chunkZLN2B5YAjs.resolveAutoSyncSkillAgents.call(void 0, );
1173
789
  if (agents.length === 0) return;
1174
790
  flushDeferredSkillsNotices(baseUrl, agents);
1175
791
  }
@@ -1180,12 +796,12 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1180
796
  stdio: "ignore",
1181
797
  env: process.env
1182
798
  });
1183
- child.on("error", () => _optionalChain([onSpawnError, 'optionalCall', _89 => _89()]));
799
+ child.on("error", () => _optionalChain([onSpawnError, 'optionalCall', _61 => _61()]));
1184
800
  child.unref();
1185
801
  }
1186
802
  function failedSkillsSyncPath(baseUrl, agents) {
1187
803
  return _path.join.call(void 0,
1188
- _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
804
+ _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl),
1189
805
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1190
806
  );
1191
807
  }
@@ -1195,7 +811,7 @@ function hasMarkedSkillsSyncVersion(path, version) {
1195
811
  function readMarkedSkillsSyncVersion(path) {
1196
812
  try {
1197
813
  return _fs.existsSync.call(void 0, path) ? _fs.readFileSync.call(void 0, path, "utf-8").trim() : "";
1198
- } catch (e18) {
814
+ } catch (e15) {
1199
815
  return "";
1200
816
  }
1201
817
  }
@@ -1205,7 +821,7 @@ function writeMarkedSkillsSyncVersion(path, version) {
1205
821
  _fs.writeFileSync.call(void 0, path, `${version}
1206
822
  `, "utf-8");
1207
823
  return true;
1208
- } catch (e19) {
824
+ } catch (e16) {
1209
825
  return false;
1210
826
  }
1211
827
  }
@@ -1214,8 +830,8 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1214
830
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1215
831
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1216
832
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1217
- const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1218
- const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _91 => _91.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.`;
833
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _62 => _62.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkZLN2B5YAjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
834
+ const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _63 => _63.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.`;
1219
835
  notice(
1220
836
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
1221
837
  ${manualCommand}`
@@ -1224,7 +840,7 @@ ${manualCommand}`
1224
840
  function clearUnavailableSkillsNotice(baseUrl) {
1225
841
  try {
1226
842
  _fs.unlinkSync.call(void 0, unavailableSkillsNoticePath(baseUrl));
1227
- } catch (e20) {
843
+ } catch (e17) {
1228
844
  }
1229
845
  }
1230
846
  function hasFailedSkillsSync(baseUrl, remoteVersion, agents) {
@@ -1236,7 +852,7 @@ function hasFailedSkillsSync(baseUrl, remoteVersion, agents) {
1236
852
  const retry = JSON.parse(marked);
1237
853
  const now = Date.now();
1238
854
  return retry.version === remoteVersion && typeof retry.retryAfter === "number" && retry.retryAfter > now && retry.retryAfter <= now + PUBLISHED_VERIFICATION_RETRY_MS;
1239
- } catch (e21) {
855
+ } catch (e18) {
1240
856
  return false;
1241
857
  }
1242
858
  }
@@ -1261,7 +877,7 @@ function deferPublishedVerificationRetry(baseUrl, remoteVersion, agents) {
1261
877
  function clearFailedSkillsSync(baseUrl, agents) {
1262
878
  try {
1263
879
  _fs.unlinkSync.call(void 0, failedSkillsSyncPath(baseUrl, agents));
1264
- } catch (e22) {
880
+ } catch (e19) {
1265
881
  }
1266
882
  }
1267
883
  function clearFailedAutomaticSkillsSync(baseUrl, agents) {
@@ -1284,14 +900,14 @@ async function fetchV1SkillIndex(baseUrl) {
1284
900
  if (!response.ok) return null;
1285
901
  const data = await response.json().catch(() => null);
1286
902
  return data;
1287
- } catch (e23) {
903
+ } catch (e20) {
1288
904
  return null;
1289
905
  } finally {
1290
906
  clearTimeout(timeout);
1291
907
  }
1292
908
  }
1293
909
  function v1SkillNames(index) {
1294
- const skills = Array.isArray(_optionalChain([index, 'optionalAccess', _92 => _92.skills])) ? index.skills : [];
910
+ const skills = Array.isArray(_optionalChain([index, 'optionalAccess', _64 => _64.skills])) ? index.skills : [];
1295
911
  return sortedUniqueSkillNames(
1296
912
  skills.filter((skill) => skill && skill.install_surface === "v1").map((skill) => skill.name).filter(
1297
913
  (name) => typeof name === "string" && name.length > 0
@@ -1302,7 +918,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1302
918
  return sortedUniqueSkillNames(v1SkillNames2);
1303
919
  }
1304
920
  function isDefaultAgentSet(agents) {
1305
- return agents.length === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS[index]);
921
+ return agents.length === _chunkZLN2B5YAjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkZLN2B5YAjs.DEFAULT_SKILL_AGENTS[index]);
1306
922
  }
1307
923
  function safeSkillFilePath(value) {
1308
924
  if (typeof value !== "string" || !value) return false;
@@ -1362,7 +978,7 @@ function publishedArchiveFiles(bytes, expectedFiles, name) {
1362
978
  var PublishedSkillsVerificationError = class extends Error {
1363
979
  };
1364
980
  async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillNames, index) {
1365
- if (_optionalChain([index, 'optionalAccess', _93 => _93.version]) !== remoteVersion) {
981
+ if (_optionalChain([index, 'optionalAccess', _65 => _65.version]) !== remoteVersion) {
1366
982
  throw new PublishedSkillsVerificationError(
1367
983
  "the published skill index version does not match the server version"
1368
984
  );
@@ -1378,7 +994,7 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
1378
994
  const entry = entries.find(
1379
995
  (skill) => skill && skill.name === name && skill.install_surface === "v1"
1380
996
  );
1381
- if (!Array.isArray(_optionalChain([entry, 'optionalAccess', _94 => _94.files])) || !entry.files.length || !entry.files.every(safeSkillFilePath) || new Set(entry.files).size !== entry.files.length || !entry.files.includes("SKILL.md") || entry.type !== "archive" || entry.url !== `./archives/${name}.tar.gz` || typeof entry.digest !== "string" || !/^sha256:[a-f0-9]{64}$/.test(entry.digest)) {
997
+ if (!Array.isArray(_optionalChain([entry, 'optionalAccess', _66 => _66.files])) || !entry.files.length || !entry.files.every(safeSkillFilePath) || new Set(entry.files).size !== entry.files.length || !entry.files.includes("SKILL.md") || entry.type !== "archive" || entry.url !== `./archives/${name}.tar.gz` || typeof entry.digest !== "string" || !/^sha256:[a-f0-9]{64}$/.test(entry.digest)) {
1382
998
  throw new PublishedSkillsVerificationError(
1383
999
  `invalid published file list for ${name}`
1384
1000
  );
@@ -1432,7 +1048,7 @@ async function verifyDefaultAgentSkillsInstall(baseUrl, remoteVersion, skillName
1432
1048
  controller.abort();
1433
1049
  }
1434
1050
  const home = _os.homedir.call(void 0, );
1435
- const claudeConfigDir = _optionalChain([process, 'access', _95 => _95.env, 'access', _96 => _96.CLAUDE_CONFIG_DIR, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]) || _path.join.call(void 0, home, ".claude");
1051
+ const claudeConfigDir = _optionalChain([process, 'access', _67 => _67.env, 'access', _68 => _68.CLAUDE_CONFIG_DIR, 'optionalAccess', _69 => _69.trim, 'call', _70 => _70()]) || _path.join.call(void 0, home, ".claude");
1436
1052
  for (const [name, { files }] of published) {
1437
1053
  for (const root of [
1438
1054
  _path.join.call(void 0, home, ".agents", "skills", name),
@@ -1459,23 +1075,23 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1459
1075
  method: "POST",
1460
1076
  headers: { "Content-Type": "application/json" },
1461
1077
  body: JSON.stringify({
1462
- sdk_cli: { version: _chunkFIUTDSJXjs.SDK_VERSION },
1078
+ sdk_cli: { version: _chunkSPN7U3MVjs.SDK_VERSION },
1463
1079
  skills: {
1464
1080
  version: localVersion,
1465
- capability: _chunkIIP46RVCjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1081
+ capability: _chunkXHPB6RGYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1466
1082
  }
1467
1083
  }),
1468
1084
  signal: controller.signal
1469
1085
  });
1470
1086
  if (!response.ok) return null;
1471
1087
  const data = await response.json().catch(() => null);
1472
- const skills = _optionalChain([data, 'optionalAccess', _99 => _99.skills]);
1088
+ const skills = _optionalChain([data, 'optionalAccess', _71 => _71.skills]);
1473
1089
  if (!skills) return null;
1474
1090
  return {
1475
1091
  needsUpdate: skills.needs_update === true,
1476
- remoteVersion: typeof _optionalChain([skills, 'access', _100 => _100.remote, 'optionalAccess', _101 => _101.version]) === "string" ? skills.remote.version.trim() : ""
1092
+ remoteVersion: typeof _optionalChain([skills, 'access', _72 => _72.remote, 'optionalAccess', _73 => _73.version]) === "string" ? skills.remote.version.trim() : ""
1477
1093
  };
1478
- } catch (e24) {
1094
+ } catch (e21) {
1479
1095
  return null;
1480
1096
  } finally {
1481
1097
  clearTimeout(timeout);
@@ -1501,7 +1117,7 @@ function probeInstallers(timeoutMs) {
1501
1117
  }
1502
1118
  function noInstallerProbePath(baseUrl) {
1503
1119
  return _path.join.call(void 0,
1504
- _chunkHS63YBT5js.sdkCliStateDirPath.call(void 0, baseUrl),
1120
+ _chunkZLN2B5YAjs.sdkCliStateDirPath.call(void 0, baseUrl),
1505
1121
  "skills-sync-no-installer-unknown.json"
1506
1122
  );
1507
1123
  }
@@ -1509,12 +1125,12 @@ function cachedUnavailableInstallerProbes(baseUrl, remoteVersion, allowBoundedFa
1509
1125
  const path = noInstallerProbePath(baseUrl);
1510
1126
  try {
1511
1127
  const cached = JSON.parse(_fs.readFileSync.call(void 0, path, "utf-8"));
1512
- if (typeof cached.version === "string" && (!remoteVersion || cached.version === remoteVersion) && typeof cached.checkedAt === "number" && cached.checkedAt <= Date.now() && Date.now() - cached.checkedAt < NEGATIVE_INSTALLER_PROBE_TTL_MS && (_optionalChain([cached, 'access', _102 => _102.probes, 'optionalAccess', _103 => _103.bunx]) === "missing" || _optionalChain([cached, 'access', _104 => _104.probes, 'optionalAccess', _105 => _105.bunx]) === "failed") && (_optionalChain([cached, 'access', _106 => _106.probes, 'optionalAccess', _107 => _107.npx]) === "missing" || _optionalChain([cached, 'access', _108 => _108.probes, 'optionalAccess', _109 => _109.npx]) === "failed") && // A terminal timeout is not evidence that the unbounded child probe
1128
+ if (typeof cached.version === "string" && (!remoteVersion || cached.version === remoteVersion) && typeof cached.checkedAt === "number" && cached.checkedAt <= Date.now() && Date.now() - cached.checkedAt < NEGATIVE_INSTALLER_PROBE_TTL_MS && (_optionalChain([cached, 'access', _74 => _74.probes, 'optionalAccess', _75 => _75.bunx]) === "missing" || _optionalChain([cached, 'access', _76 => _76.probes, 'optionalAccess', _77 => _77.bunx]) === "failed") && (_optionalChain([cached, 'access', _78 => _78.probes, 'optionalAccess', _79 => _79.npx]) === "missing" || _optionalChain([cached, 'access', _80 => _80.probes, 'optionalAccess', _81 => _81.npx]) === "failed") && // A terminal timeout is not evidence that the unbounded child probe
1513
1129
  // will fail. Older caches without probe provenance are ambiguous too.
1514
1130
  (allowBoundedFailures || cached.probeTimeoutMs === null || cached.probes.bunx === "missing" && cached.probes.npx === "missing")) {
1515
1131
  return cached.probes;
1516
1132
  }
1517
- } catch (e25) {
1133
+ } catch (e22) {
1518
1134
  }
1519
1135
  return null;
1520
1136
  }
@@ -1533,14 +1149,14 @@ function rememberUnavailableInstallerProbes(baseUrl, remoteVersion, probes, prob
1533
1149
  }),
1534
1150
  "utf-8"
1535
1151
  );
1536
- } catch (e26) {
1152
+ } catch (e23) {
1537
1153
  }
1538
1154
  }
1539
1155
  }
1540
1156
  function clearUnavailableInstallerProbes(baseUrl) {
1541
1157
  try {
1542
1158
  _fs.unlinkSync.call(void 0, noInstallerProbePath(baseUrl));
1543
- } catch (e27) {
1159
+ } catch (e24) {
1544
1160
  }
1545
1161
  }
1546
1162
  function dueUnknownInstallerProbes(baseUrl, remoteVersion) {
@@ -1563,7 +1179,7 @@ function probeCommand(command, timeoutMs) {
1563
1179
  timeout: timeoutMs
1564
1180
  });
1565
1181
  if (result.status === 0) return "available";
1566
- return _optionalChain([result, 'access', _110 => _110.error, 'optionalAccess', _111 => _111.code]) === "ENOENT" ? "missing" : "failed";
1182
+ return _optionalChain([result, 'access', _82 => _82.error, 'optionalAccess', _83 => _83.code]) === "ENOENT" ? "missing" : "failed";
1567
1183
  }
1568
1184
  function hasCommand(command) {
1569
1185
  return probeCommand(command) === "available";
@@ -1577,10 +1193,10 @@ function temporarySkillsSyncSkipCommand() {
1577
1193
  }
1578
1194
  return "DEEPLINE_SKIP_SKILLS_SYNC=1 deepline <command>";
1579
1195
  }
1580
- function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1581
- return resolveShellSpawn(install.command, install.args, platform2);
1196
+ function resolveSkillsInstallSpawn(install, platform = process.platform) {
1197
+ return resolveShellSpawn(install.command, install.args, platform);
1582
1198
  }
1583
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHS63YBT5js.DEFAULT_SKILL_AGENTS, knownProbes) {
1199
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkZLN2B5YAjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1584
1200
  const commands = [];
1585
1201
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1586
1202
  if (probes.bunx === "available") {
@@ -1722,7 +1338,7 @@ function runLegacySkillsCleanup(agents) {
1722
1338
  }
1723
1339
  }
1724
1340
  function writeSdkSkillsStatusLine(line) {
1725
- const progress = _chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, );
1341
+ const progress = _chunkWPCF7C6Bjs.getActiveCliProgress.call(void 0, );
1726
1342
  if (progress) {
1727
1343
  progress.writeLine(line);
1728
1344
  return;
@@ -1732,11 +1348,11 @@ function writeSdkSkillsStatusLine(line) {
1732
1348
  }
1733
1349
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1734
1350
  if (shouldSkipSkillsSync()) return;
1735
- const usingPluginSkills = _chunkHS63YBT5js.hasActivePluginSkills.call(void 0, );
1351
+ const usingPluginSkills = _chunkZLN2B5YAjs.hasActivePluginSkills.call(void 0, );
1736
1352
  if (usingPluginSkills) {
1737
1353
  return;
1738
1354
  }
1739
- const agents = _chunkHS63YBT5js.resolveAutoSyncSkillAgents.call(void 0, );
1355
+ const agents = _chunkZLN2B5YAjs.resolveAutoSyncSkillAgents.call(void 0, );
1740
1356
  if (options.mode === "detached" && agents.length > 0) {
1741
1357
  flushDeferredSkillsNotices(baseUrl, agents);
1742
1358
  }
@@ -1764,12 +1380,12 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1764
1380
  return;
1765
1381
  }
1766
1382
  try {
1767
- const localVersion = _chunkHS63YBT5js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1383
+ const localVersion = _chunkZLN2B5YAjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1768
1384
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1769
1385
  needsUpdate: options.update.needs_update,
1770
1386
  remoteVersion: options.update.remote.version
1771
1387
  } : null;
1772
- if (!_optionalChain([update, 'optionalAccess', _112 => _112.needsUpdate]) || !update.remoteVersion) {
1388
+ if (!_optionalChain([update, 'optionalAccess', _84 => _84.needsUpdate]) || !update.remoteVersion) {
1773
1389
  return;
1774
1390
  }
1775
1391
  if (agents.length > 0 && hasFailedSkillsSync(baseUrl, update.remoteVersion, agents)) {
@@ -1886,7 +1502,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1886
1502
  update.remoteVersion,
1887
1503
  agents
1888
1504
  );
1889
- void maybeReportAutomaticSkillsSyncFailure({
1505
+ void _chunkQYGYVCRIjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1890
1506
  baseUrl,
1891
1507
  remoteSkillsVersion: update.remoteVersion,
1892
1508
  agents,
@@ -1917,7 +1533,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1917
1533
  notice(
1918
1534
  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.`
1919
1535
  );
1920
- void maybeReportAutomaticSkillsSyncFailure({
1536
+ void _chunkQYGYVCRIjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1921
1537
  baseUrl,
1922
1538
  remoteSkillsVersion: update.remoteVersion,
1923
1539
  agents,
@@ -1930,7 +1546,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1930
1546
  }
1931
1547
  }
1932
1548
  runLegacySkillsCleanup(agents);
1933
- if (!_chunkHS63YBT5js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1549
+ if (!_chunkZLN2B5YAjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1934
1550
  notice(
1935
1551
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1936
1552
  );
@@ -1963,10 +1579,4 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1963
1579
 
1964
1580
 
1965
1581
 
1966
-
1967
-
1968
-
1969
-
1970
-
1971
-
1972
- exports.SDK_COMPATIBILITY_FAST_DEADLINE_MS = SDK_COMPATIBILITY_FAST_DEADLINE_MS; exports.readFreshCleanCompatibility = readFreshCleanCompatibility; exports.readTrustedCleanCompatibility = readTrustedCleanCompatibility; exports.claimUpdateAdvisory = claimUpdateAdvisory; exports.checkSdkCompatibility = checkSdkCompatibility; exports.isCiEnvironment = isCiEnvironment; exports.enforceSdkCompatibilityResponse = enforceSdkCompatibilityResponse; exports.isFailureReportingDisabled = isFailureReportingDisabled; exports.redactFailureText = redactFailureText; exports.sanitizeCommand = sanitizeCommand; exports.failureReportHeaders = failureReportHeaders; exports.resolveSdkCliFailureExitCode = resolveSdkCliFailureExitCode; exports.maybeReportSdkCliFailure = maybeReportSdkCliFailure; exports.SKILLS_NPX_PACKAGE = SKILLS_NPX_PACKAGE; exports.DEFAULT_SDK_SKILL_NAMES = DEFAULT_SDK_SKILL_NAMES; exports.LEGACY_SKILL_NAMES_TO_REMOVE = LEGACY_SKILL_NAMES_TO_REMOVE; exports.skillsSourceUrl = skillsSourceUrl; exports.resolveShellSpawn = resolveShellSpawn; exports.SkillsStateUnavailableError = SkillsStateUnavailableError; exports.acquireSkillsInstallLease = acquireSkillsInstallLease; exports.skillsInstallLeasePath = skillsInstallLeasePath; exports.flushDeferredSkillsSyncNotices = flushDeferredSkillsSyncNotices; exports.SKILLS_AUTO_SYNC_COMMAND = SKILLS_AUTO_SYNC_COMMAND; exports.hasFailedAutomaticSkillsSync = hasFailedAutomaticSkillsSync; exports.clearFailedAutomaticSkillsSync = clearFailedAutomaticSkillsSync; exports.syncSdkSkillsIfNeeded = syncSdkSkillsIfNeeded;
1582
+ exports.SDK_COMPATIBILITY_FAST_DEADLINE_MS = SDK_COMPATIBILITY_FAST_DEADLINE_MS; exports.readFreshCleanCompatibility = readFreshCleanCompatibility; exports.readTrustedCleanCompatibility = readTrustedCleanCompatibility; exports.claimUpdateAdvisory = claimUpdateAdvisory; exports.checkSdkCompatibility = checkSdkCompatibility; exports.isCiEnvironment = isCiEnvironment; exports.enforceSdkCompatibilityResponse = enforceSdkCompatibilityResponse; exports.SKILLS_NPX_PACKAGE = SKILLS_NPX_PACKAGE; exports.DEFAULT_SDK_SKILL_NAMES = DEFAULT_SDK_SKILL_NAMES; exports.LEGACY_SKILL_NAMES_TO_REMOVE = LEGACY_SKILL_NAMES_TO_REMOVE; exports.skillsSourceUrl = skillsSourceUrl; exports.resolveShellSpawn = resolveShellSpawn; exports.SkillsStateUnavailableError = SkillsStateUnavailableError; exports.acquireSkillsInstallLease = acquireSkillsInstallLease; exports.skillsInstallLeasePath = skillsInstallLeasePath; exports.flushDeferredSkillsSyncNotices = flushDeferredSkillsSyncNotices; exports.SKILLS_AUTO_SYNC_COMMAND = SKILLS_AUTO_SYNC_COMMAND; exports.hasFailedAutomaticSkillsSync = hasFailedAutomaticSkillsSync; exports.clearFailedAutomaticSkillsSync = clearFailedAutomaticSkillsSync; exports.syncSdkSkillsIfNeeded = syncSdkSkillsIfNeeded;