@agentconnect.md/daemon 1.0.0-rc.102 → 1.0.0-rc.104
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 +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -81316,7 +81316,8 @@ var SlackConnection = class {
|
|
|
81316
81316
|
id: c.id ?? channel,
|
|
81317
81317
|
name: c.name,
|
|
81318
81318
|
isIm: c.is_im,
|
|
81319
|
-
isPrivate: c.is_private
|
|
81319
|
+
isPrivate: c.is_private,
|
|
81320
|
+
user: c.user
|
|
81320
81321
|
};
|
|
81321
81322
|
}
|
|
81322
81323
|
async listMembers(channel) {
|
|
@@ -81486,6 +81487,11 @@ var SlackNameResolver = class {
|
|
|
81486
81487
|
try {
|
|
81487
81488
|
const info = await conn.getChannelInfo(channel);
|
|
81488
81489
|
if (info.name) this.save(channel, info.name);
|
|
81490
|
+
else if (info.isIm && info.user) {
|
|
81491
|
+
const p = await conn.getUserProfile(info.user);
|
|
81492
|
+
const name = p.realName || p.name;
|
|
81493
|
+
if (name) this.save(channel, `@${name}`);
|
|
81494
|
+
}
|
|
81489
81495
|
} catch (err) {
|
|
81490
81496
|
this.nextAttemptAt.set(channel, this.now() + FAIL_TTL_MS);
|
|
81491
81497
|
this.log?.debug(`slack: name lookup failed for channel ${channel}: ${err.message}`);
|