@integrity-labs/agt-cli 0.28.618 → 0.28.620
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 +3 -3
- package/dist/{chunk-CKCXOIN3.js → chunk-5ZJFTTGB.js} +37 -2
- package/dist/chunk-5ZJFTTGB.js.map +1 -0
- package/dist/lib/manager-worker.js +64 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/remote-oauth-proxy.js +21 -0
- package/dist/mcp/slack-channel.js +30 -6
- package/package.json +1 -1
- package/dist/chunk-CKCXOIN3.js.map +0 -1
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-5ZJFTTGB.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
46
|
} from "../chunk-RXC3MTSN.js";
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.620" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.620" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -1392,6 +1392,31 @@ function assertValidCodeName(codeName) {
|
|
|
1392
1392
|
throw new Error(`Invalid agent code_name: "${codeName}". Must be kebab-case.`);
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
+
function buildSlackThirdPartyBotsEnvValue(raw) {
|
|
1396
|
+
if (!Array.isArray(raw) || raw.length === 0)
|
|
1397
|
+
return void 0;
|
|
1398
|
+
const entries = [];
|
|
1399
|
+
for (const item of raw) {
|
|
1400
|
+
if (!item || typeof item !== "object")
|
|
1401
|
+
continue;
|
|
1402
|
+
const rec = item;
|
|
1403
|
+
const botUserId = typeof rec["bot_user_id"] === "string" ? rec["bot_user_id"].trim() : "";
|
|
1404
|
+
if (!botUserId)
|
|
1405
|
+
continue;
|
|
1406
|
+
if (!Array.isArray(rec["channel_ids"]))
|
|
1407
|
+
continue;
|
|
1408
|
+
const channelIds = rec["channel_ids"].filter((c) => typeof c === "string" && c.trim() !== "").map((c) => c.trim());
|
|
1409
|
+
const botId = typeof rec["bot_id"] === "string" && rec["bot_id"].trim() ? rec["bot_id"].trim() : void 0;
|
|
1410
|
+
const label = typeof rec["label"] === "string" && rec["label"].trim() ? rec["label"].trim() : void 0;
|
|
1411
|
+
entries.push({
|
|
1412
|
+
bot_user_id: botUserId,
|
|
1413
|
+
channel_ids: channelIds,
|
|
1414
|
+
...botId ? { bot_id: botId } : {},
|
|
1415
|
+
...label ? { label } : {}
|
|
1416
|
+
});
|
|
1417
|
+
}
|
|
1418
|
+
return entries.length > 0 ? JSON.stringify(entries) : void 0;
|
|
1419
|
+
}
|
|
1395
1420
|
function assertSafeRelativePath(relativePath) {
|
|
1396
1421
|
if (relativePath.includes("..") || relativePath.startsWith("/") || relativePath.includes("\0")) {
|
|
1397
1422
|
throw new Error(`Unsafe relative path: ${relativePath}`);
|
|
@@ -4744,6 +4769,11 @@ ${sections}`
|
|
|
4744
4769
|
slackPeerEnv.SLACK_PEERS_GATE = JSON.stringify(Object.fromEntries(gateEntries));
|
|
4745
4770
|
}
|
|
4746
4771
|
}
|
|
4772
|
+
{
|
|
4773
|
+
const thirdPartyBots = buildSlackThirdPartyBotsEnvValue(config["third_party_bots"]);
|
|
4774
|
+
if (thirdPartyBots)
|
|
4775
|
+
slackPeerEnv.SLACK_THIRD_PARTY_BOTS = thirdPartyBots;
|
|
4776
|
+
}
|
|
4747
4777
|
if (options?.slackTeamPeerUserIds && options.slackTeamPeerUserIds.length > 0) {
|
|
4748
4778
|
slackPeerEnv.SLACK_TEAM_PEER_USER_IDS = options.slackTeamPeerUserIds.join(",");
|
|
4749
4779
|
}
|
|
@@ -4948,6 +4978,11 @@ ${sections}`
|
|
|
4948
4978
|
slackPeerEnv.SLACK_PEERS_GATE = JSON.stringify(Object.fromEntries(gateEntries));
|
|
4949
4979
|
}
|
|
4950
4980
|
}
|
|
4981
|
+
{
|
|
4982
|
+
const thirdPartyBots = buildSlackThirdPartyBotsEnvValue(config["third_party_bots"]);
|
|
4983
|
+
if (thirdPartyBots)
|
|
4984
|
+
slackPeerEnv.SLACK_THIRD_PARTY_BOTS = thirdPartyBots;
|
|
4985
|
+
}
|
|
4951
4986
|
if (options?.slackTeamPeerUserIds && options.slackTeamPeerUserIds.length > 0) {
|
|
4952
4987
|
slackPeerEnv.SLACK_TEAM_PEER_USER_IDS = options.slackTeamPeerUserIds.join(",");
|
|
4953
4988
|
}
|
|
@@ -6030,7 +6065,7 @@ function exchangeFailureKind(err) {
|
|
|
6030
6065
|
}
|
|
6031
6066
|
|
|
6032
6067
|
// src/lib/api-client.ts
|
|
6033
|
-
var agtCliVersion = true ? "0.28.
|
|
6068
|
+
var agtCliVersion = true ? "0.28.620" : "dev";
|
|
6034
6069
|
var lastConfigHash = null;
|
|
6035
6070
|
function setConfigHash(hash) {
|
|
6036
6071
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9523,4 +9558,4 @@ export {
|
|
|
9523
9558
|
managerInstallSystemUnitCommand,
|
|
9524
9559
|
managerUninstallSystemUnitCommand
|
|
9525
9560
|
};
|
|
9526
|
-
//# sourceMappingURL=chunk-
|
|
9561
|
+
//# sourceMappingURL=chunk-5ZJFTTGB.js.map
|