@zbruceli/openclaw-dchat 0.1.0 → 0.1.2
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/README.md +1 -1
- package/index.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/channel.ts +1 -1
- package/src/config-schema.ts +1 -1
- package/src/types.ts +1 -1
package/README.md
CHANGED
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { dchatPlugin } from "./src/channel.js";
|
|
|
4
4
|
import { setDchatRuntime } from "./src/runtime.js";
|
|
5
5
|
|
|
6
6
|
const plugin = {
|
|
7
|
-
id: "dchat",
|
|
7
|
+
id: "openclaw-dchat",
|
|
8
8
|
name: "D-Chat / nMobile",
|
|
9
9
|
description: "D-Chat/nMobile channel plugin (NKN relay network)",
|
|
10
10
|
configSchema: emptyPluginConfigSchema(),
|
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -106,7 +106,7 @@ export const dchatPlugin: ChannelPlugin<ResolvedDchatAccount> = {
|
|
|
106
106
|
}),
|
|
107
107
|
resolveAllowFrom: ({ cfg, accountId }) => {
|
|
108
108
|
const dchatConfig = resolveDchatAccountConfig({ cfg: cfg as CoreConfig, accountId });
|
|
109
|
-
return (dchatConfig.dm?.allowFrom ?? []).map((entry
|
|
109
|
+
return (dchatConfig.dm?.allowFrom ?? []).map((entry) => String(entry));
|
|
110
110
|
},
|
|
111
111
|
formatAllowFrom: ({ allowFrom }) =>
|
|
112
112
|
allowFrom.map((entry) => String(entry).replace(/^dchat:/i, "")),
|
package/src/config-schema.ts
CHANGED
|
@@ -28,7 +28,7 @@ const dchatAccountSchema = z.object({
|
|
|
28
28
|
dm: z
|
|
29
29
|
.object({
|
|
30
30
|
policy: z.enum(["pairing", "allowlist", "open", "disabled"]).optional(),
|
|
31
|
-
allowFrom: z.array(z.
|
|
31
|
+
allowFrom: z.array(z.string()).optional(),
|
|
32
32
|
})
|
|
33
33
|
.optional(),
|
|
34
34
|
});
|