@daghis/teamcity-mcp 1.10.4 → 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.
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/index.js +13 -10
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
10
|
+
## [1.10.5](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v1.10.4...teamcity-mcp-v1.10.5) (2025-10-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **teamcity:** set dependency types when adding via tool ([#231](https://github.com/Daghis/teamcity-mcp/issues/231)) ([702764a](https://github.com/Daghis/teamcity-mcp/commit/702764a19de0a649e394d5b4679dc8ea6373dcf2))
|
|
16
|
+
|
|
3
17
|
## [1.10.4](https://github.com/Daghis/teamcity-mcp/compare/teamcity-mcp-v1.10.3...teamcity-mcp-v1.10.4) (2025-10-04)
|
|
4
18
|
|
|
5
19
|
|
package/dist/index.js
CHANGED
|
@@ -2329,9 +2329,9 @@ var JSON_GET_HEADERS2 = {
|
|
|
2329
2329
|
var defaultTypeFor = (dependencyType) => {
|
|
2330
2330
|
switch (dependencyType) {
|
|
2331
2331
|
case "artifact":
|
|
2332
|
-
return
|
|
2332
|
+
return "artifactDependency";
|
|
2333
2333
|
case "snapshot":
|
|
2334
|
-
return
|
|
2334
|
+
return "snapshotDependency";
|
|
2335
2335
|
default:
|
|
2336
2336
|
return void 0;
|
|
2337
2337
|
}
|
|
@@ -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 =
|
|
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.
|
|
38713
|
-
|
|
38714
|
-
|
|
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,
|