@integrity-labs/agt-cli 0.28.161 → 0.28.163

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-BEUGTZ7Z.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-MTKFDGXO.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.163" : "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.163" : "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-MTKFDGXO.js";
27
27
 
28
28
  // ../../packages/core/dist/integrations/registry.js
29
29
  var INTEGRATION_REGISTRY = [
@@ -184,7 +184,7 @@ var INTEGRATION_REGISTRY = [
184
184
  id: "kajabi",
185
185
  name: "Kajabi",
186
186
  category: "crm",
187
- description: "Run a Kajabi creator business from chat \u2014 read contacts, products, offers, and analytics, manage contact tags & segments, and draft email broadcasts & sequences. Wired as the hosted Kajabi MCP at https://mcp.kajabi.com/mcp.",
187
+ description: "Run a Kajabi creator business from chat: read contacts, products, offers, and analytics, manage contact tags & segments, and draft email broadcasts & sequences.",
188
188
  // Same remote streamable-HTTP MCP + OAuth pattern as Granola/Brand Ninja.
189
189
  // Kajabi's Doorkeeper AS implements the MCP discovery chain (RFC
190
190
  // 9728/8414/7591); auth is OAuth 2.0 authorization-code with PKCE (S256)
@@ -4079,7 +4079,11 @@ function buildOAuthRemoteMcpProxyEntry(definitionId, paths) {
4079
4079
  AGT_REMOTE_MCP_URL: provider.mcpUrl,
4080
4080
  AGT_REMOTE_MCP_TOKEN_FILE: paths.tokenFile,
4081
4081
  AGT_REMOTE_MCP_TOKEN_VAR: envVarForToken(definitionId),
4082
- AGT_REMOTE_MCP_LABEL: definitionId
4082
+ AGT_REMOTE_MCP_LABEL: definitionId,
4083
+ // ENG-6948: cap the agent's exposed surface to the curated allowlist. The
4084
+ // proxy filters tools/list and gates tools/call against this set. Omitted
4085
+ // when the provider has no allowlist, leaving the proxy a pass-through.
4086
+ ...provider.toolAllowlist && provider.toolAllowlist.length > 0 ? { AGT_REMOTE_MCP_TOOL_ALLOWLIST: provider.toolAllowlist.join(",") } : {}
4083
4087
  }
4084
4088
  };
4085
4089
  }
@@ -6456,6 +6460,13 @@ ${sections}`
6456
6460
  telegramEnv.TELEGRAM_DIAGNOSTIC_CHAT_IDS = diagnosticChatIds.join(",");
6457
6461
  }
6458
6462
  }
6463
+ const rawPingChatIds = config["ping_allowed_chat_ids"];
6464
+ if (Array.isArray(rawPingChatIds)) {
6465
+ const pingChatIds = rawPingChatIds.map((v) => typeof v === "string" || typeof v === "number" ? String(v).trim() : "").filter((v) => v.length > 0);
6466
+ if (pingChatIds.length > 0) {
6467
+ telegramEnv.TELEGRAM_PING_ALLOWED_CHAT_IDS = pingChatIds.join(",");
6468
+ }
6469
+ }
6459
6470
  const rawPeerAgentMode = config["peer_agent_mode"];
6460
6471
  if (rawPeerAgentMode === "listen" || rawPeerAgentMode === "respond") {
6461
6472
  telegramEnv.TELEGRAM_PEER_AGENT_MODE = rawPeerAgentMode;
@@ -6523,6 +6534,7 @@ ${sections}`
6523
6534
  const ackReaction = (config["ack_reaction"] ?? "").trim() || void 0;
6524
6535
  const skipReaction = (config["skip_reaction"] ?? "").trim() || void 0;
