@integrity-labs/agt-cli 0.28.1015 → 0.28.1016

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.
@@ -23,7 +23,7 @@ import {
23
23
  rotateDailySession,
24
24
  sessionFileExists,
25
25
  todayLocalIso
26
- } from "./chunk-RJ3SI5JG.js";
26
+ } from "./chunk-B7XGAC54.js";
27
27
  import {
28
28
  classifyUnanswerablePane,
29
29
  findUsageLimitResetHint,
@@ -710,6 +710,14 @@ function buildChannelServerEnv(channelId, config, options) {
710
710
  if (chats.length > 0)
711
711
  env["TELEGRAM_ALLOWED_CHATS"] = chats.join(",");
712
712
  }
713
+ if (mode)
714
+ env["TELEGRAM_SENDER_POLICY"] = mode;
715
+ if (mode === "manager_only" && options?.senderPolicy?.principal?.telegram_chat_id) {
716
+ env["TELEGRAM_SENDER_POLICY_PRINCIPAL_ID"] = options.senderPolicy.principal.telegram_chat_id;
717
+ }
718
+ if (mode === "team_only" && options?.senderPolicy?.team_principals?.telegram_chat_ids?.length) {
719
+ env["TELEGRAM_SENDER_POLICY_TEAM_PRINCIPAL_IDS"] = options.senderPolicy.team_principals.telegram_chat_ids.join(",");
720
+ }
713
721
  if (config["private_chats_only"] === true) {
714
722
  env["TELEGRAM_PRIVATE_CHATS_ONLY"] = "1";
715
723
  }
@@ -5884,4 +5892,4 @@ export {
5884
5892
  stopAllSessionsAndWait,
5885
5893
  getProjectDir
5886
5894
  };
5887
- //# sourceMappingURL=chunk-MHDNKKEO.js.map
5895
+ //# sourceMappingURL=chunk-YPS4AUHN.js.map