agent-bridge-aun 1.0.32 → 1.0.33

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.
@@ -12,7 +12,7 @@ const agent_1 = require("../../agent");
12
12
  const messages_1 = require("./messages");
13
13
  const attachments_1 = require("./attachments");
14
14
  const manifest = {
15
- id: "aun", version: "1.0.32", type: "channel", displayName: "AUN 通道",
15
+ id: "aun", version: "1.0.33", type: "channel", displayName: "AUN 通道",
16
16
  entry: "dist/src-ts/plugins/aun/index.js", apiVersion: "1", process: "in-process",
17
17
  capabilities: ["channel", "channel.identity.create", "channel.receive", "channel.send", "health", "cli"],
18
18
  configSchema: "config.schema.json",
@@ -83,10 +83,11 @@ class AunPlugin {
83
83
  identity = {
84
84
  list: async () => {
85
85
  const own = new Set([...this.createdAids, ...this.legacyCreatedAids]);
86
+ const known = new Set([...this.clients.keys(), ...this.listStoreAids()]);
86
87
  return {
87
- evolcore: [...this.clients.keys()].filter((aid) => !own.has(aid)).sort(),
88
+ evolcore: [...known].filter((aid) => !own.has(aid)).sort(),
88
89
  muAgentBridge: [...this.clients.keys()].filter((aid) => own.has(aid)).sort(),
89
- localMuAgentBridge: [...own].filter((aid) => !this.clients.has(aid)).sort(),
90
+ localMuAgentBridge: [...own].filter((aid) => !known.has(aid)).sort(),
90
91
  };
91
92
  },
92
93
  create: async (aid, owner) => {
@@ -945,7 +946,7 @@ class AunPlugin {
945
946
  exports.AunPlugin = AunPlugin;
946
947
  exports.default = AunPlugin;
947
948
  function safeError(error) {
948
- return redact(error instanceof Error ? error.message : String(error)).slice(0, 240);
949
+ return redact(error instanceof Error ? error.message : String(error));
949
950
  }
950
951
  async function readResponse(response, limit) {
951
952
  if (!response.body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-bridge-aun",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "mu-agent-bridge 的 AUN 通道插件。",
5
5
  "keywords": [
6
6
  "mu-agent-bridge-plugin",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "id": "aun",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "type": "channel",
5
5
  "displayName": "AUN 通道",
6
6
  "entry": "dist/src-ts/plugins/aun/index.js",