-
Notifications
You must be signed in to change notification settings - Fork 34
Output in markdown instead of XML #86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
36a9e1d
add e2e tests
JReinhold 310f3a1
improve e2e scripting
JReinhold c153b93
add tests for mcp index
JReinhold f3a467f
add preset tests
JReinhold d67a038
add telemetry tests
JReinhold c807fe7
simplify tool test mocks
JReinhold 61baa0f
simplify mcp-handler tests, improve disableTelemetry handling
JReinhold e01da53
add tests for manifest availability
JReinhold 1d4fbfd
exclude evals from coverage
JReinhold 1cc6bbd
cleanup
JReinhold 23daa64
changeset
JReinhold 54d5157
Merge branch 'next' of https://github.com/storybookjs/mcp into improv…
JReinhold ba47326
fix preset registering handlers instead of middlewares
JReinhold 35859a4
update tests to match changes in base branch
JReinhold f38a3bf
cleanup
JReinhold 85c6076
await sb process kill
JReinhold d615a8d
refactor formatter, splitting into markdown and xml, configurable, de…
JReinhold 02e2914
globally mock storybook deps
JReinhold 6f01bc6
clean lock file
JReinhold 4d1c0c2
Merge branch 'next' of https://github.com/storybookjs/mcp into improv…
JReinhold 716e1f3
Merge branch 'improve-test-coverage' of https://github.com/storybookj…
JReinhold 58e0a75
fix context arg
JReinhold 920dea2
fix tests
JReinhold 26a9874
fix types
JReinhold ca77d82
"Examples" -> "Stories", simplify tests
JReinhold d6065b5
simplify tests and types
JReinhold 18a51dd
simplify
JReinhold c7150af
use ts-like prop type docs format
JReinhold 80a488e
add script to clean experiments
JReinhold 7ed1dfd
add changeset
JReinhold 8cf05b5
Merge branch 'next' of https://github.com/storybookjs/mcp into markdo…
JReinhold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@storybook/addon-mcp': patch | ||
| '@storybook/mcp': patch | ||
| --- | ||
|
|
||
| Docs toolset: output markdown instead of XML, configurable via experimentalOutput: 'markdown' | 'xml' addon option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| import { glob, rm } from 'node:fs/promises'; | ||
| import * as path from 'node:path'; | ||
| import { installDependencies } from 'nypm'; | ||
|
|
||
| const experimentsPaths = await glob('evals/*/experiments'); | ||
|
|
||
| for await (const experimentsPath of experimentsPaths) { | ||
| const relativePath = path.relative(process.cwd(), experimentsPath); | ||
| try { | ||
| await rm(relativePath, { recursive: true, force: true }); | ||
| console.log(`Removed: ${relativePath}`); | ||
| } catch (error) { | ||
| console.error(`Failed to remove ${relativePath}:`, error); | ||
| } | ||
| } | ||
|
|
||
| console.log('Updating lock file...'); | ||
| await installDependencies(); | ||
|
|
||
| console.log('Done!'); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.