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.
- package/dist/src-ts/plugins/aun/index.js +5 -4
- package/package.json +1 -1
- package/plugin.json +1 -1
|
@@ -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.
|
|
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: [...
|
|
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) => !
|
|
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))
|
|
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