@integrity-labs/agt-cli 0.28.343 → 0.28.344

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.
@@ -20,7 +20,7 @@ import {
20
20
  resolveConnectivityProbe,
21
21
  worseConnectivityOutcome,
22
22
  wrapScheduledTaskPrompt
23
- } from "./chunk-7OBFGSQS.js";
23
+ } from "./chunk-7MP37HYR.js";
24
24
  import {
25
25
  parsePsRows
26
26
  } from "./chunk-XWVM4KPK.js";
@@ -6295,6 +6295,18 @@ function buildChannelServerEnv(channelId, config, options) {
6295
6295
  }
6296
6296
  if (peerDisabledMode === "all")
6297
6297
  env["TELEGRAM_PEER_DISABLED"] = "true";
6298
+ const rawAllowedChats = config["allowed_chats"];
6299
+ if (Array.isArray(rawAllowedChats)) {
6300
+ const chats = rawAllowedChats.map((v) => typeof v === "string" || typeof v === "number" ? String(v).trim() : "").filter((v) => v.length > 0);
6301
+ if (chats.length > 0)
6302
+ env["TELEGRAM_ALLOWED_CHATS"] = chats.join(",");
6303
+ }
6304
+ const tgAckReaction = typeof config["ack_reaction"] === "string" ? config["ack_reaction"].trim() : "";
6305
+ if (tgAckReaction)
6306
+ env["TELEGRAM_ACK_REACTION"] = tgAckReaction;
6307
+ const tgSkipReaction = typeof config["skip_reaction"] === "string" ? config["skip_reaction"].trim() : "";
6308
+ if (tgSkipReaction)
6309
+ env["TELEGRAM_SKIP_REACTION"] = tgSkipReaction;
6298
6310
  return env;
6299
6311
  }
6300
6312
  if (channelId === "msteams") {
@@ -7040,7 +7052,7 @@ function requireHost() {
7040
7052
  }
7041
7053
 
7042
7054
  // src/lib/api-client.ts
7043
- var agtCliVersion = true ? "0.28.343" : "dev";
7055
+ var agtCliVersion = true ? "0.28.344" : "dev";
7044
7056
  var lastConfigHash = null;
7045
7057
  function setConfigHash(hash) {
7046
7058
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9489,4 +9501,4 @@ export {
9489
9501
  managerInstallSystemUnitCommand,
9490
9502
  managerUninstallSystemUnitCommand
9491
9503
  };
9492
- //# sourceMappingURL=chunk-GAYSFNTX.js.map
9504
+ //# sourceMappingURL=chunk-AJ23F3MU.js.map