@agentconnect.md/setup 1.44.0-rc.72 → 1.44.0-rc.73

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/index.js CHANGED
@@ -36311,6 +36311,7 @@ const SLACK_BOT_SCOPES = [
36311
36311
  "users:read"
36312
36312
  ];
36313
36313
  const SLACK_BOT_EVENTS = [
36314
+ "agent_session_stopped",
36314
36315
  "app_mention",
36315
36316
  "app_uninstalled",
36316
36317
  "assistant_thread_started",
@@ -36323,6 +36324,11 @@ const SLACK_BOT_EVENTS = [
36323
36324
  "group_left",
36324
36325
  "tokens_revoked"
36325
36326
  ];
36327
+ const SLACK_SOCKET_ONLY_BOT_EVENTS = ["agent_session_stopped"];
36328
+ /** The bot events one transport's manifest advertises: the full list, minus what only a socket can serve. */
36329
+ function slackBotEvents(http) {
36330
+ return SLACK_BOT_EVENTS.filter((event) => !http || !SLACK_SOCKET_ONLY_BOT_EVENTS.includes(event));
36331
+ }
36326
36332
  function slackEventsRequestUrl(relayUrl) {
36327
36333
  return `${normalizeSlackRelayUrl(relayUrl)}/slack/events`;
36328
36334
  }
@@ -36372,7 +36378,7 @@ function buildSlackAppManifest(name, options = {}) {
36372
36378
  },
36373
36379
  settings: {
36374
36380
  event_subscriptions: {
36375
- bot_events: [...SLACK_BOT_EVENTS],
36381
+ bot_events: slackBotEvents(http),
36376
36382
  ...relayUrl ? { request_url: slackEventsRequestUrl(relayUrl) } : {}
36377
36383
  },
36378
36384
  interactivity: {