@clearlydev/nx-archweave 0.6.0 → 0.7.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.
Files changed (59) hide show
  1. package/README.md +34 -3
  2. package/dist/bin/review-verdict.js +2 -2
  3. package/dist/eslint/index.js +1 -1
  4. package/dist/generators/_chunks/{chunk-MQNQJOWA.js → chunk-22FVJUNE.js} +4 -2
  5. package/dist/generators/_chunks/{chunk-JNYQTW7S.js → chunk-2ADC6RKP.js} +2 -2
  6. package/dist/generators/_chunks/{chunk-XSALM2IR.js → chunk-6PKKKQMD.js} +55 -11
  7. package/dist/generators/_chunks/chunk-72D3GWHO.js +269 -0
  8. package/dist/generators/_chunks/{chunk-C2WELXMV.js → chunk-736LFDT4.js} +33 -9
  9. package/dist/generators/_chunks/{chunk-VCLVE4EQ.js → chunk-7RTT5NBN.js} +4 -4
  10. package/dist/generators/_chunks/chunk-AOKTOS3U.js +294 -0
  11. package/dist/generators/_chunks/chunk-B6RBCUIL.js +325 -0
  12. package/dist/generators/_chunks/chunk-BDLK2IID.js +10 -0
  13. package/dist/generators/_chunks/{chunk-M7UBCSYL.js → chunk-CHZPA6OE.js} +5 -3
  14. package/dist/generators/_chunks/{chunk-3HSNM6AS.js → chunk-DAXD47YO.js} +9 -7
  15. package/dist/generators/_chunks/{chunk-LJRFVE6B.js → chunk-F5C5HUSI.js} +10 -9
  16. package/dist/generators/_chunks/chunk-GN76UMTK.js +28 -0
  17. package/dist/generators/_chunks/{chunk-ZRHIFPUC.js → chunk-J24X4EOB.js} +1 -1
  18. package/dist/generators/_chunks/{chunk-23NN76E3.js → chunk-JSHZ6VSW.js} +1 -1
  19. package/dist/generators/_chunks/chunk-KNVBFTH4.js +64 -0
  20. package/dist/generators/_chunks/chunk-MF75SQM6.js +98 -0
  21. package/dist/generators/_chunks/chunk-N6SPEKJB.js +106 -0
  22. package/dist/generators/_chunks/chunk-OX7W4SJ2.js +214 -0
  23. package/dist/generators/_chunks/chunk-R2VEJGNP.js +84 -0
  24. package/dist/generators/_chunks/chunk-SBOQHME6.js +140 -0
  25. package/dist/generators/_chunks/{chunk-7EDJKUY4.js → chunk-STGNMZLM.js} +1 -1
  26. package/dist/generators/_chunks/{chunk-XXXON43Z.js → chunk-SZRBDQCU.js} +4 -51
  27. package/dist/generators/_chunks/{chunk-FBCIELXS.js → chunk-W2BBF5MS.js} +5 -86
  28. package/dist/generators/_chunks/{chunk-2WXAGWAJ.js → chunk-YVISD736.js} +3 -1
  29. package/dist/generators/add-agent-rules/generator.js +4 -3
  30. package/dist/generators/add-backend/generator.js +3 -2
  31. package/dist/generators/add-fsd-lite/generator.js +8 -5
  32. package/dist/generators/add-github-templates/generator.js +3 -2
  33. package/dist/generators/add-integration/generator.js +6 -3
  34. package/dist/generators/add-review/generator.js +4 -3
  35. package/dist/generators/add-storybook/files/example/button/button.stories.tsx.template +13 -0
  36. package/dist/generators/add-storybook/files/example/button/button.tsx.template +7 -0
  37. package/dist/generators/add-storybook/files/example/index.ts.template +1 -0
  38. package/dist/generators/add-storybook/files/library/tailwind.css.template +2 -0
  39. package/dist/generators/add-storybook/generator.js +28 -0
  40. package/dist/generators/add-tailwind/files/next/postcss.config.mjs.template +7 -0
  41. package/dist/generators/add-tailwind/files/react-vite/index.css.template +2 -0
  42. package/dist/generators/add-tailwind/generator.js +26 -0
  43. package/dist/generators/allow-builds/generator.js +11 -208
  44. package/dist/generators/doctor/generator.js +444 -61
  45. package/dist/generators/entity/generator.js +5 -3
  46. package/dist/generators/feature/generator.js +5 -3
  47. package/dist/generators/init/generator.js +81 -20
  48. package/dist/generators/install-integration/generator.js +6 -3
  49. package/dist/generators/page/generator.js +5 -3
  50. package/dist/generators/record-integration/generator.js +4 -1
  51. package/dist/generators/shared/generator.js +5 -3
  52. package/dist/generators/widget/generator.js +5 -3
  53. package/dist/migrations/update-0.5.3/add-toolkit-config-lint-input.js +9 -4
  54. package/generators.json +10 -0
  55. package/package.json +6 -1
  56. package/src/generators/add-agent-rules/schema.json +2 -2
  57. package/src/generators/add-storybook/schema.json +33 -0
  58. package/src/generators/add-tailwind/schema.json +18 -0
  59. package/src/generators/init/schema.json +8 -0
