@hale-bopp/valentino-engine 1.0.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/AGENTS.md +49 -0
- package/CHANGELOG.md +22 -0
- package/LICENSE +21 -0
- package/README.md +108 -0
- package/dist/bin/commands/audit.d.ts +2 -0
- package/dist/bin/commands/audit.d.ts.map +1 -0
- package/dist/bin/commands/audit.js +24 -0
- package/dist/bin/commands/audit.js.map +1 -0
- package/dist/bin/commands/catalog.d.ts +2 -0
- package/dist/bin/commands/catalog.d.ts.map +1 -0
- package/dist/bin/commands/catalog.js +21 -0
- package/dist/bin/commands/catalog.js.map +1 -0
- package/dist/bin/commands/contrast.d.ts +2 -0
- package/dist/bin/commands/contrast.d.ts.map +1 -0
- package/dist/bin/commands/contrast.js +22 -0
- package/dist/bin/commands/contrast.js.map +1 -0
- package/dist/bin/commands/guardrails.d.ts +2 -0
- package/dist/bin/commands/guardrails.d.ts.map +1 -0
- package/dist/bin/commands/guardrails.js +18 -0
- package/dist/bin/commands/guardrails.js.map +1 -0
- package/dist/bin/commands/manifest.d.ts +2 -0
- package/dist/bin/commands/manifest.d.ts.map +1 -0
- package/dist/bin/commands/manifest.js +21 -0
- package/dist/bin/commands/manifest.js.map +1 -0
- package/dist/bin/commands/probe.d.ts +2 -0
- package/dist/bin/commands/probe.d.ts.map +1 -0
- package/dist/bin/commands/probe.js +59 -0
- package/dist/bin/commands/probe.js.map +1 -0
- package/dist/bin/commands/validate.d.ts +2 -0
- package/dist/bin/commands/validate.d.ts.map +1 -0
- package/dist/bin/commands/validate.js +19 -0
- package/dist/bin/commands/validate.js.map +1 -0
- package/dist/bin/valentino.d.ts +7 -0
- package/dist/bin/valentino.d.ts.map +1 -0
- package/dist/bin/valentino.js +62 -0
- package/dist/bin/valentino.js.map +1 -0
- package/dist/core/catalog.d.ts +13 -0
- package/dist/core/catalog.d.ts.map +1 -0
- package/dist/core/catalog.js +63 -0
- package/dist/core/catalog.js.map +1 -0
- package/dist/core/catalog.test.d.ts +2 -0
- package/dist/core/catalog.test.d.ts.map +1 -0
- package/dist/core/catalog.test.js +115 -0
- package/dist/core/catalog.test.js.map +1 -0
- package/dist/core/contrast.d.ts +42 -0
- package/dist/core/contrast.d.ts.map +1 -0
- package/dist/core/contrast.js +98 -0
- package/dist/core/contrast.js.map +1 -0
- package/dist/core/contrast.test.d.ts +2 -0
- package/dist/core/contrast.test.d.ts.map +1 -0
- package/dist/core/contrast.test.js +82 -0
- package/dist/core/contrast.test.js.map +1 -0
- package/dist/core/css-named-colors.d.ts +7 -0
- package/dist/core/css-named-colors.d.ts.map +1 -0
- package/dist/core/css-named-colors.js +45 -0
- package/dist/core/css-named-colors.js.map +1 -0
- package/dist/core/guardrails.d.ts +16 -0
- package/dist/core/guardrails.d.ts.map +1 -0
- package/dist/core/guardrails.js +55 -0
- package/dist/core/guardrails.js.map +1 -0
- package/dist/core/guardrails.test.d.ts +2 -0
- package/dist/core/guardrails.test.d.ts.map +1 -0
- package/dist/core/guardrails.test.js +88 -0
- package/dist/core/guardrails.test.js.map +1 -0
- package/dist/core/hero-contract.d.ts +21 -0
- package/dist/core/hero-contract.d.ts.map +1 -0
- package/dist/core/hero-contract.js +70 -0
- package/dist/core/hero-contract.js.map +1 -0
- package/dist/core/hero-contract.test.d.ts +2 -0
- package/dist/core/hero-contract.test.d.ts.map +1 -0
- package/dist/core/hero-contract.test.js +71 -0
- package/dist/core/hero-contract.test.js.map +1 -0
- package/dist/core/manifest.d.ts +8 -0
- package/dist/core/manifest.d.ts.map +1 -0
- package/dist/core/manifest.js +17 -0
- package/dist/core/manifest.js.map +1 -0
- package/dist/core/manifest.test.d.ts +2 -0
- package/dist/core/manifest.test.d.ts.map +1 -0
- package/dist/core/manifest.test.js +45 -0
- package/dist/core/manifest.test.js.map +1 -0
- package/dist/core/page-spec.d.ts +14 -0
- package/dist/core/page-spec.d.ts.map +1 -0
- package/dist/core/page-spec.js +20 -0
- package/dist/core/page-spec.js.map +1 -0
- package/dist/core/page-spec.test.d.ts +2 -0
- package/dist/core/page-spec.test.d.ts.map +1 -0
- package/dist/core/page-spec.test.js +38 -0
- package/dist/core/page-spec.test.js.map +1 -0
- package/dist/core/presentation.d.ts +9 -0
- package/dist/core/presentation.d.ts.map +1 -0
- package/dist/core/presentation.js +65 -0
- package/dist/core/presentation.js.map +1 -0
- package/dist/core/presentation.test.d.ts +2 -0
- package/dist/core/presentation.test.d.ts.map +1 -0
- package/dist/core/presentation.test.js +63 -0
- package/dist/core/presentation.test.js.map +1 -0
- package/dist/core/rhythm.d.ts +25 -0
- package/dist/core/rhythm.d.ts.map +1 -0
- package/dist/core/rhythm.js +67 -0
- package/dist/core/rhythm.js.map +1 -0
- package/dist/core/rhythm.test.d.ts +2 -0
- package/dist/core/rhythm.test.d.ts.map +1 -0
- package/dist/core/rhythm.test.js +69 -0
- package/dist/core/rhythm.test.js.map +1 -0
- package/dist/core/section-integrity.d.ts +30 -0
- package/dist/core/section-integrity.d.ts.map +1 -0
- package/dist/core/section-integrity.js +72 -0
- package/dist/core/section-integrity.js.map +1 -0
- package/dist/core/section-integrity.test.d.ts +2 -0
- package/dist/core/section-integrity.test.d.ts.map +1 -0
- package/dist/core/section-integrity.test.js +83 -0
- package/dist/core/section-integrity.test.js.map +1 -0
- package/dist/core/types.d.ts +456 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +7 -0
- package/dist/core/types.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +126 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/skills/design-guidelines.d.ts +6 -0
- package/dist/skills/design-guidelines.d.ts.map +1 -0
- package/dist/skills/design-guidelines.js +11 -0
- package/dist/skills/design-guidelines.js.map +1 -0
- package/dist/skills/index.d.ts +7 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +7 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/premium-design.d.ts +6 -0
- package/dist/skills/premium-design.d.ts.map +1 -0
- package/dist/skills/premium-design.js +11 -0
- package/dist/skills/premium-design.js.map +1 -0
- package/dist/skills/web-guardrails.d.ts +6 -0
- package/dist/skills/web-guardrails.d.ts.map +1 -0
- package/dist/skills/web-guardrails.js +11 -0
- package/dist/skills/web-guardrails.js.map +1 -0
- package/package.json +69 -0
- package/skills/valentino-premium-design.md +10 -0
- package/skills/valentino-web-guardrails.md +9 -0
- package/skills/web-design-guidelines.md +9 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valentino Engine — Runtime Pages Type System
|
|
3
|
+
* Extracted verbatim from easyway-portal (src/types/runtime-pages.ts).
|
|
4
|
+
* This is the single source of truth for all PageSpec, Section, and Catalog types.
|
|
5
|
+
*/
|
|
6
|
+
export type ActionSpec = {
|
|
7
|
+
type: 'link';
|
|
8
|
+
href: string;
|
|
9
|
+
} | {
|
|
10
|
+
type: 'noop';
|
|
11
|
+
};
|
|
12
|
+
export type CtaSpec = {
|
|
13
|
+
labelKey: string;
|
|
14
|
+
action: ActionSpec;
|
|
15
|
+
};
|
|
16
|
+
export type ActionWidgetIcon = 'code' | 'manifesto' | 'agents' | 'github' | 'azure-devops' | 'star';
|
|
17
|
+
export type ActionWidgetVariant = 'default' | 'repo';
|
|
18
|
+
export type ActionWidgetSpec = {
|
|
19
|
+
labelKey: string;
|
|
20
|
+
href: string;
|
|
21
|
+
icon: ActionWidgetIcon;
|
|
22
|
+
variant?: ActionWidgetVariant;
|
|
23
|
+
selected?: boolean;
|
|
24
|
+
metaKey?: string;
|
|
25
|
+
};
|
|
26
|
+
export type SectionPresentationSpec = {
|
|
27
|
+
surface?: 'default' | 'muted' | 'accent' | 'dark' | 'shell-dark' | 'reading-light' | 'ops-light';
|
|
28
|
+
surfaceScreen?: 'none' | 'soft' | 'immersive' | 'inherit';
|
|
29
|
+
seamProfile?: 'none' | 'hero-intro-merge' | 'hero-to-light';
|
|
30
|
+
seamDensity?: 'default' | 'immersive';
|
|
31
|
+
surfaceEntry?: 'slab' | 'bleed' | 'floating';
|
|
32
|
+
surfaceOverlap?: 'none' | 'sm' | 'md' | 'lg';
|
|
33
|
+
contentLift?: 'none' | 'sm' | 'md' | 'lg';
|
|
34
|
+
visualStage?: string;
|
|
35
|
+
height?: 'content' | 'screen-sm' | 'screen-md' | 'screen-full';
|
|
36
|
+
tone?: 'default' | 'elevated' | 'immersive';
|
|
37
|
+
rhythmProfile?: 'hero' | 'transition' | 'feature' | 'reading' | 'proof' | 'metrics' | 'ops';
|
|
38
|
+
rhythmGroup?: string;
|
|
39
|
+
presetId?: string;
|
|
40
|
+
transitionProfileId?: string;
|
|
41
|
+
};
|
|
42
|
+
export type SectionPresentationBase = {
|
|
43
|
+
presentation?: SectionPresentationSpec;
|
|
44
|
+
};
|
|
45
|
+
export type LayoutMapMeasureToken = 'compact' | 'reading' | 'wide' | 'full';
|
|
46
|
+
export type LayoutMapVariantToken = 'default' | 'lego' | 'panel-right';
|
|
47
|
+
export type LayoutMapPlacementSpec = {
|
|
48
|
+
col?: number;
|
|
49
|
+
row?: number;
|
|
50
|
+
colSpan?: number;
|
|
51
|
+
rowSpan?: number;
|
|
52
|
+
justifySelf?: 'start' | 'center' | 'end' | 'stretch';
|
|
53
|
+
alignSelf?: 'start' | 'center' | 'end' | 'stretch';
|
|
54
|
+
offsetX?: string;
|
|
55
|
+
offsetY?: string;
|
|
56
|
+
maxWidth?: string;
|
|
57
|
+
};
|
|
58
|
+
export type LayoutMapStyleSpec = {
|
|
59
|
+
surfaceToken?: string;
|
|
60
|
+
textToken?: string;
|
|
61
|
+
accentToken?: string;
|
|
62
|
+
borderToken?: string;
|
|
63
|
+
shadowToken?: string;
|
|
64
|
+
measure?: LayoutMapMeasureToken;
|
|
65
|
+
variant?: LayoutMapVariantToken;
|
|
66
|
+
};
|
|
67
|
+
export type LayoutMapSlotSpec = {
|
|
68
|
+
placement?: LayoutMapPlacementSpec;
|
|
69
|
+
style?: LayoutMapStyleSpec;
|
|
70
|
+
visible?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export type LayoutMapGridSpec = {
|
|
73
|
+
columns: string[];
|
|
74
|
+
rows: string[];
|
|
75
|
+
columnGap?: string;
|
|
76
|
+
rowGap?: string;
|
|
77
|
+
alignItems?: 'start' | 'center' | 'end' | 'stretch';
|
|
78
|
+
};
|
|
79
|
+
export type LayoutMapBreakpointSpec = {
|
|
80
|
+
grid: LayoutMapGridSpec;
|
|
81
|
+
slots: Record<string, LayoutMapSlotSpec>;
|
|
82
|
+
};
|
|
83
|
+
export type LayoutMapSpec = {
|
|
84
|
+
template: string;
|
|
85
|
+
version: 1;
|
|
86
|
+
variant?: LayoutMapVariantToken;
|
|
87
|
+
desktop?: LayoutMapBreakpointSpec;
|
|
88
|
+
mobile?: LayoutMapBreakpointSpec;
|
|
89
|
+
};
|
|
90
|
+
export type HeroGuardrailToken = 'horizontal-anchors' | 'fold-budget' | 'title-claim-wrap' | 'early-proof' | 'cta-discipline' | 'surface-continuity' | 'decorative-noise-ceiling' | 'single-decorative-source' | 'no-cover-up-layers' | 'rail-item-geometry' | 'copy-density' | 'mobile-collapse-order';
|
|
91
|
+
export type HeroGeometryAnchorId = 'eyebrow' | 'title' | 'tagline' | 'support' | 'aside' | 'panel' | 'cta' | 'rail';
|
|
92
|
+
export type HeroGeometryAnchorSpec = {
|
|
93
|
+
x: number;
|
|
94
|
+
y: number;
|
|
95
|
+
width?: number;
|
|
96
|
+
height?: number;
|
|
97
|
+
};
|
|
98
|
+
export type HeroGeometryBreakpointSpec = {
|
|
99
|
+
viewportWidth: number;
|
|
100
|
+
viewportHeight: number;
|
|
101
|
+
anchors: Partial<Record<HeroGeometryAnchorId, HeroGeometryAnchorSpec>>;
|
|
102
|
+
};
|
|
103
|
+
export type HeroGeometrySpec = {
|
|
104
|
+
desktop?: HeroGeometryBreakpointSpec;
|
|
105
|
+
mobile?: HeroGeometryBreakpointSpec;
|
|
106
|
+
};
|
|
107
|
+
export type HeroSection = SectionPresentationBase & {
|
|
108
|
+
type: 'hero';
|
|
109
|
+
layout?: 'default' | 'split';
|
|
110
|
+
layoutMode?: 'stack' | 'split' | 'stage-right';
|
|
111
|
+
foldVisibility?: 'immediate' | 'scroll';
|
|
112
|
+
primaryFocus?: 'copy' | 'action-box' | 'balanced';
|
|
113
|
+
heroPanel?: 'none' | 'inline' | 'right-box';
|
|
114
|
+
panelSource?: 'inline' | 'companion-section';
|
|
115
|
+
ctaPlacement?: 'inline' | 'sibling';
|
|
116
|
+
copyGrouping?: 'shell' | 'lego';
|
|
117
|
+
layoutMap?: LayoutMapSpec;
|
|
118
|
+
companionSectionId?: string;
|
|
119
|
+
titleKey: string;
|
|
120
|
+
eyebrowKey?: string;
|
|
121
|
+
taglineKey?: string;
|
|
122
|
+
supportKey?: string;
|
|
123
|
+
mottoKey?: string;
|
|
124
|
+
actionPanelTitleKey?: string;
|
|
125
|
+
poeticAsideKey?: string;
|
|
126
|
+
visualAssetPath?: string;
|
|
127
|
+
heroGuardrails?: HeroGuardrailToken[];
|
|
128
|
+
heroGeometry?: HeroGeometrySpec;
|
|
129
|
+
cta?: CtaSpec;
|
|
130
|
+
ctaSecondary?: CtaSpec;
|
|
131
|
+
ctaTertiary?: CtaSpec;
|
|
132
|
+
actionRail?: ActionWidgetSpec[];
|
|
133
|
+
};
|
|
134
|
+
export type CardsCatalogItem = {
|
|
135
|
+
iconText?: string;
|
|
136
|
+
titleKey: string;
|
|
137
|
+
badgeKey?: string;
|
|
138
|
+
descKey?: string;
|
|
139
|
+
action?: (CtaSpec & {
|
|
140
|
+
variant?: 'glass' | 'primary';
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
export type CardsLinkRailItem = {
|
|
144
|
+
labelKey: string;
|
|
145
|
+
metaKey?: string;
|
|
146
|
+
href: string;
|
|
147
|
+
};
|
|
148
|
+
export type CardsSection = SectionPresentationBase & {
|
|
149
|
+
type: 'cards';
|
|
150
|
+
variant: 'catalog';
|
|
151
|
+
layoutMap?: LayoutMapSpec;
|
|
152
|
+
density?: 'default' | 'compact';
|
|
153
|
+
titleKey?: string;
|
|
154
|
+
descKey?: string;
|
|
155
|
+
items: CardsCatalogItem[];
|
|
156
|
+
linkRail?: CardsLinkRailItem[];
|
|
157
|
+
};
|
|
158
|
+
export type ComparisonSection = SectionPresentationBase & {
|
|
159
|
+
type: 'comparison';
|
|
160
|
+
layoutMap?: LayoutMapSpec;
|
|
161
|
+
titleKey: string;
|
|
162
|
+
subtitleKey?: string;
|
|
163
|
+
left: {
|
|
164
|
+
titleKey: string;
|
|
165
|
+
itemsKeys: string[];
|
|
166
|
+
};
|
|
167
|
+
right: {
|
|
168
|
+
titleKey: string;
|
|
169
|
+
itemsKeys: string[];
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export type CtaSection = SectionPresentationBase & {
|
|
173
|
+
type: 'cta';
|
|
174
|
+
layoutMap?: LayoutMapSpec;
|
|
175
|
+
titleKey: string;
|
|
176
|
+
bodyKey?: string;
|
|
177
|
+
primary?: CtaSpec;
|
|
178
|
+
secondary?: CtaSpec;
|
|
179
|
+
};
|
|
180
|
+
export type FormFieldSpec = {
|
|
181
|
+
name: string;
|
|
182
|
+
type: 'text' | 'email' | 'select' | 'textarea' | 'checkbox';
|
|
183
|
+
labelKey: string;
|
|
184
|
+
placeholderKey?: string;
|
|
185
|
+
required?: boolean;
|
|
186
|
+
optionsKey?: string;
|
|
187
|
+
rows?: number;
|
|
188
|
+
width?: 'half' | 'full';
|
|
189
|
+
};
|
|
190
|
+
export type FormSection = SectionPresentationBase & {
|
|
191
|
+
type: 'form';
|
|
192
|
+
layoutMap?: LayoutMapSpec;
|
|
193
|
+
id?: string;
|
|
194
|
+
variant?: 'demo';
|
|
195
|
+
titleKey: string;
|
|
196
|
+
leadKey?: string;
|
|
197
|
+
badgesKeys?: string[];
|
|
198
|
+
testimonialTextKey?: string;
|
|
199
|
+
testimonialAuthorKey?: string;
|
|
200
|
+
fields: FormFieldSpec[];
|
|
201
|
+
consentKey?: string;
|
|
202
|
+
submitKey: string;
|
|
203
|
+
legalKey?: string;
|
|
204
|
+
};
|
|
205
|
+
export type SpacerSection = SectionPresentationBase & {
|
|
206
|
+
type: 'spacer';
|
|
207
|
+
layoutMap?: LayoutMapSpec;
|
|
208
|
+
size?: 'sm' | 'md' | 'lg';
|
|
209
|
+
};
|
|
210
|
+
export type ManifestoSection = SectionPresentationBase & {
|
|
211
|
+
type: 'manifesto';
|
|
212
|
+
layoutMap?: LayoutMapSpec;
|
|
213
|
+
contentPrefix?: string;
|
|
214
|
+
ctaLabelKey?: string;
|
|
215
|
+
ctaHref?: string;
|
|
216
|
+
};
|
|
217
|
+
export type ComponentVariant = {
|
|
218
|
+
name: string;
|
|
219
|
+
spec: Record<string, unknown>;
|
|
220
|
+
};
|
|
221
|
+
export type ComponentShowcaseItem = {
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
variants: ComponentVariant[];
|
|
225
|
+
};
|
|
226
|
+
export type ShowcaseIntroSection = SectionPresentationBase & {
|
|
227
|
+
type: 'showcase-intro';
|
|
228
|
+
layoutMap?: LayoutMapSpec;
|
|
229
|
+
titleKey: string;
|
|
230
|
+
descriptionKey: string;
|
|
231
|
+
};
|
|
232
|
+
export type ComponentShowcaseSection = SectionPresentationBase & {
|
|
233
|
+
type: 'component-showcase';
|
|
234
|
+
layoutMap?: LayoutMapSpec;
|
|
235
|
+
components: ComponentShowcaseItem[];
|
|
236
|
+
};
|
|
237
|
+
export type AgentDashboardSection = SectionPresentationBase & {
|
|
238
|
+
type: 'agent-dashboard';
|
|
239
|
+
layoutMap?: LayoutMapSpec;
|
|
240
|
+
titleKey?: string;
|
|
241
|
+
};
|
|
242
|
+
export type AgentGraphSection = SectionPresentationBase & {
|
|
243
|
+
type: 'agent-graph';
|
|
244
|
+
layoutMap?: LayoutMapSpec;
|
|
245
|
+
titleKey?: string;
|
|
246
|
+
descKey?: string;
|
|
247
|
+
};
|
|
248
|
+
export type AgentListSection = SectionPresentationBase & {
|
|
249
|
+
type: 'agent-list';
|
|
250
|
+
layoutMap?: LayoutMapSpec;
|
|
251
|
+
titleKey?: string;
|
|
252
|
+
descKey?: string;
|
|
253
|
+
};
|
|
254
|
+
export type DataListColumnSpec = {
|
|
255
|
+
key: string;
|
|
256
|
+
labelKey: string;
|
|
257
|
+
format?: 'datetime' | 'date' | 'currency';
|
|
258
|
+
};
|
|
259
|
+
export type RowActionSpec = {
|
|
260
|
+
type: 'run';
|
|
261
|
+
labelKey: string;
|
|
262
|
+
idField?: string;
|
|
263
|
+
} | {
|
|
264
|
+
type: 'link';
|
|
265
|
+
labelKey: string;
|
|
266
|
+
href: string;
|
|
267
|
+
};
|
|
268
|
+
export type DataListSection = SectionPresentationBase & {
|
|
269
|
+
type: 'data-list';
|
|
270
|
+
layoutMap?: LayoutMapSpec;
|
|
271
|
+
titleKey?: string;
|
|
272
|
+
dataUrl: string;
|
|
273
|
+
columns: DataListColumnSpec[];
|
|
274
|
+
rowActions?: RowActionSpec[];
|
|
275
|
+
};
|
|
276
|
+
export type ActionFormFieldSpec = {
|
|
277
|
+
name: string;
|
|
278
|
+
type: 'text' | 'email' | 'number' | 'date' | 'datetime-local' | 'textarea';
|
|
279
|
+
labelKey: string;
|
|
280
|
+
placeholderKey?: string;
|
|
281
|
+
required?: boolean;
|
|
282
|
+
rows?: number;
|
|
283
|
+
};
|
|
284
|
+
export type ActionFormSection = SectionPresentationBase & {
|
|
285
|
+
type: 'action-form';
|
|
286
|
+
layoutMap?: LayoutMapSpec;
|
|
287
|
+
titleKey: string;
|
|
288
|
+
submitUrl: string;
|
|
289
|
+
submitKey: string;
|
|
290
|
+
successKey: string;
|
|
291
|
+
fields: ActionFormFieldSpec[];
|
|
292
|
+
refreshListSelector?: string;
|
|
293
|
+
};
|
|
294
|
+
export type StatItemSpec = {
|
|
295
|
+
valueKey: string;
|
|
296
|
+
labelKey: string;
|
|
297
|
+
};
|
|
298
|
+
export type StatsSection = SectionPresentationBase & {
|
|
299
|
+
type: 'stats';
|
|
300
|
+
layoutMap?: LayoutMapSpec;
|
|
301
|
+
titleKey?: string;
|
|
302
|
+
items: StatItemSpec[];
|
|
303
|
+
};
|
|
304
|
+
export type HowItWorksStepSpec = {
|
|
305
|
+
numKey: string;
|
|
306
|
+
titleKey: string;
|
|
307
|
+
descKey: string;
|
|
308
|
+
};
|
|
309
|
+
export type HowItWorksSection = SectionPresentationBase & {
|
|
310
|
+
type: 'how-it-works';
|
|
311
|
+
layoutMap?: LayoutMapSpec;
|
|
312
|
+
titleKey?: string;
|
|
313
|
+
subtitleKey?: string;
|
|
314
|
+
steps: HowItWorksStepSpec[];
|
|
315
|
+
};
|
|
316
|
+
export type AdvisorPromptSpec = {
|
|
317
|
+
id: string;
|
|
318
|
+
labelKey: string;
|
|
319
|
+
answerTitleKey: string;
|
|
320
|
+
answerBodyKey: string;
|
|
321
|
+
};
|
|
322
|
+
export type AdvisorResponseStatus = 'ok' | 'needs_clarification' | 'error';
|
|
323
|
+
export type AdvisorResponseLabelsSpec = {
|
|
324
|
+
readingKey: string;
|
|
325
|
+
recommendationKey: string;
|
|
326
|
+
guardrailsKey: string;
|
|
327
|
+
nextStepKey: string;
|
|
328
|
+
followupsKey: string;
|
|
329
|
+
};
|
|
330
|
+
export type AdvisorSection = SectionPresentationBase & {
|
|
331
|
+
type: 'advisor';
|
|
332
|
+
layoutMap?: LayoutMapSpec;
|
|
333
|
+
titleKey: string;
|
|
334
|
+
leadKey?: string;
|
|
335
|
+
promptPlaceholderKey?: string;
|
|
336
|
+
submitKey: string;
|
|
337
|
+
submitUrl?: string;
|
|
338
|
+
loadingKey?: string;
|
|
339
|
+
fallbackTitleKey: string;
|
|
340
|
+
fallbackBodyKey: string;
|
|
341
|
+
errorTitleKey?: string;
|
|
342
|
+
errorBodyKey?: string;
|
|
343
|
+
responseLabels?: AdvisorResponseLabelsSpec;
|
|
344
|
+
prompts: AdvisorPromptSpec[];
|
|
345
|
+
};
|
|
346
|
+
export type ValentinoCatalogSection = SectionPresentationBase & {
|
|
347
|
+
type: 'valentino-catalog';
|
|
348
|
+
titleKey: string;
|
|
349
|
+
descriptionKey?: string;
|
|
350
|
+
};
|
|
351
|
+
export type SectionSpec = HeroSection | CardsSection | ComparisonSection | CtaSection | FormSection | ManifestoSection | SpacerSection | ShowcaseIntroSection | ComponentShowcaseSection | AgentDashboardSection | AgentGraphSection | AgentListSection | DataListSection | ActionFormSection | StatsSection | HowItWorksSection | AdvisorSection | ValentinoCatalogSection;
|
|
352
|
+
export type PageProfileSpec = 'home-signature' | 'product-surface' | 'advisor-surface' | 'conversion-form' | 'reading-manifesto' | 'use-case-hub';
|
|
353
|
+
export type PageSpecV1 = {
|
|
354
|
+
version: '1';
|
|
355
|
+
id: string;
|
|
356
|
+
profile?: PageProfileSpec;
|
|
357
|
+
templateId?: string;
|
|
358
|
+
blueprintId?: string;
|
|
359
|
+
sourcePageId?: string;
|
|
360
|
+
activeNav?: string;
|
|
361
|
+
titleKey?: string;
|
|
362
|
+
themeId?: string;
|
|
363
|
+
chrome?: {
|
|
364
|
+
floatingDock?: boolean;
|
|
365
|
+
};
|
|
366
|
+
sections: SectionSpec[];
|
|
367
|
+
};
|
|
368
|
+
export type ValentinoGovernanceTier = 'standard' | 'custom-governed';
|
|
369
|
+
export type ValentinoGovernanceSpec = {
|
|
370
|
+
tier: ValentinoGovernanceTier;
|
|
371
|
+
allowedPageProfiles?: PageProfileSpec[];
|
|
372
|
+
allowedSectionTypes?: SectionSpec['type'][];
|
|
373
|
+
notes?: string;
|
|
374
|
+
};
|
|
375
|
+
export type ValentinoTemplateEntry = {
|
|
376
|
+
page?: Pick<PageSpecV1, 'profile' | 'themeId' | 'chrome'>;
|
|
377
|
+
};
|
|
378
|
+
export type ValentinoSectionPresetEntry = {
|
|
379
|
+
presentation: SectionPresentationSpec;
|
|
380
|
+
governance?: ValentinoGovernanceSpec;
|
|
381
|
+
};
|
|
382
|
+
export type ValentinoTransitionProfileEntry = {
|
|
383
|
+
presentation: Pick<SectionPresentationSpec, 'seamProfile' | 'seamDensity' | 'surfaceEntry' | 'surfaceOverlap' | 'contentLift'>;
|
|
384
|
+
governance?: ValentinoGovernanceSpec;
|
|
385
|
+
};
|
|
386
|
+
export type ValentinoPageBlueprintEntry = {
|
|
387
|
+
spec: PageSpecV1;
|
|
388
|
+
governance?: ValentinoGovernanceSpec;
|
|
389
|
+
};
|
|
390
|
+
export type ValentinoCatalogV1 = {
|
|
391
|
+
version: '1';
|
|
392
|
+
templates: Record<string, ValentinoTemplateEntry>;
|
|
393
|
+
sectionPresets: Record<string, ValentinoSectionPresetEntry>;
|
|
394
|
+
transitionProfiles: Record<string, ValentinoTransitionProfileEntry>;
|
|
395
|
+
pageBlueprints: Record<string, ValentinoPageBlueprintEntry>;
|
|
396
|
+
};
|
|
397
|
+
export type ManifestPageV1 = {
|
|
398
|
+
id: string;
|
|
399
|
+
route: string;
|
|
400
|
+
titleKey?: string;
|
|
401
|
+
spec: string;
|
|
402
|
+
nav?: {
|
|
403
|
+
labelKey: string;
|
|
404
|
+
order: number;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
export type NavInteractionModeV1 = 'hover' | 'click';
|
|
408
|
+
export type NavPanelVariantV1 = 'dropdown' | 'mega';
|
|
409
|
+
export type NavPanelWidthTokenV1 = 'compact' | 'default' | 'wide';
|
|
410
|
+
export type NavPanelLayoutTokenV1 = 'balanced' | 'groups-heavy';
|
|
411
|
+
export type NavLinkDensityTokenV1 = 'compact' | 'comfortable';
|
|
412
|
+
export type NavPanelLinkV1 = {
|
|
413
|
+
labelKey: string;
|
|
414
|
+
href: string;
|
|
415
|
+
pageId?: string;
|
|
416
|
+
descriptionKey?: string;
|
|
417
|
+
};
|
|
418
|
+
export type NavPanelGroupV1 = {
|
|
419
|
+
groupKey?: string;
|
|
420
|
+
links: NavPanelLinkV1[];
|
|
421
|
+
};
|
|
422
|
+
export type NavFeaturedCardV1 = {
|
|
423
|
+
titleKey: string;
|
|
424
|
+
bodyKey?: string;
|
|
425
|
+
href: string;
|
|
426
|
+
labelKey: string;
|
|
427
|
+
};
|
|
428
|
+
export type NavItemV1 = {
|
|
429
|
+
id: string;
|
|
430
|
+
labelKey: string;
|
|
431
|
+
href?: string;
|
|
432
|
+
pageId?: string;
|
|
433
|
+
order?: number;
|
|
434
|
+
interactionMode?: NavInteractionModeV1;
|
|
435
|
+
panelVariant?: NavPanelVariantV1;
|
|
436
|
+
panelWidthToken?: NavPanelWidthTokenV1;
|
|
437
|
+
panelLayoutToken?: NavPanelLayoutTokenV1;
|
|
438
|
+
linkDensity?: NavLinkDensityTokenV1;
|
|
439
|
+
children?: NavPanelGroupV1[];
|
|
440
|
+
featured?: NavFeaturedCardV1;
|
|
441
|
+
};
|
|
442
|
+
export type NavigationConfigV1 = {
|
|
443
|
+
interactionMode?: NavInteractionModeV1;
|
|
444
|
+
panelVariant?: NavPanelVariantV1;
|
|
445
|
+
panelWidthToken?: NavPanelWidthTokenV1;
|
|
446
|
+
panelLayoutToken?: NavPanelLayoutTokenV1;
|
|
447
|
+
linkDensity?: NavLinkDensityTokenV1;
|
|
448
|
+
items: NavItemV1[];
|
|
449
|
+
};
|
|
450
|
+
export type PagesManifestV1 = {
|
|
451
|
+
version: '1';
|
|
452
|
+
defaultLanguage?: string;
|
|
453
|
+
navigation?: NavigationConfigV1;
|
|
454
|
+
pages: ManifestPageV1[];
|
|
455
|
+
};
|
|
456
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,UAAU,GAChB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,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C,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,KAAK,EAAE,SAAS,EAAE,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,GAAG,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valentino Engine — Public API
|
|
3
|
+
* Entry point for programmatic usage.
|
|
4
|
+
*/
|
|
5
|
+
export type { ActionSpec, CtaSpec, ActionWidgetIcon, ActionWidgetVariant, ActionWidgetSpec, SectionPresentationSpec, SectionPresentationBase, LayoutMapMeasureToken, LayoutMapVariantToken, LayoutMapPlacementSpec, LayoutMapStyleSpec, LayoutMapSlotSpec, LayoutMapGridSpec, LayoutMapBreakpointSpec, LayoutMapSpec, HeroGuardrailToken, HeroGeometryAnchorId, HeroGeometryAnchorSpec, HeroGeometryBreakpointSpec, HeroGeometrySpec, HeroSection, CardsCatalogItem, CardsLinkRailItem, CardsSection, ComparisonSection, CtaSection, FormFieldSpec, FormSection, SpacerSection, ManifestoSection, ComponentVariant, ComponentShowcaseItem, ShowcaseIntroSection, ComponentShowcaseSection, AgentDashboardSection, AgentGraphSection, AgentListSection, DataListColumnSpec, RowActionSpec, DataListSection, ActionFormFieldSpec, ActionFormSection, StatItemSpec, StatsSection, HowItWorksStepSpec, HowItWorksSection, AdvisorPromptSpec, AdvisorResponseStatus, AdvisorResponseLabelsSpec, AdvisorSection, ValentinoCatalogSection, SectionSpec, PageProfileSpec, PageSpecV1, ValentinoGovernanceTier, ValentinoGovernanceSpec, ValentinoTemplateEntry, ValentinoSectionPresetEntry, ValentinoTransitionProfileEntry, ValentinoPageBlueprintEntry, ValentinoCatalogV1, ManifestPageV1, NavigationConfigV1, PagesManifestV1, NavInteractionModeV1, NavPanelVariantV1, NavPanelWidthTokenV1, NavPanelLayoutTokenV1, NavLinkDensityTokenV1, NavPanelLinkV1, NavPanelGroupV1, NavFeaturedCardV1, NavItemV1, } from './core/types.js';
|
|
6
|
+
export { mergePresentation, isGovernanceAllowed, resolvePageSpecWithCatalog } from './core/catalog.js';
|
|
7
|
+
export { DEFAULT_PRESENTATION, inferRhythmProfile, resolvePresentation } from './core/presentation.js';
|
|
8
|
+
export { normalizePathname, resolvePageIdByRoute } from './core/manifest.js';
|
|
9
|
+
export { validatePageSpec } from './core/page-spec.js';
|
|
10
|
+
export { checkNoHardcodedPx, checkNoHardcodedColor, checkNoNamedColor, GUARDRAILS } from './core/guardrails.js';
|
|
11
|
+
export { CSS_NAMED_COLORS } from './core/css-named-colors.js';
|
|
12
|
+
export { checkWcagContrast, parseColor, relativeLuminance, contrastRatio } from './core/contrast.js';
|
|
13
|
+
export type { ContrastLevel, ContrastResult } from './core/contrast.js';
|
|
14
|
+
export { probeRhythm } from './core/rhythm.js';
|
|
15
|
+
export type { RhythmWarning, RhythmProbeResult } from './core/rhythm.js';
|
|
16
|
+
export { probeHeroContract } from './core/hero-contract.js';
|
|
17
|
+
export type { HeroContractWarning, HeroContractResult } from './core/hero-contract.js';
|
|
18
|
+
export { probeSectionIntegrity } from './core/section-integrity.js';
|
|
19
|
+
export type { IntegrityWarning, IntegrityResult } from './core/section-integrity.js';
|
|
20
|
+
export { premiumDesignSkill, webGuardrailsSkill, designGuidelinesSkill } from './skills/index.js';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;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AO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACrG,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGrF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valentino Engine — Public API
|
|
3
|
+
* Entry point for programmatic usage.
|
|
4
|
+
*/
|
|
5
|
+
// Catalog resolver
|
|
6
|
+
export { mergePresentation, isGovernanceAllowed, resolvePageSpecWithCatalog } from './core/catalog.js';
|
|
7
|
+
// Presentation resolver
|
|
8
|
+
export { DEFAULT_PRESENTATION, inferRhythmProfile, resolvePresentation } from './core/presentation.js';
|
|
9
|
+
// Manifest resolver
|
|
10
|
+
export { normalizePathname, resolvePageIdByRoute } from './core/manifest.js';
|
|
11
|
+
// PageSpec validation (legacy + V1)
|
|
12
|
+
export { validatePageSpec } from './core/page-spec.js';
|
|
13
|
+
// Guardrails
|
|
14
|
+
export { checkNoHardcodedPx, checkNoHardcodedColor, checkNoNamedColor, GUARDRAILS } from './core/guardrails.js';
|
|
15
|
+
export { CSS_NAMED_COLORS } from './core/css-named-colors.js';
|
|
16
|
+
// Validation probes
|
|
17
|
+
export { checkWcagContrast, parseColor, relativeLuminance, contrastRatio } from './core/contrast.js';
|
|
18
|
+
export { probeRhythm } from './core/rhythm.js';
|
|
19
|
+
export { probeHeroContract } from './core/hero-contract.js';
|
|
20
|
+
export { probeSectionIntegrity } from './core/section-integrity.js';
|
|
21
|
+
// Skills
|
|
22
|
+
export { premiumDesignSkill, webGuardrailsSkill, designGuidelinesSkill } from './skills/index.js';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgCH,mBAAmB;AACnB,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAEvG,wBAAwB;AACxB,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEvG,oBAAoB;AACpB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,oCAAoC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,aAAa;AACb,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,oBAAoB;AACpB,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAErG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,SAAS;AACT,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":""}
|