@mytechtoday/augment-extensions 1.3.0 → 1.3.1

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 (95) hide show
  1. package/LICENSE +22 -22
  2. package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
  3. package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
  4. package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
  5. package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
  6. package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
  7. package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
  8. package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
  9. package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
  10. package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
  11. package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
  12. package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
  13. package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
  14. package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
  15. package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
  16. package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
  17. package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
  18. package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
  19. package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
  20. package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
  21. package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
  22. package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
  23. package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
  24. package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
  25. package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
  26. package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
  27. package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
  28. package/augment-extensions/visual-design/CHANGELOG.md +132 -132
  29. package/augment-extensions/visual-design/README.md +255 -255
  30. package/augment-extensions/visual-design/__tests__/README.md +119 -119
  31. package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -172
  32. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -214
  33. package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -157
  34. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -156
  35. package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -156
  36. package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -157
  37. package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -156
  38. package/augment-extensions/visual-design/domains/other/os-application.ts +156 -156
  39. package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -158
  40. package/augment-extensions/visual-design/domains/other/web-app.ts +157 -157
  41. package/augment-extensions/visual-design/domains/other/website.ts +161 -161
  42. package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -156
  43. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -506
  44. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -615
  45. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -531
  46. package/augment-extensions/visual-design/examples/README.md +97 -97
  47. package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -233
  48. package/augment-extensions/visual-design/examples/basic-usage.md +216 -216
  49. package/augment-extensions/visual-design/examples/domain-workflows.md +257 -257
  50. package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -247
  51. package/augment-extensions/visual-design/module.json +78 -78
  52. package/augment-extensions/visual-design/style-selector.ts +177 -177
  53. package/augment-extensions/visual-design/types.ts +302 -302
  54. package/augment-extensions/visual-design/visual-design-core.ts +469 -469
  55. package/augment-extensions/workflows/adr-support/README.md +227 -227
  56. package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -203
  57. package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -162
  58. package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -449
  59. package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -580
  60. package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -436
  61. package/augment-extensions/workflows/adr-support/module.json +112 -112
  62. package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -372
  63. package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -443
  64. package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -486
  65. package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -362
  66. package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -427
  67. package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -465
  68. package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -405
  69. package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -543
  70. package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -191
  71. package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -172
  72. package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -235
  73. package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -197
  74. package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -68
  75. package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -84
  76. package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
  77. package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
  78. package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
  79. package/cli/dist/utils/auto-sync.js +19 -19
  80. package/package.json +5 -3
  81. package/augment-extensions/workflows/openspec/README.md +0 -96
  82. package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
  83. package/augment-extensions/workflows/openspec/module.json +0 -54
  84. package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
  85. package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
  86. package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
  87. package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
  88. package/cli/dist/utils/__tests__/adr-validator.example.d.ts +0 -6
  89. package/cli/dist/utils/__tests__/adr-validator.example.d.ts.map +0 -1
  90. package/cli/dist/utils/__tests__/adr-validator.example.js +0 -148
  91. package/cli/dist/utils/__tests__/adr-validator.example.js.map +0 -1
  92. package/cli/dist/utils/adr-validator.d.ts +0 -65
  93. package/cli/dist/utils/adr-validator.d.ts.map +0 -1
  94. package/cli/dist/utils/adr-validator.js +0 -203
  95. package/cli/dist/utils/adr-validator.js.map +0 -1
