@integrity-labs/agt-cli 0.27.22 → 0.27.23

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.
@@ -14239,9 +14239,14 @@ function extractAugmentedSlackLabel(evt) {
14239
14239
  }
14240
14240
  function decideSenderPolicyForward(evt, policy) {
14241
14241
  if (policy.mode === "all") return { forward: true };
14242
+ if (policy.mode === "manager_only") {
14243
+ if (policy.principalSlackUserId && evt.user === policy.principalSlackUserId) {
14244
+ return { forward: true };
14245
+ }
14246
+ }
14242
14247
  const label = extractAugmentedSlackLabel(evt);
14243
14248
  if (!label) return { forward: false, reason: "sender_policy" };
14244
- if (policy.mode === "team_agents_only") {
14249
+ if (policy.mode === "team_agents_only" || policy.mode === "manager_only") {
14245
14250
  if (!policy.teamId || label.teamId !== policy.teamId) {
14246
14251
  return { forward: false, reason: "sender_policy" };
14247
14252
  }
@@ -15523,6 +15528,18 @@ var SLACK_SENDER_POLICY = (() => {
15523
15528
  }
15524
15529
  return { mode: "team_agents_only", teamId: AGT_TEAM_ID };
15525
15530
  }
15531
+ if (raw === "manager_only") {
15532
+ const principalSlackUserId = process.env.SLACK_SENDER_POLICY_PRINCIPAL_ID;
15533
+ if (!AGT_TEAM_ID) {
15534
+ throw new Error("SLACK_SENDER_POLICY=manager_only requires AGT_TEAM_ID");
15535
+ }
15536
+ if (!principalSlackUserId) {
15537
+ throw new Error(
15538
+ "SLACK_SENDER_POLICY=manager_only requires SLACK_SENDER_POLICY_PRINCIPAL_ID. Set agent.reports_to_person with a slack_user_id in contact_preferences and re-run /host/refresh."
15539
+ );
15540
+ }
15541
+ return { mode: "manager_only", teamId: AGT_TEAM_ID, principalSlackUserId };
15542
+ }
15526
15543
  throw new Error(`Invalid SLACK_SENDER_POLICY=${JSON.stringify(process.env.SLACK_SENDER_POLICY)}`);
15527
15544
  })();
15528
15545
  var BLOCK_KIT_ENABLED = process.env.SLACK_BLOCK_KIT_ENABLED === "true";
@@ -21,8 +21,8 @@ import {
21
21
  stopPersistentSession,
22
22
  takeZombieDetection,
23
23
  writePersistentClaudeWrapper
24
- } from "./chunk-F4NG4EXD.js";
25
- import "./chunk-HT6EETEL.js";
24
+ } from "./chunk-JIETOJQV.js";
25
+ import "./chunk-6HFXSNNY.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-SBSOZG74.js.map
51
+ //# sourceMappingURL=persistent-session-HSHIZC2Q.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-F4NG4EXD.js";
4
- import "./chunk-HT6EETEL.js";
3
+ } from "./chunk-JIETOJQV.js";
4
+ import "./chunk-6HFXSNNY.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-DU4IJ2RZ.js.map
33
+ //# sourceMappingURL=responsiveness-probe-RYKS5TRP.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.27.22",
3
+ "version": "0.27.23",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {