@mytechtoday/augment-extensions 1.3.0 → 1.4.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/LICENSE +22 -22
- package/README.md +105 -6
- package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
- package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
- package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
- package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
- package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
- package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
- package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
- package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
- package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
- package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
- package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
- package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
- package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
- package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
- package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
- package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
- package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
- package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
- package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
- package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
- package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
- package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
- package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
- package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
- package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
- package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
- package/augment-extensions/visual-design/CHANGELOG.md +132 -132
- package/augment-extensions/visual-design/README.md +255 -255
- package/augment-extensions/visual-design/__tests__/README.md +119 -119
- package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -172
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -214
- package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -157
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -157
- package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -156
- package/augment-extensions/visual-design/domains/other/os-application.ts +156 -156
- package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -158
- package/augment-extensions/visual-design/domains/other/web-app.ts +157 -157
- package/augment-extensions/visual-design/domains/other/website.ts +161 -161
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -156
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -506
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -615
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -531
- package/augment-extensions/visual-design/examples/README.md +97 -97
- package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -233
- package/augment-extensions/visual-design/examples/basic-usage.md +216 -216
- package/augment-extensions/visual-design/examples/domain-workflows.md +257 -257
- package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -247
- package/augment-extensions/visual-design/module.json +78 -78
- package/augment-extensions/visual-design/style-selector.ts +177 -177
- package/augment-extensions/visual-design/types.ts +302 -302
- package/augment-extensions/visual-design/visual-design-core.ts +469 -469
- package/augment-extensions/workflows/adr-support/README.md +227 -227
- package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -203
- package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -162
- package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -449
- package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -580
- package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -436
- package/augment-extensions/workflows/adr-support/module.json +112 -112
- package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -372
- package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -443
- package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -486
- package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -362
- package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -427
- package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -465
- package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -405
- package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -543
- package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -191
- package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -172
- package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -235
- package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -197
- package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -68
- package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -84
- package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
- package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
- package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
- package/cli/dist/commands/agent.d.ts +37 -0
- package/cli/dist/commands/agent.d.ts.map +1 -0
- package/cli/dist/commands/agent.js +222 -0
- package/cli/dist/commands/agent.js.map +1 -0
- package/cli/dist/commands/beads.d.ts +64 -0
- package/cli/dist/commands/beads.d.ts.map +1 -0
- package/cli/dist/commands/beads.js +377 -0
- package/cli/dist/commands/beads.js.map +1 -0
- package/cli/dist/commands/change.d.ts +54 -0
- package/cli/dist/commands/change.d.ts.map +1 -0
- package/cli/dist/commands/change.js +243 -0
- package/cli/dist/commands/change.js.map +1 -0
- package/cli/dist/commands/clean.d.ts +15 -0
- package/cli/dist/commands/clean.d.ts.map +1 -0
- package/cli/dist/commands/clean.js +63 -0
- package/cli/dist/commands/clean.js.map +1 -0
- package/cli/dist/commands/clone.d.ts +15 -0
- package/cli/dist/commands/clone.d.ts.map +1 -0
- package/cli/dist/commands/clone.js +49 -0
- package/cli/dist/commands/clone.js.map +1 -0
- package/cli/dist/commands/config.d.ts +33 -0
- package/cli/dist/commands/config.d.ts.map +1 -0
- package/cli/dist/commands/config.js +166 -0
- package/cli/dist/commands/config.js.map +1 -0
- package/cli/dist/commands/context.d.ts +38 -0
- package/cli/dist/commands/context.d.ts.map +1 -0
- package/cli/dist/commands/context.js +205 -0
- package/cli/dist/commands/context.js.map +1 -0
- package/cli/dist/commands/create.d.ts +18 -0
- package/cli/dist/commands/create.d.ts.map +1 -0
- package/cli/dist/commands/create.js +178 -0
- package/cli/dist/commands/create.js.map +1 -0
- package/cli/dist/commands/diff.d.ts +19 -0
- package/cli/dist/commands/diff.d.ts.map +1 -0
- package/cli/dist/commands/diff.js +104 -0
- package/cli/dist/commands/diff.js.map +1 -0
- package/cli/dist/commands/doctor.d.ts +14 -0
- package/cli/dist/commands/doctor.d.ts.map +1 -0
- package/cli/dist/commands/doctor.js +62 -0
- package/cli/dist/commands/doctor.js.map +1 -0
- package/cli/dist/commands/export.d.ts +28 -0
- package/cli/dist/commands/export.d.ts.map +1 -0
- package/cli/dist/commands/export.js +135 -0
- package/cli/dist/commands/export.js.map +1 -0
- package/cli/dist/commands/import.d.ts +23 -0
- package/cli/dist/commands/import.d.ts.map +1 -0
- package/cli/dist/commands/import.js +118 -0
- package/cli/dist/commands/import.js.map +1 -0
- package/cli/dist/commands/prompt.d.ts +45 -0
- package/cli/dist/commands/prompt.d.ts.map +1 -0
- package/cli/dist/commands/prompt.js +223 -0
- package/cli/dist/commands/prompt.js.map +1 -0
- package/cli/dist/commands/spec.d.ts +57 -0
- package/cli/dist/commands/spec.d.ts.map +1 -0
- package/cli/dist/commands/spec.js +279 -0
- package/cli/dist/commands/spec.js.map +1 -0
- package/cli/dist/commands/stats.d.ts +18 -0
- package/cli/dist/commands/stats.d.ts.map +1 -0
- package/cli/dist/commands/stats.js +85 -0
- package/cli/dist/commands/stats.js.map +1 -0
- package/cli/dist/commands/task.d.ts +65 -0
- package/cli/dist/commands/task.d.ts.map +1 -0
- package/cli/dist/commands/task.js +282 -0
- package/cli/dist/commands/task.js.map +1 -0
- package/cli/dist/commands/template.d.ts +17 -0
- package/cli/dist/commands/template.d.ts.map +1 -0
- package/cli/dist/commands/template.js +55 -0
- package/cli/dist/commands/template.js.map +1 -0
- package/cli/dist/utils/agent-config.d.ts +129 -0
- package/cli/dist/utils/agent-config.d.ts.map +1 -0
- package/cli/dist/utils/agent-config.js +297 -0
- package/cli/dist/utils/agent-config.js.map +1 -0
- package/cli/dist/utils/auto-sync.js +19 -19
- package/cli/dist/utils/beads-graph.d.ts +17 -0
- package/cli/dist/utils/beads-graph.d.ts.map +1 -0
- package/cli/dist/utils/beads-graph.js +150 -0
- package/cli/dist/utils/beads-graph.js.map +1 -0
- package/cli/dist/utils/beads-integration.d.ts +112 -0
- package/cli/dist/utils/beads-integration.d.ts.map +1 -0
- package/cli/dist/utils/beads-integration.js +312 -0
- package/cli/dist/utils/beads-integration.js.map +1 -0
- package/cli/dist/utils/beads-reporter.d.ts +17 -0
- package/cli/dist/utils/beads-reporter.d.ts.map +1 -0
- package/cli/dist/utils/beads-reporter.js +160 -0
- package/cli/dist/utils/beads-reporter.js.map +1 -0
- package/cli/dist/utils/cache-manager.d.ts +55 -0
- package/cli/dist/utils/cache-manager.d.ts.map +1 -0
- package/cli/dist/utils/cache-manager.js +150 -0
- package/cli/dist/utils/cache-manager.js.map +1 -0
- package/cli/dist/utils/change-manager.d.ts +70 -0
- package/cli/dist/utils/change-manager.d.ts.map +1 -0
- package/cli/dist/utils/change-manager.js +412 -0
- package/cli/dist/utils/change-manager.js.map +1 -0
- package/cli/dist/utils/config-manager-enhanced.d.ts +66 -0
- package/cli/dist/utils/config-manager-enhanced.d.ts.map +1 -0
- package/cli/dist/utils/config-manager-enhanced.js +77 -0
- package/cli/dist/utils/config-manager-enhanced.js.map +1 -0
- package/cli/dist/utils/context-manager.d.ts +96 -0
- package/cli/dist/utils/context-manager.d.ts.map +1 -0
- package/cli/dist/utils/context-manager.js +258 -0
- package/cli/dist/utils/context-manager.js.map +1 -0
- package/cli/dist/utils/diff-engine.d.ts +78 -0
- package/cli/dist/utils/diff-engine.d.ts.map +1 -0
- package/cli/dist/utils/diff-engine.js +233 -0
- package/cli/dist/utils/diff-engine.js.map +1 -0
- package/cli/dist/utils/export-system.d.ts +101 -0
- package/cli/dist/utils/export-system.d.ts.map +1 -0
- package/cli/dist/utils/export-system.js +289 -0
- package/cli/dist/utils/export-system.js.map +1 -0
- package/cli/dist/utils/health-checker.d.ts +66 -0
- package/cli/dist/utils/health-checker.d.ts.map +1 -0
- package/cli/dist/utils/health-checker.js +285 -0
- package/cli/dist/utils/health-checker.js.map +1 -0
- package/cli/dist/utils/import-system.d.ts +74 -0
- package/cli/dist/utils/import-system.d.ts.map +1 -0
- package/cli/dist/utils/import-system.js +317 -0
- package/cli/dist/utils/import-system.js.map +1 -0
- package/cli/dist/utils/module-cloner.d.ts +40 -0
- package/cli/dist/utils/module-cloner.d.ts.map +1 -0
- package/cli/dist/utils/module-cloner.js +136 -0
- package/cli/dist/utils/module-cloner.js.map +1 -0
- package/cli/dist/utils/prompt-manager.d.ts +90 -0
- package/cli/dist/utils/prompt-manager.d.ts.map +1 -0
- package/cli/dist/utils/prompt-manager.js +302 -0
- package/cli/dist/utils/prompt-manager.js.map +1 -0
- package/cli/dist/utils/spec-manager.d.ts +65 -0
- package/cli/dist/utils/spec-manager.d.ts.map +1 -0
- package/cli/dist/utils/spec-manager.js +329 -0
- package/cli/dist/utils/spec-manager.js.map +1 -0
- package/cli/dist/utils/stats-collector.d.ts +74 -0
- package/cli/dist/utils/stats-collector.d.ts.map +1 -0
- package/cli/dist/utils/stats-collector.js +164 -0
- package/cli/dist/utils/stats-collector.js.map +1 -0
- package/cli/dist/utils/template-engine.d.ts +47 -0
- package/cli/dist/utils/template-engine.d.ts.map +1 -0
- package/cli/dist/utils/template-engine.js +204 -0
- package/cli/dist/utils/template-engine.js.map +1 -0
- package/package.json +12 -3
- package/augment-extensions/workflows/openspec/README.md +0 -96
- package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
- package/augment-extensions/workflows/openspec/module.json +0 -54
- package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
- package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
- package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
- package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts +0 -6
- package/cli/dist/utils/__tests__/adr-validator.example.d.ts.map +0 -1
- package/cli/dist/utils/__tests__/adr-validator.example.js +0 -148
- package/cli/dist/utils/__tests__/adr-validator.example.js.map +0 -1
- package/cli/dist/utils/adr-validator.d.ts +0 -65
- package/cli/dist/utils/adr-validator.d.ts.map +0 -1
- package/cli/dist/utils/adr-validator.js +0 -203
- package/cli/dist/utils/adr-validator.js.map +0 -1
|
@@ -1,302 +1,302 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TypeScript Interface Definitions for Visual Design Module
|
|
3
|
-
*
|
|
4
|
-
* Defines core types for design elements, principles, and vendor-specific styles
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// ============================================================================
|
|
8
|
-
// Core Design Interfaces
|
|
9
|
-
// ============================================================================
|
|
10
|
-
|
|
11
|
-
export interface DesignModule {
|
|
12
|
-
name: string;
|
|
13
|
-
version: string;
|
|
14
|
-
description: string;
|
|
15
|
-
elements: DesignElement[];
|
|
16
|
-
principles: DesignPrinciple[];
|
|
17
|
-
skills: SkillCategory[];
|
|
18
|
-
vendorPriority: string[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface DesignElement {
|
|
22
|
-
name: string;
|
|
23
|
-
description: string;
|
|
24
|
-
properties: Record<string, any>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface DesignPrinciple {
|
|
28
|
-
name: string;
|
|
29
|
-
description: string;
|
|
30
|
-
guidelines: string[];
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface SkillCategory {
|
|
34
|
-
name: string;
|
|
35
|
-
description: string;
|
|
36
|
-
skills: string[];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// ============================================================================
|
|
40
|
-
// Color System
|
|
41
|
-
// ============================================================================
|
|
42
|
-
|
|
43
|
-
export interface ColorPalette {
|
|
44
|
-
primary: ColorDefinition;
|
|
45
|
-
secondary?: ColorDefinition;
|
|
46
|
-
accent?: ColorDefinition;
|
|
47
|
-
neutral: ColorDefinition[];
|
|
48
|
-
semantic: SemanticColors;
|
|
49
|
-
accessibility: AccessibilityRequirements;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ColorDefinition {
|
|
53
|
-
name: string;
|
|
54
|
-
hex: string;
|
|
55
|
-
rgb: RGB;
|
|
56
|
-
hsl: HSL;
|
|
57
|
-
variants?: ColorVariant[];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface RGB {
|
|
61
|
-
r: number;
|
|
62
|
-
g: number;
|
|
63
|
-
b: number;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface HSL {
|
|
67
|
-
h: number;
|
|
68
|
-
s: number;
|
|
69
|
-
l: number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface ColorVariant {
|
|
73
|
-
name: string;
|
|
74
|
-
hex: string;
|
|
75
|
-
usage: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface SemanticColors {
|
|
79
|
-
success: string;
|
|
80
|
-
warning: string;
|
|
81
|
-
error: string;
|
|
82
|
-
info: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface AccessibilityRequirements {
|
|
86
|
-
minContrastRatio: number;
|
|
87
|
-
wcagLevel: 'A' | 'AA' | 'AAA';
|
|
88
|
-
colorBlindSafe: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// ============================================================================
|
|
92
|
-
// Typography System
|
|
93
|
-
// ============================================================================
|
|
94
|
-
|
|
95
|
-
export interface TypographyRules {
|
|
96
|
-
fontFamilies: FontFamily[];
|
|
97
|
-
typeScale: TypeScale;
|
|
98
|
-
hierarchy: TypographyHierarchy;
|
|
99
|
-
lineHeight: LineHeightRules;
|
|
100
|
-
letterSpacing: LetterSpacingRules;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface FontFamily {
|
|
104
|
-
name: string;
|
|
105
|
-
fallbacks: string[];
|
|
106
|
-
weights: number[];
|
|
107
|
-
styles: ('normal' | 'italic')[];
|
|
108
|
-
usage: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface TypeScale {
|
|
112
|
-
base: number;
|
|
113
|
-
ratio: number;
|
|
114
|
-
sizes: Record<string, number>;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface TypographyHierarchy {
|
|
118
|
-
h1: TypographyStyle;
|
|
119
|
-
h2: TypographyStyle;
|
|
120
|
-
h3: TypographyStyle;
|
|
121
|
-
h4: TypographyStyle;
|
|
122
|
-
h5: TypographyStyle;
|
|
123
|
-
h6: TypographyStyle;
|
|
124
|
-
body: TypographyStyle;
|
|
125
|
-
caption: TypographyStyle;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface TypographyStyle {
|
|
129
|
-
fontSize: string;
|
|
130
|
-
fontWeight: number;
|
|
131
|
-
lineHeight: number;
|
|
132
|
-
letterSpacing?: string;
|
|
133
|
-
textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface LineHeightRules {
|
|
137
|
-
tight: number;
|
|
138
|
-
normal: number;
|
|
139
|
-
relaxed: number;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface LetterSpacingRules {
|
|
143
|
-
tight: string;
|
|
144
|
-
normal: string;
|
|
145
|
-
wide: string;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// ============================================================================
|
|
149
|
-
// Layout System
|
|
150
|
-
// ============================================================================
|
|
151
|
-
|
|
152
|
-
export interface LayoutSystem {
|
|
153
|
-
grid: GridSystem;
|
|
154
|
-
spacing: SpacingSystem;
|
|
155
|
-
breakpoints: Breakpoints;
|
|
156
|
-
containers: ContainerRules;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface GridSystem {
|
|
160
|
-
columns: number;
|
|
161
|
-
gutter: string;
|
|
162
|
-
margin: string;
|
|
163
|
-
maxWidth?: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface SpacingSystem {
|
|
167
|
-
base: number;
|
|
168
|
-
scale: number[];
|
|
169
|
-
tokens: Record<string, string>;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export interface Breakpoints {
|
|
173
|
-
xs: string;
|
|
174
|
-
sm: string;
|
|
175
|
-
md: string;
|
|
176
|
-
lg: string;
|
|
177
|
-
xl: string;
|
|
178
|
-
xxl?: string;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export interface ContainerRules {
|
|
182
|
-
maxWidth: Record<string, string>;
|
|
183
|
-
padding: Record<string, string>;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// ============================================================================
|
|
187
|
-
// Motion & Animation
|
|
188
|
-
// ============================================================================
|
|
189
|
-
|
|
190
|
-
export interface MotionSystem {
|
|
191
|
-
durations: DurationTokens;
|
|
192
|
-
easings: EasingTokens;
|
|
193
|
-
animations: AnimationPreset[];
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export interface DurationTokens {
|
|
197
|
-
instant: string;
|
|
198
|
-
fast: string;
|
|
199
|
-
normal: string;
|
|
200
|
-
slow: string;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export interface EasingTokens {
|
|
204
|
-
linear: string;
|
|
205
|
-
easeIn: string;
|
|
206
|
-
easeOut: string;
|
|
207
|
-
easeInOut: string;
|
|
208
|
-
spring?: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export interface AnimationPreset {
|
|
212
|
-
name: string;
|
|
213
|
-
duration: string;
|
|
214
|
-
easing: string;
|
|
215
|
-
properties: string[];
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
// ============================================================================
|
|
219
|
-
// Elevation & Shadows
|
|
220
|
-
// ============================================================================
|
|
221
|
-
|
|
222
|
-
export interface ElevationSystem {
|
|
223
|
-
levels: ElevationLevel[];
|
|
224
|
-
shadows: ShadowTokens;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export interface ElevationLevel {
|
|
228
|
-
level: number;
|
|
229
|
-
shadow: string;
|
|
230
|
-
usage: string;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface ShadowTokens {
|
|
234
|
-
none: string;
|
|
235
|
-
sm: string;
|
|
236
|
-
md: string;
|
|
237
|
-
lg: string;
|
|
238
|
-
xl: string;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// ============================================================================
|
|
242
|
-
// Vendor-Specific Styles
|
|
243
|
-
// ============================================================================
|
|
244
|
-
|
|
245
|
-
export interface VendorStyle {
|
|
246
|
-
vendor: 'google' | 'microsoft' | 'amazon';
|
|
247
|
-
name: string;
|
|
248
|
-
version: string;
|
|
249
|
-
characteristics: string[];
|
|
250
|
-
colorPalette: ColorPalette;
|
|
251
|
-
typography: TypographyRules;
|
|
252
|
-
layout: LayoutSystem;
|
|
253
|
-
motion: MotionSystem;
|
|
254
|
-
elevation: ElevationSystem;
|
|
255
|
-
components?: ComponentLibrary;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface ComponentLibrary {
|
|
259
|
-
buttons: ComponentSpec;
|
|
260
|
-
inputs: ComponentSpec;
|
|
261
|
-
cards: ComponentSpec;
|
|
262
|
-
navigation: ComponentSpec;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export interface ComponentSpec {
|
|
266
|
-
variants: string[];
|
|
267
|
-
states: string[];
|
|
268
|
-
sizes: string[];
|
|
269
|
-
examples: string[];
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
// ============================================================================
|
|
273
|
-
// Domain-Specific Styles
|
|
274
|
-
// ============================================================================
|
|
275
|
-
|
|
276
|
-
export interface DomainStyle {
|
|
277
|
-
domain: string;
|
|
278
|
-
era?: string;
|
|
279
|
-
characteristics: string[];
|
|
280
|
-
colorScheme: ColorPalette;
|
|
281
|
-
typography: TypographyRules;
|
|
282
|
-
layout: LayoutSystem;
|
|
283
|
-
examples: string[];
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
// ============================================================================
|
|
287
|
-
// Style Selector
|
|
288
|
-
// ============================================================================
|
|
289
|
-
|
|
290
|
-
export interface StyleSelector {
|
|
291
|
-
vendorPriority: string[];
|
|
292
|
-
fallbackChain: string[];
|
|
293
|
-
selectStyle(preferences?: StylePreferences): VendorStyle | DomainStyle;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface StylePreferences {
|
|
297
|
-
vendor?: string;
|
|
298
|
-
domain?: string;
|
|
299
|
-
era?: string;
|
|
300
|
-
accessibility?: 'A' | 'AA' | 'AAA';
|
|
301
|
-
}
|
|
302
|
-
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript Interface Definitions for Visual Design Module
|
|
3
|
+
*
|
|
4
|
+
* Defines core types for design elements, principles, and vendor-specific styles
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Core Design Interfaces
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
export interface DesignModule {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
description: string;
|
|
15
|
+
elements: DesignElement[];
|
|
16
|
+
principles: DesignPrinciple[];
|
|
17
|
+
skills: SkillCategory[];
|
|
18
|
+
vendorPriority: string[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface DesignElement {
|
|
22
|
+
name: string;
|
|
23
|
+
description: string;
|
|
24
|
+
properties: Record<string, any>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface DesignPrinciple {
|
|
28
|
+
name: string;
|
|
29
|
+
description: string;
|
|
30
|
+
guidelines: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface SkillCategory {
|
|
34
|
+
name: string;
|
|
35
|
+
description: string;
|
|
36
|
+
skills: string[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ============================================================================
|
|
40
|
+
// Color System
|
|
41
|
+
// ============================================================================
|
|
42
|
+
|
|
43
|
+
export interface ColorPalette {
|
|
44
|
+
primary: ColorDefinition;
|
|
45
|
+
secondary?: ColorDefinition;
|
|
46
|
+
accent?: ColorDefinition;
|
|
47
|
+
neutral: ColorDefinition[];
|
|
48
|
+
semantic: SemanticColors;
|
|
49
|
+
accessibility: AccessibilityRequirements;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface ColorDefinition {
|
|
53
|
+
name: string;
|
|
54
|
+
hex: string;
|
|
55
|
+
rgb: RGB;
|
|
56
|
+
hsl: HSL;
|
|
57
|
+
variants?: ColorVariant[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface RGB {
|
|
61
|
+
r: number;
|
|
62
|
+
g: number;
|
|
63
|
+
b: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface HSL {
|
|
67
|
+
h: number;
|
|
68
|
+
s: number;
|
|
69
|
+
l: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface ColorVariant {
|
|
73
|
+
name: string;
|
|
74
|
+
hex: string;
|
|
75
|
+
usage: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface SemanticColors {
|
|
79
|
+
success: string;
|
|
80
|
+
warning: string;
|
|
81
|
+
error: string;
|
|
82
|
+
info: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface AccessibilityRequirements {
|
|
86
|
+
minContrastRatio: number;
|
|
87
|
+
wcagLevel: 'A' | 'AA' | 'AAA';
|
|
88
|
+
colorBlindSafe: boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// ============================================================================
|
|
92
|
+
// Typography System
|
|
93
|
+
// ============================================================================
|
|
94
|
+
|
|
95
|
+
export interface TypographyRules {
|
|
96
|
+
fontFamilies: FontFamily[];
|
|
97
|
+
typeScale: TypeScale;
|
|
98
|
+
hierarchy: TypographyHierarchy;
|
|
99
|
+
lineHeight: LineHeightRules;
|
|
100
|
+
letterSpacing: LetterSpacingRules;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface FontFamily {
|
|
104
|
+
name: string;
|
|
105
|
+
fallbacks: string[];
|
|
106
|
+
weights: number[];
|
|
107
|
+
styles: ('normal' | 'italic')[];
|
|
108
|
+
usage: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface TypeScale {
|
|
112
|
+
base: number;
|
|
113
|
+
ratio: number;
|
|
114
|
+
sizes: Record<string, number>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface TypographyHierarchy {
|
|
118
|
+
h1: TypographyStyle;
|
|
119
|
+
h2: TypographyStyle;
|
|
120
|
+
h3: TypographyStyle;
|
|
121
|
+
h4: TypographyStyle;
|
|
122
|
+
h5: TypographyStyle;
|
|
123
|
+
h6: TypographyStyle;
|
|
124
|
+
body: TypographyStyle;
|
|
125
|
+
caption: TypographyStyle;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface TypographyStyle {
|
|
129
|
+
fontSize: string;
|
|
130
|
+
fontWeight: number;
|
|
131
|
+
lineHeight: number;
|
|
132
|
+
letterSpacing?: string;
|
|
133
|
+
textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface LineHeightRules {
|
|
137
|
+
tight: number;
|
|
138
|
+
normal: number;
|
|
139
|
+
relaxed: number;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface LetterSpacingRules {
|
|
143
|
+
tight: string;
|
|
144
|
+
normal: string;
|
|
145
|
+
wide: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// ============================================================================
|
|
149
|
+
// Layout System
|
|
150
|
+
// ============================================================================
|
|
151
|
+
|
|
152
|
+
export interface LayoutSystem {
|
|
153
|
+
grid: GridSystem;
|
|
154
|
+
spacing: SpacingSystem;
|
|
155
|
+
breakpoints: Breakpoints;
|
|
156
|
+
containers: ContainerRules;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface GridSystem {
|
|
160
|
+
columns: number;
|
|
161
|
+
gutter: string;
|
|
162
|
+
margin: string;
|
|
163
|
+
maxWidth?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface SpacingSystem {
|
|
167
|
+
base: number;
|
|
168
|
+
scale: number[];
|
|
169
|
+
tokens: Record<string, string>;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface Breakpoints {
|
|
173
|
+
xs: string;
|
|
174
|
+
sm: string;
|
|
175
|
+
md: string;
|
|
176
|
+
lg: string;
|
|
177
|
+
xl: string;
|
|
178
|
+
xxl?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ContainerRules {
|
|
182
|
+
maxWidth: Record<string, string>;
|
|
183
|
+
padding: Record<string, string>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// ============================================================================
|
|
187
|
+
// Motion & Animation
|
|
188
|
+
// ============================================================================
|
|
189
|
+
|
|
190
|
+
export interface MotionSystem {
|
|
191
|
+
durations: DurationTokens;
|
|
192
|
+
easings: EasingTokens;
|
|
193
|
+
animations: AnimationPreset[];
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface DurationTokens {
|
|
197
|
+
instant: string;
|
|
198
|
+
fast: string;
|
|
199
|
+
normal: string;
|
|
200
|
+
slow: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface EasingTokens {
|
|
204
|
+
linear: string;
|
|
205
|
+
easeIn: string;
|
|
206
|
+
easeOut: string;
|
|
207
|
+
easeInOut: string;
|
|
208
|
+
spring?: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export interface AnimationPreset {
|
|
212
|
+
name: string;
|
|
213
|
+
duration: string;
|
|
214
|
+
easing: string;
|
|
215
|
+
properties: string[];
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// ============================================================================
|
|
219
|
+
// Elevation & Shadows
|
|
220
|
+
// ============================================================================
|
|
221
|
+
|
|
222
|
+
export interface ElevationSystem {
|
|
223
|
+
levels: ElevationLevel[];
|
|
224
|
+
shadows: ShadowTokens;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export interface ElevationLevel {
|
|
228
|
+
level: number;
|
|
229
|
+
shadow: string;
|
|
230
|
+
usage: string;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export interface ShadowTokens {
|
|
234
|
+
none: string;
|
|
235
|
+
sm: string;
|
|
236
|
+
md: string;
|
|
237
|
+
lg: string;
|
|
238
|
+
xl: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// ============================================================================
|
|
242
|
+
// Vendor-Specific Styles
|
|
243
|
+
// ============================================================================
|
|
244
|
+
|
|
245
|
+
export interface VendorStyle {
|
|
246
|
+
vendor: 'google' | 'microsoft' | 'amazon';
|
|
247
|
+
name: string;
|
|
248
|
+
version: string;
|
|
249
|
+
characteristics: string[];
|
|
250
|
+
colorPalette: ColorPalette;
|
|
251
|
+
typography: TypographyRules;
|
|
252
|
+
layout: LayoutSystem;
|
|
253
|
+
motion: MotionSystem;
|
|
254
|
+
elevation: ElevationSystem;
|
|
255
|
+
components?: ComponentLibrary;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export interface ComponentLibrary {
|
|
259
|
+
buttons: ComponentSpec;
|
|
260
|
+
inputs: ComponentSpec;
|
|
261
|
+
cards: ComponentSpec;
|
|
262
|
+
navigation: ComponentSpec;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface ComponentSpec {
|
|
266
|
+
variants: string[];
|
|
267
|
+
states: string[];
|
|
268
|
+
sizes: string[];
|
|
269
|
+
examples: string[];
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// ============================================================================
|
|
273
|
+
// Domain-Specific Styles
|
|
274
|
+
// ============================================================================
|
|
275
|
+
|
|
276
|
+
export interface DomainStyle {
|
|
277
|
+
domain: string;
|
|
278
|
+
era?: string;
|
|
279
|
+
characteristics: string[];
|
|
280
|
+
colorScheme: ColorPalette;
|
|
281
|
+
typography: TypographyRules;
|
|
282
|
+
layout: LayoutSystem;
|
|
283
|
+
examples: string[];
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// ============================================================================
|
|
287
|
+
// Style Selector
|
|
288
|
+
// ============================================================================
|
|
289
|
+
|
|
290
|
+
export interface StyleSelector {
|
|
291
|
+
vendorPriority: string[];
|
|
292
|
+
fallbackChain: string[];
|
|
293
|
+
selectStyle(preferences?: StylePreferences): VendorStyle | DomainStyle;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface StylePreferences {
|
|
297
|
+
vendor?: string;
|
|
298
|
+
domain?: string;
|
|
299
|
+
era?: string;
|
|
300
|
+
accessibility?: 'A' | 'AA' | 'AAA';
|
|
301
|
+
}
|
|
302
|
+
|