@@ -1,177 +1,177 @@
1
- /**
2
- * Style Selector - Vendor Priority and Fallback Logic
3
- *
4
- * This module implements the default fallback chain for vendor style selection:
5
- * 1. Google Modern (Material 3 Expressive) - Primary
6
- * 2. Microsoft Fluent 2 - Secondary
7
- * 3. Amazon Cloudscape - Tertiary
8
- *
9
- * The priority chain can be overridden via .augment/extensions.json configuration.
10
- */
11
-
12
- import { VendorStyle, DomainStyle, StylePreferences, StyleSelector } from './types';
13
- import { GOOGLE_MODERN } from './domains/web-page-styles/google-modern';
14
- import { MICROSOFT_FLUENT } from './domains/web-page-styles/microsoft-fluent';
15
- import { AMAZON_CLOUDSCAPE } from './domains/web-page-styles/amazon-cloudscape';
16
-
17
- // ============================================================================
18
- // Default Vendor Priority Chain
19
- // ============================================================================
20
-
21
- /**
22
- * Default vendor priority order:
23
- * 1. Google (Material 3 Expressive)
24
- * 2. Microsoft (Fluent 2)
25
- * 3. Amazon (Cloudscape)
26
- */
27
- export const DEFAULT_VENDOR_PRIORITY: string[] = ['google', 'microsoft', 'amazon'];
28
-
29
- /**
30
- * Vendor style registry
31
- * Maps vendor names to their corresponding VendorStyle implementations
32
- */
33
- const VENDOR_STYLES: Record<string, VendorStyle> = {
34
- google: GOOGLE_MODERN,
35
- microsoft: MICROSOFT_FLUENT,
36
- amazon: AMAZON_CLOUDSCAPE
37
- };
38
-
39
- // ============================================================================
40
- // Style Selector Implementation
41
- // ============================================================================
42
-
43
- /**
44
- * Creates a style selector with configurable vendor priority
45
- *
46
- * @param vendorPriority - Optional custom vendor priority order
47
- * @returns StyleSelector instance
48
- */
49
- export function createStyleSelector(
50
- vendorPriority: string[] = DEFAULT_VENDOR_PRIORITY
51
- ): StyleSelector {
52
- return {
53
- vendorPriority,
54
- fallbackChain: vendorPriority,
55
-
56
- /**
57
- * Selects a vendor style based on preferences and fallback chain
58
- *
59
- * @param preferences - Optional style preferences
60
- * @returns Selected VendorStyle or DomainStyle
61
- */
62
- selectStyle(preferences?: StylePreferences): VendorStyle | DomainStyle {
63
- // If vendor preference is specified, try to use it
64
- if (preferences?.vendor) {
65
- const preferredStyle = VENDOR_STYLES[preferences.vendor.toLowerCase()];
66
- if (preferredStyle) {
67
- return preferredStyle;
68
- }
69
- console.warn(
70
- `Vendor "${preferences.vendor}" not found. Falling back to priority chain.`
71
- );
72
- }
73
-
74
- // Use fallback chain to select vendor
75
- for (const vendor of this.fallbackChain) {
76
- const style = VENDOR_STYLES[vendor.toLowerCase()];
77
- if (style) {
78
- return style;
79
- }
80
- }
81
-
82
- // Ultimate fallback: return Google Modern
83
- console.warn('No vendor found in fallback chain. Using Google Modern as default.');
84
- return GOOGLE_MODERN;
85
- }
86
- };
87
- }
88
-
89
- /**
90
- * Default style selector instance
91
- * Uses the default vendor priority: google → microsoft → amazon
92
- */
93
- export const defaultStyleSelector = createStyleSelector();
94
-
95
- /**
96
- * Selects a vendor style using the default priority chain
97
- *
98
- * @param preferences - Optional style preferences
99
- * @returns Selected VendorStyle
100
- */
101
- export function selectVendorStyle(preferences?: StylePreferences): VendorStyle {
102
- return defaultStyleSelector.selectStyle(preferences) as VendorStyle;
103
- }
104
-
105
- /**
106
- * Gets a specific vendor style by name
107
- *
108
- * @param vendor - Vendor name ('google', 'microsoft', or 'amazon')
109
- * @returns VendorStyle or undefined if not found
110
- */
111
- export function getVendorStyle(vendor: string): VendorStyle | undefined {
112
- return VENDOR_STYLES[vendor.toLowerCase()];
113
- }
114
-
115
- /**
116
- * Gets all available vendor styles
117
- *
118
- * @returns Array of all VendorStyle implementations
119
- */
120
- export function getAllVendorStyles(): VendorStyle[] {
121
- return Object.values(VENDOR_STYLES);
122
- }
123
-
124
- /**
125
- * Checks if a vendor style exists
126
- *
127
- * @param vendor - Vendor name to check
128
- * @returns true if vendor exists, false otherwise
129
- */
130
- export function hasVendorStyle(vendor: string): boolean {
131
- return vendor.toLowerCase() in VENDOR_STYLES;
132
- }
133
-
134
- // ============================================================================
135
- // Usage Examples for AI Agents
136
- // ============================================================================
137
-
138
- /**
139
- * EXAMPLE 1: Use default priority chain
140
- *
141
- * ```typescript
142
- * import { selectVendorStyle } from './style-selector';
143
- *
144
- * const style = selectVendorStyle();
145
- * // Returns GOOGLE_MODERN (first in priority chain)
146
- * ```
147
- *
148
- * EXAMPLE 2: Specify vendor preference
149
- *
150
- * ```typescript
151
- * import { selectVendorStyle } from './style-selector';
152
- *
153
- * const style = selectVendorStyle({ vendor: 'microsoft' });
154
- * // Returns MICROSOFT_FLUENT
155
- * ```
156
- *
157
- * EXAMPLE 3: Custom priority chain
158
- *
159
- * ```typescript
160
- * import { createStyleSelector } from './style-selector';
161
- *
162
- * const selector = createStyleSelector(['amazon', 'microsoft', 'google']);
163
- * const style = selector.selectStyle();
164
- * // Returns AMAZON_CLOUDSCAPE (first in custom chain)
165
- * ```
166
- */
167
-
168
- export default {
169
- createStyleSelector,
170
- defaultStyleSelector,
171
- selectVendorStyle,
172
- getVendorStyle,
173
- getAllVendorStyles,
174
- hasVendorStyle,
175
- DEFAULT_VENDOR_PRIORITY
176
- };
177
-
1
+ /**
2
+ * Style Selector - Vendor Priority and Fallback Logic
3
+ *
4
+ * This module implements the default fallback chain for vendor style selection:
5
+ * 1. Google Modern (Material 3 Expressive) - Primary
6
+ * 2. Microsoft Fluent 2 - Secondary
7
+ * 3. Amazon Cloudscape - Tertiary
8
+ *
9
+ * The priority chain can be overridden via .augment/extensions.json configuration.
10
+ */
11
+
12
+ import { VendorStyle, DomainStyle, StylePreferences, StyleSelector } from './types';
13
+ import { GOOGLE_MODERN } from './domains/web-page-styles/google-modern';
14
+ import { MICROSOFT_FLUENT } from './domains/web-page-styles/microsoft-fluent';
15
+ import { AMAZON_CLOUDSCAPE } from './domains/web-page-styles/amazon-cloudscape';
16
+
17
+ // ============================================================================
18
+ // Default Vendor Priority Chain
19
+ // ============================================================================
20
+
21
+ /**
22
+ * Default vendor priority order:
23
+ * 1. Google (Material 3 Expressive)
24
+ * 2. Microsoft (Fluent 2)
25
+ * 3. Amazon (Cloudscape)
26
+ */
27
+ export const DEFAULT_VENDOR_PRIORITY: string[] = ['google', 'microsoft', 'amazon'];
28
+
29
+ /**
30
+ * Vendor style registry
31
+ * Maps vendor names to their corresponding VendorStyle implementations
32
+ */
33
+ const VENDOR_STYLES: Record<string, VendorStyle> = {
34
+ google: GOOGLE_MODERN,
35
+ microsoft: MICROSOFT_FLUENT,
36
+ amazon: AMAZON_CLOUDSCAPE
37
+ };
38
+
39
+ // ============================================================================
40
+ // Style Selector Implementation
41
+ // ============================================================================
42
+
43
+ /**
44
+ * Creates a style selector with configurable vendor priority
45
+ *
46
+ * @param vendorPriority - Optional custom vendor priority order
47
+ * @returns StyleSelector instance
48
+ */
49
+ export function createStyleSelector(
50
+ vendorPriority: string[] = DEFAULT_VENDOR_PRIORITY
51
+ ): StyleSelector {
52
+ return {
53
+ vendorPriority,
54
+ fallbackChain: vendorPriority,
55
+
56
+ /**
57
+ * Selects a vendor style based on preferences and fallback chain
58
+ *
59
+ * @param preferences - Optional style preferences
60
+ * @returns Selected VendorStyle or DomainStyle
61
+ */
62
+ selectStyle(preferences?: StylePreferences): VendorStyle | DomainStyle {
63
+ // If vendor preference is specified, try to use it
64
+ if (preferences?.vendor) {
65
+ const preferredStyle = VENDOR_STYLES[preferences.vendor.toLowerCase()];
66
+ if (preferredStyle) {
67
+ return preferredStyle;
68
+ }
69
+ console.warn(
70
+ `Vendor "${preferences.vendor}" not found. Falling back to priority chain.`
71
+ );
72
+ }
73
+
74
+ // Use fallback chain to select vendor
75
+ for (const vendor of this.fallbackChain) {
76
+ const style = VENDOR_STYLES[vendor.toLowerCase()];
77
+ if (style) {
78
+ return style;
79
+ }
80
+ }
81
+
82
+ // Ultimate fallback: return Google Modern
83
+ console.warn('No vendor found in fallback chain. Using Google Modern as default.');
84
+ return GOOGLE_MODERN;
85
+ }
86
+ };
87
+ }
88
+
89
+ /**
90
+ * Default style selector instance
91
+ * Uses the default vendor priority: google → microsoft → amazon
92
+ */
93
+ export const defaultStyleSelector = createStyleSelector();
94
+
95
+ /**
96
+ * Selects a vendor style using the default priority chain
97
+ *
98
+ * @param preferences - Optional style preferences
99
+ * @returns Selected VendorStyle
100
+ */
101
+ export function selectVendorStyle(preferences?: StylePreferences): VendorStyle {
102
+ return defaultStyleSelector.selectStyle(preferences) as VendorStyle;
103
+ }
104
+
105
+ /**
106
+ * Gets a specific vendor style by name
107
+ *
108
+ * @param vendor - Vendor name ('google', 'microsoft', or 'amazon')
109
+ * @returns VendorStyle or undefined if not found
110
+ */
111
+ export function getVendorStyle(vendor: string): VendorStyle | undefined {
112
+ return VENDOR_STYLES[vendor.toLowerCase()];
113
+ }
114
+
115
+ /**
116
+ * Gets all available vendor styles
117
+ *
118
+ * @returns Array of all VendorStyle implementations
119
+ */
120
+ export function getAllVendorStyles(): VendorStyle[] {
121
+ return Object.values(VENDOR_STYLES);
122
+ }
123
+
124
+ /**
125
+ * Checks if a vendor style exists
126
+ *
127
+ * @param vendor - Vendor name to check
128
+ * @returns true if vendor exists, false otherwise
129
+ */
130
+ export function hasVendorStyle(vendor: string): boolean {
131
+ return vendor.toLowerCase() in VENDOR_STYLES;
132
+ }
133
+
134
+ // ============================================================================
135
+ // Usage Examples for AI Agents
136
+ // ============================================================================
137
+
138
+ /**
139
+ * EXAMPLE 1: Use default priority chain
140
+ *
141
+ * ```typescript
142
+ * import { selectVendorStyle } from './style-selector';
143
+ *
144
+ * const style = selectVendorStyle();
145
+ * // Returns GOOGLE_MODERN (first in priority chain)
146
+ * ```
147
+ *
148
+ * EXAMPLE 2: Specify vendor preference
149
+ *
150
+ * ```typescript
151
+ * import { selectVendorStyle } from './style-selector';
152
+ *
153
+ * const style = selectVendorStyle({ vendor: 'microsoft' });
154
+ * // Returns MICROSOFT_FLUENT
155
+ * ```
156
+ *
157
+ * EXAMPLE 3: Custom priority chain
158
+ *
159
+ * ```typescript
160
+ * import { createStyleSelector } from './style-selector';
161
+ *
162
+ * const selector = createStyleSelector(['amazon', 'microsoft', 'google']);
163
+ * const style = selector.selectStyle();
164
+ * // Returns AMAZON_CLOUDSCAPE (first in custom chain)
165
+ * ```
166
+ */
167
+
168
+ export default {
169
+ createStyleSelector,
170
+ defaultStyleSelector,
171
+ selectVendorStyle,
172
+ getVendorStyle,
173
+ getAllVendorStyles,
174
+ hasVendorStyle,
175
+ DEFAULT_VENDOR_PRIORITY
176
+ };
177
+