@storybook/cli 10.5.0-alpha.1 → 10.5.0-alpha.11

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.
Files changed (26) hide show
  1. package/dist/_node-chunks/{block-dependencies-versions-IRISIWTS.js → block-dependencies-versions-FQPQAYVO.js} +11 -11
  2. package/dist/_node-chunks/{block-experimental-addon-test-L223EOHP.js → block-experimental-addon-test-EZK7XDFZ.js} +9 -9
  3. package/dist/_node-chunks/{block-major-version-AFCKSTZR.js → block-major-version-M5VCXE4Y.js} +9 -9
  4. package/dist/_node-chunks/{block-node-version-334LCBCU.js → block-node-version-3ICXQFVJ.js} +9 -9
  5. package/dist/_node-chunks/{block-webpack5-frameworks-BFSMZY43.js → block-webpack5-frameworks-E7PZJNCO.js} +11 -11
  6. package/dist/_node-chunks/{chunk-H4WD2N62.js → chunk-A5RMPFQ3.js} +38 -110
  7. package/dist/_node-chunks/{chunk-G3N7IFQU.js → chunk-AHWKCRHH.js} +8 -8
  8. package/dist/_node-chunks/chunk-DTECKQPY.js +11 -0
  9. package/dist/_node-chunks/{chunk-R7EZ5DNN.js → chunk-DTXXXLFC.js} +11 -7
  10. package/dist/_node-chunks/{chunk-75S6YEH3.js → chunk-TDL54PTM.js} +10 -10
  11. package/dist/_node-chunks/{globby-OV3JIWGB.js → globby-YRKKYLXC.js} +8 -8
  12. package/dist/_node-chunks/{p-limit-ESLRJ7GG.js → p-limit-MWMVUYW6.js} +7 -7
  13. package/dist/_node-chunks/{run-MJRP25JL.js → run-73D22IO2.js} +2115 -2072
  14. package/dist/bin/index.js +7 -7
  15. package/package.json +7 -5
  16. package/dist/_node-chunks/chunk-3H256BVV.js +0 -638
  17. package/dist/_node-chunks/chunk-4QFE246P.js +0 -11
  18. package/dist/_node-chunks/chunk-64QQACJI.js +0 -20
  19. package/dist/_node-chunks/chunk-CCU2X63J.js +0 -23
  20. package/dist/_node-chunks/chunk-KMH47TOJ.js +0 -115
  21. package/dist/_node-chunks/monorepo-QWMX4T2T.js +0 -119
  22. package/dist/_node-chunks/monorepo-optimized-tests-relaxed-limits-no-story-deletion-X3Y4Q6NK.js +0 -119
  23. package/dist/_node-chunks/optimized-tests-SIXYLCNO.js +0 -20
  24. package/dist/_node-chunks/pattern-copy-play-BKVUHDSB.js +0 -810
  25. package/dist/_node-chunks/relaxed-limits-ZMHXEDSI.js +0 -115
  26. package/dist/_node-chunks/setup-7PZ2AOO7.js +0 -281