@@ -0,0 +1,84 @@
1
+ // ../template-engine/dist/fsd/slice-rules.js
2
+ function toCamelCase(kebabName) {
3
+ return kebabName.split("-").filter((part) => part.length > 0).map((part, index) => index === 0 ? part : part.charAt(0).toUpperCase() + part.slice(1)).join("");
4
+ }
5
+ function resolveSlicePublicApiName(name, publicApiName) {
6
+ return publicApiName ?? toCamelCase(name);
7
+ }
8
+ var IDENTIFIER_PATTERN = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
9
+ var RESERVED_WORDS = /* @__PURE__ */ new Set([
10
+ "await",
11
+ "break",
12
+ "case",
13
+ "catch",
14
+ "class",
15
+ "const",
16
+ "continue",
17
+ "debugger",
18
+ "default",
19
+ "delete",
20
+ "do",
21
+ "else",
22
+ "enum",
23
+ "export",
24
+ "extends",
25
+ "false",
26
+ "finally",
27
+ "for",
28
+ "function",
29
+ "if",
30
+ "implements",
31
+ "import",
32
+ "in",
33
+ "instanceof",
34
+ "interface",
35
+ "let",
36
+ "new",
37
+ "null",
38
+ "package",
39
+ "private",
40
+ "protected",
41
+ "public",
42
+ "return",
43
+ "static",
44
+ "super",
45
+ "switch",
46
+ "this",
47
+ "throw",
48
+ "true",
49
+ "try",
50
+ "typeof",
51
+ "var",
52
+ "void",
53
+ "while",
54
+ "with",
55
+ "yield"
56
+ ]);
57
+ function isUsableSliceApiName(candidate) {
58
+ return IDENTIFIER_PATTERN.test(candidate) && !RESERVED_WORDS.has(candidate);
59
+ }
60
+ var ESSENCE_SEGMENT_NAMES = [
61
+ "components",
62
+ "hooks",
63
+ "helpers",
64
+ "utils",
65
+ "types",
66
+ "constants",
67
+ "consts",
68
+ "interfaces",
69
+ "enums",
70
+ "modals",
71
+ "stores",
72
+ "services"
73
+ ];
74
+ function isEssenceSegmentName(name) {
75
+ return ESSENCE_SEGMENT_NAMES.includes(name);
76
+ }
77
+ var SEGMENT_NAME_PATTERN = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
78
+
79
+ export {
80
+ resolveSlicePublicApiName,
81
+ isUsableSliceApiName,
82
+ isEssenceSegmentName,
83
+ SEGMENT_NAME_PATTERN
84
+ };
@@ -0,0 +1,140 @@
1
+ import {
2
+ toolTargetRefusalLines
3
+ } from "./chunk-GN76UMTK.js";
4
+ import {
5
+ INSTALL_ASSUMES_PNPM
6
+ } from "./chunk-5Z7VZPES.js";
7
+
8
+ // src/generators/add-storybook/render.ts
9
+ var NOT_WIRED_REASONS = {
10
+ "no-stories-glob": "no stories array this generator recognises",
11
+ "narrow-stories-glob": "the stories don't reach the whole source root",
12
+ "no-eslint-config": "no ESLint flat config found",
13
+ "unknown-eslint-config": "an ESLint config shape this generator does not edit",
14
+ "without-apply-eslint": "ESLint configs are written only with --applyEslint",
15
+ "no-preview": "no .storybook/preview file",
16
+ "no-tailwind-stylesheet": "the app's Tailwind stylesheet doesn't exist \u2014 rerun add-tailwind, or see doctor's tailwind-setup",
17
+ "no-plugins-array": "no plugins array this generator recognises",
18
+ "several-plugins-arrays": "more than one plugins array",
19
+ "no-react-plugin": "no react() plugin to put it after",
20
+ "tailwind-import-shape": "@tailwindcss/vite is loaded some other way than import tailwindcss from \u2026",
21
+ "tailwind-call-outside-plugins": "tailwindcss() is called outside the plugins array",
22
+ "no-vite-config": "no such file (.storybook/main names it as viteConfigPath)",
23
+ "no-vite-target": "no viteFinal or viteConfigPath in .storybook/main, and no single vite.config in the library, to add the plugin to"
24
+ };
25
+ var APPLIED_WHAT = {
26
+ "tailwind-plugin": " (Tailwind's Vite plugin in viteFinal)",
27
+ "tailwind-plugin-vite-config": " (Tailwind's Vite plugin \u2014 its Storybook loads this config through viteConfigPath)",
28
+ "tailwind-plugin-default-vite-config": " (Tailwind's Vite plugin \u2014 .storybook/main names no viteConfigPath, so its Storybook loads this config)"
29
+ };
30
+ function renderStep(step, lines) {
31
+ switch (step.outcome) {
32
+ case "created":
33
+ lines.push(` ${step.file}: created`);
34
+ break;
35
+ case "applied":
36
+ lines.push(` ${step.file}: updated${step.what === void 0 ? "" : APPLIED_WHAT[step.what]}`);
37
+ break;
38
+ case "already-applied":
39
+ lines.push(` ${step.file}: already set up \u2014 no change`);
40
+ break;
41
+ case "not-wired": {
42
+ const reason = NOT_WIRED_REASONS[step.reason ?? ""] ?? step.reason;
43
+ const lead = (step.lines ?? []).length === 0 ? "" : step.target === void 0 ? " Add this yourself:" : ` Add these lines to ${step.target}:`;
44
+ lines.push(` ${step.file}: NOT changed \u2014 ${reason}.${lead}`);
45
+ for (const line of step.lines ?? []) lines.push(` ${line}`);
46
+ if (step.note !== void 0) lines.push(` Why the ignore line: ${step.note}.`);
47
+ break;
48
+ }
49
+ }
50
+ }
51
+ function renderRefusal(refusal, lines) {
52
+ if (refusal.reason === "no-storybook-config") {
53
+ lines.push(` ${refusal.project} has no Storybook configuration yet (.storybook/main). Set it up with Nx first, then rerun:`);
54
+ refusal.commands.forEach((command, index) => {
55
+ lines.push(` ${index + 1}. ${command}`);
56
+ if (index === 1 && refusal.coreJsPure !== null) {
57
+ lines.push(" If this ends with ERR_PNPM_IGNORED_BUILDS: core-js-pure (its postinstall only prints a banner), record it as not allowed and install again:");
58
+ for (const extra of refusal.coreJsPure) lines.push(` ${extra}`);
59
+ }
60
+ });
61
+ } else if (refusal.reason === "library-framework") {
62
+ const { project, root, framework, commands } = refusal;
63
+ lines.push(...toolTargetRefusalLines({ reason: "unsupported-library", project, root, framework }, "add-storybook"));
64
+ lines.push(" To switch it to @storybook/react-vite (rerunning Nx's setup over an existing .storybook/ changes nothing):");
65
+ [
66
+ `Copy anything you changed in ${root}/.storybook/ somewhere safe.`,
67
+ `Delete ${root}/.storybook/ and ${root}/tsconfig.storybook.json.`,
68
+ commands[0],
69
+ `Nx lists ./tsconfig.storybook.json twice in ${root}/tsconfig.json's references \u2014 remove one, or typecheck fails.`,
70
+ `Type the stories from '@storybook/react-vite' instead of '${framework}'.`,
71
+ commands[1]
72
+ ].forEach((step, index) => lines.push(` ${index + 1}. ${step}`));
73
+ } else if (refusal.reason === "no-storybook-dependency") {
74
+ lines.push(` ${refusal.project} has a .storybook/main, but no package.json in the workspace declares storybook. Rerun Nx's setup (${refusal.command}), then rerun add-storybook.`);
75
+ } else {
76
+ lines.push(...toolTargetRefusalLines(refusal, "add-storybook"));
77
+ }
78
+ }
79
+ function renderAddStorybookReport(report) {
80
+ const lines = [];
81
+ if (report.refusal !== null) {
82
+ lines.push("add-storybook refused \u2014 nothing was written.");
83
+ renderRefusal(report.refusal, lines);
84
+ return lines.join("\n");
85
+ }
86
+ if (report.dryRun) lines.push("add-storybook dry-run \u2014 no files were written.");
87
+ lines.push(`Storybook for ${report.project} (${report.framework === "next" ? "Next.js" : "React + Vite"}${report.projectType === "library" ? " library" : ""}):`);
88
+ for (const step of report.steps) renderStep(step, lines);
89
+ if (report.steps.some((step) => step.reason === "without-apply-eslint")) {
90
+ lines.push(" Rerun with --applyEslint to have add-storybook write these lines.");
91
+ }
92
+ if (report.tailwindIgnored) {
93
+ lines.push("--tailwind: not used for an app \u2014 apps follow tailwind.projects (add-tailwind); --tailwind applies to libraries.");
94
+ }
95
+ if (report.dependencies === "added") {
96
+ lines.push(`Dependencies: added to package.json devDependencies: ${report.added.join(", ")}`);
97
+ if (report.pluginReact) lines.push(` @vitejs/plugin-react: Nx's library setup imports it but didn't add it; ^5.2.0 works with the Vite it installs.`);
98
+ if (report.installCommand !== null) {
99
+ lines.push(` Install them: ${report.installCommand}${report.installAssumed ? ` (${INSTALL_ASSUMES_PNPM})` : ""}`);
100
+ }
101
+ } else if (report.dependencies === "present") {
102
+ lines.push("Dependencies: already in package.json \u2014 no change");
103
+ } else if (report.dependencies === "unrecognized") {
104
+ lines.push(`Dependencies: NOT added \u2014 the root package.json is not a JSON object. Add ${report.added.join(", ")} yourself.`);
105
+ }
106
+ if (report.example?.outcome === "created") {
107
+ lines.push("Example (--example):");
108
+ for (const file of report.example.files) lines.push(` ${file}: created`);
109
+ } else if (report.example?.outcome === "not-for-libraries") {
110
+ lines.push("Example (--example): NOT created \u2014 --example applies to apps (shared/ui)");
111
+ } else if (report.example?.outcome === "skipped") {
112
+ lines.push("Example (--example): NOT created \u2014 these already exist, so none of the example was written:");
113
+ for (const file of report.example.existing) lines.push(` ${file}`);
114
+ }
115
+ switch (report.record) {
116
+ case "created":
117
+ case "updated":
118
+ lines.push(`toolkit.config.json: recorded ${report.project} under storybook.projects`);
119
+ break;
120
+ case "unchanged":
121
+ lines.push(`toolkit.config.json: ${report.project} already recorded \u2014 no change`);
122
+ break;
123
+ case "unrecognized":
124
+ lines.push("toolkit.config.json: not recorded \u2014 the file is not a JSON object, so doctor can't check this app's Storybook setup. Fix the file and rerun add-storybook.");
125
+ break;
126
+ case null:
127
+ break;
128
+ }
129
+ if (report.tailwindRecord === "created" || report.tailwindRecord === "updated") {
130
+ lines.push(`toolkit.config.json: recorded ${report.project} under storybook.tailwind \u2014 its Storybook loads Tailwind`);
131
+ }
132
+ if (report.replacedSection) {
133
+ lines.push(' "storybook" was not an object in toolkit.config.json; it now holds { "projects": [...] }.');
134
+ }
135
+ return lines.join("\n");
136
+ }
137
+
138
+ export {
139
+ renderAddStorybookReport
140
+ };
@@ -27,7 +27,7 @@ import {
27
27
  readToolkitConfigFile,
28
28
  setJsonValue,
29
29
  treePackageManager
30
- } from "./chunk-C2WELXMV.js";
30
+ } from "./chunk-736LFDT4.js";
31
31
  import {
32
32
  INSTALL_ASSUMES_PNPM,
33
33
  detectYarnFlavor,
@@ -1,3 +1,6 @@
1
+ import {
2
+ insertConfigEntries
3
+ } from "./chunk-KNVBFTH4.js";
1
4
  import {
2
5
  maskComments
3
6
  } from "./chunk-6ZTIUBB2.js";
@@ -61,60 +64,10 @@ function buildFsdLayerGuide({ layers, directories, sourceRoot, locale, runNx = "
61
64
  function classifyFsdEslintConfig(configText) {
62
65
  return maskComments(configText).includes(FSD_ESLINT_MODULE) ? "applied" : "absent";
63
66
  }
64
- var EXPORT_DEFAULT_ARRAY = /export\s+default\s+\[/g;
65
- var IMPORT_STATEMENT = /^import\b[^;]*?\bfrom\s+['"][^'"]+['"]\s*;?[ \t]*$/gm;
66
- var CLOSING_BRACKET = /\]\s*;?\s*$/;
67
- function closingBracketOf(masked, open) {
68
- let depth = 0;
69
- for (let i = open; i < masked.length; i++) {
70
- const ch = masked[i];
71
- if (ch === '"' || ch === "'" || ch === "`") {
72
- for (i++; i < masked.length && masked[i] !== ch; i++)
73
- if (masked[i] === "\\")
74
- i++;
75
- continue;
76
- }
77
- if (ch === "[")
78
- depth++;
79
- else if (ch === "]" && --depth === 0)
80
- return i;
81
- }
82
- return -1;
83
- }
84
- function namedConfigArrayEnd(masked) {
85
- const exported = [...masked.matchAll(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;?/g)];
86
- if (exported.length !== 1)
87
- return -1;
88
- const declaration = new RegExp(`(?:const|let|var)\\s+${exported[0][1].replace(/\$/g, "\\$")}\\s*=\\s*(?:defineConfig\\s*\\(\\s*)?\\[`).exec(masked);
89
- if (declaration === null)
90
- return -1;
91
- return closingBracketOf(masked, declaration.index + declaration[0].length - 1);
92
- }
93
67
  function applyFsdEslintConfig(configText, severity, root = "src", framework = {}) {
94
68
  if (classifyFsdEslintConfig(configText) === "applied")
95
69
  return { status: "already-applied" };
96
- const masked = maskComments(configText);
97
- EXPORT_DEFAULT_ARRAY.lastIndex = 0;
98
- const exportMatches = masked.match(EXPORT_DEFAULT_ARRAY) ?? [];
99
- const closing = CLOSING_BRACKET.exec(masked);
100
- const closingIndex = exportMatches.length === 1 && closing !== null ? closing.index : namedConfigArrayEnd(masked);
101
- if (closingIndex === -1)
102
- return { status: "unrecognized" };
103
- const eol = configText.includes("\r\n") ? "\r\n" : "\n";
104
- const before = configText.slice(0, closingIndex);
105
- const lastNonSpace = before.replace(/\s+$/, "");
106
- const needsComma = !lastNonSpace.endsWith(",") && !lastNonSpace.endsWith("[");
107
- const entryText = `${needsComma ? "," : ""}${eol} ${buildFsdEslintEntry(severity, root, framework)}${eol}`;
108
- const withEntry = `${lastNonSpace}${entryText}${configText.slice(closingIndex)}`;
109
- IMPORT_STATEMENT.lastIndex = 0;
110
- let lastImportEnd = -1;
111
- const maskedWithEntry = maskComments(withEntry);
112
- for (let m = IMPORT_STATEMENT.exec(maskedWithEntry); m !== null; m = IMPORT_STATEMENT.exec(maskedWithEntry)) {
113
- lastImportEnd = m.index + m[0].length;
114
- }
115
- const importLine = buildFsdEslintImportLine();
116
- const text = lastImportEnd === -1 ? `${importLine}${eol}${eol}${withEntry}` : `${withEntry.slice(0, lastImportEnd)}${eol}${importLine}${withEntry.slice(lastImportEnd)}`;
117
- return { status: "applied", text };
70
+ return insertConfigEntries(configText, [buildFsdEslintImportLine()], [buildFsdEslintEntry(severity, root, framework)]);
118
71
  }
119
72
  function buildFsdEslintPasteSnippet(severity, locale, root = "src", framework = {}) {
120
73
  return buildFsdEslintSnippet({ severity, locale, root, framework });
@@ -9,90 +9,10 @@ import {
9
9
  } from "./chunk-6ZTIUBB2.js";
10
10
  import {
11
11
  readToolkitConfig
12
- } from "./chunk-C2WELXMV.js";
12
+ } from "./chunk-736LFDT4.js";
13
13
 
14
14
  // src/generators/shared/frontend-app.ts
15
15
  import { getProjects } from "@nx/devkit";
16
-
17
- // ../template-engine/dist/fsd/slice-rules.js
18
- function toCamelCase(kebabName) {
19
- return kebabName.split("-").filter((part) => part.length > 0).map((part, index) => index === 0 ? part : part.charAt(0).toUpperCase() + part.slice(1)).join("");
20
- }
21
- function resolveSlicePublicApiName(name, publicApiName) {
22
- return publicApiName ?? toCamelCase(name);
23
- }
24
- var IDENTIFIER_PATTERN = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
25
- var RESERVED_WORDS = /* @__PURE__ */ new Set([
26
- "await",
27
- "break",
28
- "case",
29
- "catch",
30
- "class",
31
- "const",
32
- "continue",
33
- "debugger",
34
- "default",
35
- "delete",
36
- "do",
37
- "else",
38
- "enum",
39
- "export",
40
- "extends",
41
- "false",
42
- "finally",
43
- "for",
44
- "function",
45
- "if",
46
- "implements",
47
- "import",
48
- "in",
49
- "instanceof",
50
- "interface",
51
- "let",
52
- "new",
53
- "null",
54
- "package",
55
- "private",
56
- "protected",
57
- "public",
58
- "return",
59
- "static",
60
- "super",
61
- "switch",
62
- "this",
63
- "throw",
64
- "true",
65
- "try",
66
- "typeof",
67
- "var",
68
- "void",
69
- "while",
70
- "with",
71
- "yield"
72
- ]);
73
- function isUsableSliceApiName(candidate) {
74
- return IDENTIFIER_PATTERN.test(candidate) && !RESERVED_WORDS.has(candidate);
75
- }
76
- var ESSENCE_SEGMENT_NAMES = [
77
- "components",
78
- "hooks",
79
- "helpers",
80
- "utils",
81
- "types",
82
- "constants",
83
- "consts",
84
- "interfaces",
85
- "enums",
86
- "modals",
87
- "stores",
88
- "services"
89
- ];
90
- function isEssenceSegmentName(name) {
91
- return ESSENCE_SEGMENT_NAMES.includes(name);
92
- }
93
- var SEGMENT_NAME_PATTERN = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
94
-
95
- // src/generators/shared/frontend-app.ts
96
16
  var baseNameOf = (root) => root.split("/").pop() ?? root;
97
17
  function isEndToEnd(root) {
98
18
  const dir = baseNameOf(root);
@@ -176,10 +96,9 @@ function inferredRootApp(tree, projects) {
176
96
  }
177
97
 
178
98
  export {
179
- resolveSlicePublicApiName,
180
- isUsableSliceApiName,
181
- isEssenceSegmentName,
182
- SEGMENT_NAME_PATTERN,
99
+ isEndToEnd,
100
+ isBackend,
183
101
  sourceRootOf,
184
- resolveFrontendApp
102
+ resolveFrontendApp,
103
+ inferredRootApp
185
104
  };
@@ -465,7 +465,7 @@ function buildOverEngineeringPrompt(locale) {
465
465
  return [...body, "", renderFindingSchemaInstruction(locale, OVER_ENGINEERING_PRIORITIES), "", renderDedupInstruction(locale)].join("\n");
466
466
  }
467
467
 
468
- // ../template-engine/dist/review/action-pins.js
468
+ // ../template-engine/dist/review/action-pins.generated.js
469
469
  var ACTION_PINS = {
470
470
  "actions/checkout": "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1",
471
471
  "actions/setup-node": "actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0",
@@ -475,6 +475,8 @@ var ACTION_PINS = {
475
475
  "google-github-actions/run-gemini-cli": "google-github-actions/run-gemini-cli@f77273f4c914e4bf38440cf36a0369cb64a37489 # v0.1.22",
476
476
  "openai/codex-action": "openai/codex-action@306c6a196a99dcc6582530c396a19d2672d5e9ec # v1.14"
477
477
  };
478
+
479
+ // ../template-engine/dist/review/action-pins.js
478
480
  function pinnedUses(action) {
479
481
  return ACTION_PINS[action];
480
482
  }
@@ -2,15 +2,16 @@ import {
2
2
  addAgentRulesGenerator,
3
3
  generator_default,
4
4
  runAddAgentRules
5
- } from "../_chunks/chunk-3HSNM6AS.js";
6
- import "../_chunks/chunk-LJRFVE6B.js";
5
+ } from "../_chunks/chunk-DAXD47YO.js";
6
+ import "../_chunks/chunk-F5C5HUSI.js";
7
7
  import "../_chunks/chunk-CSJZ4PP3.js";
8
8
  import "../_chunks/chunk-5MI3O4VZ.js";
9
9
  import "../_chunks/chunk-6ZTIUBB2.js";
10
10
  import "../_chunks/chunk-JPS6XKYK.js";
11
11
  import "../_chunks/chunk-TUN34LAQ.js";
12
- import "../_chunks/chunk-C2WELXMV.js";
12
+ import "../_chunks/chunk-736LFDT4.js";
13
13
  import "../_chunks/chunk-5Z7VZPES.js";
14
+ import "../_chunks/chunk-BDLK2IID.js";
14
15
  export {
15
16
  addAgentRulesGenerator,
16
17
  generator_default as default,
@@ -2,14 +2,15 @@ import {
2
2
  addBackendGenerator,
3
3
  generator_default,
4
4
  runAddBackend
5
- } from "../_chunks/chunk-7EDJKUY4.js";
5
+ } from "../_chunks/chunk-STGNMZLM.js";
6
6
  import "../_chunks/chunk-SHKQSTV2.js";
7
7
  import "../_chunks/chunk-WNO3ZGBB.js";
8
8
  import "../_chunks/chunk-TXAQ2GJC.js";
9
9
  import "../_chunks/chunk-6ZTIUBB2.js";
10
10
  import "../_chunks/chunk-TUN34LAQ.js";
11
- import "../_chunks/chunk-C2WELXMV.js";
11
+ import "../_chunks/chunk-736LFDT4.js";
12
12
  import "../_chunks/chunk-5Z7VZPES.js";
13
+ import "../_chunks/chunk-BDLK2IID.js";
13
14
  export {
14
15
  addBackendGenerator,
15
16
  generator_default as default,
@@ -2,18 +2,21 @@ import {
2
2
  addFsdLiteGenerator,
3
3
  generator_default,
4
4
  runAddFsdLite
5
- } from "../_chunks/chunk-VCLVE4EQ.js";
5
+ } from "../_chunks/chunk-7RTT5NBN.js";
6
6
  import "../_chunks/chunk-AMOOSD5Q.js";
7
- import "../_chunks/chunk-XXXON43Z.js";
8
- import "../_chunks/chunk-FBCIELXS.js";
7
+ import "../_chunks/chunk-SZRBDQCU.js";
8
+ import "../_chunks/chunk-KNVBFTH4.js";
9
+ import "../_chunks/chunk-R2VEJGNP.js";
10
+ import "../_chunks/chunk-W2BBF5MS.js";
9
11
  import "../_chunks/chunk-YEMQFSL6.js";
10
12
  import "../_chunks/chunk-TXAQ2GJC.js";
11
13
  import "../_chunks/chunk-6ZTIUBB2.js";
12
14
  import "../_chunks/chunk-JPS6XKYK.js";
13
15
  import "../_chunks/chunk-TUN34LAQ.js";
14
- import "../_chunks/chunk-23NN76E3.js";
15
- import "../_chunks/chunk-C2WELXMV.js";
16
+ import "../_chunks/chunk-JSHZ6VSW.js";
17
+ import "../_chunks/chunk-736LFDT4.js";
16
18
  import "../_chunks/chunk-5Z7VZPES.js";
19
+ import "../_chunks/chunk-BDLK2IID.js";
17
20
  export {
18
21
  addFsdLiteGenerator,
19
22
  generator_default as default,
@@ -6,13 +6,14 @@ import {
6
6
  addGithubTemplatesGenerator,
7
7
  generator_default,
8
8
  runAddGithubTemplates
9
- } from "../_chunks/chunk-ZRHIFPUC.js";
9
+ } from "../_chunks/chunk-J24X4EOB.js";
10
10
  import "../_chunks/chunk-FZGN5NEP.js";
11
11
  import "../_chunks/chunk-YNMLB4DL.js";
12
12
  import "../_chunks/chunk-JPS6XKYK.js";
13
13
  import "../_chunks/chunk-TUN34LAQ.js";
14
- import "../_chunks/chunk-C2WELXMV.js";
14
+ import "../_chunks/chunk-736LFDT4.js";
15
15
  import "../_chunks/chunk-5Z7VZPES.js";
16
+ import "../_chunks/chunk-BDLK2IID.js";
16
17
  export {
17
18
  BUG_REPORT_PATH,
18
19
  CODEOWNERS_PATH,
@@ -10,9 +10,12 @@ import {
10
10
  import "../_chunks/chunk-34V6HAJT.js";
11
11
  import {
12
12
  diskRunNx
13
- } from "../_chunks/chunk-23NN76E3.js";
14
- import "../_chunks/chunk-C2WELXMV.js";
13
+ } from "../_chunks/chunk-JSHZ6VSW.js";
14
+ import "../_chunks/chunk-736LFDT4.js";
15
15
  import "../_chunks/chunk-5Z7VZPES.js";
16
+ import {
17
+ messageOnlyError
18
+ } from "../_chunks/chunk-BDLK2IID.js";
16
19
 
17
20
  // src/generators/add-integration/render.ts
18
21
  function renderIntegrationPlan(view) {
@@ -52,7 +55,7 @@ async function addIntegrationGenerator(tree, options, deps = {}) {
52
55
  const integration = root.getIntegration(options.tool);
53
56
  const entry = getCatalogEntry(options.tool);
54
57
  if (!integration || !entry) {
55
- throw new Error(`Unsupported integration "${options.tool}". Supported: ${PLUGIN_IDS.join(", ")}.`);
58
+ throw messageOnlyError(`Unsupported integration "${options.tool}". Supported: ${PLUGIN_IDS.join(", ")}.`);
56
59
  }
57
60
  const scope = options.scope ?? DEFAULT_PLUGIN_SCOPE;
58
61
  const teamCommand = scope === "project" ? projectMarketplaceCommand(entry) : null;
@@ -3,14 +3,15 @@ import {
3
3
  generator_default,
4
4
  recordedReview,
5
5
  runAddReview
6
- } from "../_chunks/chunk-JNYQTW7S.js";
7
- import "../_chunks/chunk-2WXAGWAJ.js";
6
+ } from "../_chunks/chunk-2ADC6RKP.js";
7
+ import "../_chunks/chunk-YVISD736.js";
8
8
  import "../_chunks/chunk-CSJZ4PP3.js";
9
9
  import "../_chunks/chunk-YNMLB4DL.js";
10
10
  import "../_chunks/chunk-JPS6XKYK.js";
11
11
  import "../_chunks/chunk-TUN34LAQ.js";
12
- import "../_chunks/chunk-C2WELXMV.js";
12
+ import "../_chunks/chunk-736LFDT4.js";
13
13
  import "../_chunks/chunk-5Z7VZPES.js";
14
+ import "../_chunks/chunk-BDLK2IID.js";
14
15
  export {
15
16
  addReviewGenerator,
16
17
  generator_default as default,
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from '<%- storybookFramework %>';
2
+ import { Button } from './button';
3
+
4
+ const meta = {
5
+ title: 'shared/ui/Button',
6
+ component: Button,
7
+ args: { children: 'Button' },
8
+ } satisfies Meta<typeof Button>;
9
+ export default meta;
10
+
11
+ type Story = StoryObj<typeof meta>;
12
+
13
+ export const Primary = {} satisfies Story;
@@ -0,0 +1,7 @@
1
+ import type { ButtonHTMLAttributes } from 'react';
2
+
3
+ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
4
+
5
+ export function Button({ type = 'button', ...props }: ButtonProps) {
6
+ return <button type={type} {...props} />;
7
+ }
@@ -0,0 +1 @@
1
+ export { Button } from './button/button';
@@ -0,0 +1,2 @@
1
+ @import "tailwindcss";
2
+ @source "../src";
@@ -0,0 +1,28 @@
1
+ import {
2
+ addStorybookGenerator,
3
+ generator_default,
4
+ runAddStorybook,
5
+ storybookRange
6
+ } from "../_chunks/chunk-AOKTOS3U.js";
7
+ import "../_chunks/chunk-SBOQHME6.js";
8
+ import "../_chunks/chunk-MF75SQM6.js";
9
+ import "../_chunks/chunk-GN76UMTK.js";
10
+ import "../_chunks/chunk-OX7W4SJ2.js";
11
+ import "../_chunks/chunk-B6RBCUIL.js";
12
+ import "../_chunks/chunk-KNVBFTH4.js";
13
+ import "../_chunks/chunk-W2BBF5MS.js";
14
+ import "../_chunks/chunk-YEMQFSL6.js";
15
+ import "../_chunks/chunk-TXAQ2GJC.js";
16
+ import "../_chunks/chunk-6ZTIUBB2.js";
17
+ import "../_chunks/chunk-YNMLB4DL.js";
18
+ import "../_chunks/chunk-TUN34LAQ.js";
19
+ import "../_chunks/chunk-JSHZ6VSW.js";
20
+ import "../_chunks/chunk-736LFDT4.js";
21
+ import "../_chunks/chunk-5Z7VZPES.js";
22
+ import "../_chunks/chunk-BDLK2IID.js";
23
+ export {
24
+ addStorybookGenerator,
25
+ generator_default as default,
26
+ runAddStorybook,
27
+ storybookRange
28
+ };
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ '@tailwindcss/postcss': {},
4
+ },
5
+ };
6
+
7
+ export default config;
@@ -0,0 +1,2 @@
1
+ <%- tailwindImport %>
2
+ <%- sourceLine %>
@@ -0,0 +1,26 @@
1
+ import {
2
+ addTailwindGenerator,
3
+ generator_default,
4
+ runAddTailwind,
5
+ tailwindStylesheet
6
+ } from "../_chunks/chunk-72D3GWHO.js";
7
+ import "../_chunks/chunk-N6SPEKJB.js";
8
+ import "../_chunks/chunk-MF75SQM6.js";
9
+ import "../_chunks/chunk-GN76UMTK.js";
10
+ import "../_chunks/chunk-B6RBCUIL.js";
11
+ import "../_chunks/chunk-KNVBFTH4.js";
12
+ import "../_chunks/chunk-W2BBF5MS.js";
13
+ import "../_chunks/chunk-YEMQFSL6.js";
14
+ import "../_chunks/chunk-TXAQ2GJC.js";
15
+ import "../_chunks/chunk-6ZTIUBB2.js";
16
+ import "../_chunks/chunk-YNMLB4DL.js";
17
+ import "../_chunks/chunk-TUN34LAQ.js";
18
+ import "../_chunks/chunk-736LFDT4.js";
19
+ import "../_chunks/chunk-5Z7VZPES.js";
20
+ import "../_chunks/chunk-BDLK2IID.js";
21
+ export {
22
+ addTailwindGenerator,
23
+ generator_default as default,
24
+ runAddTailwind,
25
+ tailwindStylesheet
26
+ };