@mastra/slack 1.7.1 → 1.7.2-alpha.0

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.cjs CHANGED
@@ -6084,6 +6084,11 @@ var SlackProvider = class {
6084
6084
  }
6085
6085
  this.#adapters.delete(installation.id);
6086
6086
  this.#slashCommands.delete(installation.webhookId);
6087
+ } else if (record.status === "pending") try {
6088
+ const pending = this.#decryptPendingInstallation(this.#parsePendingInstallation(record));
6089
+ await client.deleteApp(pending.appId);
6090
+ } catch (err) {
6091
+ console.warn(`[Slack] Failed to delete pending Slack app for "${agentId}":`, err);
6087
6092
  }
6088
6093
  await this.#deleteInstallation(record.id);
6089
6094
  }