@tpitre/story-ui 2.6.0 → 2.6.1

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/README.md CHANGED
@@ -61,9 +61,9 @@ Story UI will guide you through:
61
61
 
62
62
  | Provider | Models | Best For |
63
63
  |----------|--------|----------|
64
- | **Claude** (Anthropic) | claude-sonnet-4, claude-3.5-sonnet, claude-3-haiku | Complex reasoning, code quality |
65
- | **GPT-4** (OpenAI) | gpt-4o, gpt-4-turbo, gpt-3.5-turbo | Versatility, speed |
66
- | **Gemini** (Google) | gemini-2.0-flash, gemini-1.5-pro | Fast generation, cost efficiency |
64
+ | **Claude** (Anthropic) | Opus 4.5, Sonnet 4.5, Haiku 4.5 | Complex reasoning, code quality |
65
+ | **GPT-5** (OpenAI) | GPT-5.1, GPT-5 Mini, GPT-5 Nano | Versatility, speed |
66
+ | **Gemini** (Google) | Gemini 3 Pro, Gemini 2.5 Pro, Gemini 2.5 Flash | Fast generation, cost efficiency |
67
67
 
68
68
  ### Production Deployment
69
69
  - **Cloudflare Workers**: Edge-deployed API proxy
@@ -123,7 +123,7 @@ The interactive installer will ask:
123
123
  ```
124
124
  ? Which AI provider do you prefer?
125
125
  > Claude (Anthropic) - Recommended
126
- OpenAI (GPT-4)
126
+ OpenAI (GPT-5)
127
127
  Google Gemini
128
128
 
129
129
  ? Enter your API key:
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../cli/setup.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,wBAAgB,iCAAiC,SA8ChD;AAiYD,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,YAAiB,iBAqxB5D"}
1
+ {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../cli/setup.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,wBAAgB,iCAAiC,SA8ChD;AAiYD,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAsB,YAAY,CAAC,OAAO,GAAE,YAAiB,iBA2wB5D"}
package/dist/cli/setup.js CHANGED
@@ -189,26 +189,26 @@ export default preview;
189
189
  fs.writeFileSync(previewTsxPath, previewContent);
190
190
  console.log(chalk.green(`✅ Created .storybook/preview.tsx with ${designSystem} provider setup`));
191
191
  }
192
- // LLM Provider configurations
192
+ // LLM Provider configurations - synced with production (cloudflare-edge/src/worker.ts)
193
193
  const LLM_PROVIDERS = {
194
194
  claude: {
195
195
  name: 'Claude (Anthropic)',
196
196
  envKey: 'ANTHROPIC_API_KEY',
197
- models: ['claude-sonnet-4-20250514', 'claude-3-5-sonnet-20241022', 'claude-3-haiku-20240307'],
197
+ models: ['claude-opus-4-5-20251101', 'claude-sonnet-4-5-20250929', 'claude-haiku-4-5-20251001'],
198
198
  docsUrl: 'https://console.anthropic.com/',
199
199
  description: 'Recommended - Best for complex reasoning and code quality'
200
200
  },
201
201
  openai: {
202
- name: 'OpenAI (GPT-4)',
202
+ name: 'OpenAI (GPT-5)',
203
203
  envKey: 'OPENAI_API_KEY',
204
- models: ['gpt-4o', 'gpt-4-turbo', 'gpt-3.5-turbo'],
204
+ models: ['gpt-5.1', 'gpt-5-mini', 'gpt-5-nano'],
205
205
  docsUrl: 'https://platform.openai.com/api-keys',
206
206
  description: 'Versatile and fast'
207
207
  },
208
208
  gemini: {
209
209
  name: 'Google Gemini',
210
210
  envKey: 'GEMINI_API_KEY',
211
- models: ['gemini-2.0-flash', 'gemini-1.5-pro', 'gemini-1.5-flash'],
211
+ models: ['gemini-3-pro-preview', 'gemini-2.5-pro', 'gemini-2.5-flash'],
212
212
  docsUrl: 'https://aistudio.google.com/app/apikey',
213
213
  description: 'Cost-effective with good performance'
214
214
  }
@@ -507,6 +507,7 @@ export async function setupCommand(options = {}) {
507
507
  }
508
508
  }
509
509
  // Build design system choices based on detected framework
510
+ // Simplified to show only the most popular option per framework
510
511
  const getDesignSystemChoices = () => {
511
512
  const baseChoice = { name: '🤖 Auto-detect from package.json', value: 'auto' };
512
513
  const customChoice = { name: '🔧 Custom/Other', value: 'custom' };
@@ -514,43 +515,32 @@ export async function setupCommand(options = {}) {
514
515
  case 'angular':
515
516
  return [
516
517
  baseChoice,
517
- { name: '🅰️ Angular Material (@angular/material)', value: 'angular-material' },
518
- { name: '🎨 PrimeNG (primeng)', value: 'primeng' },
519
- { name: '🌈 NG-ZORRO (ng-zorro-antd)', value: 'ng-zorro' },
518
+ { name: '🅰️ Angular Material (@angular/material) - Most Popular', value: 'angular-material' },
520
519
  customChoice
521
520
  ];
522
521
  case 'vue':
523
522
  return [
524
523
  baseChoice,
525
- { name: '🍃 PrimeVue (primevue)', value: 'primevue' },
526
- { name: '🎯 Vuetify (vuetify)', value: 'vuetify' },
527
- { name: '🔮 Element Plus (element-plus)', value: 'element-plus' },
524
+ { name: '🎯 Vuetify (vuetify) - Most Popular', value: 'vuetify' },
528
525
  customChoice
529
526
  ];
530
527
  case 'svelte':
531
528
  return [
532
529
  baseChoice,
533
- { name: '🟠 Skeleton UI (skeleton)', value: 'skeleton-ui' },
534
- { name: '🌸 Svelte Material UI (svelte-material-ui)', value: 'smui' },
530
+ { name: '🟠 Skeleton UI (@skeletonlabs/skeleton) - Most Popular', value: 'skeleton-ui' },
535
531
  customChoice
536
532
  ];
537
533
  case 'web-components':
538
534
  return [
539
535
  baseChoice,
540
- { name: '👟 Shoelace (@shoelace-style/shoelace)', value: 'shoelace' },
541
- { name: '🔥 Lit (@lit/element)', value: 'lit' },
542
- { name: '🌟 Vaadin (@vaadin)', value: 'vaadin' },
536
+ { name: '👟 Shoelace (@shoelace-style/shoelace) - Most Popular', value: 'shoelace' },
543
537
  customChoice
544
538
  ];
545
539
  case 'react':
546
540
  default:
547
541
  return [
548
542
  baseChoice,
549
- { name: '🐜 Ant Design (antd) - Automatic Install & Configure', value: 'antd' },
550
- { name: '🎯 Mantine (@mantine/core) - Automatic Install & Configure', value: 'mantine' },
551
- { name: '⚡ Chakra UI (@chakra-ui/react) - Automatic Install & Configure', value: 'chakra' },
552
- { name: '🎨 Material UI (@mui/material)', value: 'mui' },
553
- { name: '✨ shadcn/ui (Tailwind + Radix) - Automatic Install & Configure', value: 'shadcn' },
543
+ { name: '🎯 Mantine (@mantine/core) - Most Popular', value: 'mantine' },
554
544
  customChoice
555
545
  ];
556
546
  }
@@ -656,7 +646,7 @@ export async function setupCommand(options = {}) {
656
646
  message: 'Which AI provider would you like to use?',
657
647
  choices: [
658
648
  { name: `${chalk.green('Claude (Anthropic)')} - ${chalk.gray('Recommended for complex reasoning and code quality')}`, value: 'claude' },
659
- { name: `${chalk.blue('OpenAI (GPT-4)')} - ${chalk.gray('Versatile and fast')}`, value: 'openai' },
649
+ { name: `${chalk.blue('OpenAI (GPT-5)')} - ${chalk.gray('Versatile and fast')}`, value: 'openai' },
660
650
  { name: `${chalk.yellow('Google Gemini')} - ${chalk.gray('Cost-effective with good performance')}`, value: 'gemini' }
661
651
  ],
662
652
  default: 'claude'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpitre/story-ui",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "AI-powered Storybook story generator with dynamic component discovery",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",