We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aec371f + 7bbfa92 commit 73943a0Copy full SHA for 73943a0
packages/client-slack/jest.config.js
@@ -1,5 +1,5 @@
1
/** @type {import('ts-jest').JestConfigWithTsJest} */
2
-module.exports = {
+export default {
3
preset: 'ts-jest',
4
testEnvironment: 'node',
5
roots: ['<rootDir>/src'],
packages/client-slack/src/messages.ts
@@ -255,6 +255,16 @@ export class MessageManager {
255
`${event.thread_ts}-${this.runtime.agentId}`
256
)
257
: undefined,
258
+ attachments: event.text
259
+ ? [{
260
+ id: stringToUuid(`${event.ts}-attachment`),
261
+ url: '', // Since this is text content, no URL is needed
262
+ title: 'Text Attachment',
263
+ source: 'slack',
264
+ description: 'Text content from Slack message',
265
+ text: cleanedText
266
+ }]
267
+ : undefined,
268
};
269
270
const memory: Memory = {
0 commit comments