Skip to content

Commit 6d43d56

Browse files
KirklandGeeclaude
andcommitted
Remove Simple component variant from generator workflow
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent cd7b20c commit 6d43d56

File tree

3 files changed

+1
-52
lines changed

3 files changed

+1
-52
lines changed

webflow-code-components/src/workflows/component_generator/steps.ts

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
GenerateReadmeInputSchema,
1515
RunDeterministicChecksInputSchema,
1616
RunDeterministicChecksOutputSchema,
17-
GenerateSimpleDeclarationInputSchema,
1817
WriteFilesInputSchema,
1918
WriteFilesOutputSchema,
2019
} from './types.js';
@@ -384,34 +383,7 @@ export const generateReadme = step( {
384383
},
385384
} );
386385

387-
// ─── Step 8: Generate Simple Declaration (LLM) ──────────────────────────────
388-
389-
export const generateSimpleDeclaration = step( {
390-
name: 'generate_simple_declaration',
391-
description: 'Generate a simplified .webflow.tsx with only core content props for client use',
392-
inputSchema: GenerateSimpleDeclarationInputSchema,
393-
outputSchema: CodeOutputSchema,
394-
fn: async ( input ) => {
395-
const { result } = await generateText( {
396-
prompt: 'generate_simple_declaration@v1',
397-
variables: {
398-
componentName: input.componentName,
399-
kebabName: input.kebabName,
400-
description: input.description,
401-
group: input.group,
402-
fullDeclarationCode: input.fullDeclarationCode,
403-
reactComponentCode: input.reactComponentCode,
404-
},
405-
} );
406-
407-
return { code: stripCodeFences( result ) };
408-
},
409-
options: {
410-
retry: { maximumAttempts: 3 },
411-
},
412-
} );
413-
414-
// ─── Step 9: Write Files to Disk ─────────────────────────────────────────────
386+
// ─── Step 8: Write Files to Disk ─────────────────────────────────────────────
415387

416388
export const writeFiles = step( {
417389
name: 'write_files',

webflow-code-components/src/workflows/component_generator/types.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,17 +123,6 @@ export const GenerateReadmeInputSchema = z.object( {
123123
npmDependencies: z.record( z.string(), z.string() ).optional(),
124124
} );
125125

126-
// ─── Simple Declaration Step Schema ─────────────────────────────────────────
127-
128-
export const GenerateSimpleDeclarationInputSchema = z.object( {
129-
componentName: z.string(),
130-
kebabName: z.string(),
131-
description: z.string(),
132-
group: z.string(),
133-
fullDeclarationCode: z.string(),
134-
reactComponentCode: z.string(),
135-
} );
136-
137126
// ─── Write Files Step Schema ─────────────────────────────────────────────────
138127

139128
export const WriteFilesInputSchema = z.object( {

webflow-code-components/src/workflows/component_generator/workflow.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
runDeterministicChecks,
99
generateMainTsx,
1010
generateReadme,
11-
generateSimpleDeclaration,
1211
writeFiles,
1312
} from './steps.js';
1413
import { evaluateComponent } from './evaluators.js';
@@ -146,16 +145,6 @@ export default workflow( {
146145
npmDependencies: input.npmDependencies,
147146
} );
148147

149-
// Step 5: Generate simple declaration (client-friendly prop subset)
150-
const simpleResult = await generateSimpleDeclaration( {
151-
componentName: input.componentName,
152-
kebabName,
153-
description: input.description,
154-
group,
155-
fullDeclarationCode: webflowCode,
156-
reactComponentCode: reactCode,
157-
} );
158-
159148
// Assemble all files into the output map
160149
const componentDir = `src/components/${input.componentName}`;
161150
const files: Record<string, string> = {
@@ -164,7 +153,6 @@ export default workflow( {
164153
[`${componentDir}/${input.componentName}.tsx`]: reactCode,
165154
[`${componentDir}/${input.componentName}.css`]: cssCode,
166155
[`${componentDir}/${input.componentName}.webflow.tsx`]: webflowCode,
167-
[`${componentDir}/${input.componentName}Simple.webflow.tsx`]: simpleResult.code,
168156
'README.md': readmeResult.code,
169157
};
170158

0 commit comments

Comments
 (0)