@integrity-labs/agt-cli 0.27.77 → 0.27.78
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
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
success,
|
|
29
29
|
table,
|
|
30
30
|
warn
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-RCCPYN3U.js";
|
|
32
32
|
import {
|
|
33
33
|
CHANNEL_REGISTRY,
|
|
34
34
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -4930,7 +4930,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4930
4930
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4931
4931
|
import chalk18 from "chalk";
|
|
4932
4932
|
import ora16 from "ora";
|
|
4933
|
-
var cliVersion = true ? "0.27.
|
|
4933
|
+
var cliVersion = true ? "0.27.78" : "dev";
|
|
4934
4934
|
async function fetchLatestVersion() {
|
|
4935
4935
|
const host2 = getHost();
|
|
4936
4936
|
if (!host2) return null;
|
|
@@ -5853,7 +5853,7 @@ function handleError(err) {
|
|
|
5853
5853
|
}
|
|
5854
5854
|
|
|
5855
5855
|
// src/bin/agt.ts
|
|
5856
|
-
var cliVersion2 = true ? "0.27.
|
|
5856
|
+
var cliVersion2 = true ? "0.27.78" : "dev";
|
|
5857
5857
|
var program = new Command();
|
|
5858
5858
|
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");
|
|
5859
5859
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
provisionStopHook,
|
|
17
17
|
requireHost,
|
|
18
18
|
safeWriteJsonAtomic
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-RCCPYN3U.js";
|
|
20
20
|
import {
|
|
21
21
|
getProjectDir as getProjectDir2,
|
|
22
22
|
getReadyTasks,
|
|
@@ -629,6 +629,26 @@ function decideChannelRestart(input) {
|
|
|
629
629
|
return { restart: true, added, removed };
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
+
// src/lib/channel-launch-flags.ts
|
|
633
|
+
var DEV_CHANNEL_SERVER_IDS = ["slack", "telegram", "msteams"];
|
|
634
|
+
function resolveChannelLaunchFlags(channelConfigs, quarantinedChannels) {
|
|
635
|
+
const devChannels = [];
|
|
636
|
+
const pluginChannels = [];
|
|
637
|
+
if (!channelConfigs) return { devChannels, pluginChannels };
|
|
638
|
+
const isChannelEnabled = (id) => {
|
|
639
|
+
if (quarantinedChannels.has(id)) return false;
|
|
640
|
+
const entry = channelConfigs[id];
|
|
641
|
+
return !!entry?.config && (entry.status === "active" || entry.status === "pending");
|
|
642
|
+
};
|
|
643
|
+
for (const id of DEV_CHANNEL_SERVER_IDS) {
|
|
644
|
+
if (isChannelEnabled(id)) devChannels.push(`server:${id}`);
|
|
645
|
+
}
|
|
646
|
+
if (isChannelEnabled("discord")) {
|
|
647
|
+
pluginChannels.push("plugin:discord@claude-plugins-official");
|
|
648
|
+
}
|
|
649
|
+
return { devChannels, pluginChannels };
|
|
650
|
+
}
|
|
651
|
+
|
|
632
652
|
// src/lib/sender-policy-restart-decision.ts
|
|
633
653
|
function decideSenderPolicyRestart(input) {
|
|
634
654
|
const {
|
|
@@ -3648,7 +3668,7 @@ var cachedMaintenanceWindow = null;
|
|
|
3648
3668
|
var lastVersionCheckAt = 0;
|
|
3649
3669
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
3650
3670
|
var lastResponsivenessProbeAt = 0;
|
|
3651
|
-
var agtCliVersion = true ? "0.27.
|
|
3671
|
+
var agtCliVersion = true ? "0.27.78" : "dev";
|
|
3652
3672
|
function resolveBrewPath(execFileSync4) {
|
|
3653
3673
|
try {
|
|
3654
3674
|
const out = execFileSync4("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -7321,25 +7341,11 @@ async function ensurePersistentSession(agent, tasks, boardItems, refreshData) {
|
|
|
7321
7341
|
return typeof tz === "string" && tz.trim() !== "" ? tz.trim() : void 0;
|
|
7322
7342
|
})();
|
|
7323
7343
|
const channelConfigs = refreshData.channel_configs;
|
|
7324
|
-
const
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
if (quarantinedChannels.has(id)) return false;
|
|
7330
|
-
const entry = channelConfigs[id];
|
|
7331
|
-
return !!entry?.config && (entry.status === "active" || entry.status === "pending");
|
|
7332
|
-
};
|
|
7333
|
-
if (isChannelEnabled("slack")) {
|
|
7334
|
-
devChannels.push("server:slack");
|
|
7335
|
-
}
|
|
7336
|
-
if (isChannelEnabled("telegram")) {
|
|
7337
|
-
devChannels.push("server:telegram");
|
|
7338
|
-
}
|
|
7339
|
-
if (isChannelEnabled("discord")) {
|
|
7340
|
-
channels.push("plugin:discord@claude-plugins-official");
|
|
7341
|
-
}
|
|
7342
|
-
}
|
|
7344
|
+
const { devChannels, pluginChannels } = resolveChannelLaunchFlags(
|
|
7345
|
+
channelConfigs,
|
|
7346
|
+
channelQuarantineStore().getQuarantinedKeys(codeName)
|
|
7347
|
+
);
|
|
7348
|
+
const channels = [...pluginChannels];
|
|
7343
7349
|
devChannels.push("server:direct-chat");
|
|
7344
7350
|
let claudeAuthMode;
|
|
7345
7351
|
let anthropicApiKey;
|