@@ -1,23 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6190igczsdj from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6190igczsdj from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6190igczsdj from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6190igczsdj.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6190igczsdj.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6190igczsdj.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
- // src/ai/utils/docs-markdown-url.ts
14
- function getDocsMarkdownUrl(path, projectInfo) {
15
- let { majorVersion, renderer = "react", language = "ts" } = projectInfo ?? {}, versionSegment = majorVersion ? `/${majorVersion}` : "", params = new URLSearchParams();
16
- renderer && params.set("renderer", renderer), params.set("language", language);
17
- let query = params.toString();
18
- return `https://storybook.js.org/docs${versionSegment}/${path}.md${query ? `?${query}` : ""}`;
19
- }
20
-
21
- export {
22
- getDocsMarkdownUrl
23
- };
@@ -1,115 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6190igczsdj from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6190igczsdj from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6190igczsdj from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6190igczsdj.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6190igczsdj.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6190igczsdj.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- batchTestsRule,
14
- buildPortalStep,
15
- buildSharedPreviewStep,
16
- cleanupStep,
17
- cssCheckDOD,
18
- discoveryStepStrict,
19
- editOverWriteRule,
20
- ext,
21
- interactionPlayStep,
22
- listDOD,
23
- listRules,
24
- listSteps,
25
- mswStep,
26
- noPolishRule,
27
- nodeModuleReadsRule,
28
- packageManagerRule,
29
- preferSharedFixesRule,
30
- readBudgetRule,
31
- sharedPreviewDOD,
32
- storyTagsV1DOD,
33
- toolsVsShellRule,
34
- typeCheckPassesStrictDOD,
35
- verifyStep,
36
- vitestPassesStrictDOD,
37
- writeStoriesStep
38
- } from "./chunk-3H256BVV.js";
39
- import {
40
- getDocsMarkdownUrl
41
- } from "./chunk-CCU2X63J.js";
42
-
43
- // src/ai/setup-prompts/optimized-tests.ts
44
- import { dedent } from "ts-dedent";
45
- function instructions(projectInfo) {
46
- let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
47
- ["msw", "msw-storybook-addon", "mockdate"],
48
- !0
49
- ), ctx = {
50
- configDir,
51
- docsUrl,
52
- mswInstall,
53
- needsUserOnboarding,
54
- packageManager,
55
- packageManagerName,
56
- tsx,
57
- ts
58
- };
59
- return dedent`
60
- Your goal is to make Storybook fully functional in this project: configure \`${configDir}/preview.${tsx}\` with the right decorators, add MSW for data, and write up to 10 colocated \`*.stories.${tsx}\` files. Add \`play\` functions only where they prove something non-trivial.
61
-
62
- ## Rules of engagement (follow strictly — these are time budgets, not suggestions)
63
-
64
- ${listRules([
65
- toolsVsShellRule(ctx),
66
- nodeModuleReadsRule(ctx),
67
- readBudgetRule(ctx),
68
- editOverWriteRule(ctx),
69
- batchTestsRule(ctx),
70
- packageManagerRule(ctx),
71
- preferSharedFixesRule(ctx),
72
- noPolishRule(ctx)
73
- ])}
74
-
75
- ## Plan (do not skip steps, but keep each step lean)
76
-
77
- ${listSteps(
78
- [
79
- discoveryStepStrict(projectInfo, ctx),
80
- buildSharedPreviewStep(projectInfo, ctx),
81
- buildPortalStep(projectInfo, ctx),
82
- mswStep(projectInfo, ctx),
83
- writeStoriesStep(projectInfo, ctx),
84
- interactionPlayStep(projectInfo, ctx),
85
- verifyStep(projectInfo, ctx),
86
- cleanupStep(projectInfo, ctx)
87
- ],
88
- { level: 3 }
89
- )}
90
-
91
- ## Done when
92
-
93
- ${listDOD([
94
- cssCheckDOD(ctx),
95
- storyTagsV1DOD(ctx),
96
- vitestPassesStrictDOD(ctx),
97
- typeCheckPassesStrictDOD(ctx),
98
- sharedPreviewDOD(ctx)
99
- ])}
100
-
101
- ## Reference (only fetch if stuck)
102
-
103
- - Docs index: https://storybook.js.org/llms.txt
104
- - Writing stories: ${docsUrl("writing-stories")}
105
- - Decorators: ${docsUrl("writing-stories/decorators")}
106
- - Play functions: ${docsUrl("writing-stories/play-function")}
107
- - Vitest integration: ${docsUrl("writing-tests/vitest-plugin")}
108
-
109
- Append \`?codeOnly=true\` to any docs URL for code-only snippets. Don't fetch unless a specific question can't be answered from this prompt.
110
- `;
111
- }
112
-
113
- export {
114
- instructions
115
- };
@@ -1,119 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6190igczsdj from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6190igczsdj from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6190igczsdj from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6190igczsdj.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6190igczsdj.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6190igczsdj.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- batchTestsRule,
14
- buildPortalStep,
15
- buildSharedPreviewStep,
16
- cleanupStep,
17
- cssCheckDOD,
18
- discoveryStepStrict,
19
- editOverWriteRule,
20
- ext,
21
- interactionPlayStep,
22
- listDOD,
23
- listRules,
24
- listSteps,
25
- monorepoRule,
26
- monorepoStep,
27
- mswStep,
28
- noPolishRule,
29
- nodeModuleReadsRule,
30
- packageManagerRule,
31
- preferSharedFixesRule,
32
- readBudgetRule,
33
- sharedPreviewDOD,
34
- storyTagsV1DOD,
35
- toolsVsShellRule,
36
- typeCheckPassesStrictDOD,
37
- verifyStep,
38
- vitestPassesStrictDOD,
39
- writeStoriesStep
40
- } from "./chunk-3H256BVV.js";
41
- import {
42
- getDocsMarkdownUrl
43
- } from "./chunk-CCU2X63J.js";
44
- import "./chunk-R7EZ5DNN.js";
45
-
46
- // src/ai/setup-prompts/monorepo.ts
47
- import { dedent } from "ts-dedent";
48
- function instructions(projectInfo) {
49
- let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
50
- ["msw", "msw-storybook-addon", "mockdate"],
51
- !0
52
- ), ctx = {
53
- configDir,
54
- docsUrl,
55
- mswInstall,
56
- needsUserOnboarding,
57
- packageManager,
58
- packageManagerName,
59
- tsx,
60
- ts
61
- };
62
- return dedent`
63
- Your goal is to make Storybook fully functional in this project: configure \`${configDir}/preview.${tsx}\` with the right decorators, add MSW for data, and write up to 10 colocated \`*.stories.${tsx}\` files. Add \`play\` functions only where they prove something non-trivial.
64
-
65
- ## Rules of engagement (follow strictly — these are time budgets, not suggestions)
66
-
67
- ${listRules([
68
- toolsVsShellRule(ctx),
69
- nodeModuleReadsRule(ctx),
70
- monorepoRule(ctx),
71
- readBudgetRule(ctx),
72
- editOverWriteRule(ctx),
73
- batchTestsRule(ctx),
74
- packageManagerRule(ctx),
75
- preferSharedFixesRule(ctx),
76
- noPolishRule(ctx)
77
- ])}
78
-
79
- ## Plan (do not skip steps, but keep each step lean)
80
-
81
- ${listSteps(
82
- [
83
- discoveryStepStrict(projectInfo, ctx),
84
- monorepoStep(projectInfo, ctx),
85
- buildSharedPreviewStep(projectInfo, ctx),
86
- buildPortalStep(projectInfo, ctx),
87
- mswStep(projectInfo, ctx),
88
- writeStoriesStep(projectInfo, ctx),
89
- interactionPlayStep(projectInfo, ctx),
90
- verifyStep(projectInfo, ctx),
91
- cleanupStep(projectInfo, ctx)
92
- ],
93
- { level: 3 }
94
- )}
95
-
96
- ## Done when
97
-
98
- ${listDOD([
99
- cssCheckDOD(ctx),
100
- storyTagsV1DOD(ctx),
101
- vitestPassesStrictDOD(ctx),
102
- typeCheckPassesStrictDOD(ctx),
103
- sharedPreviewDOD(ctx)
104
- ])}
105
-
106
- ## Reference (only fetch if stuck)
107
-
108
- - Docs index: https://storybook.js.org/llms.txt
109
- - Writing stories: ${docsUrl("writing-stories")}
110
- - Decorators: ${docsUrl("writing-stories/decorators")}
111
- - Play functions: ${docsUrl("writing-stories/play-function")}
112
- - Vitest integration: ${docsUrl("writing-tests/vitest-plugin")}
113
-
114
- Append \`?codeOnly=true\` to any docs URL for code-only snippets. Don't fetch unless a specific question can't be answered from this prompt.
115
- `;
116
- }
117
- export {
118
- instructions
119
- };
@@ -1,119 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6190igczsdj from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6190igczsdj from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6190igczsdj from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6190igczsdj.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6190igczsdj.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6190igczsdj.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- batchTestsRule,
14
- buildPortalStep,
15
- buildSharedPreviewStep,
16
- cleanupStep,
17
- cssCheckDOD,
18
- discoveryStepRelaxed,
19
- editOverWriteRule,
20
- ext,
21
- interactionPlayStep,
22
- listDOD,
23
- listRules,
24
- listSteps,
25
- monorepoRule,
26
- monorepoStep,
27
- mswStep,
28
- noPolishRule,
29
- nodeModuleReadsRule,
30
- packageManagerRule,
31
- preferSharedFixesRule,
32
- readBudgetRuleRelaxed,
33
- sharedPreviewDOD,
34
- storyTagsV2DOD,
35
- toolsVsShellRule,
36
- typeCheckPassesWhenExpectedDOD,
37
- verifyWithAllowedFailureStep,
38
- vitestPassesWhenExpectedDOD,
39
- writeStoriesWithAllowedFailuresStep
40
- } from "./chunk-3H256BVV.js";
41
- import {
42
- getDocsMarkdownUrl
43
- } from "./chunk-CCU2X63J.js";
44
- import "./chunk-R7EZ5DNN.js";
45
-
46
- // src/ai/setup-prompts/monorepo-optimized-tests-relaxed-limits-no-story-deletion.ts
47
- import { dedent } from "ts-dedent";
48
- function instructions(projectInfo) {
49
- let { configDir, language, needsUserOnboarding, packageManager, packageManagerName } = projectInfo, tsx = ext(language, !0), ts = ext(language, !1), docsUrl = (path) => getDocsMarkdownUrl(path, projectInfo), mswInstall = packageManager.getInstallCommand(
50
- ["msw", "msw-storybook-addon", "mockdate"],
51
- !0
52
- ), ctx = {
53
- configDir,
54
- docsUrl,
55
- mswInstall,
56
- needsUserOnboarding,
57
- packageManager,
58
- packageManagerName,
59
- tsx,
60
- ts
61
- };
62
- return dedent`
63
- Your goal is to make Storybook fully functional in this project: configure \`${configDir}/preview.${tsx}\` with the right decorators, add MSW for data, and write up to 10 colocated \`*.stories.${tsx}\` files. Add \`play\` functions only where they prove something non-trivial.
64
-
65
- ## Rules of engagement (follow strictly — these are time budgets, not suggestions)
66
-
67
- ${listRules([
68
- toolsVsShellRule(ctx),
69
- nodeModuleReadsRule(ctx),
70
- monorepoRule(ctx),
71
- readBudgetRuleRelaxed(ctx),
72
- editOverWriteRule(ctx),
73
- batchTestsRule(ctx),
74
- packageManagerRule(ctx),
75
- preferSharedFixesRule(ctx),
76
- noPolishRule(ctx)
77
- ])}
78
-
79
- ## Plan (do not skip steps, but keep each step lean)
80
-
81
- ${listSteps(
82
- [
83
- discoveryStepRelaxed(projectInfo, ctx),
84
- monorepoStep(projectInfo, ctx),
85
- buildSharedPreviewStep(projectInfo, ctx),
86
- buildPortalStep(projectInfo, ctx),
87
- mswStep(projectInfo, ctx),
88
- writeStoriesWithAllowedFailuresStep(projectInfo, ctx),
89
- interactionPlayStep(projectInfo, ctx),
90
- verifyWithAllowedFailureStep(projectInfo, ctx),
91
- cleanupStep(projectInfo, ctx)
92
- ],
93
- { level: 3 }
94
- )}
95
-
96
- ## Done when
97
-
98
- ${listDOD([
99
- cssCheckDOD(ctx),
100
- storyTagsV2DOD(ctx),
101
- vitestPassesWhenExpectedDOD(ctx),
102
- typeCheckPassesWhenExpectedDOD(ctx),
103
- sharedPreviewDOD(ctx)
104
- ])}
105
-
106
- ## Reference (only fetch if stuck)
107
-
108
- - Docs index: https://storybook.js.org/llms.txt
109
- - Writing stories: ${docsUrl("writing-stories")}
110
- - Decorators: ${docsUrl("writing-stories/decorators")}
111
- - Play functions: ${docsUrl("writing-stories/play-function")}
112
- - Vitest integration: ${docsUrl("writing-tests/vitest-plugin")}
113
-
114
- Append \`?codeOnly=true\` to any docs URL for code-only snippets. Don't fetch unless a specific question can't be answered from this prompt.
115
- `;
116
- }
117
- export {
118
- instructions
119
- };
@@ -1,20 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_6190igczsdj from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_6190igczsdj from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_6190igczsdj from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_6190igczsdj.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_6190igczsdj.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_6190igczsdj.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- instructions
14
- } from "./chunk-KMH47TOJ.js";
15
- import "./chunk-3H256BVV.js";
16
- import "./chunk-CCU2X63J.js";
17
- import "./chunk-R7EZ5DNN.js";
18
- export {
19
- instructions
20
- };