@mastra/slack 1.1.0 → 1.1.1
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/CHANGELOG.md +18 -0
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -283,10 +283,13 @@ function buildManifest(options) {
|
|
|
283
283
|
if (slashCommands.length > 0) {
|
|
284
284
|
scopes.push("commands");
|
|
285
285
|
}
|
|
286
|
+
const MAX_DESC = 139;
|
|
287
|
+
const rawDescription = description ?? `${name} - Powered by Mastra`;
|
|
288
|
+
const shortDescription = rawDescription.length > MAX_DESC ? rawDescription.slice(0, MAX_DESC - 3) + "..." : rawDescription;
|
|
286
289
|
const manifest = {
|
|
287
290
|
display_information: {
|
|
288
291
|
name,
|
|
289
|
-
description:
|
|
292
|
+
description: shortDescription
|
|
290
293
|
},
|
|
291
294
|
features: {
|
|
292
295
|
app_home: {
|