@integrity-labs/agt-cli 0.27.76 → 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.
@@ -7488,4 +7488,4 @@ export {
7488
7488
  managerInstallSystemUnitCommand,
7489
7489
  managerUninstallSystemUnitCommand
7490
7490
  };
7491
- //# sourceMappingURL=chunk-NANSSDFG.js.map
7491
+ //# sourceMappingURL=chunk-RCCPYN3U.js.map
@@ -16,7 +16,7 @@ import {
16
16
  provisionStopHook,
17
17
  requireHost,
18
18
  safeWriteJsonAtomic
19
- } from "../chunk-NANSSDFG.js";
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.76" : "dev";
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 channels = [];
7325
- const devChannels = [];
7326
- if (channelConfigs) {
7327
- const quarantinedChannels = channelQuarantineStore().getQuarantinedKeys(codeName);
7328
- const isChannelEnabled = (id) => {
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;