@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.
@@ -15,7 +15,7 @@ import {
15
15
  parseEnvFileEntries,
16
16
  parseEnvIntegrations,
17
17
  shellQuote
18
- } from "./chunk-MHDNKKEO.js";
18
+ } from "./chunk-YPS4AUHN.js";
19
19
  import {
20
20
  BIND_FAILURE_QUARANTINE_THRESHOLD,
21
21
  INTEGRATIONS_SECTION_END,
@@ -77,7 +77,7 @@ import {
77
77
  sessionTranscriptDir,
78
78
  worseConnectivityOutcome,
79
79
  wrapScheduledTaskPrompt
80
- } from "./chunk-RJ3SI5JG.js";
80
+ } from "./chunk-B7XGAC54.js";
81
81
  import {
82
82
  classifyUnanswerablePane,
83
83
  summarizeUnanswerablePane
@@ -5507,8 +5507,10 @@ ${sections}`
5507
5507
  const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" || options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_id : void 0;
5508
5508
  const slackPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.slack_user_id : void 0;
5509
5509
  const teamsPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.teams_aad_object_id : void 0;
5510
+ const telegramPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.telegram_chat_id : void 0;
5510
5511
  const slackTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.slack_user_ids?.join(",") : void 0;
5511
5512
  const teamsTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.teams_aad_object_ids?.join(",") : void 0;
5513
+ const telegramTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.telegram_chat_ids?.join(",") : void 0;
5512
5514
  const senderPolicyInternalOnly = options?.senderPolicy?.internal_only === true;
5513
5515
  const senderPolicyEnv = senderPolicyTeamId ? { AGT_TEAM_ID: senderPolicyTeamId } : {};
5514
5516
  const agentDir = getAgentDir(codeName);
@@ -5546,6 +5548,18 @@ ${sections}`
5546
5548
  if (allowedChats && allowedChats.length > 0) {
5547
5549
  telegramEnv.TELEGRAM_ALLOWED_CHATS = allowedChats.join(",");
5548
5550
  }
5551
+ if (senderPolicyMode) {
5552
+ telegramEnv.TELEGRAM_SENDER_POLICY = senderPolicyMode;
5553
+ }
5554
+ for (const [policyKey, policyValue] of Object.entries(senderPolicyEnv)) {
5555
+ telegramEnv[policyKey] = policyValue;
5556
+ }
5557
+ if (telegramPrincipalId) {
5558
+ telegramEnv.TELEGRAM_SENDER_POLICY_PRINCIPAL_ID = telegramPrincipalId;
5559
+ }
5560
+ if (telegramTeamPrincipalIds) {
5561
+ telegramEnv.TELEGRAM_SENDER_POLICY_TEAM_PRINCIPAL_IDS = telegramTeamPrincipalIds;
5562
+ }
5549
5563
  const telegramAckReaction = config["ack_reaction"];
5550
5564
  if (typeof telegramAckReaction === "string" && telegramAckReaction.trim().length > 0) {
5551
5565
  telegramEnv.TELEGRAM_ACK_REACTION = telegramAckReaction.trim();
@@ -6993,7 +7007,7 @@ function exchangeFailureKind(err) {
6993
7007
  }
6994
7008
 
6995
7009
  // src/lib/api-client.ts
6996
- var agtCliVersion = true ? "0.28.1015" : "dev";
7010
+ var agtCliVersion = true ? "0.28.1016" : "dev";
6997
7011
  var lastConfigHash = null;
6998
7012
  function setConfigHash(hash) {
6999
7013
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -11775,4 +11789,4 @@ export {
11775
11789
  managerInstallSystemUnitCommand,
11776
11790
  managerUninstallSystemUnitCommand
11777
11791
  };
11778
- //# sourceMappingURL=chunk-GHHDFHKE.js.map
11792
+ //# sourceMappingURL=chunk-DFKQZGM7.js.map