@integrity-labs/agt-cli 0.28.232 → 0.28.233

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.
@@ -17046,6 +17046,36 @@ function parsePeerAgentModeEnv(raw) {
17046
17046
  return "off";
17047
17047
  }
17048
17048
 
17049
+ // src/slack-peer-hint.ts
17050
+ var HINTABLE_REASONS = /* @__PURE__ */ new Set(["mode_off", "chat_not_allowed", "unknown_peer"]);
17051
+ function parseTeamPeerUserIdsEnv(raw) {
17052
+ if (!raw) return /* @__PURE__ */ new Set();
17053
+ return new Set(
17054
+ raw.split(",").map((v) => v.trim()).filter((v) => v.length > 0)
17055
+ );
17056
+ }
17057
+ function reasonGuidance(reason) {
17058
+ switch (reason) {
17059
+ case "mode_off":
17060
+ return "Peer collaboration is off for this agent (peer_agent_mode). Enable it in the Augmented Team console: Agent > Channels > Slack > Advanced > Multi-agent collaboration (set mode to listen/respond and add this channel to the allowed channels), then declare the peer under CHARTER multi_agent.slack_peers.";
17061
+ case "chat_not_allowed":
17062
+ return "Peer collaboration is on but this channel is not in peer_group_ids. Add it in the Augmented Team console: Agent > Channels > Slack > Advanced > Multi-agent collaboration > allowed channels.";
17063
+ case "unknown_peer":
17064
+ return "Peer collaboration is on but this sender is not a declared peer. Declare it under CHARTER multi_agent.slack_peers (Agent > Charter in the Augmented Team console) with the peer agent's code_name and bot_user_id.";
17065
+ default:
17066
+ return "";
17067
+ }
17068
+ }
17069
+ function maybePeerEnablementHint(args) {
17070
+ const { reason, senderUserId, channel, channelHash, teamPeerUserIds, seen, agentCodeName } = args;
17071
+ if (!HINTABLE_REASONS.has(reason)) return null;
17072
+ if (!senderUserId || !teamPeerUserIds.has(senderUserId)) return null;
17073
+ const key2 = `${channel}:${senderUserId}`;
17074
+ if (seen.has(key2)) return null;
17075
+ seen.add(key2);
17076
+ return `slack-channel(${agentCodeName}): [peer-hint] dropped a message from same-team agent ${senderUserId} (reason=${reason}) in channel ${channelHash}. Another Augmented Team managed agent is posting in this channel, but this agent cannot see it. ${reasonGuidance(reason)} This hint is logged once per channel/peer.`;
17077
+ }
17078
+
17049
17079
  // src/cross-team-peer-audit-client.ts
17050
17080
  var REQUEST_TIMEOUT_MS2 = 1e4;
17051
17081
  function createCrossTeamPeerAuditClient(args) {
@@ -17686,6 +17716,10 @@ var SLACK_PEER_CLASSIFIER_CONFIG = {
17686
17716
  peers: parsePeersEnv(process.env.SLACK_PEERS, process.env.SLACK_PEERS_GATE),
17687
17717
  peer_disabled_mode: SLACK_PEER_DISABLED_MODE
17688
17718
  };
17719
+ var SLACK_TEAM_PEER_USER_IDS = parseTeamPeerUserIdsEnv(
17720
+ process.env.SLACK_TEAM_PEER_USER_IDS
17721
+ );
17722
+ var PEER_HINT_SEEN = /* @__PURE__ */ new Set();
17689
17723
  var SLACK_AGENT_DIR = AGENT_CODE_NAME ? join9(homedir4(), ".augmented", AGENT_CODE_NAME) : null;
17690
17724
  var SLACK_MCP_CONFIG_PATH = SLACK_AGENT_DIR ? join9(SLACK_AGENT_DIR, "project", ".mcp.json") : null;
17691
17725
  var liveAllowedUsersCache = null;
@@ -21463,6 +21497,19 @@ async function connectSocketMode() {
21463
21497
  `slack-channel: inbound drop reason=${access.reason}${subtypeSuffix} channel=${channelHash} ts=${redactSlackId(evt.ts)}
21464
21498
  `
21465
21499
  );
21500
+ if (access.reason.startsWith("peer:")) {
21501
+ const hint = maybePeerEnablementHint({
21502
+ reason: access.reason.slice("peer:".length),
21503
+ senderUserId: evt.user,
21504
+ channel: evt.channel ?? "",
21505
+ channelHash,
21506
+ teamPeerUserIds: SLACK_TEAM_PEER_USER_IDS,
21507
+ seen: PEER_HINT_SEEN,
21508
+ agentCodeName: AGENT_CODE_NAME ?? "unknown"
21509
+ });
21510
+ if (hint) process.stderr.write(`${hint}
21511
+ `);
21512
+ }
21466
21513
  if (access.decline !== void 0 && policyBlockReason) {
21467
21514
  await maybeSendSenderPolicyDecline({
21468
21515
  channel: evt.channel,
@@ -36,7 +36,7 @@ import {
36
36
  writeDirectChatSessionState,
37
37
  writeEgressAllowlist,
38
38
  writePersistentClaudeWrapper
39
- } from "./chunk-X4FOPVGZ.js";
39
+ } from "./chunk-LTBALKME.js";
40
40
  import "./chunk-XWVM4KPK.js";
41
41
  export {
42
42
  EGRESS_BASELINE_DOMAINS,
@@ -77,4 +77,4 @@ export {
77
77
  writeEgressAllowlist,
78
78
  writePersistentClaudeWrapper
79
79
  };
80
- //# sourceMappingURL=persistent-session-XYM2DWZU.js.map
80
+ //# sourceMappingURL=persistent-session-BWE63K2J.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-X4FOPVGZ.js";
3
+ } from "./chunk-LTBALKME.js";
4
4
  import "./chunk-XWVM4KPK.js";
5
5
 
6
6
  // src/lib/responsiveness-probe.ts
@@ -303,4 +303,4 @@ export {
303
303
  readAndResetChannelDeflections,
304
304
  readAndResetChannelLaneClassifications
305
305
  };
306
- //# sourceMappingURL=responsiveness-probe-MUPAYTJF.js.map
306
+ //# sourceMappingURL=responsiveness-probe-NV2I7OCG.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.232",
3
+ "version": "0.28.233",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {