@daghis/teamcity-mcp 1.10.5 → 1.10.6

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.
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "1.10.5"
2
+ ".": "1.10.6"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.10.6](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v1.10.5...teamcity-mcp-v1.10.6) (2025-10-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **runtime:** replace double assertions in client tooling ([#233](https://github.com/Daghis/teamcity-mcp/issues/233)) ([08b19da](https://github.com/Daghis/teamcity-mcp/commit/08b19da78e09b03fd79c50121c4d607c715ec46a))
9
+
3
10
  ## [1.10.5](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v1.10.4...teamcity-mcp-v1.10.5) (2025-10-04)
4
11
 
5
12
 
package/dist/index.js CHANGED
@@ -37791,6 +37791,12 @@ var Configuration = class {
37791
37791
  };
37792
37792
 
37793
37793
  // src/api-client.ts
37794
+ var extractRetryAfterMilliseconds = (value) => {
37795
+ if (typeof value === "object" && value !== null && typeof value.retryAfter === "number") {
37796
+ return value.retryAfter * 1e3;
37797
+ }
37798
+ return void 0;
37799
+ };
37794
37800
  var TeamCityAPI = class _TeamCityAPI {
37795
37801
  static instance;
37796
37802
  static instanceConfig;
@@ -37857,7 +37863,7 @@ var TeamCityAPI = class _TeamCityAPI {
37857
37863
  retryDelay: (retryCount, error2) => {
37858
37864
  const reqId = error2?.config?.requestId;
37859
37865
  const tcError = TeamCityAPIError.fromAxiosError(error2, reqId);
37860
- const retryAfter2 = typeof tcError.retryAfter === "number" ? tcError.retryAfter * 1e3 : void 0;
37866
+ const retryAfter2 = extractRetryAfterMilliseconds(tcError);
37861
37867
  return retryAfter2 ?? Math.min(1e3 * Math.pow(2, Math.max(0, retryCount - 1)), 8e3);
37862
37868
  },
37863
37869
  retryCondition: (error2) => {
@@ -38709,13 +38715,10 @@ var DEV_TOOLS = [
38709
38715
  const xml = `<?xml version="1.0" encoding="UTF-8"?><build><buildType id="${escapeXml(
38710
38716
  typed.buildTypeId
38711
38717
  )}"/>${branchPart}${commentPart}${propertiesPart}</build>`;
38712
- const response = await adapter.modules.buildQueue.addBuildToQueue(
38713
- false,
38714
- xml,
38715
- {
38716
- headers: { "Content-Type": "application/xml", Accept: "application/json" }
38717
- }
38718
- );
38718
+ const response = await adapter.http.post("/app/rest/buildQueue", xml, {
38719
+ headers: { "Content-Type": "application/xml", Accept: "application/json" },
38720
+ params: { moveToTop: false }
38721
+ });
38719
38722
  const build = response.data;
38720
38723
  return json({
38721
38724
  success: true,