@integrity-labs/agt-cli 0.28.161 → 0.28.162

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-TNTG4DNQ.js";
40
+ } from "../chunk-G6NDQYBC.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEFAULT_FRAMEWORK,
@@ -65,7 +65,7 @@ import {
65
65
  renderTemplate,
66
66
  resolveChannels,
67
67
  serializeManifestForSlackCli
68
- } from "../chunk-CQZDKD2U.js";
68
+ } from "../chunk-U6HS4U7L.js";
69
69
 
70
70
  // src/bin/agt.ts
71
71
  import { join as join22 } from "path";
@@ -4778,7 +4778,7 @@ import { execFileSync, execSync } from "child_process";
4778
4778
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4779
4779
  import chalk18 from "chalk";
4780
4780
  import ora16 from "ora";
4781
- var cliVersion = true ? "0.28.161" : "dev";
4781
+ var cliVersion = true ? "0.28.162" : "dev";
4782
4782
  async function fetchLatestVersion() {
4783
4783
  const host2 = getHost();
4784
4784
  if (!host2) return null;
@@ -5792,7 +5792,7 @@ function handleError(err) {
5792
5792
  }
5793
5793
 
5794
5794
  // src/bin/agt.ts
5795
- var cliVersion2 = true ? "0.28.161" : "dev";
5795
+ var cliVersion2 = true ? "0.28.162" : "dev";
5796
5796
  var program = new Command();
5797
5797
  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");
5798
5798
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -23,7 +23,7 @@ import {
23
23
  resolveConnectivityProbe,
24
24
  worseConnectivityOutcome,
25
25
  wrapScheduledTaskPrompt
26
- } from "./chunk-CQZDKD2U.js";
26
+ } from "./chunk-U6HS4U7L.js";
27
27
 
28
28
  // ../../packages/core/dist/integrations/registry.js
29
29
  var INTEGRATION_REGISTRY = [
@@ -6456,6 +6456,13 @@ ${sections}`
6456
6456
  telegramEnv.TELEGRAM_DIAGNOSTIC_CHAT_IDS = diagnosticChatIds.join(",");
6457
6457
  }
6458
6458
  }
6459
+ const rawPingChatIds = config["ping_allowed_chat_ids"];
6460
+ if (Array.isArray(rawPingChatIds)) {
6461
+ const pingChatIds = rawPingChatIds.map((v) => typeof v === "string" || typeof v === "number" ? String(v).trim() : "").filter((v) => v.length > 0);
6462
+ if (pingChatIds.length > 0) {
6463
+ telegramEnv.TELEGRAM_PING_ALLOWED_CHAT_IDS = pingChatIds.join(",");
6464
+ }
6465
+ }
6459
6466
  const rawPeerAgentMode = config["peer_agent_mode"];
6460
6467
  if (rawPeerAgentMode === "listen" || rawPeerAgentMode === "respond") {
6461
6468
  telegramEnv.TELEGRAM_PEER_AGENT_MODE = rawPeerAgentMode;
@@ -6523,6 +6530,7 @@ ${sections}`
6523
6530
  const ackReaction = (config["ack_reaction"] ?? "").trim() || void 0;
6524
6531
  const skipReaction = (config["skip_reaction"] ?? "").trim() || void 0;
6525
6532
  const allowedUsers = Array.isArray(config["allowed_users"]) ? config["allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6533
+ const pingAllowedUsers = Array.isArray(config["ping_allowed_users"]) ? config["ping_allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6526
6534
  const blockKitDisabled = process.env["SLACK_BLOCK_KIT_DISABLED"] === "true";
6527
6535
  const resolvedAgtHost = process.env["AGT_HOST"]?.trim() || "https://api.augmented.team";
6528
6536
  const blockKitEnv = {
@@ -6642,6 +6650,10 @@ ${sections}`
6642
6650
  // so the host fallback (and the fail-closed /investigate
6643
6651
  // default) still apply to unconfigured agents.
6644
6652
  ...allowedUsers.length > 0 ? { SLACK_ALLOWED_USERS: allowedUsers.join(",") } : {},
6653
+ // ENG-6931: /ping connectivity allowlist (team + manager).
6654
+ // Omitted when empty so the MCP's fail-closed /ping gate keeps
6655
+ // the command disabled for unconfigured agents.
6656
+ ...pingAllowedUsers.length > 0 ? { SLACK_PING_ALLOWED_USERS: pingAllowedUsers.join(",") } : {},
6645
6657
  // ENG-6563 (D16): stamp the verified turn initiator so broker MCPs
6646
6658
  // can forward it when the agent files an approval mid-turn.
6647
6659
  AGT_TURN_INITIATOR_FILE: join4(agentDir, ".current-turn-initiator.json")
@@ -6706,6 +6718,8 @@ ${sections}`
6706
6718
  const slackSkipReactionEnv = slackSkipReaction ? { SLACK_SKIP_REACTION: slackSkipReaction } : {};
6707
6719
  const slackAllowedUsersList = Array.isArray(config["allowed_users"]) ? config["allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6708
6720
  const slackAllowedUsersEnv = slackAllowedUsersList.length > 0 ? { SLACK_ALLOWED_USERS: slackAllowedUsersList.join(",") } : {};
6721
+ const slackPingAllowedUsersList = Array.isArray(config["ping_allowed_users"]) ? config["ping_allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6722
+ const slackPingAllowedUsersEnv = slackPingAllowedUsersList.length > 0 ? { SLACK_PING_ALLOWED_USERS: slackPingAllowedUsersList.join(",") } : {};
6709
6723
  const oneshotBlockKitDisabled = process.env["SLACK_BLOCK_KIT_DISABLED"] === "true";
6710
6724
  const oneshotResolvedAgtHost = process.env["AGT_HOST"]?.trim() || "https://api.augmented.team";
6711
6725
  const oneshotResolvedAgtApiKey = process.env["AGT_API_KEY"]?.trim();
@@ -6772,6 +6786,7 @@ ${sections}`
6772
6786
  ...slackAckReactionEnv,
6773
6787
  ...slackSkipReactionEnv,
6774
6788
  ...slackAllowedUsersEnv,
6789
+ ...slackPingAllowedUsersEnv,
6775
6790
  ...oneshotBlockKitEnv,
6776
6791
  ...slackPeerEnv,
6777
6792
  ...slackAgtAuthEnv,
@@ -6796,6 +6811,7 @@ ${sections}`
6796
6811
  ...slackAckReactionEnv,
6797
6812
  ...slackSkipReactionEnv,
6798
6813
  ...slackAllowedUsersEnv,
6814
+ ...slackPingAllowedUsersEnv,
6799
6815
  ...oneshotBlockKitEnv,
6800
6816
  ...slackPeerEnv,
6801
6817
  ...slackAgtAuthEnv,
@@ -7928,7 +7944,7 @@ function requireHost() {
7928
7944
  }
7929
7945
 
7930
7946
  // src/lib/api-client.ts
7931
- var agtCliVersion = true ? "0.28.161" : "dev";
7947
+ var agtCliVersion = true ? "0.28.162" : "dev";
7932
7948
  var lastConfigHash = null;
7933
7949
  function setConfigHash(hash) {
7934
7950
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9233,4 +9249,4 @@ export {
9233
9249
  managerInstallSystemUnitCommand,
9234
9250
  managerUninstallSystemUnitCommand
9235
9251
  };
9236
- //# sourceMappingURL=chunk-TNTG4DNQ.js.map
9252
+ //# sourceMappingURL=chunk-G6NDQYBC.js.map