@integrity-labs/agt-cli 0.28.917 → 0.28.919
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 +3 -3
- package/dist/{chunk-YDFEK6C6.js → chunk-DUPUJAZE.js} +17 -4
- package/dist/chunk-DUPUJAZE.js.map +1 -0
- package/dist/lib/manager-worker.js +8 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/index.js +88 -0
- package/dist/mcp/slack-channel.js +32 -4
- package/dist/mcp/teams-channel.js +6 -1
- package/dist/mcp/telegram-channel.js +2 -0
- package/package.json +1 -1
- package/dist/chunk-YDFEK6C6.js.map +0 -1
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
safeWriteJsonAtomic,
|
|
64
64
|
setConfigHash,
|
|
65
65
|
tripClass
|
|
66
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-DUPUJAZE.js";
|
|
67
67
|
import {
|
|
68
68
|
getProjectDir as getProjectDir2,
|
|
69
69
|
getReadyTasks,
|
|
@@ -9909,6 +9909,9 @@ function parsePeerAgentModeEnv(raw) {
|
|
|
9909
9909
|
}
|
|
9910
9910
|
|
|
9911
9911
|
// ../../packages/core/dist/channels/governance/sender-policy-decline.js
|
|
9912
|
+
function teamOnlyReason(allowlist) {
|
|
9913
|
+
return allowlist && allowlist.length > 0 ? "mode_team_only" : "mode_team_only_no_principals";
|
|
9914
|
+
}
|
|
9912
9915
|
function classifySlackPolicyBlock(evt, policy) {
|
|
9913
9916
|
if (policy.internalOnly && (!policy.homeTeamId || evt.team !== policy.homeTeamId)) {
|
|
9914
9917
|
return "internal_only";
|
|
@@ -9917,7 +9920,7 @@ function classifySlackPolicyBlock(evt, policy) {
|
|
|
9917
9920
|
case "manager_only":
|
|
9918
9921
|
return "mode_manager_only";
|
|
9919
9922
|
case "team_only":
|
|
9920
|
-
return
|
|
9923
|
+
return teamOnlyReason(policy.teamPrincipalSlackUserIds);
|
|
9921
9924
|
case "team_agents_only":
|
|
9922
9925
|
return "mode_team_agents_only";
|
|
9923
9926
|
case "agents_only":
|
|
@@ -9934,6 +9937,8 @@ function politeDeclineCopy(reason) {
|
|
|
9934
9937
|
return "Sorry, I only respond to my manager in this channel.";
|
|
9935
9938
|
case "mode_team_only":
|
|
9936
9939
|
return "Sorry, this agent only replies to its team members.";
|
|
9940
|
+
case "mode_team_only_no_principals":
|
|
9941
|
+
return "Sorry, I can't reply to anyone in this channel yet: none of my team members' accounts here are linked to me. An admin needs to link them first.";
|
|
9937
9942
|
case "mode_team_agents_only":
|
|
9938
9943
|
return "Sorry, I only respond to agents on my team in this channel.";
|
|
9939
9944
|
case "mode_agents_only":
|
|
@@ -13818,7 +13823,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
13818
13823
|
var lastVersionCheckAt = 0;
|
|
13819
13824
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
13820
13825
|
var lastResponsivenessProbeAt = 0;
|
|
13821
|
-
var agtCliVersion = true ? "0.28.
|
|
13826
|
+
var agtCliVersion = true ? "0.28.919" : "dev";
|
|
13822
13827
|
function resolveBrewPath(execFileSync2) {
|
|
13823
13828
|
try {
|
|
13824
13829
|
const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
|