6525
6536
  const allowedUsers = Array.isArray(config["allowed_users"]) ? config["allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6537
+ 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
6538
  const blockKitDisabled = process.env["SLACK_BLOCK_KIT_DISABLED"] === "true";
6527
6539
  const resolvedAgtHost = process.env["AGT_HOST"]?.trim() || "https://api.augmented.team";
6528
6540
  const blockKitEnv = {
@@ -6642,6 +6654,10 @@ ${sections}`
6642
6654
  // so the host fallback (and the fail-closed /investigate
6643
6655
  // default) still apply to unconfigured agents.
6644
6656
  ...allowedUsers.length > 0 ? { SLACK_ALLOWED_USERS: allowedUsers.join(",") } : {},
6657
+ // ENG-6931: /ping connectivity allowlist (team + manager).
6658
+ // Omitted when empty so the MCP's fail-closed /ping gate keeps
6659
+ // the command disabled for unconfigured agents.
6660
+ ...pingAllowedUsers.length > 0 ? { SLACK_PING_ALLOWED_USERS: pingAllowedUsers.join(",") } : {},
6645
6661
  // ENG-6563 (D16): stamp the verified turn initiator so broker MCPs
6646
6662
  // can forward it when the agent files an approval mid-turn.
6647
6663
  AGT_TURN_INITIATOR_FILE: join4(agentDir, ".current-turn-initiator.json")
@@ -6706,6 +6722,8 @@ ${sections}`
6706
6722
  const slackSkipReactionEnv = slackSkipReaction ? { SLACK_SKIP_REACTION: slackSkipReaction } : {};
6707
6723
  const slackAllowedUsersList = Array.isArray(config["allowed_users"]) ? config["allowed_users"].filter((v) => typeof v === "string" && v.trim().length > 0).map((v) => v.trim()) : [];
6708
6724
  const slackAllowedUsersEnv = slackAllowedUsersList.length > 0 ? { SLACK_ALLOWED_USERS: slackAllowedUsersList.join(",") } : {};
6725
+ 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()) : [];
6726
+ const slackPingAllowedUsersEnv = slackPingAllowedUsersList.length > 0 ? { SLACK_PING_ALLOWED_USERS: slackPingAllowedUsersList.join(",") } : {};
6709
6727
  const oneshotBlockKitDisabled = process.env["SLACK_BLOCK_KIT_DISABLED"] === "true";
6710
6728
  const oneshotResolvedAgtHost = process.env["AGT_HOST"]?.trim() || "https://api.augmented.team";
6711
6729
  const oneshotResolvedAgtApiKey = process.env["AGT_API_KEY"]?.trim();
@@ -6772,6 +6790,7 @@ ${sections}`
6772
6790
  ...slackAckReactionEnv,
6773
6791
  ...slackSkipReactionEnv,
6774
6792
  ...slackAllowedUsersEnv,
6793
+ ...slackPingAllowedUsersEnv,
6775
6794
  ...oneshotBlockKitEnv,
6776
6795
  ...slackPeerEnv,
6777
6796
  ...slackAgtAuthEnv,
@@ -6796,6 +6815,7 @@ ${sections}`
6796
6815
  ...slackAckReactionEnv,
6797
6816
  ...slackSkipReactionEnv,
6798
6817
  ...slackAllowedUsersEnv,
6818
+ ...slackPingAllowedUsersEnv,
6799
6819
  ...oneshotBlockKitEnv,
6800
6820
  ...slackPeerEnv,
6801
6821
  ...slackAgtAuthEnv,
@@ -7928,7 +7948,7 @@ function requireHost() {
7928
7948
  }
7929
7949
 
7930
7950
  // src/lib/api-client.ts
7931
- var agtCliVersion = true ? "0.28.161" : "dev";
7951
+ var agtCliVersion = true ? "0.28.163" : "dev";
7932
7952
  var lastConfigHash = null;
7933
7953
  function setConfigHash(hash) {
7934
7954
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -9233,4 +9253,4 @@ export {
9233
9253
  managerInstallSystemUnitCommand,
9234
9254
  managerUninstallSystemUnitCommand
9235
9255
  };
9236
- //# sourceMappingURL=chunk-TNTG4DNQ.js.map
9256
+ //# sourceMappingURL=chunk-BEUGTZ7Z.js.map