@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.
- 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-SUYULB5G.js → chunk-RM4XYPLD.js} +18 -18
- package/dist/{chunk-SUYULB5G.js.map → chunk-RM4XYPLD.js.map} +1 -1
- 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-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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
claudeModelAlias,
|
|
3
3
|
isClaudeFastMode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6HFXSNNY.js";
|
|
5
5
|
import {
|
|
6
6
|
reapOrphanChannelMcps
|
|
7
7
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -1125,4 +1125,4 @@ export {
|
|
|
1125
1125
|
stopAllSessionsAndWait,
|
|
1126
1126
|
getProjectDir
|
|
1127
1127
|
};
|
|
1128
|
-
//# sourceMappingURL=chunk-
|
|
1128
|
+
//# sourceMappingURL=chunk-JIETOJQV.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
parseDeliveryTarget,
|
|
10
10
|
registerFramework,
|
|
11
11
|
wrapScheduledTaskPrompt
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6HFXSNNY.js";
|
|
13
13
|
|
|
14
14
|
// ../../packages/core/dist/integrations/registry.js
|
|
15
15
|
var INTEGRATION_REGISTRY = [
|
|
@@ -4851,20 +4851,11 @@ ${sections}`
|
|
|
4851
4851
|
},
|
|
4852
4852
|
writeChannelCredentials(codeName, channelId, config, options) {
|
|
4853
4853
|
const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
|
|
4854
|
-
const
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
// Channel-specific var name to match what the consumer MCP reads;
|
|
4860
|
-
// spread below selects the right one per channelId.
|
|
4861
|
-
...sp.mode === "team_agents_only" && sp.team_id ? { AGT_TEAM_ID: sp.team_id } : {},
|
|
4862
|
-
// sentinel keys consumed by the per-channel spread below
|
|
4863
|
-
_SENDER_POLICY_MODE: sp.mode
|
|
4864
|
-
};
|
|
4865
|
-
})();
|
|
4866
|
-
const senderPolicyMode = senderPolicyEnv["_SENDER_POLICY_MODE"];
|
|
4867
|
-
delete senderPolicyEnv["_SENDER_POLICY_MODE"];
|
|
4854
|
+
const senderPolicyMode = options?.senderPolicy?.mode;
|
|
4855
|
+
const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.team_id : void 0;
|
|
4856
|
+
const slackPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.slack_user_id : void 0;
|
|
4857
|
+
const teamsPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.teams_aad_object_id : void 0;
|
|
4858
|
+
const senderPolicyEnv = senderPolicyTeamId ? { AGT_TEAM_ID: senderPolicyTeamId } : {};
|
|
4868
4859
|
const agentDir = getAgentDir(codeName);
|
|
4869
4860
|
mkdirSync4(agentDir, { recursive: true });
|
|
4870
4861
|
const isPersistent = options?.sessionMode === "persistent";
|
|
@@ -5022,8 +5013,13 @@ ${sections}`
|
|
|
5022
5013
|
// 'all' is the absence of the env var — same convention the
|
|
5023
5014
|
// MCP filter uses on its own end).
|
|
5024
5015
|
...senderPolicyMode ? { SLACK_SENDER_POLICY: senderPolicyMode } : {},
|
|
5025
|
-
...senderPolicyEnv
|
|
5016
|
+
...senderPolicyEnv,
|
|
5026
5017
|
// AGT_TEAM_ID when team_agents_only
|
|
5018
|
+
// ENG-5842: principal ID for manager_only — Slack user_id from
|
|
5019
|
+
// people.contact_preferences.slack_user_id. Omitted when the
|
|
5020
|
+
// principal has no Slack ID; MCP filter fails closed on the
|
|
5021
|
+
// missing env var by dropping all human inbound.
|
|
5022
|
+
...slackPrincipalId ? { SLACK_SENDER_POLICY_PRINCIPAL_ID: slackPrincipalId } : {}
|
|
5027
5023
|
}
|
|
5028
5024
|
};
|
|
5029
5025
|
const provisionMcpPath = join4(agentDir, "provision", ".mcp.json");
|
|
@@ -5203,8 +5199,12 @@ ${sections}`
|
|
|
5203
5199
|
// ENG-5841: MSTEAMS_SENDER_POLICY drives teams-inbound-filter.ts.
|
|
5204
5200
|
// Mirrors the Slack branch above — only emitted when restrictive.
|
|
5205
5201
|
...senderPolicyMode ? { MSTEAMS_SENDER_POLICY: senderPolicyMode } : {},
|
|
5206
|
-
...senderPolicyEnv
|
|
5202
|
+
...senderPolicyEnv,
|
|
5207
5203
|
// AGT_TEAM_ID when team_agents_only
|
|
5204
|
+
// ENG-5842: principal ID for manager_only — Teams AAD object id from
|
|
5205
|
+
// people.contact_preferences.teams_aad_object_id. Same fail-closed
|
|
5206
|
+
// contract as the Slack branch above.
|
|
5207
|
+
...teamsPrincipalId ? { MSTEAMS_SENDER_POLICY_PRINCIPAL_ID: teamsPrincipalId } : {}
|
|
5208
5208
|
};
|
|
5209
5209
|
if (isPersistent && existsSync5(localTeamsChannel)) {
|
|
5210
5210
|
mcpServers["msteams"] = {
|
|
@@ -6925,4 +6925,4 @@ export {
|
|
|
6925
6925
|
managerInstallSystemUnitCommand,
|
|
6926
6926
|
managerUninstallSystemUnitCommand
|
|
6927
6927
|
};
|
|
6928
|
-
//# sourceMappingURL=chunk-
|
|
6928
|
+
//# sourceMappingURL=chunk-RM4XYPLD.js.map
|