@integrity-labs/agt-cli 0.27.21 → 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.
- package/dist/bin/agt.js +4 -4
- package/dist/{chunk-HT6EETEL.js → chunk-6HFXSNNY.js} +31 -18
- package/dist/chunk-6HFXSNNY.js.map +1 -0
- package/dist/{chunk-F4NG4EXD.js → chunk-JIETOJQV.js} +2 -2
- package/dist/{chunk-UKZ7SN7K.js → chunk-RM4XYPLD.js} +33 -18
- package/dist/chunk-RM4XYPLD.js.map +1 -0
- package/dist/{claude-pair-runtime-OBAJZDXK.js → claude-pair-runtime-3UHTNKZ4.js} +2 -2
- package/dist/lib/manager-worker.js +8 -8
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +18 -1
- package/dist/{persistent-session-SBSOZG74.js → persistent-session-HSHIZC2Q.js} +3 -3
- package/dist/{responsiveness-probe-DU4IJ2RZ.js → responsiveness-probe-RYKS5TRP.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-HT6EETEL.js.map +0 -1
- package/dist/chunk-UKZ7SN7K.js.map +0 -1
- /package/dist/{chunk-F4NG4EXD.js.map → chunk-JIETOJQV.js.map} +0 -0
- /package/dist/{claude-pair-runtime-OBAJZDXK.js.map → claude-pair-runtime-3UHTNKZ4.js.map} +0 -0
- /package/dist/{persistent-session-SBSOZG74.js.map → persistent-session-HSHIZC2Q.js.map} +0 -0
- /package/dist/{responsiveness-probe-DU4IJ2RZ.js.map → responsiveness-probe-RYKS5TRP.js.map} +0 -0
|
@@ -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-
|
|
25
|
-
import "./chunk-
|
|
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-
|
|
51
|
+
//# sourceMappingURL=persistent-session-HSHIZC2Q.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
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-
|
|
33
|
+
//# sourceMappingURL=responsiveness-probe-RYKS5TRP.js.map
|