@framingui/mcp-server 0.5.6 → 0.6.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.
- package/dist/__tests__/cache.test.d.ts +6 -0
- package/dist/__tests__/cache.test.d.ts.map +1 -0
- package/dist/__tests__/cache.test.js +86 -0
- package/dist/__tests__/cache.test.js.map +1 -0
- package/dist/__tests__/data-client.test.d.ts +13 -0
- package/dist/__tests__/data-client.test.d.ts.map +1 -0
- package/dist/__tests__/data-client.test.js +323 -0
- package/dist/__tests__/data-client.test.js.map +1 -0
- package/dist/api/data-client.d.ts +82 -0
- package/dist/api/data-client.d.ts.map +1 -1
- package/dist/api/data-client.js +198 -0
- package/dist/api/data-client.js.map +1 -1
- package/dist/auth/cache.d.ts +5 -0
- package/dist/auth/cache.d.ts.map +1 -1
- package/dist/auth/cache.js +11 -0
- package/dist/auth/cache.js.map +1 -1
- package/dist/data/template-matcher.d.ts +7 -1
- package/dist/data/template-matcher.d.ts.map +1 -1
- package/dist/data/template-matcher.js +18 -5
- package/dist/data/template-matcher.js.map +1 -1
- package/dist/generators/core-resolver.d.ts +7 -13
- package/dist/generators/core-resolver.d.ts.map +1 -1
- package/dist/generators/core-resolver.js +7 -84
- package/dist/generators/core-resolver.js.map +1 -1
- package/dist/generators/css-generator.d.ts +8 -26
- package/dist/generators/css-generator.d.ts.map +1 -1
- package/dist/generators/css-generator.js +17 -265
- package/dist/generators/css-generator.js.map +1 -1
- package/dist/generators/index.d.ts +2 -2
- package/dist/generators/index.d.ts.map +1 -1
- package/dist/generators/index.js +4 -2
- package/dist/generators/index.js.map +1 -1
- package/dist/schemas/mcp-schemas.d.ts +385 -385
- package/dist/schemas/mcp-schemas.d.ts.map +1 -1
- package/dist/tools/export-screen.d.ts.map +1 -1
- package/dist/tools/export-screen.js +6 -9
- package/dist/tools/export-screen.js.map +1 -1
- package/dist/tools/get-screen-generation-context.d.ts +1 -0
- package/dist/tools/get-screen-generation-context.d.ts.map +1 -1
- package/dist/tools/get-screen-generation-context.js +34 -23
- package/dist/tools/get-screen-generation-context.js.map +1 -1
- package/dist/tools/list-components.d.ts +2 -1
- package/dist/tools/list-components.d.ts.map +1 -1
- package/dist/tools/list-components.js +20 -14
- package/dist/tools/list-components.js.map +1 -1
- package/dist/tools/list-screen-templates.d.ts +2 -1
- package/dist/tools/list-screen-templates.d.ts.map +1 -1
- package/dist/tools/list-screen-templates.js +23 -25
- package/dist/tools/list-screen-templates.js.map +1 -1
- package/dist/tools/list-tokens.d.ts +2 -1
- package/dist/tools/list-tokens.d.ts.map +1 -1
- package/dist/tools/list-tokens.js +8 -37
- package/dist/tools/list-tokens.js.map +1 -1
- package/dist/tools/preview-component.d.ts +1 -0
- package/dist/tools/preview-component.d.ts.map +1 -1
- package/dist/tools/preview-component.js +21 -23
- package/dist/tools/preview-component.js.map +1 -1
- package/dist/tools/preview-screen-template.d.ts +1 -0
- package/dist/tools/preview-screen-template.d.ts.map +1 -1
- package/dist/tools/preview-screen-template.js +5 -3
- package/dist/tools/preview-screen-template.js.map +1 -1
- package/dist/tools/validate-screen-definition.d.ts.map +1 -1
- package/dist/tools/validate-screen-definition.js +49 -12
- package/dist/tools/validate-screen-definition.js.map +1 -1
- package/package.json +2 -4
|
@@ -1,290 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CSS Generator for MCP Server (v2.1)
|
|
3
3
|
* SPEC-COMPONENT-001-D: Hybrid Export System
|
|
4
|
+
* [SPEC-MCP-007:E-006] API 기반 CSS 생성으로 마이그레이션
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
+
* CSS Variables를 framingui.com API를 통해 가져옴
|
|
6
7
|
*/
|
|
7
|
-
import {
|
|
8
|
+
import { fetchCSSVariables } from '../api/data-client.js';
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @param theme - ThemeV2 객체
|
|
12
|
-
* @returns CSS 생성 결과
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const theme = loadTheme('atlantic-magazine-v1');
|
|
17
|
-
* if (theme) {
|
|
18
|
-
* const result = generateCSS(theme);
|
|
19
|
-
* if (result.success) {
|
|
20
|
-
* console.log(result.css);
|
|
21
|
-
* }
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export function generateCSS(theme) {
|
|
26
|
-
try {
|
|
27
|
-
const lines = [
|
|
28
|
-
`/* Generated by Framingui - Theme: ${theme.id} */`,
|
|
29
|
-
`/* Schema Version: ${theme.schemaVersion} */`,
|
|
30
|
-
'',
|
|
31
|
-
':root {',
|
|
32
|
-
];
|
|
33
|
-
// ========================================================================
|
|
34
|
-
// Layer 1: Atomic Tokens
|
|
35
|
-
// ========================================================================
|
|
36
|
-
lines.push(' /* === Layer 1: Atomic Tokens === */');
|
|
37
|
-
// Colors (OKLCH format)
|
|
38
|
-
const { color } = theme.tokens.atomic;
|
|
39
|
-
if (color.brand) {
|
|
40
|
-
for (const [shade, oklch] of Object.entries(color.brand)) {
|
|
41
|
-
lines.push(` --color-brand-${shade}: ${oklchToCSS(oklch)};`);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
if (color.neutral) {
|
|
45
|
-
for (const [shade, oklch] of Object.entries(color.neutral)) {
|
|
46
|
-
lines.push(` --color-neutral-${shade}: ${oklchToCSS(oklch)};`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (color.accent) {
|
|
50
|
-
for (const [shade, oklch] of Object.entries(color.accent)) {
|
|
51
|
-
lines.push(` --color-accent-${shade}: ${oklchToCSS(oklch)};`);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
if (color.success) {
|
|
55
|
-
lines.push(` --color-success: ${oklchToCSS(color.success)};`);
|
|
56
|
-
}
|
|
57
|
-
if (color.warning) {
|
|
58
|
-
lines.push(` --color-warning: ${oklchToCSS(color.warning)};`);
|
|
59
|
-
}
|
|
60
|
-
if (color.error) {
|
|
61
|
-
lines.push(` --color-error: ${oklchToCSS(color.error)};`);
|
|
62
|
-
}
|
|
63
|
-
if (color.info) {
|
|
64
|
-
lines.push(` --color-info: ${oklchToCSS(color.info)};`);
|
|
65
|
-
}
|
|
66
|
-
// Spacing
|
|
67
|
-
lines.push('');
|
|
68
|
-
for (const [size, value] of Object.entries(theme.tokens.atomic.spacing)) {
|
|
69
|
-
lines.push(` --spacing-${size}: ${value};`);
|
|
70
|
-
}
|
|
71
|
-
// Radius
|
|
72
|
-
lines.push('');
|
|
73
|
-
for (const [size, value] of Object.entries(theme.tokens.atomic.radius)) {
|
|
74
|
-
lines.push(` --radius-${size}: ${value};`);
|
|
75
|
-
}
|
|
76
|
-
// ========================================================================
|
|
77
|
-
// Typography
|
|
78
|
-
// ========================================================================
|
|
79
|
-
lines.push('');
|
|
80
|
-
lines.push(' /* === Typography === */');
|
|
81
|
-
const { typography } = theme;
|
|
82
|
-
if (typography.fontFamily) {
|
|
83
|
-
for (const [name, value] of Object.entries(typography.fontFamily)) {
|
|
84
|
-
lines.push(` --font-family-${name}: ${value};`);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
if (typography.fontSize) {
|
|
88
|
-
for (const [name, value] of Object.entries(typography.fontSize)) {
|
|
89
|
-
lines.push(` --font-size-${name}: ${value};`);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
if (typography.fontWeight) {
|
|
93
|
-
for (const [name, value] of Object.entries(typography.fontWeight)) {
|
|
94
|
-
lines.push(` --font-weight-${name}: ${value};`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
if (typography.lineHeight) {
|
|
98
|
-
for (const [name, value] of Object.entries(typography.lineHeight)) {
|
|
99
|
-
lines.push(` --line-height-${name}: ${value};`);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
if (typography.letterSpacing) {
|
|
103
|
-
for (const [name, value] of Object.entries(typography.letterSpacing)) {
|
|
104
|
-
lines.push(` --letter-spacing-${name}: ${value};`);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
// ========================================================================
|
|
108
|
-
// Border
|
|
109
|
-
// ========================================================================
|
|
110
|
-
lines.push('');
|
|
111
|
-
lines.push(' /* === Border === */');
|
|
112
|
-
const { border } = theme;
|
|
113
|
-
if (border.width) {
|
|
114
|
-
for (const [name, value] of Object.entries(border.width)) {
|
|
115
|
-
lines.push(` --border-width-${name}: ${value};`);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
if (border.radius) {
|
|
119
|
-
for (const [name, value] of Object.entries(border.radius)) {
|
|
120
|
-
lines.push(` --border-radius-${name}: ${value};`);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
// ========================================================================
|
|
124
|
-
// Elevation
|
|
125
|
-
// ========================================================================
|
|
126
|
-
lines.push('');
|
|
127
|
-
lines.push(' /* === Elevation === */');
|
|
128
|
-
const { elevation } = theme;
|
|
129
|
-
if (elevation.level) {
|
|
130
|
-
for (const [name, value] of Object.entries(elevation.level)) {
|
|
131
|
-
lines.push(` --elevation-${name}: ${value};`);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
// ========================================================================
|
|
135
|
-
// Motion
|
|
136
|
-
// ========================================================================
|
|
137
|
-
lines.push('');
|
|
138
|
-
lines.push(' /* === Motion === */');
|
|
139
|
-
const { motion } = theme;
|
|
140
|
-
if (motion.duration) {
|
|
141
|
-
for (const [name, value] of Object.entries(motion.duration)) {
|
|
142
|
-
lines.push(` --duration-${name}: ${value};`);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
if (motion.easing) {
|
|
146
|
-
for (const [name, value] of Object.entries(motion.easing)) {
|
|
147
|
-
lines.push(` --easing-${name}: ${value};`);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
// ========================================================================
|
|
151
|
-
// State Layer
|
|
152
|
-
// ========================================================================
|
|
153
|
-
lines.push('');
|
|
154
|
-
lines.push(' /* === State Layer === */');
|
|
155
|
-
const { stateLayer } = theme;
|
|
156
|
-
if (stateLayer.hover?.opacity !== undefined) {
|
|
157
|
-
lines.push(` --state-hover-opacity: ${stateLayer.hover.opacity};`);
|
|
158
|
-
}
|
|
159
|
-
if (stateLayer.pressed?.opacity !== undefined) {
|
|
160
|
-
lines.push(` --state-pressed-opacity: ${stateLayer.pressed.opacity};`);
|
|
161
|
-
}
|
|
162
|
-
if (stateLayer.focus?.opacity !== undefined) {
|
|
163
|
-
lines.push(` --state-focus-opacity: ${stateLayer.focus.opacity};`);
|
|
164
|
-
}
|
|
165
|
-
if (stateLayer.disabled?.opacity !== undefined) {
|
|
166
|
-
lines.push(` --state-disabled-opacity: ${stateLayer.disabled.opacity};`);
|
|
167
|
-
}
|
|
168
|
-
// ========================================================================
|
|
169
|
-
// Layer 2: Semantic Tokens
|
|
170
|
-
// ========================================================================
|
|
171
|
-
lines.push('');
|
|
172
|
-
lines.push(' /* === Layer 2: Semantic Tokens === */');
|
|
173
|
-
const { semantic } = theme.tokens;
|
|
174
|
-
// Background
|
|
175
|
-
if (semantic.background) {
|
|
176
|
-
if (semantic.background.canvas) {
|
|
177
|
-
lines.push(` --bg-canvas: ${semantic.background.canvas};`);
|
|
178
|
-
}
|
|
179
|
-
if (semantic.background.surface) {
|
|
180
|
-
for (const [name, value] of Object.entries(semantic.background.surface)) {
|
|
181
|
-
lines.push(` --bg-surface-${name}: ${value};`);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
if (semantic.background.elevated) {
|
|
185
|
-
for (const [name, value] of Object.entries(semantic.background.elevated)) {
|
|
186
|
-
lines.push(` --bg-elevated-${name}: ${value};`);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
// Foreground
|
|
191
|
-
if (semantic.foreground) {
|
|
192
|
-
if (semantic.foreground.primary) {
|
|
193
|
-
for (const [name, value] of Object.entries(semantic.foreground.primary)) {
|
|
194
|
-
lines.push(` --fg-primary-${name}: ${value};`);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
if (semantic.foreground.secondary) {
|
|
198
|
-
for (const [name, value] of Object.entries(semantic.foreground.secondary)) {
|
|
199
|
-
lines.push(` --fg-secondary-${name}: ${value};`);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
if (semantic.foreground.disabled) {
|
|
203
|
-
lines.push(` --fg-disabled: ${semantic.foreground.disabled};`);
|
|
204
|
-
}
|
|
205
|
-
if (semantic.foreground.placeholder) {
|
|
206
|
-
lines.push(` --fg-placeholder: ${semantic.foreground.placeholder};`);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
// Border
|
|
210
|
-
if (semantic.border) {
|
|
211
|
-
if (semantic.border.default) {
|
|
212
|
-
for (const [name, value] of Object.entries(semantic.border.default)) {
|
|
213
|
-
lines.push(` --border-${name}: ${value};`);
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
if (semantic.border.focus) {
|
|
217
|
-
lines.push(` --border-focus: ${semantic.border.focus};`);
|
|
218
|
-
}
|
|
219
|
-
if (semantic.border.error) {
|
|
220
|
-
lines.push(` --border-error: ${semantic.border.error};`);
|
|
221
|
-
}
|
|
222
|
-
if (semantic.border.success) {
|
|
223
|
-
lines.push(` --border-success: ${semantic.border.success};`);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
lines.push('}');
|
|
227
|
-
// ========================================================================
|
|
228
|
-
// Dark Mode (if present)
|
|
229
|
-
// ========================================================================
|
|
230
|
-
if (theme.darkMode?.tokens?.semantic) {
|
|
231
|
-
lines.push('');
|
|
232
|
-
lines.push('.dark {');
|
|
233
|
-
lines.push(' /* === Dark Mode Overrides === */');
|
|
234
|
-
const darkSemantic = theme.darkMode.tokens.semantic;
|
|
235
|
-
if (darkSemantic.background?.canvas) {
|
|
236
|
-
lines.push(` --bg-canvas: ${darkSemantic.background.canvas};`);
|
|
237
|
-
}
|
|
238
|
-
if (darkSemantic.background?.surface) {
|
|
239
|
-
for (const [name, value] of Object.entries(darkSemantic.background.surface)) {
|
|
240
|
-
lines.push(` --bg-surface-${name}: ${value};`);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
lines.push('}');
|
|
244
|
-
}
|
|
245
|
-
return {
|
|
246
|
-
success: true,
|
|
247
|
-
css: lines.join('\n'),
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
catch (error) {
|
|
251
|
-
return {
|
|
252
|
-
success: false,
|
|
253
|
-
error: error instanceof Error ? error.message : 'Unknown error during CSS generation',
|
|
254
|
-
};
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* 테마 ID로 CSS 생성
|
|
10
|
+
* 테마 ID로 CSS 생성 (API 기반)
|
|
11
|
+
* [SPEC-MCP-007:E-006] fetchCSSVariables 사용
|
|
259
12
|
*
|
|
260
13
|
* @param themeId - 테마 ID
|
|
261
14
|
* @returns CSS 생성 결과
|
|
262
15
|
*/
|
|
263
|
-
export function generateCSSFromThemeId(themeId) {
|
|
264
|
-
const
|
|
265
|
-
if (!
|
|
16
|
+
export async function generateCSSFromThemeId(themeId) {
|
|
17
|
+
const css = await fetchCSSVariables(themeId);
|
|
18
|
+
if (!css) {
|
|
266
19
|
return {
|
|
267
20
|
success: false,
|
|
268
|
-
error: `
|
|
21
|
+
error: `Failed to fetch CSS variables for theme: ${themeId}`,
|
|
269
22
|
};
|
|
270
23
|
}
|
|
271
|
-
return
|
|
24
|
+
return {
|
|
25
|
+
success: true,
|
|
26
|
+
css,
|
|
27
|
+
};
|
|
272
28
|
}
|
|
273
29
|
/**
|
|
274
|
-
* CSS Variables만 추출 (전체 CSS
|
|
30
|
+
* CSS Variables만 추출 (전체 CSS 문자열에서 파싱)
|
|
275
31
|
*
|
|
276
|
-
* @param
|
|
32
|
+
* @param cssString - CSS 문자열
|
|
277
33
|
* @returns CSS Variables 객체 (key-value 쌍)
|
|
278
34
|
*/
|
|
279
|
-
export function extractCSSVariables(
|
|
280
|
-
const result = generateCSS(theme);
|
|
281
|
-
if (!result.success || !result.css) {
|
|
282
|
-
return {};
|
|
283
|
-
}
|
|
35
|
+
export function extractCSSVariables(cssString) {
|
|
284
36
|
const variables = {};
|
|
285
37
|
const variableRegex = /--([\w-]+):\s*([^;]+);/g;
|
|
286
38
|
let match;
|
|
287
|
-
while ((match = variableRegex.exec(
|
|
39
|
+
while ((match = variableRegex.exec(cssString)) !== null) {
|
|
288
40
|
if (match[1] && match[2]) {
|
|
289
41
|
variables[`--${match[1]}`] = match[2].trim();
|
|
290
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-generator.js","sourceRoot":"","sources":["../../src/generators/css-generator.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"css-generator.js","sourceRoot":"","sources":["../../src/generators/css-generator.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAW1D;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,OAAe;IAC1D,MAAM,GAAG,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAC7C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO;YACL,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,4CAA4C,OAAO,EAAE;SAC7D,CAAC;IACJ,CAAC;IACD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,GAAG;KACJ,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,SAAiB;IACnD,MAAM,SAAS,GAA2B,EAAE,CAAC;IAC7C,MAAM,aAAa,GAAG,yBAAyB,CAAC;IAChD,IAAI,KAAK,CAAC;IAEV,OAAO,CAAC,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QACxD,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACzB,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC/C,CAAC;IACH,CAAC;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* - Core Resolver (Tier 1): @framingui/ui에서 컴포넌트 가져오기
|
|
8
8
|
* - LLM Generator (Tier 2): Claude API로 커스텀 컴포넌트 생성
|
|
9
9
|
*/
|
|
10
|
-
export {
|
|
11
|
-
export { isTier1Component, getTier1Example,
|
|
10
|
+
export { generateCSSFromThemeId, extractCSSVariables, type CSSGenerationResult, } from './css-generator.js';
|
|
11
|
+
export { isTier1Component, getTier1Example, resolveFromTier1, resolveMultipleFromTier1, TIER1_COMPONENTS, type ComponentResolutionResult, } from './core-resolver.js';
|
|
12
12
|
export { generateWithLLM, generateMockComponent, resolveFromTier2, buildLLMContext, extractCodeFromResponse, validateGeneratedCode, type LLMGeneratorConfig, type LLMGenerationResult, type ValidationResult, } from './llm-generator.js';
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,EAChB,KAAK,yBAAyB,GAC/B,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,MAAM,oBAAoB,CAAC"}
|
package/dist/generators/index.js
CHANGED
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
* - LLM Generator (Tier 2): Claude API로 커스텀 컴포넌트 생성
|
|
9
9
|
*/
|
|
10
10
|
// CSS Generator
|
|
11
|
-
|
|
11
|
+
// [SPEC-MCP-007] generateCSS, ThemeV2 제거 (API 기반으로 대체)
|
|
12
|
+
export { generateCSSFromThemeId, extractCSSVariables, } from './css-generator.js';
|
|
12
13
|
// Core Resolver (Tier 1)
|
|
13
|
-
|
|
14
|
+
// [SPEC-MCP-007] getTier1Source 제거 (readFileSync 사용, npm 환경 미지원)
|
|
15
|
+
export { isTier1Component, getTier1Example, resolveFromTier1, resolveMultipleFromTier1, TIER1_COMPONENTS, } from './core-resolver.js';
|
|
14
16
|
// LLM Generator (Tier 2)
|
|
15
17
|
export { generateWithLLM, generateMockComponent, resolveFromTier2, buildLLMContext, extractCodeFromResponse, validateGeneratedCode, } from './llm-generator.js';
|
|
16
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gBAAgB;AAChB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gBAAgB;AAChB,uDAAuD;AACvD,OAAO,EACL,sBAAsB,EACtB,mBAAmB,GAEpB,MAAM,oBAAoB,CAAC;AAE5B,yBAAyB;AACzB,iEAAiE;AACjE,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,wBAAwB,EACxB,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAE5B,yBAAyB;AACzB,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,qBAAqB,GAItB,MAAM,oBAAoB,CAAC"}
|