@integrity-labs/agt-cli 0.27.31 → 0.27.32

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.
@@ -14244,9 +14244,14 @@ function decideModeForward(evt, policy) {
14244
14244
  return { forward: true };
14245
14245
  }
14246
14246
  }
14247
+ if (policy.mode === "team_only") {
14248
+ if (policy.teamPrincipalSlackUserIds && policy.teamPrincipalSlackUserIds.length > 0 && typeof evt.user === "string" && policy.teamPrincipalSlackUserIds.includes(evt.user)) {
14249
+ return { forward: true };
14250
+ }
14251
+ }
14247
14252
  const label = extractAugmentedSlackLabel(evt);
14248
14253
  if (!label) return { forward: false, reason: "sender_policy" };
14249
- if (policy.mode === "team_agents_only" || policy.mode === "manager_only") {
14254
+ if (policy.mode === "team_agents_only" || policy.mode === "manager_only" || policy.mode === "team_only") {
14250
14255
  if (!policy.teamId || label.teamId !== policy.teamId) {
14251
14256
  return { forward: false, reason: "sender_policy" };
14252
14257
  }
@@ -14269,6 +14274,8 @@ function classifySlackPolicyBlock(evt, policy) {
14269
14274
  switch (policy.mode) {
14270
14275
  case "manager_only":
14271
14276
  return "mode_manager_only";
14277
+ case "team_only":
14278
+ return "mode_team_only";
14272
14279
  case "team_agents_only":
14273
14280
  return "mode_team_agents_only";
14274
14281
  case "agents_only":
@@ -14283,6 +14290,8 @@ function politeDeclineCopy(reason) {
14283
14290
  return "Sorry, I can only respond to people inside our organisation. This conversation appears to be from outside.";
14284
14291
  case "mode_manager_only":
14285
14292
  return "Sorry, I only respond to my manager in this channel.";
14293
+ case "mode_team_only":
14294
+ return "Sorry, I only respond to people on my team in this channel.";
14286
14295
  case "mode_team_agents_only":
14287
14296
  return "Sorry, I only respond to agents on my team in this channel.";
14288
14297
  case "mode_agents_only":
@@ -15662,6 +15671,19 @@ var SLACK_SENDER_POLICY = (() => {
15662
15671
  }
15663
15672
  return { mode: "team_agents_only", teamId: AGT_TEAM_ID, ...internalOnlyFields };
15664
15673
  }
15674
+ if (raw === "team_only") {
15675
+ if (!AGT_TEAM_ID) {
15676
+ throw new Error("SLACK_SENDER_POLICY=team_only requires AGT_TEAM_ID");
15677
+ }
15678
+ const rawIds = process.env.SLACK_SENDER_POLICY_TEAM_PRINCIPAL_IDS ?? "";
15679
+ const teamPrincipalSlackUserIds = rawIds.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
15680
+ return {
15681
+ mode: "team_only",
15682
+ teamId: AGT_TEAM_ID,
15683
+ teamPrincipalSlackUserIds,
15684
+ ...internalOnlyFields
15685
+ };
15686
+ }
15665
15687
  if (raw === "manager_only") {
15666
15688
  const principalSlackUserId = process.env.SLACK_SENDER_POLICY_PRINCIPAL_ID;
15667
15689
  if (!AGT_TEAM_ID) {
@@ -21,8 +21,8 @@ import {
21
21
  stopPersistentSession,
22
22
  takeZombieDetection,
23
23
  writePersistentClaudeWrapper
24
- } from "./chunk-JIETOJQV.js";
25
- import "./chunk-6HFXSNNY.js";
24
+ } from "./chunk-MV4WLCUO.js";
25
+ import "./chunk-NZWPRYJO.js";
26
26
  import "./chunk-XWVM4KPK.js";
27
27
  export {
28
28
  SEND_KEYS_ENTER_DELAY_MS,
@@ -48,4 +48,4 @@ export {
48
48
  takeZombieDetection,
49
49
  writePersistentClaudeWrapper
50
50
  };
51
- //# sourceMappingURL=persistent-session-HSHIZC2Q.js.map
51
+ //# sourceMappingURL=persistent-session-ZJDQHJL3.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-JIETOJQV.js";
4
- import "./chunk-6HFXSNNY.js";
3
+ } from "./chunk-MV4WLCUO.js";
4
+ import "./chunk-NZWPRYJO.js";
5
5
  import "./chunk-XWVM4KPK.js";
6
6
 
7
7
  // src/lib/responsiveness-probe.ts
@@ -30,4 +30,4 @@ export {
30
30
  collectResponsivenessProbes,
31
31
  getResponsivenessIntervalMs
32
32
  };
33
- //# sourceMappingURL=responsiveness-probe-RYKS5TRP.js.map
33
+ //# sourceMappingURL=responsiveness-probe-XQFRB2DB.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.27.31",
3
+ "version": "0.27.32",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {