@zbruceli/openclaw-dchat 0.1.2 → 0.1.3
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/package.json +1 -1
- package/src/channel.ts +2 -2
- package/src/config-schema.ts +1 -1
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "openclaw/plugin-sdk";
|
|
13
13
|
import {
|
|
14
14
|
type CoreConfig,
|
|
15
|
-
|
|
15
|
+
dchatAccountSchema,
|
|
16
16
|
listDchatAccountIds,
|
|
17
17
|
resolveDchatAccount,
|
|
18
18
|
resolveDchatAccountConfig,
|
|
@@ -66,7 +66,7 @@ export const dchatPlugin: ChannelPlugin<ResolvedDchatAccount> = {
|
|
|
66
66
|
polls: false,
|
|
67
67
|
},
|
|
68
68
|
reload: { configPrefixes: ["channels.dchat"] },
|
|
69
|
-
configSchema: buildChannelConfigSchema(
|
|
69
|
+
configSchema: buildChannelConfigSchema(dchatAccountSchema),
|
|
70
70
|
pairing: {
|
|
71
71
|
idLabel: "nknAddress",
|
|
72
72
|
normalizeAllowEntry: (entry) => entry.replace(/^dchat:/i, ""),
|
package/src/config-schema.ts
CHANGED
|
@@ -17,7 +17,7 @@ const DEFAULT_ACCOUNT_ID = "default";
|
|
|
17
17
|
|
|
18
18
|
/* ── Zod config schema (powers web UI form via buildChannelConfigSchema) ── */
|
|
19
19
|
|
|
20
|
-
const dchatAccountSchema = z.object({
|
|
20
|
+
export const dchatAccountSchema = z.object({
|
|
21
21
|
name: z.string().optional(),
|
|
22
22
|
enabled: z.boolean().optional(),
|
|
23
23
|
seed: z.string().optional(),
|