@mytechtoday/augment-extensions 3.1.2 → 3.2.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 +123 -0
- package/README.md +981 -32
- package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
- package/augment-extensions/coding-standards/q/README.md +53 -0
- package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
- package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
- package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
- package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
- package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
- package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
- package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
- package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
- package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
- package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
- package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
- package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
- package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
- package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
- package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
- package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
- package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
- package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
- package/augment-extensions/coding-standards/q/metadata.json +38 -0
- package/augment-extensions/coding-standards/q/module.json +29 -0
- package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
- package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
- package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
- package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
- package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
- package/augment-extensions/visual-design/CHANGELOG.md +2 -2
- package/augment-extensions/visual-design/README.md +31 -8
- package/augment-extensions/visual-design/VERSION +1 -0
- package/augment-extensions/visual-design/__tests__/README.md +32 -18
- package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
- package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
- package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
- package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
- package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
- package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
- package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
- package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
- package/augment-extensions/visual-design/examples/README.md +2 -0
- package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
- package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
- package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
- package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
- package/augment-extensions/visual-design/guidelines/index.md +5 -0
- package/augment-extensions/visual-design/metadata.json +26 -5
- package/augment-extensions/visual-design/module.json +39 -6
- package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
- package/augment-extensions/visual-design/rules/design-practice.md +55 -0
- package/augment-extensions/visual-design/rules/index.md +34 -0
- package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
- package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
- package/augment-extensions/visual-design/skills/README.md +11 -0
- package/augment-extensions/visual-design/skills/design-brief.md +40 -0
- package/augment-extensions/visual-design/skills/design-review.md +38 -0
- package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
- package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
- package/augment-extensions/visual-design/style-selector.ts +4 -4
- package/augment-extensions/visual-design/types.ts +101 -46
- package/augment-extensions/visual-design/visual-design-core.ts +8 -8
- package/cli/dist/adapters/banner.d.ts +62 -0
- package/cli/dist/adapters/banner.d.ts.map +1 -0
- package/cli/dist/adapters/banner.js +105 -0
- package/cli/dist/adapters/banner.js.map +1 -0
- package/cli/dist/adapters/claude-code.d.ts +13 -0
- package/cli/dist/adapters/claude-code.d.ts.map +1 -0
- package/cli/dist/adapters/claude-code.js +79 -0
- package/cli/dist/adapters/claude-code.js.map +1 -0
- package/cli/dist/adapters/copilot.d.ts +17 -0
- package/cli/dist/adapters/copilot.d.ts.map +1 -0
- package/cli/dist/adapters/copilot.js +81 -0
- package/cli/dist/adapters/copilot.js.map +1 -0
- package/cli/dist/adapters/cursor.d.ts +16 -0
- package/cli/dist/adapters/cursor.d.ts.map +1 -0
- package/cli/dist/adapters/cursor.js +99 -0
- package/cli/dist/adapters/cursor.js.map +1 -0
- package/cli/dist/adapters/index.d.ts +25 -0
- package/cli/dist/adapters/index.d.ts.map +1 -0
- package/cli/dist/adapters/index.js +59 -0
- package/cli/dist/adapters/index.js.map +1 -0
- package/cli/dist/adapters/types.d.ts +113 -0
- package/cli/dist/adapters/types.d.ts.map +1 -0
- package/cli/dist/adapters/types.js +13 -0
- package/cli/dist/adapters/types.js.map +1 -0
- package/cli/dist/adapters/windsurf.d.ts +14 -0
- package/cli/dist/adapters/windsurf.d.ts.map +1 -0
- package/cli/dist/adapters/windsurf.js +78 -0
- package/cli/dist/adapters/windsurf.js.map +1 -0
- package/cli/dist/analysis/index.d.ts +1 -0
- package/cli/dist/analysis/index.d.ts.map +1 -1
- package/cli/dist/analysis/index.js +1 -0
- package/cli/dist/analysis/index.js.map +1 -1
- package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
- package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
- package/cli/dist/analysis/pattern-analyzer.js +100 -0
- package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
- package/cli/dist/cli.js +62 -35
- package/cli/dist/cli.js.map +1 -1
- package/cli/dist/commands/code-analysis.d.ts.map +1 -1
- package/cli/dist/commands/code-analysis.js +22 -2
- package/cli/dist/commands/code-analysis.js.map +1 -1
- package/cli/dist/commands/export.d.ts +81 -0
- package/cli/dist/commands/export.d.ts.map +1 -0
- package/cli/dist/commands/export.js +334 -0
- package/cli/dist/commands/export.js.map +1 -0
- package/cli/dist/commands/gui.d.ts +3 -1
- package/cli/dist/commands/gui.d.ts.map +1 -1
- package/cli/dist/commands/gui.js +263 -22
- package/cli/dist/commands/gui.js.map +1 -1
- package/cli/dist/commands/init.d.ts +2 -0
- package/cli/dist/commands/init.d.ts.map +1 -1
- package/cli/dist/commands/init.js +84 -3
- package/cli/dist/commands/init.js.map +1 -1
- package/cli/dist/commands/lifecycle.d.ts +14 -0
- package/cli/dist/commands/lifecycle.d.ts.map +1 -0
- package/cli/dist/commands/lifecycle.js +463 -0
- package/cli/dist/commands/lifecycle.js.map +1 -0
- package/cli/dist/commands/link.d.ts +3 -0
- package/cli/dist/commands/link.d.ts.map +1 -1
- package/cli/dist/commands/link.js +126 -16
- package/cli/dist/commands/link.js.map +1 -1
- package/cli/dist/commands/list.js +2 -2
- package/cli/dist/commands/list.js.map +1 -1
- package/cli/dist/commands/mcp.d.ts +1 -2
- package/cli/dist/commands/mcp.d.ts.map +1 -1
- package/cli/dist/commands/mcp.js +20 -20
- package/cli/dist/commands/mcp.js.map +1 -1
- package/cli/dist/commands/module-management.d.ts +9 -0
- package/cli/dist/commands/module-management.d.ts.map +1 -0
- package/cli/dist/commands/module-management.js +420 -0
- package/cli/dist/commands/module-management.js.map +1 -0
- package/cli/dist/commands/self-remove.d.ts.map +1 -1
- package/cli/dist/commands/self-remove.js +98 -44
- package/cli/dist/commands/self-remove.js.map +1 -1
- package/cli/dist/commands/show.d.ts +1 -1
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +21 -10
- package/cli/dist/commands/show.js.map +1 -1
- package/cli/dist/commands/showCompleted.d.ts +1 -0
- package/cli/dist/commands/showCompleted.d.ts.map +1 -1
- package/cli/dist/commands/showCompleted.js +4 -3
- package/cli/dist/commands/showCompleted.js.map +1 -1
- package/cli/dist/commands/skill.d.ts +7 -1
- package/cli/dist/commands/skill.d.ts.map +1 -1
- package/cli/dist/commands/skill.js +79 -21
- package/cli/dist/commands/skill.js.map +1 -1
- package/cli/dist/commands/unlink.d.ts.map +1 -1
- package/cli/dist/commands/unlink.js +38 -2
- package/cli/dist/commands/unlink.js.map +1 -1
- package/cli/dist/commands/update.d.ts.map +1 -1
- package/cli/dist/commands/update.js +6 -16
- package/cli/dist/commands/update.js.map +1 -1
- package/cli/dist/commands/upgrade.d.ts +2 -0
- package/cli/dist/commands/upgrade.d.ts.map +1 -1
- package/cli/dist/commands/upgrade.js +22 -5
- package/cli/dist/commands/upgrade.js.map +1 -1
- package/cli/dist/commands/use.d.ts.map +1 -1
- package/cli/dist/commands/use.js +2 -68
- package/cli/dist/commands/use.js.map +1 -1
- package/cli/dist/core/compatibility-checker.d.ts +37 -1
- package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
- package/cli/dist/core/compatibility-checker.js +133 -12
- package/cli/dist/core/compatibility-checker.js.map +1 -1
- package/cli/dist/gui/state/navigation-state.d.ts +20 -0
- package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
- package/cli/dist/gui/state/navigation-state.js +115 -0
- package/cli/dist/gui/state/navigation-state.js.map +1 -0
- package/cli/dist/gui/state/selection-state.d.ts +21 -0
- package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
- package/cli/dist/gui/state/selection-state.js +117 -0
- package/cli/dist/gui/state/selection-state.js.map +1 -0
- package/cli/dist/lib/export-runner.d.ts +76 -0
- package/cli/dist/lib/export-runner.d.ts.map +1 -0
- package/cli/dist/lib/export-runner.js +111 -0
- package/cli/dist/lib/export-runner.js.map +1 -0
- package/cli/dist/lib/mcp-detection.d.ts +40 -0
- package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
- package/cli/dist/lib/mcp-detection.js +167 -0
- package/cli/dist/lib/mcp-detection.js.map +1 -0
- package/cli/dist/lib/mirror-coordination.d.ts +57 -0
- package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
- package/cli/dist/lib/mirror-coordination.js +151 -0
- package/cli/dist/lib/mirror-coordination.js.map +1 -0
- package/cli/dist/lib/mirror-runner.d.ts +123 -0
- package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
- package/cli/dist/lib/mirror-runner.js +579 -0
- package/cli/dist/lib/mirror-runner.js.map +1 -0
- package/cli/dist/lib/module-resolver.d.ts +65 -0
- package/cli/dist/lib/module-resolver.d.ts.map +1 -0
- package/cli/dist/lib/module-resolver.js +211 -0
- package/cli/dist/lib/module-resolver.js.map +1 -0
- package/cli/dist/lib/source-hash.d.ts +62 -0
- package/cli/dist/lib/source-hash.d.ts.map +1 -0
- package/cli/dist/lib/source-hash.js +99 -0
- package/cli/dist/lib/source-hash.js.map +1 -0
- package/cli/dist/types/coordination-export.d.ts +33 -0
- package/cli/dist/types/coordination-export.d.ts.map +1 -0
- package/cli/dist/types/coordination-export.js +28 -0
- package/cli/dist/types/coordination-export.js.map +1 -0
- package/cli/dist/types/lifecycle.d.ts +81 -0
- package/cli/dist/types/lifecycle.d.ts.map +1 -0
- package/cli/dist/types/lifecycle.js +3 -0
- package/cli/dist/types/lifecycle.js.map +1 -0
- package/cli/dist/utils/beads-sync.d.ts +4 -0
- package/cli/dist/utils/beads-sync.d.ts.map +1 -1
- package/cli/dist/utils/beads-sync.js.map +1 -1
- package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
- package/cli/dist/utils/catalog-sync.js +41 -8
- package/cli/dist/utils/catalog-sync.js.map +1 -1
- package/cli/dist/utils/coordination-queries.d.ts +3 -0
- package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
- package/cli/dist/utils/coordination-queries.js.map +1 -1
- package/cli/dist/utils/extensions-config.d.ts +29 -0
- package/cli/dist/utils/extensions-config.d.ts.map +1 -0
- package/cli/dist/utils/extensions-config.js +151 -0
- package/cli/dist/utils/extensions-config.js.map +1 -0
- package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
- package/cli/dist/utils/extractCommandHelp.js +6 -0
- package/cli/dist/utils/extractCommandHelp.js.map +1 -1
- package/cli/dist/utils/file-tracking.d.ts +4 -0
- package/cli/dist/utils/file-tracking.d.ts.map +1 -1
- package/cli/dist/utils/file-tracking.js.map +1 -1
- package/cli/dist/utils/inspection-cache.d.ts +8 -0
- package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
- package/cli/dist/utils/inspection-cache.js +12 -0
- package/cli/dist/utils/inspection-cache.js.map +1 -1
- package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
- package/cli/dist/utils/inspection-handlers.js +230 -52
- package/cli/dist/utils/inspection-handlers.js.map +1 -1
- package/cli/dist/utils/install-rules.d.ts +15 -0
- package/cli/dist/utils/install-rules.d.ts.map +1 -1
- package/cli/dist/utils/install-rules.js +247 -0
- package/cli/dist/utils/install-rules.js.map +1 -1
- package/cli/dist/utils/interactive-prompt.d.ts +7 -0
- package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
- package/cli/dist/utils/interactive-prompt.js +41 -0
- package/cli/dist/utils/interactive-prompt.js.map +1 -0
- package/cli/dist/utils/lifecycle.d.ts +47 -0
- package/cli/dist/utils/lifecycle.d.ts.map +1 -0
- package/cli/dist/utils/lifecycle.js +841 -0
- package/cli/dist/utils/lifecycle.js.map +1 -0
- package/cli/dist/utils/mcp-integration.d.ts +24 -3
- package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
- package/cli/dist/utils/mcp-integration.js +364 -151
- package/cli/dist/utils/mcp-integration.js.map +1 -1
- package/cli/dist/utils/module-system.d.ts +5 -0
- package/cli/dist/utils/module-system.d.ts.map +1 -1
- package/cli/dist/utils/module-system.js +113 -29
- package/cli/dist/utils/module-system.js.map +1 -1
- package/cli/dist/utils/openspec-sync.d.ts +4 -0
- package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
- package/cli/dist/utils/openspec-sync.js.map +1 -1
- package/cli/dist/utils/plugin-system.js +1 -1
- package/cli/dist/utils/plugin-system.js.map +1 -1
- package/cli/dist/utils/skill-system.d.ts +11 -0
- package/cli/dist/utils/skill-system.d.ts.map +1 -1
- package/cli/dist/utils/skill-system.js +101 -3
- package/cli/dist/utils/skill-system.js.map +1 -1
- package/cli/dist/utils/zip-archive.d.ts +25 -0
- package/cli/dist/utils/zip-archive.d.ts.map +1 -0
- package/cli/dist/utils/zip-archive.js +287 -0
- package/cli/dist/utils/zip-archive.js.map +1 -0
- package/modules.md +21 -4
- package/package.json +138 -137
|
@@ -44,17 +44,23 @@ export interface ColorPalette {
|
|
|
44
44
|
primary: ColorDefinition;
|
|
45
45
|
secondary?: ColorDefinition;
|
|
46
46
|
accent?: ColorDefinition;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
tertiary?: ColorDefinition;
|
|
48
|
+
error?: ColorDefinition;
|
|
49
|
+
neutral: ColorDefinition | ColorDefinition[];
|
|
50
|
+
neutralVariant?: ColorDefinition;
|
|
51
|
+
semantic?: SemanticColors;
|
|
52
|
+
accessibility?: AccessibilityRequirements;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export interface ColorDefinition {
|
|
53
56
|
name: string;
|
|
54
57
|
hex: string;
|
|
55
|
-
rgb: RGB;
|
|
56
|
-
hsl
|
|
58
|
+
rgb: RGB | string;
|
|
59
|
+
hsl?: HSL;
|
|
60
|
+
usage?: string;
|
|
61
|
+
accessibility?: string;
|
|
57
62
|
variants?: ColorVariant[];
|
|
63
|
+
tones?: Record<string, string> | Record<number, string>;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
66
|
export interface RGB {
|
|
@@ -75,17 +81,30 @@ export interface ColorVariant {
|
|
|
75
81
|
usage: string;
|
|
76
82
|
}
|
|
77
83
|
|
|
84
|
+
export interface SemanticColorDefinition {
|
|
85
|
+
hex: string;
|
|
86
|
+
usage?: string;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type SemanticColorValue = string | SemanticColorDefinition;
|
|
90
|
+
|
|
78
91
|
export interface SemanticColors {
|
|
79
|
-
success:
|
|
80
|
-
warning:
|
|
81
|
-
error:
|
|
82
|
-
info:
|
|
92
|
+
success: SemanticColorValue;
|
|
93
|
+
warning: SemanticColorValue;
|
|
94
|
+
error: SemanticColorValue;
|
|
95
|
+
info: SemanticColorValue;
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
export interface AccessibilityRequirements {
|
|
86
|
-
|
|
87
|
-
|
|
99
|
+
/** Legacy intent metadata. Measure rendered color pairs before making a conformance claim. */
|
|
100
|
+
minContrastRatio?: number;
|
|
101
|
+
minimumContrast?: number;
|
|
102
|
+
targetContrast?: number;
|
|
103
|
+
/** A declared review target, not evidence that the full product meets this level. */
|
|
104
|
+
wcagLevel?: 'A' | 'AA' | 'AAA';
|
|
105
|
+
/** Palette metadata only. Test actual themes and states for the target users. */
|
|
88
106
|
colorBlindSafe: boolean;
|
|
107
|
+
guidelines?: string[];
|
|
89
108
|
}
|
|
90
109
|
|
|
91
110
|
// ============================================================================
|
|
@@ -93,11 +112,13 @@ export interface AccessibilityRequirements {
|
|
|
93
112
|
// ============================================================================
|
|
94
113
|
|
|
95
114
|
export interface TypographyRules {
|
|
96
|
-
fontFamilies:
|
|
97
|
-
typeScale
|
|
98
|
-
hierarchy
|
|
99
|
-
lineHeight
|
|
100
|
-
letterSpacing
|
|
115
|
+
fontFamilies: FontFamilies;
|
|
116
|
+
typeScale?: TypeScale;
|
|
117
|
+
hierarchy?: TypographyHierarchy;
|
|
118
|
+
lineHeight?: LineHeightRules;
|
|
119
|
+
letterSpacing?: LetterSpacingRules;
|
|
120
|
+
scale?: ScaleSystem;
|
|
121
|
+
guidelines?: string[];
|
|
101
122
|
}
|
|
102
123
|
|
|
103
124
|
export interface FontFamily {
|
|
@@ -108,12 +129,46 @@ export interface FontFamily {
|
|
|
108
129
|
usage: string;
|
|
109
130
|
}
|
|
110
131
|
|
|
111
|
-
export interface
|
|
132
|
+
export interface FontFamilySet {
|
|
133
|
+
primary: string;
|
|
134
|
+
secondary: string;
|
|
135
|
+
monospace: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type FontFamilies = FontFamily[] | FontFamilySet;
|
|
139
|
+
|
|
140
|
+
export interface NamedTypeScale {
|
|
141
|
+
displayLarge: TypographyStyle;
|
|
142
|
+
displayMedium: TypographyStyle;
|
|
143
|
+
displaySmall: TypographyStyle;
|
|
144
|
+
headlineLarge: TypographyStyle;
|
|
145
|
+
headlineMedium: TypographyStyle;
|
|
146
|
+
headlineSmall: TypographyStyle;
|
|
147
|
+
titleLarge: TypographyStyle;
|
|
148
|
+
titleMedium: TypographyStyle;
|
|
149
|
+
titleSmall: TypographyStyle;
|
|
150
|
+
bodyLarge: TypographyStyle;
|
|
151
|
+
bodyMedium: TypographyStyle;
|
|
152
|
+
bodySmall: TypographyStyle;
|
|
153
|
+
labelLarge: TypographyStyle;
|
|
154
|
+
labelMedium: TypographyStyle;
|
|
155
|
+
labelSmall: TypographyStyle;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface NumericTypeScale {
|
|
112
159
|
base: number;
|
|
113
160
|
ratio: number;
|
|
114
161
|
sizes: Record<string, number>;
|
|
115
162
|
}
|
|
116
163
|
|
|
164
|
+
export type TypeScale = NamedTypeScale | NumericTypeScale;
|
|
165
|
+
|
|
166
|
+
export interface ScaleSystem {
|
|
167
|
+
base: number;
|
|
168
|
+
ratio: number;
|
|
169
|
+
sizes: number[];
|
|
170
|
+
}
|
|
171
|
+
|
|
117
172
|
export interface TypographyHierarchy {
|
|
118
173
|
h1: TypographyStyle;
|
|
119
174
|
h2: TypographyStyle;
|
|
@@ -122,15 +177,17 @@ export interface TypographyHierarchy {
|
|
|
122
177
|
h5: TypographyStyle;
|
|
123
178
|
h6: TypographyStyle;
|
|
124
179
|
body: TypographyStyle;
|
|
125
|
-
caption
|
|
180
|
+
caption?: TypographyStyle;
|
|
181
|
+
small?: TypographyStyle;
|
|
126
182
|
}
|
|
127
183
|
|
|
128
184
|
export interface TypographyStyle {
|
|
129
185
|
fontSize: string;
|
|
130
186
|
fontWeight: number;
|
|
131
|
-
lineHeight: number;
|
|
187
|
+
lineHeight: number | string;
|
|
132
188
|
letterSpacing?: string;
|
|
133
189
|
textTransform?: 'none' | 'uppercase' | 'lowercase' | 'capitalize';
|
|
190
|
+
usage?: string;
|
|
134
191
|
}
|
|
135
192
|
|
|
136
193
|
export interface LineHeightRules {
|
|
@@ -152,8 +209,10 @@ export interface LetterSpacingRules {
|
|
|
152
209
|
export interface LayoutSystem {
|
|
153
210
|
grid: GridSystem;
|
|
154
211
|
spacing: SpacingSystem;
|
|
155
|
-
breakpoints
|
|
156
|
-
containers
|
|
212
|
+
breakpoints?: Breakpoints;
|
|
213
|
+
containers?: ContainerRules;
|
|
214
|
+
containerWidths?: Record<string, string>;
|
|
215
|
+
guidelines?: string[];
|
|
157
216
|
}
|
|
158
217
|
|
|
159
218
|
export interface GridSystem {
|
|
@@ -161,21 +220,19 @@ export interface GridSystem {
|
|
|
161
220
|
gutter: string;
|
|
162
221
|
margin: string;
|
|
163
222
|
maxWidth?: string;
|
|
223
|
+
breakpoints?: Breakpoints;
|
|
164
224
|
}
|
|
165
225
|
|
|
166
226
|
export interface SpacingSystem {
|
|
167
|
-
base
|
|
227
|
+
base?: number;
|
|
228
|
+
unit?: number;
|
|
168
229
|
scale: number[];
|
|
169
|
-
tokens
|
|
230
|
+
tokens?: Record<string, string>;
|
|
231
|
+
guidelines?: string[];
|
|
170
232
|
}
|
|
171
233
|
|
|
172
234
|
export interface Breakpoints {
|
|
173
|
-
|
|
174
|
-
sm: string;
|
|
175
|
-
md: string;
|
|
176
|
-
lg: string;
|
|
177
|
-
xl: string;
|
|
178
|
-
xxl?: string;
|
|
235
|
+
[breakpoint: string]: string;
|
|
179
236
|
}
|
|
180
237
|
|
|
181
238
|
export interface ContainerRules {
|
|
@@ -190,22 +247,19 @@ export interface ContainerRules {
|
|
|
190
247
|
export interface MotionSystem {
|
|
191
248
|
durations: DurationTokens;
|
|
192
249
|
easings: EasingTokens;
|
|
193
|
-
animations
|
|
250
|
+
animations?: AnimationPreset[];
|
|
251
|
+
patterns?: Record<string, MotionPattern>;
|
|
252
|
+
guidelines?: string[];
|
|
194
253
|
}
|
|
195
254
|
|
|
196
|
-
export
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
normal: string;
|
|
200
|
-
slow: string;
|
|
201
|
-
}
|
|
255
|
+
export type DurationTokens = Record<string, string>;
|
|
256
|
+
|
|
257
|
+
export type EasingTokens = Record<string, string>;
|
|
202
258
|
|
|
203
|
-
export interface
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
easeInOut: string;
|
|
208
|
-
spring?: string;
|
|
259
|
+
export interface MotionPattern {
|
|
260
|
+
duration: string;
|
|
261
|
+
easing: string;
|
|
262
|
+
properties: string[];
|
|
209
263
|
}
|
|
210
264
|
|
|
211
265
|
export interface AnimationPreset {
|
|
@@ -220,12 +274,13 @@ export interface AnimationPreset {
|
|
|
220
274
|
// ============================================================================
|
|
221
275
|
|
|
222
276
|
export interface ElevationSystem {
|
|
223
|
-
levels: ElevationLevel[]
|
|
224
|
-
shadows
|
|
277
|
+
levels: ElevationLevel[] | Record<string, ElevationLevel>;
|
|
278
|
+
shadows?: ShadowTokens;
|
|
279
|
+
guidelines?: string[];
|
|
225
280
|
}
|
|
226
281
|
|
|
227
282
|
export interface ElevationLevel {
|
|
228
|
-
level
|
|
283
|
+
level?: number;
|
|
229
284
|
shadow: string;
|
|
230
285
|
usage: string;
|
|
231
286
|
}
|
|
@@ -290,7 +345,7 @@ export interface DomainStyle {
|
|
|
290
345
|
export interface StyleSelector {
|
|
291
346
|
vendorPriority: string[];
|
|
292
347
|
fallbackChain: string[];
|
|
293
|
-
selectStyle(preferences?: StylePreferences): VendorStyle
|
|
348
|
+
selectStyle(preferences?: StylePreferences): VendorStyle;
|
|
294
349
|
}
|
|
295
350
|
|
|
296
351
|
export interface StylePreferences {
|
|
@@ -24,7 +24,7 @@ export const DESIGN_ELEMENTS: DesignElement[] = [
|
|
|
24
24
|
aspects: [
|
|
25
25
|
'Color theory (primary, secondary, tertiary)',
|
|
26
26
|
'Color harmony (complementary, analogous, triadic)',
|
|
27
|
-
'
|
|
27
|
+
'Text contrast thresholds by text size and conformance target',
|
|
28
28
|
'Color psychology and emotional impact',
|
|
29
29
|
'Accessibility (color blindness, high contrast modes)',
|
|
30
30
|
'Brand color consistency'
|
|
@@ -170,7 +170,7 @@ export const DESIGN_PRINCIPLES: DesignPrinciple[] = [
|
|
|
170
170
|
'Size contrast: Large vs small elements',
|
|
171
171
|
'Shape contrast: Geometric vs organic forms',
|
|
172
172
|
'Texture contrast: Smooth vs rough surfaces',
|
|
173
|
-
'
|
|
173
|
+
'Check text and non-text contrast against the applicable criteria',
|
|
174
174
|
'Use contrast to guide attention and create focal points'
|
|
175
175
|
]
|
|
176
176
|
},
|
|
@@ -243,7 +243,7 @@ export const DESIGN_PRINCIPLES: DesignPrinciple[] = [
|
|
|
243
243
|
'Use white space to create visual hierarchy',
|
|
244
244
|
'Increase white space for premium/luxury feel',
|
|
245
245
|
'Reduce clutter by embracing emptiness',
|
|
246
|
-
'White space is not wasted space
|
|
246
|
+
'White space is not wasted space; it enhances comprehension'
|
|
247
247
|
]
|
|
248
248
|
},
|
|
249
249
|
{
|
|
@@ -262,13 +262,13 @@ export const DESIGN_PRINCIPLES: DesignPrinciple[] = [
|
|
|
262
262
|
name: 'Accessibility',
|
|
263
263
|
description: 'Designing for all users, including those with disabilities',
|
|
264
264
|
guidelines: [
|
|
265
|
-
'
|
|
266
|
-
'
|
|
265
|
+
'Use the product and applicable accessibility conformance target; review current criteria',
|
|
266
|
+
'Check text and non-text contrast using the applicable size, state, and exception rules',
|
|
267
267
|
'Keyboard navigation support (tab order, focus states)',
|
|
268
268
|
'Screen reader compatibility (semantic HTML, ARIA labels)',
|
|
269
269
|
'Responsive text sizing (rem units, no fixed px)',
|
|
270
270
|
'Support for reduced motion preferences',
|
|
271
|
-
'
|
|
271
|
+
'Distinguish platform-recommended touch targets from WCAG CSS-pixel target-size criteria'
|
|
272
272
|
]
|
|
273
273
|
},
|
|
274
274
|
{
|
|
@@ -276,7 +276,7 @@ export const DESIGN_PRINCIPLES: DesignPrinciple[] = [
|
|
|
276
276
|
description: 'Adapting design to different screen sizes and devices',
|
|
277
277
|
guidelines: [
|
|
278
278
|
'Mobile-first approach (design for smallest screen first)',
|
|
279
|
-
'
|
|
279
|
+
'Choose breakpoints where content or interaction needs a different arrangement',
|
|
280
280
|
'Fluid typography (clamp, vw units)',
|
|
281
281
|
'Flexible layouts (CSS Grid, Flexbox)',
|
|
282
282
|
'Responsive images (srcset, picture element)',
|
|
@@ -332,7 +332,7 @@ export const SKILL_CATEGORIES: SkillCategory[] = [
|
|
|
332
332
|
'User flows and journey mapping',
|
|
333
333
|
'Wireframing and prototyping',
|
|
334
334
|
'Usability testing',
|
|
335
|
-
'Accessibility design
|
|
335
|
+
'Accessibility design against the product target',
|
|
336
336
|
'Interaction design patterns',
|
|
337
337
|
'Content strategy',
|
|
338
338
|
'Error prevention and recovery',
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared banner + module-body rendering helpers for the per-tool adapters.
|
|
3
|
+
*
|
|
4
|
+
* The banner format is identical across Claude Code, Cursor, Windsurf, and
|
|
5
|
+
* Copilot so it lives in one place to keep adapter output deterministic and
|
|
6
|
+
* spec-compliant.
|
|
7
|
+
*
|
|
8
|
+
* See: openspec/specs/cross-platform/export-command.md (Output Structure)
|
|
9
|
+
*/
|
|
10
|
+
import type { ExportMeta, ResolvedModule } from './types';
|
|
11
|
+
/** Line ending for every adapter, regardless of host OS. */
|
|
12
|
+
export declare const LF = "\n";
|
|
13
|
+
/**
|
|
14
|
+
* Render the standard banner. Five HTML comment lines per the spec, joined
|
|
15
|
+
* with LF and terminated with LF. Does NOT include the MCP snippet.
|
|
16
|
+
*/
|
|
17
|
+
export declare function renderBanner(meta: ExportMeta): string;
|
|
18
|
+
/**
|
|
19
|
+
* Render the banner followed by the optional MCP snippet body when present.
|
|
20
|
+
* Returns just the header region; no trailing `---` separator or module
|
|
21
|
+
* heading. The runner is responsible for emitting inter-section separators.
|
|
22
|
+
*/
|
|
23
|
+
export declare function renderHeaderRegion(meta: ExportMeta): string;
|
|
24
|
+
/**
|
|
25
|
+
* Standard footer line shared across all single-file aggregator outputs.
|
|
26
|
+
*/
|
|
27
|
+
export declare function renderStandardFooter(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Render the concatenated body for a module's rule files.
|
|
30
|
+
*
|
|
31
|
+
* - Files are emitted in the order supplied (resolver guarantees alphabetical
|
|
32
|
+
* `relativePath`).
|
|
33
|
+
* - Each file's content is preceded by a small HTML-comment marker recording
|
|
34
|
+
* its relative path. The marker is unobtrusive in rendered Markdown and
|
|
35
|
+
* preserves traceability without altering visible content.
|
|
36
|
+
* - Files are separated by a single blank line.
|
|
37
|
+
*
|
|
38
|
+
* Empty modules (no rule files) produce a placeholder note so the structure
|
|
39
|
+
* is still well-formed and auditable.
|
|
40
|
+
*/
|
|
41
|
+
export declare function renderModuleBody(module: ResolvedModule): string;
|
|
42
|
+
/**
|
|
43
|
+
* Normalize a body string for inclusion in the aggregator:
|
|
44
|
+
*
|
|
45
|
+
* - Convert CRLF / CR to LF.
|
|
46
|
+
* - Trim trailing whitespace on the final line.
|
|
47
|
+
* - Guarantee a single trailing LF.
|
|
48
|
+
*
|
|
49
|
+
* Exported for tests; adapters delegate normalization to this function so
|
|
50
|
+
* every output ends in exactly one newline.
|
|
51
|
+
*/
|
|
52
|
+
export declare function normalizeBody(text: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Section heading for a module, emitted by the runner between separator
|
|
55
|
+
* lines. Exported here so all adapters use the same heading shape.
|
|
56
|
+
*/
|
|
57
|
+
export declare function renderModuleHeading(module: ResolvedModule): string;
|
|
58
|
+
/**
|
|
59
|
+
* Standard inter-section separator (`---`) terminated with LF.
|
|
60
|
+
*/
|
|
61
|
+
export declare const SECTION_SEPARATOR: string;
|
|
62
|
+
//# sourceMappingURL=banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/adapters/banner.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE1D,4DAA4D;AAC5D,eAAO,MAAM,EAAE,OAAO,CAAC;AAEvB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAUrD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAO3D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAK7C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAS/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAa,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shared banner + module-body rendering helpers for the per-tool adapters.
|
|
4
|
+
*
|
|
5
|
+
* The banner format is identical across Claude Code, Cursor, Windsurf, and
|
|
6
|
+
* Copilot so it lives in one place to keep adapter output deterministic and
|
|
7
|
+
* spec-compliant.
|
|
8
|
+
*
|
|
9
|
+
* See: openspec/specs/cross-platform/export-command.md (Output Structure)
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.SECTION_SEPARATOR = exports.LF = void 0;
|
|
13
|
+
exports.renderBanner = renderBanner;
|
|
14
|
+
exports.renderHeaderRegion = renderHeaderRegion;
|
|
15
|
+
exports.renderStandardFooter = renderStandardFooter;
|
|
16
|
+
exports.renderModuleBody = renderModuleBody;
|
|
17
|
+
exports.normalizeBody = normalizeBody;
|
|
18
|
+
exports.renderModuleHeading = renderModuleHeading;
|
|
19
|
+
/** Line ending for every adapter, regardless of host OS. */
|
|
20
|
+
exports.LF = '\n';
|
|
21
|
+
/**
|
|
22
|
+
* Render the standard banner. Five HTML comment lines per the spec, joined
|
|
23
|
+
* with LF and terminated with LF. Does NOT include the MCP snippet.
|
|
24
|
+
*/
|
|
25
|
+
function renderBanner(meta) {
|
|
26
|
+
const modulesList = meta.modules.map((m) => `${m.id}@${m.version}`).join(', ');
|
|
27
|
+
const lines = [
|
|
28
|
+
'<!-- GENERATED BY augx export - DO NOT EDIT -->',
|
|
29
|
+
`<!-- augx-version: ${meta.augxVersion} -->`,
|
|
30
|
+
`<!-- generated-at: ${meta.generatedAt} -->`,
|
|
31
|
+
`<!-- source-hash: ${meta.sourceHash} -->`,
|
|
32
|
+
`<!-- modules: ${modulesList} -->`,
|
|
33
|
+
];
|
|
34
|
+
return lines.join(exports.LF) + exports.LF;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Render the banner followed by the optional MCP snippet body when present.
|
|
38
|
+
* Returns just the header region; no trailing `---` separator or module
|
|
39
|
+
* heading. The runner is responsible for emitting inter-section separators.
|
|
40
|
+
*/
|
|
41
|
+
function renderHeaderRegion(meta) {
|
|
42
|
+
const banner = renderBanner(meta);
|
|
43
|
+
if (!meta.mcpSnippet) {
|
|
44
|
+
return banner;
|
|
45
|
+
}
|
|
46
|
+
// Blank line between banner and MCP snippet body.
|
|
47
|
+
return banner + exports.LF + normalizeBody(meta.mcpSnippet);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Standard footer line shared across all single-file aggregator outputs.
|
|
51
|
+
*/
|
|
52
|
+
function renderStandardFooter() {
|
|
53
|
+
return ('<!-- End of augx-generated content. Canonical modules: augment-extensions/modules/ -->' +
|
|
54
|
+
exports.LF);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Render the concatenated body for a module's rule files.
|
|
58
|
+
*
|
|
59
|
+
* - Files are emitted in the order supplied (resolver guarantees alphabetical
|
|
60
|
+
* `relativePath`).
|
|
61
|
+
* - Each file's content is preceded by a small HTML-comment marker recording
|
|
62
|
+
* its relative path. The marker is unobtrusive in rendered Markdown and
|
|
63
|
+
* preserves traceability without altering visible content.
|
|
64
|
+
* - Files are separated by a single blank line.
|
|
65
|
+
*
|
|
66
|
+
* Empty modules (no rule files) produce a placeholder note so the structure
|
|
67
|
+
* is still well-formed and auditable.
|
|
68
|
+
*/
|
|
69
|
+
function renderModuleBody(module) {
|
|
70
|
+
if (module.rulesFiles.length === 0) {
|
|
71
|
+
return `<!-- module ${module.id} has no rule files -->` + exports.LF;
|
|
72
|
+
}
|
|
73
|
+
const blocks = module.rulesFiles.map((file) => {
|
|
74
|
+
const marker = `<!-- file: ${file.relativePath} -->`;
|
|
75
|
+
return marker + exports.LF + normalizeBody(file.content);
|
|
76
|
+
});
|
|
77
|
+
return blocks.join(exports.LF);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Normalize a body string for inclusion in the aggregator:
|
|
81
|
+
*
|
|
82
|
+
* - Convert CRLF / CR to LF.
|
|
83
|
+
* - Trim trailing whitespace on the final line.
|
|
84
|
+
* - Guarantee a single trailing LF.
|
|
85
|
+
*
|
|
86
|
+
* Exported for tests; adapters delegate normalization to this function so
|
|
87
|
+
* every output ends in exactly one newline.
|
|
88
|
+
*/
|
|
89
|
+
function normalizeBody(text) {
|
|
90
|
+
const lf = text.replace(/\r\n?/g, exports.LF);
|
|
91
|
+
const trimmed = lf.replace(/[ \t]+\n/g, '\n').replace(/\s+$/g, '');
|
|
92
|
+
return trimmed + exports.LF;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Section heading for a module, emitted by the runner between separator
|
|
96
|
+
* lines. Exported here so all adapters use the same heading shape.
|
|
97
|
+
*/
|
|
98
|
+
function renderModuleHeading(module) {
|
|
99
|
+
return `## Module: ${module.id} (v${module.version})` + exports.LF;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Standard inter-section separator (`---`) terminated with LF.
|
|
103
|
+
*/
|
|
104
|
+
exports.SECTION_SEPARATOR = '---' + exports.LF;
|
|
105
|
+
//# sourceMappingURL=banner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.js","sourceRoot":"","sources":["../../src/adapters/banner.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAWH,oCAUC;AAOD,gDAOC;AAKD,oDAKC;AAeD,4CASC;AAYD,sCAIC;AAMD,kDAEC;AAzFD,4DAA4D;AAC/C,QAAA,EAAE,GAAG,IAAI,CAAC;AAEvB;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAgB;IAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,MAAM,KAAK,GAAG;QACZ,iDAAiD;QACjD,sBAAsB,IAAI,CAAC,WAAW,MAAM;QAC5C,sBAAsB,IAAI,CAAC,WAAW,MAAM;QAC5C,qBAAqB,IAAI,CAAC,UAAU,MAAM;QAC1C,iBAAiB,WAAW,MAAM;KACnC,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,UAAE,CAAC,GAAG,UAAE,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAgB;IACjD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,kDAAkD;IAClD,OAAO,MAAM,GAAG,UAAE,GAAG,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,SAAgB,oBAAoB;IAClC,OAAO,CACL,wFAAwF;QACxF,UAAE,CACH,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAAC,MAAsB;IACrD,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,eAAe,MAAM,CAAC,EAAE,wBAAwB,GAAG,UAAE,CAAC;IAC/D,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAG,cAAc,IAAI,CAAC,YAAY,MAAM,CAAC;QACrD,OAAO,MAAM,GAAG,UAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,IAAI,CAAC,UAAE,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAE,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACnE,OAAO,OAAO,GAAG,UAAE,CAAC;AACtB,CAAC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,MAAsB;IACxD,OAAO,cAAc,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,OAAO,GAAG,GAAG,UAAE,CAAC;AAC7D,CAAC;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,KAAK,GAAG,UAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Code adapter.
|
|
3
|
+
*
|
|
4
|
+
* Aggregator output: `CLAUDE.md` at the project root.
|
|
5
|
+
* Mirror destination: `.claude/rules/<module>/` (directory; the runner
|
|
6
|
+
* preserves the module's source directory layout file-for-file).
|
|
7
|
+
*
|
|
8
|
+
* See: openspec/specs/cross-platform/export-command.md
|
|
9
|
+
* See: openspec/specs/cross-platform/mirror-hook.md
|
|
10
|
+
*/
|
|
11
|
+
import type { ToolAdapter } from './types';
|
|
12
|
+
export declare const claudeCodeAdapter: ToolAdapter;
|
|
13
|
+
//# sourceMappingURL=claude-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,SAAS,CAAC;AAgBjB,eAAO,MAAM,iBAAiB,EAAE,WA0B/B,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Claude Code adapter.
|
|
4
|
+
*
|
|
5
|
+
* Aggregator output: `CLAUDE.md` at the project root.
|
|
6
|
+
* Mirror destination: `.claude/rules/<module>/` (directory; the runner
|
|
7
|
+
* preserves the module's source directory layout file-for-file).
|
|
8
|
+
*
|
|
9
|
+
* See: openspec/specs/cross-platform/export-command.md
|
|
10
|
+
* See: openspec/specs/cross-platform/mirror-hook.md
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.claudeCodeAdapter = void 0;
|
|
47
|
+
const path = __importStar(require("path"));
|
|
48
|
+
const banner_1 = require("./banner");
|
|
49
|
+
/**
|
|
50
|
+
* Convert a canonical module id to a single path segment safe for filesystem
|
|
51
|
+
* and content use. Slashes become dashes so nested ids like
|
|
52
|
+
* `coding-standards/typescript` collapse to `coding-standards-typescript`.
|
|
53
|
+
*/
|
|
54
|
+
function moduleIdToSegment(moduleId) {
|
|
55
|
+
return moduleId.replace(/\//g, '-');
|
|
56
|
+
}
|
|
57
|
+
exports.claudeCodeAdapter = {
|
|
58
|
+
id: 'claude-code',
|
|
59
|
+
exportPaths(projectRoot) {
|
|
60
|
+
return {
|
|
61
|
+
single: path.join(projectRoot, 'CLAUDE.md'),
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
mirrorPath(projectRoot, moduleId) {
|
|
65
|
+
// Directory destination; the runner walks `module.rulesFiles` to
|
|
66
|
+
// materialize individual files beneath this path.
|
|
67
|
+
return path.join(projectRoot, '.claude', 'rules', moduleIdToSegment(moduleId));
|
|
68
|
+
},
|
|
69
|
+
renderModule(module) {
|
|
70
|
+
return (0, banner_1.renderModuleBody)(module);
|
|
71
|
+
},
|
|
72
|
+
renderHeader(meta) {
|
|
73
|
+
return (0, banner_1.renderHeaderRegion)(meta);
|
|
74
|
+
},
|
|
75
|
+
renderFooter(_meta) {
|
|
76
|
+
return (0, banner_1.renderStandardFooter)();
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=claude-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAO7B,qCAIkB;AAElB;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAEY,QAAA,iBAAiB,GAAgB;IAC5C,EAAE,EAAE,aAAa;IAEjB,WAAW,CAAC,WAAmB;QAC7B,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC;SAC5C,CAAC;IACJ,CAAC;IAED,UAAU,CAAC,WAAmB,EAAE,QAAgB;QAC9C,iEAAiE;QACjE,kDAAkD;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAsB;QACjC,OAAO,IAAA,yBAAgB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,IAAgB;QAC3B,OAAO,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAA,6BAAoB,GAAE,CAAC;IAChC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Copilot adapter.
|
|
3
|
+
*
|
|
4
|
+
* Aggregator output: `.github/copilot-instructions.md` at the project root.
|
|
5
|
+
* Mirror destination: `.github/instructions/augx-<module>.instructions.md`
|
|
6
|
+
* (one file per module).
|
|
7
|
+
*
|
|
8
|
+
* Copilot reads `.github/copilot-instructions.md` directly; no frontmatter
|
|
9
|
+
* is required, so the format mirrors Windsurf but with Copilot-specific
|
|
10
|
+
* paths.
|
|
11
|
+
*
|
|
12
|
+
* See: openspec/specs/cross-platform/export-command.md
|
|
13
|
+
* See: openspec/specs/cross-platform/mirror-hook.md
|
|
14
|
+
*/
|
|
15
|
+
import type { ToolAdapter } from './types';
|
|
16
|
+
export declare const copilotAdapter: ToolAdapter;
|
|
17
|
+
//# sourceMappingURL=copilot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/adapters/copilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,SAAS,CAAC;AAejB,eAAO,MAAM,cAAc,EAAE,WAyB5B,CAAC"}
|