@tpitre/story-ui 1.7.1 → 2.0.0
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/.env.sample +3 -1
- package/README.md +160 -606
- package/dist/cli/index.js +23 -24
- package/dist/cli/setup.js +256 -36
- package/dist/mcp-server/index.js +67 -0
- package/dist/mcp-server/routes/generateStory.js +323 -56
- package/dist/story-generator/componentBlacklist.js +181 -0
- package/dist/story-generator/componentDiscovery.js +9 -2
- package/dist/story-generator/configLoader.js +109 -39
- package/dist/story-generator/considerationsLoader.js +204 -0
- package/dist/story-generator/documentation-sources.js +36 -0
- package/dist/story-generator/documentationLoader.js +214 -0
- package/dist/story-generator/dynamicPackageDiscovery.js +527 -0
- package/dist/story-generator/enhancedComponentDiscovery.js +369 -118
- package/dist/story-generator/generateStory.js +7 -3
- package/dist/story-generator/postProcessStory.js +71 -0
- package/dist/story-generator/promptGenerator.js +286 -37
- package/dist/story-generator/storyHistory.js +118 -0
- package/dist/story-generator/storyTracker.js +33 -18
- package/dist/story-generator/storyValidator.js +39 -0
- package/dist/story-generator/universalDesignSystemAdapter.js +209 -0
- package/dist/story-generator/validateStory.js +82 -7
- package/dist/story-ui.config.js +12 -5
- package/package.json +11 -6
- package/templates/StoryUI/StoryUIPanel.stories.tsx +29 -13
- package/templates/StoryUI/StoryUIPanel.tsx +489 -359
- package/templates/react-import-rule.json +36 -0
- package/templates/story-generation-rules.json +29 -0
- package/templates/story-ui-considerations.json +156 -0
- package/templates/story-ui-considerations.md +109 -0
- package/templates/story-ui-docs-README.md +55 -0
- package/dist/scripts/test-validation.js +0 -81
- package/dist/test-storybooks/chakra-test/src/components/index.js +0 -3
- package/dist/test-storybooks/custom-design-test/src/components/index.js +0 -3
- package/dist/tsconfig.tsbuildinfo +0 -1
package/.env.sample
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
CLAUDE_API_KEY=your-claude-api-key-here
|
|
7
7
|
|
|
8
8
|
# Optional: Specify Claude model (defaults to claude-sonnet-4-20250514)
|
|
9
|
-
# Available models:
|
|
9
|
+
# Available models:
|
|
10
10
|
# claude-opus-4-20250514 - Most capable, highest quality
|
|
11
11
|
# claude-sonnet-4-20250514 - Great balance of speed and quality (recommended)
|
|
12
12
|
# claude-3-7-sonnet-20250219 - Fast and efficient
|
|
@@ -16,3 +16,5 @@ CLAUDE_MODEL=claude-sonnet-4-20250514
|
|
|
16
16
|
|
|
17
17
|
# Optional: Story UI configuration file path
|
|
18
18
|
# STORY_UI_CONFIG_PATH=./story-ui.config.js
|
|
19
|
+
|
|
20
|
+
VITE_STORY_UI_PORT=4001
|