@integrity-labs/agt-cli 0.27.16 → 0.27.18

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
@@ -27,7 +27,7 @@ import {
27
27
  success,
28
28
  table,
29
29
  warn
30
- } from "../chunk-6D55CCVZ.js";
30
+ } from "../chunk-CDMAMIVX.js";
31
31
  import {
32
32
  CHANNEL_REGISTRY,
33
33
  DEPLOYMENT_TEMPLATES,
@@ -4643,7 +4643,7 @@ import { execFileSync, execSync } from "child_process";
4643
4643
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4644
4644
  import chalk18 from "chalk";
4645
4645
  import ora16 from "ora";
4646
- var cliVersion = true ? "0.27.16" : "dev";
4646
+ var cliVersion = true ? "0.27.18" : "dev";
4647
4647
  async function fetchLatestVersion() {
4648
4648
  const host2 = getHost();
4649
4649
  if (!host2) return null;
@@ -5175,7 +5175,7 @@ function handleError(err) {
5175
5175
  }
5176
5176
 
5177
5177
  // src/bin/agt.ts
5178
- var cliVersion2 = true ? "0.27.16" : "dev";
5178
+ var cliVersion2 = true ? "0.27.18" : "dev";
5179
5179
  var program = new Command();
5180
5180
  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");
5181
5181
  program.hook("preAction", (thisCommand) => {
@@ -4435,7 +4435,7 @@ The parent passes you in the task description:
4435
4435
  Your job:
4436
4436
 
4437
4437
  1. Do the work the message asks for (Xero pull, research, multi-step skill, etc.). Use whichever tools you need.
4438
- 2. Post the reply yourself via the matching channel tool \u2014 slack.reply for Slack, telegram.reply for Telegram, teams.reply for Microsoft Teams, directchat.reply for Direct Chat. Use the metadata the parent gave you to address the right thread/conversation.
4438
+ 2. Post the reply yourself via the matching channel tool \u2014 slack.reply for Slack, telegram.reply for Telegram, teams.reply for Microsoft Teams, direct_chat.reply for Direct Chat. Use the metadata the parent gave you to address the right thread/conversation.
4439
4439
  3. End. Do not do additional follow-up work; if more is needed, the user will send another message.
4440
4440
 
4441
4441
  Do NOT post intermediate progress updates unless the work spans 5+ minutes \u2014 keep noise low. The parent already sent a single-line acknowledgement before dispatching you.
@@ -4836,6 +4836,20 @@ ${sections}`
4836
4836
  },
4837
4837
  writeChannelCredentials(codeName, channelId, config, options) {
4838
4838
  const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
4839
+ const senderPolicyEnv = (() => {
4840
+ const sp = options?.senderPolicy;
4841
+ if (!sp)
4842
+ return {};
4843
+ return {
4844
+ // Channel-specific var name to match what the consumer MCP reads;
4845
+ // spread below selects the right one per channelId.
4846
+ ...sp.mode === "team_agents_only" && sp.team_id ? { AGT_TEAM_ID: sp.team_id } : {},
4847
+ // sentinel keys consumed by the per-channel spread below
4848
+ _SENDER_POLICY_MODE: sp.mode
4849
+ };
4850
+ })();
4851
+ const senderPolicyMode = senderPolicyEnv["_SENDER_POLICY_MODE"];
4852
+ delete senderPolicyEnv["_SENDER_POLICY_MODE"];
4839
4853
  const agentDir = getAgentDir(codeName);
4840
4854
  mkdirSync4(agentDir, { recursive: true });
4841
4855
  const isPersistent = options?.sessionMode === "persistent";
@@ -4987,7 +5001,14 @@ ${sections}`
4987
5001
  // (ENG-4936) honours PEER_DISABLED with identical
4988
5002
  // semantics. Only emit when non-default so the env block
4989
5003
  // stays clean for the common case.
4990
- ...peerDisabledMode !== "off" ? { PEER_DISABLED: peerDisabledMode } : {}
5004
+ ...peerDisabledMode !== "off" ? { PEER_DISABLED: peerDisabledMode } : {},
5005
+ // ENG-5841: SLACK_SENDER_POLICY drives slack-inbound-filter.ts.
5006
+ // Only emitted when the effective mode is restrictive (default
5007
+ // 'all' is the absence of the env var — same convention the
5008
+ // MCP filter uses on its own end).
5009
+ ...senderPolicyMode ? { SLACK_SENDER_POLICY: senderPolicyMode } : {},
5010
+ ...senderPolicyEnv
5011
+ // AGT_TEAM_ID when team_agents_only
4991
5012
  }
4992
5013
  };
4993
5014
  const provisionMcpPath = join4(agentDir, "provision", ".mcp.json");
@@ -5163,7 +5184,12 @@ ${sections}`
5163
5184
  ...peerTeamIds.length > 0 ? { MSTEAMS_PEER_TEAM_IDS: peerTeamIds.join(",") } : {},
5164
5185
  ...knownPeerBotIds.length > 0 ? { MSTEAMS_KNOWN_PEER_BOT_IDS: knownPeerBotIds.join(",") } : {},
5165
5186
  ...msteamsAgtAuthEnv,
5166
- ...tzEnv
5187
+ ...tzEnv,
5188
+ // ENG-5841: MSTEAMS_SENDER_POLICY drives teams-inbound-filter.ts.
5189
+ // Mirrors the Slack branch above — only emitted when restrictive.
5190
+ ...senderPolicyMode ? { MSTEAMS_SENDER_POLICY: senderPolicyMode } : {},
5191
+ ...senderPolicyEnv
5192
+ // AGT_TEAM_ID when team_agents_only
5167
5193
  };
5168
5194
  if (isPersistent && existsSync5(localTeamsChannel)) {
5169
5195
  mcpServers["msteams"] = {
@@ -6884,4 +6910,4 @@ export {
6884
6910
  managerInstallSystemUnitCommand,
6885
6911
  managerUninstallSystemUnitCommand
6886
6912
  };
6887
- //# sourceMappingURL=chunk-6D55CCVZ.js.map
6913
+ //# sourceMappingURL=chunk-CDMAMIVX.js.map