@vizzly-testing/cli 0.11.0 → 0.11.1

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.
@@ -131,21 +131,16 @@ async function loadPlugin(pluginPath) {
131
131
 
132
132
  /**
133
133
  * Zod schema for validating plugin structure
134
+ * Note: Using passthrough() to allow configSchema without validating its structure
135
+ * to avoid Zod version conflicts when plugins have nested config objects
134
136
  */
135
137
  const pluginSchema = z.object({
136
138
  name: z.string().min(1, 'Plugin name is required'),
137
139
  version: z.string().optional(),
138
140
  register: z.custom(val => typeof val === 'function', {
139
141
  message: 'register must be a function'
140
- }),
141
- configSchema: z.record(z.any()).optional()
142
- });
143
-
144
- /**
145
- * Zod schema for validating plugin config values
146
- * Supports: string, number, boolean, null, arrays, and nested objects
147
- */
148
- const configValueSchema = z.lazy(() => z.union([z.string(), z.number(), z.boolean(), z.null(), z.array(configValueSchema), z.record(configValueSchema)]));
142
+ })
143
+ }).passthrough();
149
144
 
150
145
  /**
151
146
  * Validate plugin has required structure
@@ -157,11 +152,8 @@ function validatePluginStructure(plugin) {
157
152
  // Validate basic plugin structure
158
153
  pluginSchema.parse(plugin);
159
154
 
160
- // If configSchema exists, validate it contains valid config values
161
- if (plugin.configSchema) {
162
- let configSchemaValidator = z.record(configValueSchema);
163
- configSchemaValidator.parse(plugin.configSchema);
164
- }
155
+ // Skip deep validation of configSchema to avoid Zod version conflicts
156
+ // configSchema is optional and primarily for documentation
165
157
  } catch (error) {
166
158
  if (error instanceof z.ZodError) {
167
159
  let messages = error.issues.map(e => `${e.path.join('.')}: ${e.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizzly-testing/cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Visual review platform for UI developers and designers",
5
5
  "keywords": [
6
6
  "visual-testing",
@@ -48,7 +48,7 @@
48
48
  "bin",
49
49
  "dist",
50
50
  "docs",
51
- ".claude-plugin",
51
+ "claude-plugin",
52
52
  "README.md",
53
53
  "LICENSE"
54
54
  ],