Skip to content

Commit 8ec769f

Browse files
committed
fix: resolve Zod v4 record schema compatibility issues
- Update z.record() calls to use proper key-value type parameters - Fix TypeScript compilation errors in Smithery-compatible index.ts - Ensure compatibility with Zod v4.0.10 API requirements This resolves build failures and ensures the Smithery deployment configuration compiles successfully.
1 parent aa847c0 commit 8ec769f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export default function ({ config }: { config: z.infer<typeof configSchema> }) {
5757
workflow: z.object({
5858
name: z.string().describe("Name of the workflow"),
5959
nodes: z.array(z.any()).describe("Array of workflow nodes"),
60-
connections: z.record(z.any()).describe("Node connections").optional(),
61-
settings: z.record(z.any()).describe("Workflow settings").optional(),
60+
connections: z.record(z.string(), z.any()).describe("Node connections").optional(),
61+
settings: z.record(z.string(), z.any()).describe("Workflow settings").optional(),
6262
tags: z.array(z.string()).describe("Workflow tags").optional()
6363
}).describe("Workflow configuration")
6464
},
@@ -145,8 +145,8 @@ export default function ({ config }: { config: z.infer<typeof configSchema> }) {
145145
workflow: z.object({
146146
name: z.string().describe("Name of the workflow").optional(),
147147
nodes: z.array(z.any()).describe("Array of workflow nodes").optional(),
148-
connections: z.record(z.any()).describe("Node connections").optional(),
149-
settings: z.record(z.any()).describe("Workflow settings").optional(),
148+
connections: z.record(z.string(), z.any()).describe("Node connections").optional(),
149+
settings: z.record(z.string(), z.any()).describe("Workflow settings").optional(),
150150
tags: z.array(z.string()).describe("Workflow tags").optional()
151151
}).describe("Updated workflow configuration")
152152
},

0 commit comments

Comments
 (0)