(data: string, schema: ZodType<T>)
| 60 | action: DesignActionSchema |
| 61 | }) |
| 62 | .strict() |
| 63 | |
| 64 | export const MessageToExtensionSchema = z.discriminatedUnion('type', [ |
| 65 | DesignActionResultMessageSchema, |
| 66 | RegisteredMessageSchema, |
| 67 | StateMessageSchema, |
| 68 | DesignTaskStateMessageSchema, |
| 69 | ToolCallMessageSchema |
| 70 | ]) |
| 71 | |
| 72 | // Messages from extension to hub. These stay strict: the Hub updates on every launch, so an |
| 73 | // unexpected field means a real mismatch rather than an older peer. |
| 74 | export const ActivateMessageSchema = z |
no outgoing calls
no test coverage detected