@integrity-labs/agt-cli 0.26.2-eng5706.1 → 0.27.0
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/dist/bin/agt.js +651 -186
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-U3HCB23E.js → chunk-BKLEFKUZ.js} +10 -8
- package/dist/chunk-BKLEFKUZ.js.map +1 -0
- package/dist/{chunk-QSDDP7JN.js → chunk-LJZK5RL3.js} +2 -2
- package/dist/{chunk-LBYU24PW.js → chunk-YWXPSVI5.js} +22 -8
- package/dist/{chunk-LBYU24PW.js.map → chunk-YWXPSVI5.js.map} +1 -1
- package/dist/{claude-pair-runtime-2NNAUBP3.js → claude-pair-runtime-3UQKYKMO.js} +2 -2
- package/dist/lib/manager-worker.js +7 -7
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +168 -0
- package/dist/mcp/slack-channel.js +101 -16
- package/dist/mcp/telegram-channel.js +212 -40
- package/dist/{persistent-session-K4X76LLB.js → persistent-session-SE3E72ET.js} +3 -3
- package/dist/{responsiveness-probe-QBV43SJ7.js → responsiveness-probe-MTMEIXEL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-U3HCB23E.js.map +0 -1
- /package/dist/{chunk-QSDDP7JN.js.map → chunk-LJZK5RL3.js.map} +0 -0
- /package/dist/{claude-pair-runtime-2NNAUBP3.js.map → claude-pair-runtime-3UQKYKMO.js.map} +0 -0
- /package/dist/{persistent-session-K4X76LLB.js.map → persistent-session-SE3E72ET.js.map} +0 -0
- /package/dist/{responsiveness-probe-QBV43SJ7.js.map → responsiveness-probe-MTMEIXEL.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeModelAlias
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BKLEFKUZ.js";
|
|
4
4
|
import {
|
|
5
5
|
reapOrphanChannelMcps
|
|
6
6
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1024,4 +1024,4 @@ export {
|
|
|
1024
1024
|
stopAllSessionsAndWait,
|
|
1025
1025
|
getProjectDir
|
|
1026
1026
|
};
|
|
1027
|
-
//# sourceMappingURL=chunk-
|
|
1027
|
+
//# sourceMappingURL=chunk-LJZK5RL3.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseDeliveryTarget,
|
|
10
10
|
registerFramework,
|
|
11
11
|
wrapScheduledTaskPrompt
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BKLEFKUZ.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/core/dist/integrations/registry.js
|
|
15
15
|
var INTEGRATION_REGISTRY = [
|
|
@@ -5675,6 +5675,18 @@ function buildMcpServers(input) {
|
|
|
5675
5675
|
const mcpUrl = config["mcp_server_url"];
|
|
5676
5676
|
if (!mcpUrl)
|
|
5677
5677
|
continue;
|
|
5678
|
+
const scopePrefix = integration.scope === "team" ? "team" : "agent";
|
|
5679
|
+
const name = `${scopePrefix}-${integration.definition_id.replace(/[^a-z0-9-]/gi, "-").toLowerCase()}`;
|
|
5680
|
+
const preformed = config["mcp_headers"];
|
|
5681
|
+
if (preformed && typeof preformed === "object") {
|
|
5682
|
+
servers.push({
|
|
5683
|
+
type: "url",
|
|
5684
|
+
name,
|
|
5685
|
+
url: mcpUrl,
|
|
5686
|
+
...Object.keys(preformed).length > 0 ? { headers: preformed } : {}
|
|
5687
|
+
});
|
|
5688
|
+
continue;
|
|
5689
|
+
}
|
|
5678
5690
|
const connectedAccountId = integration.credentials["connected_account_id"];
|
|
5679
5691
|
const apiKey = integration.credentials["api_key"];
|
|
5680
5692
|
const headers = {};
|
|
@@ -5684,7 +5696,7 @@ function buildMcpServers(input) {
|
|
|
5684
5696
|
headers["X-Connected-Account-Id"] = String(connectedAccountId);
|
|
5685
5697
|
servers.push({
|
|
5686
5698
|
type: "url",
|
|
5687
|
-
name
|
|
5699
|
+
name,
|
|
5688
5700
|
url: mcpUrl,
|
|
5689
5701
|
...Object.keys(headers).length > 0 ? { headers } : {}
|
|
5690
5702
|
});
|
|
@@ -5963,8 +5975,9 @@ var ApiError = class extends Error {
|
|
|
5963
5975
|
this.name = "ApiError";
|
|
5964
5976
|
}
|
|
5965
5977
|
};
|
|
5966
|
-
async function fetchWithRetry(path, method, body) {
|
|
5967
|
-
const
|
|
5978
|
+
async function fetchWithRetry(path, method, body, extraHeaders) {
|
|
5979
|
+
const baseHeaders = await buildHeaders();
|
|
5980
|
+
const headers = extraHeaders ? { ...baseHeaders, ...extraHeaders } : baseHeaders;
|
|
5968
5981
|
const url = `${requireHost()}${path}`;
|
|
5969
5982
|
const init = {
|
|
5970
5983
|
method,
|
|
@@ -5974,7 +5987,8 @@ async function fetchWithRetry(path, method, body) {
|
|
|
5974
5987
|
const res = await fetch(url, init);
|
|
5975
5988
|
if (res.status === 401) {
|
|
5976
5989
|
invalidateExchange();
|
|
5977
|
-
const
|
|
5990
|
+
const freshBase = await buildHeaders();
|
|
5991
|
+
const freshHeaders = extraHeaders ? { ...freshBase, ...extraHeaders } : freshBase;
|
|
5978
5992
|
return fetch(url, { ...init, headers: freshHeaders });
|
|
5979
5993
|
}
|
|
5980
5994
|
return res;
|
|
@@ -5991,8 +6005,8 @@ var api = {
|
|
|
5991
6005
|
const res = await fetchWithRetry(path, "GET");
|
|
5992
6006
|
return handleResponse(res);
|
|
5993
6007
|
},
|
|
5994
|
-
async post(path, body) {
|
|
5995
|
-
const res = await fetchWithRetry(path, "POST", body);
|
|
6008
|
+
async post(path, body, extraHeaders) {
|
|
6009
|
+
const res = await fetchWithRetry(path, "POST", body, extraHeaders);
|
|
5996
6010
|
return handleResponse(res);
|
|
5997
6011
|
},
|
|
5998
6012
|
async patch(path, body) {
|
|
@@ -6680,4 +6694,4 @@ export {
|
|
|
6680
6694
|
managerInstallSystemUnitCommand,
|
|
6681
6695
|
managerUninstallSystemUnitCommand
|
|
6682
6696
|
};
|
|
6683
|
-
//# sourceMappingURL=chunk-
|
|
6697
|
+
//# sourceMappingURL=chunk-YWXPSVI5.js.map
|