@integrity-labs/agt-cli 0.27.30 → 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.
@@ -9,7 +9,7 @@ import {
9
9
  parseDeliveryTarget,
10
10
  registerFramework,
11
11
  wrapScheduledTaskPrompt
12
- } from "./chunk-6HFXSNNY.js";
12
+ } from "./chunk-NZWPRYJO.js";
13
13
 
14
14
  // ../../packages/core/dist/integrations/registry.js
15
15
  var INTEGRATION_REGISTRY = [
@@ -4872,9 +4872,11 @@ ${sections}`
4872
4872
  writeChannelCredentials(codeName, channelId, config, options) {
4873
4873
  const tzEnv = options?.agentTimezone && options.agentTimezone.trim() !== "" ? { TZ: options.agentTimezone.trim() } : {};
4874
4874
  const senderPolicyMode = options?.senderPolicy?.mode;
4875
- const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.team_id : void 0;
4875
+ const senderPolicyTeamId = options?.senderPolicy?.mode === "team_agents_only" || options?.senderPolicy?.mode === "manager_only" || options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_id : void 0;
4876
4876
  const slackPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.slack_user_id : void 0;
4877
4877
  const teamsPrincipalId = options?.senderPolicy?.mode === "manager_only" ? options.senderPolicy.principal?.teams_aad_object_id : void 0;
4878
+ const slackTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.slack_user_ids?.join(",") : void 0;
4879
+ const teamsTeamPrincipalIds = options?.senderPolicy?.mode === "team_only" ? options.senderPolicy.team_principals?.teams_aad_object_ids?.join(",") : void 0;
4878
4880
  const senderPolicyInternalOnly = options?.senderPolicy?.internal_only === true;
4879
4881
  const senderPolicyEnv = senderPolicyTeamId ? { AGT_TEAM_ID: senderPolicyTeamId } : {};
4880
4882
  const agentDir = getAgentDir(codeName);
@@ -5041,6 +5043,12 @@ ${sections}`
5041
5043
  // principal has no Slack ID; MCP filter fails closed on the
5042
5044
  // missing env var by dropping all human inbound.
5043
5045
  ...slackPrincipalId ? { SLACK_SENDER_POLICY_PRINCIPAL_ID: slackPrincipalId } : {},
5046
+ // ENG-5871: team_only mode injects a comma-separated list of
5047
+ // team-member Slack user_ids. Absent/empty = MCP filter drops
5048
+ // humans on Slack but still admits same-team agents via label.
5049
+ // No additional shape parsing on the MCP side — `.split(',')`
5050
+ // works because Slack user_ids are `[A-Z0-9]+` (no commas).
5051
+ ...slackTeamPrincipalIds ? { SLACK_SENDER_POLICY_TEAM_PRINCIPAL_IDS: slackTeamPrincipalIds } : {},
5044
5052
  // ENG-5843: org-boundary gate. SLACK_INTERNAL_ONLY signals the
5045
5053
  // filter to check sender's workspace against SLACK_HOME_TEAM_ID
5046
5054
  // (sourced from the bot install's team_id, populated by
@@ -5237,6 +5245,10 @@ ${sections}`
5237
5245
  // people.contact_preferences.teams_aad_object_id. Same fail-closed
5238
5246
  // contract as the Slack branch above.
5239
5247
  ...teamsPrincipalId ? { MSTEAMS_SENDER_POLICY_PRINCIPAL_ID: teamsPrincipalId } : {},
5248
+ // ENG-5871: team_only mode injects a comma-separated list of team-
5249
+ // member Teams AAD object IDs. Same fail-closed contract as Slack.
5250
+ // AAD IDs are UUIDs (no commas), so .split(',') is safe.
5251
+ ...teamsTeamPrincipalIds ? { MSTEAMS_SENDER_POLICY_TEAM_PRINCIPAL_IDS: teamsTeamPrincipalIds } : {},
5240
5252
  // ENG-5843: org-boundary gate. MSTEAMS_INTERNAL_ONLY + MSTEAMS_HOME_TENANT_ID
5241
5253
  // mirror the Slack pair. Source is the same tenantId the existing
5242
5254
  // MSTEAMS_TENANT_ID env var already carries — defaulting to "common"
@@ -6965,4 +6977,4 @@ export {
6965
6977
  managerInstallSystemUnitCommand,
6966
6978
  managerUninstallSystemUnitCommand
6967
6979
  };
6968
- //# sourceMappingURL=chunk-2L2CHPOJ.js.map
6980
+ //# sourceMappingURL=chunk-J5BIXLKB.js.map