fix(config): add missing comment field to BindingsSchema

Strict validation (added in d1e9490f9) rejects the legitimate 'comment'
field on bindings. This field is used for annotations in config files.

Changes:
- BindingsSchema: added comment: z.string().optional()
- AgentBinding type: added comment?: string

Fixes #23385
This commit is contained in:
echoVic
2026-02-22 18:12:04 +08:00
committed by Peter Steinberger
parent 2739328508
commit 56f01bc493
2 changed files with 2 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ export type AgentsConfig = {
export type AgentBinding = {
agentId: string;
comment?: string;
match: {
channel: string;
accountId?: string;

View File

@@ -16,6 +16,7 @@ export const BindingsSchema = z
z
.object({
agentId: z.string(),
comment: z.string().optional(),
match: z
.object({
channel: z.string(),