@mcp-use/cli 2.6.0-canary.16 → 2.6.0-canary.18
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/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3571,11 +3571,15 @@ export default PostHog;
|
|
|
3571
3571
|
try {
|
|
3572
3572
|
const mod = await metadataServer.ssrLoadModule(entryPath);
|
|
3573
3573
|
if (mod.widgetMetadata) {
|
|
3574
|
+
const schemaField = mod.widgetMetadata.inputs || mod.widgetMetadata.props;
|
|
3574
3575
|
widgetMetadata = {
|
|
3575
3576
|
...mod.widgetMetadata,
|
|
3576
3577
|
title: mod.widgetMetadata.title || widgetName,
|
|
3577
3578
|
description: mod.widgetMetadata.description,
|
|
3578
|
-
|
|
3579
|
+
// Pass the full Zod schema object directly (don't extract .shape)
|
|
3580
|
+
// The SDK's normalizeObjectSchema() can handle both complete Zod schemas
|
|
3581
|
+
// and raw shapes, so we preserve the full schema here
|
|
3582
|
+
inputs: schemaField || {}
|
|
3579
3583
|
};
|
|
3580
3584
|
}
|
|
3581
3585
|
await new Promise((resolve) => setTimeout(resolve, 50));
|