@integrity-labs/agt-cli 0.28.343 → 0.28.345

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
@@ -40,7 +40,7 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-GAYSFNTX.js";
43
+ } from "../chunk-GJ5TGARW.js";
44
44
  import {
45
45
  AnchorSessionClient,
46
46
  CHANNEL_REGISTRY,
@@ -70,7 +70,7 @@ import {
70
70
  renderTemplate,
71
71
  resolveChannels,
72
72
  serializeManifestForSlackCli
73
- } from "../chunk-7OBFGSQS.js";
73
+ } from "../chunk-O5IINJDB.js";
74
74
  import "../chunk-XWVM4KPK.js";
75
75
 
76
76
  // src/bin/agt.ts
@@ -4829,7 +4829,7 @@ import { execFileSync, execSync } from "child_process";
4829
4829
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4830
4830
  import chalk18 from "chalk";
4831
4831
  import ora16 from "ora";
4832
- var cliVersion = true ? "0.28.343" : "dev";
4832
+ var cliVersion = true ? "0.28.345" : "dev";
4833
4833
  async function fetchLatestVersion() {
4834
4834
  const host2 = getHost();
4835
4835
  if (!host2) return null;
@@ -6001,7 +6001,7 @@ function handleError(err) {
6001
6001
  }
6002
6002
 
6003
6003
  // src/bin/agt.ts
6004
- var cliVersion2 = true ? "0.28.343" : "dev";
6004
+ var cliVersion2 = true ? "0.28.345" : "dev";
6005
6005
  var program = new Command();
6006
6006
  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");
6007
6007
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -20,7 +20,7 @@ import {
20
20
  resolveConnectivityProbe,
21
21
  worseConnectivityOutcome,
22
22
  wrapScheduledTaskPrompt
23
- } from "./chunk-7OBFGSQS.js";
23
+ } from "./chunk-O5IINJDB.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.345" : "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-GJ5TGARW.js.map