@tpitre/story-ui 4.16.2 → 4.16.3
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/mcp-server/index.js +9 -7
- package/package.json +1 -1
package/dist/mcp-server/index.js
CHANGED
|
@@ -880,13 +880,15 @@ app.listen(PORT, () => {
|
|
|
880
880
|
console.error(`MCP server running on port ${PORT}`);
|
|
881
881
|
console.error(`Stories will be generated to: ${config.generatedStoriesPath}`);
|
|
882
882
|
// Ensure voice-canvas scratchpad story file exists before client polling starts.
|
|
883
|
-
//
|
|
884
|
-
//
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
883
|
+
// Only for React projects — voice-canvas.stories.tsx imports react-live which
|
|
884
|
+
// breaks non-React Storybook builds (Vue, Angular, Svelte, Web Components).
|
|
885
|
+
if (!config.componentFramework || config.componentFramework === 'react') {
|
|
886
|
+
try {
|
|
887
|
+
ensureVoiceCanvasStory(config.generatedStoriesPath || './src/stories/generated/');
|
|
888
|
+
}
|
|
889
|
+
catch (err) {
|
|
890
|
+
console.error('[voice-canvas] Could not pre-create story template:', err);
|
|
891
|
+
}
|
|
890
892
|
}
|
|
891
893
|
// Initialize manifest manager (loads file, migrates from StoryTracker, reconciles)
|
|
892
894
|
setTimeout(() => {
|