-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Agentic Setup: Show Discord and human docs only to humans #34705
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -103,10 +103,17 @@ export class FinalizationCommand { | |||||||||||||||||||||||||||||||||||||||||||||
| logger.log(`To run Storybook, run ${CLI_COLORS.cta(storybookCommand)}. CTRL+C to stop.`); | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| logger.log(dedent` | ||||||||||||||||||||||||||||||||||||||||||||||
| // We don't want to tell agents about Discord, and we want to customise their docs URL. | ||||||||||||||||||||||||||||||||||||||||||||||
| if (this.options.showAiInstructions) { | ||||||||||||||||||||||||||||||||||||||||||||||
| logger.log(dedent` | ||||||||||||||||||||||||||||||||||||||||||||||
| Official documentation reference: ${CLI_COLORS.cta('https://storybook.js.org/llms.txt')} | ||||||||||||||||||||||||||||||||||||||||||||||
| `); | ||||||||||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||||||||||
| logger.log(dedent` | ||||||||||||||||||||||||||||||||||||||||||||||
| Want to learn more about Storybook? ${CLI_COLORS.cta('https://storybook.js.org/')} | ||||||||||||||||||||||||||||||||||||||||||||||
| Having trouble or want to chat? ${CLI_COLORS.cta('https://discord.gg/storybook/')} | ||||||||||||||||||||||||||||||||||||||||||||||
| `); | ||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+106
to
+116
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the agent-mode flag for this branch, not At Line 107, the condition is keyed to Suggested fix- if (this.options.showAiInstructions) {
+ if (this.options.showAgentFollowUp) {
logger.log(dedent`
Official documentation reference: ${CLI_COLORS.cta('https://storybook.js.org/llms.txt')}
`);
} else {📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
| if (this.options.showAiInstructions) { | ||||||||||||||||||||||||||||||||||||||||||||||
| logger.step(dedent`To finalize setting up with AI, paste this prompt to your AI agent: | ||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.