@nikkory/vibe-engine 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/PUBLISH-GUIDE.md +250 -0
- package/README.md +1267 -0
- package/bin/vibe.js +22 -0
- package/dist/adapters/index.d.ts +19 -0
- package/dist/browser.d.ts +25 -0
- package/dist/browser.js +15083 -0
- package/dist/browser.mjs +15000 -0
- package/dist/cli/batch-command.d.ts +142 -0
- package/dist/cli/generate-command.d.ts +119 -0
- package/dist/cli/index.d.ts +34 -0
- package/dist/constants/ComponentTypes.d.ts +65 -0
- package/dist/constants/DesignSystems.d.ts +64 -0
- package/dist/constants/Frameworks.d.ts +71 -0
- package/dist/constants/Tiers.d.ts +72 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/converters/index.d.ts +12 -0
- package/dist/converters/section-converter.d.ts +176 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +19819 -0
- package/dist/index.mjs +19496 -0
- package/dist/resolution/basic/groups-basic.d.ts +80 -0
- package/dist/resolution/basic/index.d.ts +21 -0
- package/dist/resolution/basic/intents-basic.d.ts +195 -0
- package/dist/resolution/basic/presets-basic.d.ts +96 -0
- package/dist/resolution/basic/resolver-basic.d.ts +127 -0
- package/dist/resolution/basic/shorthands-basic.d.ts +88 -0
- package/dist/resolution/core/groups-core.d.ts +160 -0
- package/dist/resolution/core/index.d.ts +21 -0
- package/dist/resolution/core/intents-core.d.ts +355 -0
- package/dist/resolution/core/presets-core.d.ts +160 -0
- package/dist/resolution/core/resolver-core.d.ts +207 -0
- package/dist/resolution/core/shorthands-core.d.ts +144 -0
- package/dist/resolution/core/types-core.d.ts +167 -0
- package/dist/resolution/debugger.d.ts +183 -0
- package/dist/resolution/demo.d.ts +57 -0
- package/dist/resolution/enterprise/index.d.ts +22 -0
- package/dist/resolution/enterprise/metrics.d.ts +152 -0
- package/dist/resolution/enterprise/resolver-enterprise.d.ts +108 -0
- package/dist/resolution/examples.d.ts +486 -0
- package/dist/resolution/groups/experience-group.d.ts +197 -0
- package/dist/resolution/groups/index.d.ts +196 -0
- package/dist/resolution/groups/layout-group.d.ts +192 -0
- package/dist/resolution/groups/motion-group.d.ts +127 -0
- package/dist/resolution/groups/visual-group.d.ts +146 -0
- package/dist/resolution/index.d.ts +41 -0
- package/dist/resolution/intents/button-intents.d.ts +231 -0
- package/dist/resolution/intents/card-intents.d.ts +177 -0
- package/dist/resolution/intents/feedback-intents.d.ts +222 -0
- package/dist/resolution/intents/index.d.ts +189 -0
- package/dist/resolution/intents/input-intents.d.ts +231 -0
- package/dist/resolution/intents/mood-modifiers.d.ts +154 -0
- package/dist/resolution/performance.d.ts +264 -0
- package/dist/resolution/presets/button-presets.d.ts +243 -0
- package/dist/resolution/presets/card-presets.d.ts +216 -0
- package/dist/resolution/presets/data-display-presets.d.ts +290 -0
- package/dist/resolution/presets/feedback-presets.d.ts +335 -0
- package/dist/resolution/presets/form-presets.d.ts +308 -0
- package/dist/resolution/presets/index.d.ts +22 -0
- package/dist/resolution/presets/input-presets.d.ts +207 -0
- package/dist/resolution/presets/nav-presets.d.ts +235 -0
- package/dist/resolution/presets/overlay-presets.d.ts +216 -0
- package/dist/resolution/presets/preset-registry.d.ts +212 -0
- package/dist/resolution/resolveProps.d.ts +235 -0
- package/dist/resolution/shorthand/feel-mappings.d.ts +140 -0
- package/dist/resolution/shorthand/index.d.ts +172 -0
- package/dist/resolution/shorthand/look-mappings.d.ts +107 -0
- package/dist/resolution/shorthand/spacing-mappings.d.ts +164 -0
- package/dist/resolution/shorthand/surface-mappings.d.ts +139 -0
- package/dist/resolution/standard/groups-standard.d.ts +98 -0
- package/dist/resolution/standard/index.d.ts +28 -0
- package/dist/resolution/standard/intents-standard.d.ts +232 -0
- package/dist/resolution/standard/presets-standard.d.ts +123 -0
- package/dist/resolution/standard/resolver-standard.d.ts +204 -0
- package/dist/resolution/standard/shorthands-standard.d.ts +98 -0
- package/dist/resolution/standard/validators.d.ts +141 -0
- package/dist/resolution/types.d.ts +461 -0
- package/dist/resolution/validators/factor24-validator.d.ts +418 -0
- package/dist/resolution/validators/index.d.ts +14 -0
- package/dist/scripts/generate-react-library.d.ts +15 -0
- package/dist/scripts/write-react-library.d.ts +18 -0
- package/dist/storage/cloud-sync.d.ts +182 -0
- package/dist/storage/index.d.ts +69 -0
- package/dist/storage/local-storage.d.ts +131 -0
- package/dist/storage/section-storage.d.ts +191 -0
- package/dist/styling/StyleGenerator.d.ts +76 -0
- package/dist/styling/TokenStyleResolver.d.ts +163 -0
- package/dist/styling/factor-migration.d.ts +192 -0
- package/dist/styling/factor-validators.d.ts +327 -0
- package/dist/styling/factors-1-6.d.ts +674 -0
- package/dist/styling/factors-12-16.d.ts +700 -0
- package/dist/styling/factors-17-24.d.ts +668 -0
- package/dist/styling/factors-all.d.ts +348 -0
- package/dist/styling/factors.d.ts +291 -0
- package/dist/styling/index.d.ts +31 -0
- package/dist/styling/types.d.ts +400 -0
- package/dist/tokens/schema.d.ts +486 -0
- package/dist/types/Option.d.ts +178 -0
- package/dist/types/Result.d.ts +148 -0
- package/dist/types/algorithm-engine.types.d.ts +298 -0
- package/dist/types/granularity/base.types.d.ts +268 -0
- package/dist/types/granularity/config.types.d.ts +177 -0
- package/dist/types/granularity/factors.types.d.ts +194 -0
- package/dist/types/granularity/index.d.ts +57 -0
- package/dist/types/granularity/slot.types.d.ts +128 -0
- package/dist/types/granularity/template.types.d.ts +179 -0
- package/dist/types/granularity-levels/atom.config.d.ts +151 -0
- package/dist/types/granularity-levels/component.config.d.ts +175 -0
- package/dist/types/granularity-levels/index.d.ts +47 -0
- package/dist/types/granularity-levels/layout.config.d.ts +278 -0
- package/dist/types/granularity-levels/page.config.d.ts +210 -0
- package/dist/types/granularity-levels/section.config.d.ts +188 -0
- package/dist/types/granularity-levels/template.config.d.ts +340 -0
- package/dist/types/index.d.ts +152 -0
- package/dist/types/section-slot.types.d.ts +169 -0
- package/dist/types/section-storage.types.d.ts +298 -0
- package/dist/types/section-template.types.d.ts +170 -0
- package/dist/types/section.types.d.ts +326 -0
- package/dist/ui-studio/ComponentGenerator.d.ts +219 -0
- package/dist/ui-studio/composition/FactorPropagator.d.ts +268 -0
- package/dist/ui-studio/composition/PageGenerator.d.ts +176 -0
- package/dist/ui-studio/composition/SectionGenerator.d.ts +312 -0
- package/dist/ui-studio/composition/SlotResolver.d.ts +295 -0
- package/dist/ui-studio/composition/section-orchestrator.d.ts +306 -0
- package/dist/ui-studio/granularity/FactorCascade.d.ts +328 -0
- package/dist/ui-studio/granularity/GranularityGenerator.d.ts +266 -0
- package/dist/ui-studio/granularity/RecursiveGenerator.d.ts +328 -0
- package/dist/ui-studio/index.d.ts +94 -0
- package/dist/ui-studio/matrix/ClassMapper.d.ts +128 -0
- package/dist/ui-studio/matrix/MatrixResolver.d.ts +203 -0
- package/dist/ui-studio/matrix/types.d.ts +96 -0
- package/dist/ui-studio/presets/IndustryDetector.d.ts +183 -0
- package/dist/ui-studio/presets/component-registry.d.ts +213 -0
- package/dist/ui-studio/presets/factor-registry.d.ts +364 -0
- package/dist/ui-studio/presets/granularity-registry.d.ts +252 -0
- package/dist/ui-studio/presets/index.d.ts +32 -0
- package/dist/ui-studio/presets/industries.d.ts +143 -0
- package/dist/ui-studio/presets/layout-registry.d.ts +21 -0
- package/dist/ui-studio/presets/matrix-groups.d.ts +195 -0
- package/dist/ui-studio/presets/page-registry.d.ts +24 -0
- package/dist/ui-studio/presets/registry.constants.d.ts +69 -0
- package/dist/ui-studio/presets/registry.types.d.ts +166 -0
- package/dist/ui-studio/presets/section-defaults.d.ts +175 -0
- package/dist/ui-studio/presets/section-registry.d.ts +83 -0
- package/dist/ui-studio/presets/section-registry.defaults.d.ts +106 -0
- package/dist/ui-studio/presets/section-registry.helpers.d.ts +112 -0
- package/dist/ui-studio/presets/section-registry.types.d.ts +181 -0
- package/dist/ui-studio/presets/template-registry.d.ts +23 -0
- package/dist/ui-studio/presets/variants.d.ts +1038 -0
- package/dist/ui-studio/registries/components-registry.d.ts +193 -0
- package/dist/ui-studio/registries/design-systems-registry.d.ts +153 -0
- package/dist/ui-studio/registries/factors-registry.d.ts +145 -0
- package/dist/ui-studio/registries/tiers-registry.d.ts +150 -0
- package/dist/ui-studio/resolution/FactorResolver.d.ts +201 -0
- package/dist/ui-studio/templates/TestGenerator.d.ts +55 -0
- package/dist/ui-studio/templates/TierGenerator.d.ts +153 -0
- package/dist/ui-studio/templates/TypesGenerator.d.ts +51 -0
- package/dist/ui-studio/types/granularity/base.types.d.ts +268 -0
- package/dist/ui-studio/types/granularity/config.types.d.ts +177 -0
- package/dist/ui-studio/types/granularity/factors.types.d.ts +194 -0
- package/dist/ui-studio/types/granularity/index.d.ts +57 -0
- package/dist/ui-studio/types/granularity/slot.types.d.ts +128 -0
- package/dist/ui-studio/types/granularity/template.types.d.ts +179 -0
- package/dist/ui-studio/types/granularity-levels/atom.config.d.ts +151 -0
- package/dist/ui-studio/types/granularity-levels/component.config.d.ts +175 -0
- package/dist/ui-studio/types/granularity-levels/index.d.ts +47 -0
- package/dist/ui-studio/types/granularity-levels/layout.config.d.ts +278 -0
- package/dist/ui-studio/types/granularity-levels/page.config.d.ts +210 -0
- package/dist/ui-studio/types/granularity-levels/section.config.d.ts +188 -0
- package/dist/ui-studio/types/granularity-levels/template.config.d.ts +340 -0
- package/dist/ui-studio/types.d.ts +323 -0
- package/dist/utils/CodeUtils.d.ts +103 -0
- package/dist/utils/GenerateComponentValidator.d.ts +35 -0
- package/dist/utils/Logger.d.ts +101 -0
- package/dist/utils/StringUtils.d.ts +120 -0
- package/dist/utils/ValidationUtils.d.ts +71 -0
- package/dist/utils/errors/BaseError.d.ts +23 -0
- package/dist/utils/errors/GenerationError.d.ts +14 -0
- package/dist/utils/errors/TemplateNotFoundError.d.ts +13 -0
- package/dist/utils/errors/ValidationError.d.ts +13 -0
- package/dist/utils/errors/index.d.ts +12 -0
- package/dist/utils/factor-resolver.d.ts +294 -0
- package/dist/utils/granularity-helpers.d.ts +359 -0
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/performance.d.ts +26 -0
- package/dist/utils/stringify.d.ts +28 -0
- package/dist/validators/component-validator.d.ts +86 -0
- package/dist/validators/design-system-validator.d.ts +95 -0
- package/dist/validators/factor-validator.d.ts +101 -0
- package/dist/validators/index.d.ts +263 -0
- package/dist/validators/section-validator.d.ts +120 -0
- package/dist/validators/slot-validator.d.ts +161 -0
- package/dist/validators/tier-validator.d.ts +102 -0
- package/package.json +67 -0
- package/tests/16-factor-integration.test.d.ts +14 -0
- package/tests/16-factor-visual.test.d.ts +14 -0
- package/tests/5-level-integration.test.d.ts +14 -0
- package/tests/CodeUtils.test.d.ts +7 -0
- package/tests/DesignSystems.test.d.ts +7 -0
- package/tests/GenerateComponentValidator.test.d.ts +7 -0
- package/tests/Logger.test.d.ts +7 -0
- package/tests/StringUtils.test.d.ts +7 -0
- package/tests/StyleGenerator.test.d.ts +13 -0
- package/tests/Tiers.test.d.ts +7 -0
- package/tests/TokenRegistry.test.d.ts +14 -0
- package/tests/TokenStyleResolver.test.d.ts +13 -0
- package/tests/ValidationUtils.test.d.ts +7 -0
- package/tests/_pending_fix/Accordion.test.d.ts +13 -0
- package/tests/_pending_fix/Alert.test.d.ts +13 -0
- package/tests/_pending_fix/AlertDialog.test.d.ts +13 -0
- package/tests/_pending_fix/AspectRatio.test.d.ts +13 -0
- package/tests/_pending_fix/Autocomplete.test.d.ts +13 -0
- package/tests/_pending_fix/Avatar.test.d.ts +13 -0
- package/tests/_pending_fix/Badge.test.d.ts +13 -0
- package/tests/_pending_fix/Banner.test.d.ts +13 -0
- package/tests/_pending_fix/Box.test.d.ts +13 -0
- package/tests/_pending_fix/Breadcrumb.test.d.ts +13 -0
- package/tests/_pending_fix/Callout.test.d.ts +13 -0
- package/tests/_pending_fix/Card.test.d.ts +13 -0
- package/tests/_pending_fix/Center.test.d.ts +13 -0
- package/tests/_pending_fix/Checkbox.test.d.ts +13 -0
- package/tests/_pending_fix/Chip.test.d.ts +13 -0
- package/tests/_pending_fix/ColorPicker.test.d.ts +13 -0
- package/tests/_pending_fix/Combobox.test.d.ts +13 -0
- package/tests/_pending_fix/CommandPalette.test.d.ts +13 -0
- package/tests/_pending_fix/ConfirmationModal.test.d.ts +13 -0
- package/tests/_pending_fix/Container.test.d.ts +13 -0
- package/tests/_pending_fix/DataTable.test.d.ts +13 -0
- package/tests/_pending_fix/DatePicker.test.d.ts +13 -0
- package/tests/_pending_fix/DateRangePicker.test.d.ts +13 -0
- package/tests/_pending_fix/DateTimePicker.test.d.ts +13 -0
- package/tests/_pending_fix/Divider.test.d.ts +13 -0
- package/tests/_pending_fix/Drawer.test.d.ts +13 -0
- package/tests/_pending_fix/Dropdown.test.d.ts +13 -0
- package/tests/_pending_fix/EmptyState.test.d.ts +13 -0
- package/tests/_pending_fix/ErrorState.test.d.ts +13 -0
- package/tests/_pending_fix/FileDropzone.test.d.ts +13 -0
- package/tests/_pending_fix/FileUpload.test.d.ts +13 -0
- package/tests/_pending_fix/Flex.test.d.ts +13 -0
- package/tests/_pending_fix/Grid.test.d.ts +13 -0
- package/tests/_pending_fix/GridItem.test.d.ts +13 -0
- package/tests/_pending_fix/HStack.test.d.ts +13 -0
- package/tests/_pending_fix/Input.test.d.ts +13 -0
- package/tests/_pending_fix/InputCurrency.test.d.ts +13 -0
- package/tests/_pending_fix/InputGroup.test.d.ts +13 -0
- package/tests/_pending_fix/InputOTP.test.d.ts +13 -0
- package/tests/_pending_fix/InputPassword.test.d.ts +13 -0
- package/tests/_pending_fix/InputPhone.test.d.ts +13 -0
- package/tests/_pending_fix/InputSearch.test.d.ts +13 -0
- package/tests/_pending_fix/Link.test.d.ts +13 -0
- package/tests/_pending_fix/List.test.d.ts +13 -0
- package/tests/_pending_fix/LoadingOverlay.test.d.ts +13 -0
- package/tests/_pending_fix/Menu.test.d.ts +13 -0
- package/tests/_pending_fix/Modal.test.d.ts +13 -0
- package/tests/_pending_fix/MultiSelect.test.d.ts +13 -0
- package/tests/_pending_fix/NavGroup.test.d.ts +13 -0
- package/tests/_pending_fix/NavItem.test.d.ts +13 -0
- package/tests/_pending_fix/NavLink.test.d.ts +13 -0
- package/tests/_pending_fix/Navbar.test.d.ts +13 -0
- package/tests/_pending_fix/Notification.test.d.ts +13 -0
- package/tests/_pending_fix/NotificationBadge.test.d.ts +13 -0
- package/tests/_pending_fix/NumberInput.test.d.ts +13 -0
- package/tests/_pending_fix/Pagination.test.d.ts +13 -0
- package/tests/_pending_fix/Popover.test.d.ts +13 -0
- package/tests/_pending_fix/Progress.test.d.ts +13 -0
- package/tests/_pending_fix/ProgressCircle.test.d.ts +13 -0
- package/tests/_pending_fix/ProgressSteps.test.d.ts +13 -0
- package/tests/_pending_fix/Radio.test.d.ts +13 -0
- package/tests/_pending_fix/RangeSlider.test.d.ts +13 -0
- package/tests/_pending_fix/ResizablePanel.test.d.ts +13 -0
- package/tests/_pending_fix/ResultState.test.d.ts +13 -0
- package/tests/_pending_fix/ScrollArea.test.d.ts +13 -0
- package/tests/_pending_fix/Select.test.d.ts +14 -0
- package/tests/_pending_fix/Sheet.test.d.ts +13 -0
- package/tests/_pending_fix/Sidebar.test.d.ts +13 -0
- package/tests/_pending_fix/SimpleGrid.test.d.ts +13 -0
- package/tests/_pending_fix/Skeleton.test.d.ts +13 -0
- package/tests/_pending_fix/Slider.test.d.ts +13 -0
- package/tests/_pending_fix/Spacer.test.d.ts +13 -0
- package/tests/_pending_fix/Spinner.test.d.ts +13 -0
- package/tests/_pending_fix/Stack.test.d.ts +13 -0
- package/tests/_pending_fix/Stat.test.d.ts +13 -0
- package/tests/_pending_fix/Stepper.test.d.ts +14 -0
- package/tests/_pending_fix/Switch.test.d.ts +13 -0
- package/tests/_pending_fix/Table.test.d.ts +13 -0
- package/tests/_pending_fix/Tabs.test.d.ts +13 -0
- package/tests/_pending_fix/Textarea.test.d.ts +13 -0
- package/tests/_pending_fix/Timeline.test.d.ts +13 -0
- package/tests/_pending_fix/Toast.test.d.ts +14 -0
- package/tests/_pending_fix/Tooltip.test.d.ts +14 -0
- package/tests/_pending_fix/VStack.test.d.ts +13 -0
- package/tests/alert.test.d.ts +13 -0
- package/tests/badge.test.d.ts +13 -0
- package/tests/benchmarks/factor-resolution.bench.d.ts +41 -0
- package/tests/button.test.d.ts +16 -0
- package/tests/card.test.d.ts +19 -0
- package/tests/checkbox.test.d.ts +13 -0
- package/tests/component-16-factor-types.test.d.ts +13 -0
- package/tests/component-5level-integration.test.d.ts +14 -0
- package/tests/component-registry-ui.test.d.ts +13 -0
- package/tests/e2e/16-factor-visual.test.d.ts +14 -0
- package/tests/edge-cases.test.d.ts +14 -0
- package/tests/factor-17-24-integration.test.d.ts +14 -0
- package/tests/factor-17-24-performance.test.d.ts +14 -0
- package/tests/factor-validators.test.d.ts +13 -0
- package/tests/factors-1-6.test.d.ts +13 -0
- package/tests/factors-12-16.test.d.ts +13 -0
- package/tests/factors-17-24.test.d.ts +21 -0
- package/tests/factors-all.test.d.ts +13 -0
- package/tests/factors-registry.test.d.ts +11 -0
- package/tests/factors.test.d.ts +13 -0
- package/tests/granularity-types.test.d.ts +18 -0
- package/tests/groups.test.d.ts +14 -0
- package/tests/input.test.d.ts +16 -0
- package/tests/intents.test.d.ts +14 -0
- package/tests/memory-leak.test.d.ts +14 -0
- package/tests/modal.test.d.ts +19 -0
- package/tests/presets.test.d.ts +14 -0
- package/tests/radio.test.d.ts +13 -0
- package/tests/resolution-intents.test.d.ts +13 -0
- package/tests/resolution-presets.test.d.ts +13 -0
- package/tests/resolveProps.test.d.ts +14 -0
- package/tests/section-integration.test.d.ts +16 -0
- package/tests/section-types.test.d.ts +11 -0
- package/tests/setup.d.ts +13 -0
- package/tests/shorthands.test.d.ts +14 -0
- package/tests/switch.test.d.ts +13 -0
- package/tests/tabs.test.d.ts +13 -0
- package/tests/tiers-registry.test.d.ts +11 -0
- package/tests/useComponentStyles.test.d.ts +11 -0
- package/tests/useFactors.test.d.ts +13 -0
- package/tests/validators-invalid-input.test.d.ts +13 -0
- package/tsup.config.d.ts +11 -0
- package/vitest.config.d.ts +3 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Batch Command
|
|
3
|
+
* CLI command for batch generation of components
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @module cli/batch-command
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
*
|
|
9
|
+
* Powered by Nikkory
|
|
10
|
+
*/
|
|
11
|
+
import type { Tier, DesignSystem, ComponentType } from '../types';
|
|
12
|
+
import type { BatchGenerationResult, GenerationResultItem, FactorId } from '../types/algorithm-engine.types';
|
|
13
|
+
/**
|
|
14
|
+
* Batch command options
|
|
15
|
+
*/
|
|
16
|
+
export interface BatchCommandOptions {
|
|
17
|
+
/** Component types to generate (default: all) */
|
|
18
|
+
components?: readonly ComponentType[];
|
|
19
|
+
/** Design systems to generate for (default: all) */
|
|
20
|
+
designSystems?: readonly DesignSystem[];
|
|
21
|
+
/** Tiers to generate (default: all) */
|
|
22
|
+
tiers?: readonly Tier[];
|
|
23
|
+
/** Output directory */
|
|
24
|
+
outputDir: string;
|
|
25
|
+
/** Overwrite existing files */
|
|
26
|
+
overwrite?: boolean;
|
|
27
|
+
/** Factor overrides to apply to all components */
|
|
28
|
+
factorOverrides?: Partial<Record<FactorId, string>>;
|
|
29
|
+
/** Dry run (don't write files) */
|
|
30
|
+
dryRun?: boolean;
|
|
31
|
+
/** Verbose output */
|
|
32
|
+
verbose?: boolean;
|
|
33
|
+
/** Parallel generation count */
|
|
34
|
+
parallelCount?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Batch generation progress callback
|
|
38
|
+
*/
|
|
39
|
+
export type BatchProgressCallback = (current: number, total: number, item: GenerationResultItem) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Batch Command
|
|
42
|
+
*
|
|
43
|
+
* Handles batch generation of components across design systems and tiers
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const command = new BatchCommand();
|
|
48
|
+
*
|
|
49
|
+
* // Generate all components for all design systems
|
|
50
|
+
* const result = await command.execute({
|
|
51
|
+
* outputDir: './generated',
|
|
52
|
+
* overwrite: true,
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* console.log(`Generated ${result.successful} components`);
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare class BatchCommand {
|
|
59
|
+
private generator;
|
|
60
|
+
constructor();
|
|
61
|
+
/**
|
|
62
|
+
* Execute batch generation
|
|
63
|
+
*
|
|
64
|
+
* @param options - Batch command options
|
|
65
|
+
* @param onProgress - Optional progress callback
|
|
66
|
+
* @returns Batch generation result
|
|
67
|
+
*/
|
|
68
|
+
execute(options: BatchCommandOptions, onProgress?: BatchProgressCallback): BatchGenerationResult;
|
|
69
|
+
/**
|
|
70
|
+
* Get estimated generation count
|
|
71
|
+
*
|
|
72
|
+
* @param options - Batch command options
|
|
73
|
+
* @returns Object with count details
|
|
74
|
+
*/
|
|
75
|
+
getEstimatedCount(options: Partial<BatchCommandOptions>): {
|
|
76
|
+
components: number;
|
|
77
|
+
designSystems: number;
|
|
78
|
+
tiers: number;
|
|
79
|
+
total: number;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Validate batch options
|
|
83
|
+
*
|
|
84
|
+
* @param options - Options to validate
|
|
85
|
+
* @returns Validation result
|
|
86
|
+
*/
|
|
87
|
+
validateOptions(options: BatchCommandOptions): {
|
|
88
|
+
valid: boolean;
|
|
89
|
+
errors: string[];
|
|
90
|
+
warnings: string[];
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Get available options for CLI help
|
|
94
|
+
*
|
|
95
|
+
* @returns Object with available values
|
|
96
|
+
*/
|
|
97
|
+
getAvailableOptions(): {
|
|
98
|
+
componentTypes: ComponentType[];
|
|
99
|
+
designSystems: DesignSystem[];
|
|
100
|
+
tiers: Tier[];
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Generate a single component
|
|
104
|
+
*/
|
|
105
|
+
private generateSingle;
|
|
106
|
+
/**
|
|
107
|
+
* Generate a unique component ID
|
|
108
|
+
*/
|
|
109
|
+
private generateComponentId;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create a new batch command instance
|
|
113
|
+
*/
|
|
114
|
+
export declare function createBatchCommand(): BatchCommand;
|
|
115
|
+
/**
|
|
116
|
+
* Execute batch generation with default options
|
|
117
|
+
*
|
|
118
|
+
* @param options - Batch options
|
|
119
|
+
* @param onProgress - Progress callback
|
|
120
|
+
* @returns Batch result
|
|
121
|
+
*/
|
|
122
|
+
export declare function executeBatch(options: BatchCommandOptions, onProgress?: BatchProgressCallback): BatchGenerationResult;
|
|
123
|
+
/**
|
|
124
|
+
* Get batch generation estimate
|
|
125
|
+
*
|
|
126
|
+
* @param options - Partial batch options
|
|
127
|
+
* @returns Estimate object
|
|
128
|
+
*/
|
|
129
|
+
export declare function getBatchEstimate(options: Partial<BatchCommandOptions>): {
|
|
130
|
+
components: number;
|
|
131
|
+
designSystems: number;
|
|
132
|
+
tiers: number;
|
|
133
|
+
total: number;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Parse CLI arguments for batch command
|
|
137
|
+
*
|
|
138
|
+
* @param args - CLI arguments
|
|
139
|
+
* @returns Parsed batch options
|
|
140
|
+
*/
|
|
141
|
+
export declare function parseBatchArgs(args: string[]): Partial<BatchCommandOptions>;
|
|
142
|
+
//# sourceMappingURL=batch-command.d.ts.map
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate Command
|
|
3
|
+
* CLI command for single component generation
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @module cli/generate-command
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
*
|
|
9
|
+
* Powered by Nikkory
|
|
10
|
+
*/
|
|
11
|
+
import type { Tier, DesignSystem, ComponentType } from '../types';
|
|
12
|
+
import type { FactorId } from '../types/algorithm-engine.types';
|
|
13
|
+
/**
|
|
14
|
+
* Generate command options
|
|
15
|
+
*/
|
|
16
|
+
export interface GenerateCommandOptions {
|
|
17
|
+
/** Component type to generate */
|
|
18
|
+
readonly componentType: ComponentType;
|
|
19
|
+
/** Design system to use */
|
|
20
|
+
readonly designSystem: DesignSystem;
|
|
21
|
+
/** Quality tier */
|
|
22
|
+
readonly tier: Tier;
|
|
23
|
+
/** Output directory */
|
|
24
|
+
readonly outputDir: string;
|
|
25
|
+
/** Factor overrides */
|
|
26
|
+
readonly factorOverrides?: Partial<Record<FactorId, string>>;
|
|
27
|
+
/** Dry run mode (no file writes) */
|
|
28
|
+
readonly dryRun?: boolean;
|
|
29
|
+
/** Include TypeScript types file */
|
|
30
|
+
readonly includeTypes?: boolean;
|
|
31
|
+
/** Include test file */
|
|
32
|
+
readonly includeTests?: boolean;
|
|
33
|
+
/** Include Storybook stories */
|
|
34
|
+
readonly includeStories?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generate command result
|
|
38
|
+
*/
|
|
39
|
+
export interface GenerateCommandResult {
|
|
40
|
+
/** Whether generation succeeded */
|
|
41
|
+
readonly success: boolean;
|
|
42
|
+
/** Error message if failed */
|
|
43
|
+
readonly error?: string;
|
|
44
|
+
/** Generated component name */
|
|
45
|
+
readonly componentName?: string;
|
|
46
|
+
/** Output file path */
|
|
47
|
+
readonly outputPath?: string;
|
|
48
|
+
/** Types file path (if generated) */
|
|
49
|
+
readonly typesPath?: string;
|
|
50
|
+
/** Test file path (if generated) */
|
|
51
|
+
readonly testPath?: string;
|
|
52
|
+
/** Story file path (if generated) */
|
|
53
|
+
readonly storyPath?: string;
|
|
54
|
+
/** Lines of code */
|
|
55
|
+
readonly linesOfCode?: number;
|
|
56
|
+
/** Generated code (dry run only) */
|
|
57
|
+
readonly code?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Execute generate command
|
|
61
|
+
*
|
|
62
|
+
* @param options - Generate command options
|
|
63
|
+
* @returns Generation result
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const result = generateCommand({
|
|
68
|
+
* componentType: 'button',
|
|
69
|
+
* designSystem: 'material-design',
|
|
70
|
+
* tier: 'enterprise',
|
|
71
|
+
* outputDir: './generated',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function generateCommand(options: GenerateCommandOptions): GenerateCommandResult;
|
|
76
|
+
/**
|
|
77
|
+
* Parse generate command arguments
|
|
78
|
+
*
|
|
79
|
+
* @param args - CLI arguments
|
|
80
|
+
* @returns Parsed generate options
|
|
81
|
+
* @throws Error if required arguments are missing or invalid
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```typescript
|
|
85
|
+
* // vibe generate button material-design enterprise -o ./output
|
|
86
|
+
* const options = parseGenerateArgs(['button', 'material-design', 'enterprise', '-o', './output']);
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare function parseGenerateArgs(args: string[]): GenerateCommandOptions;
|
|
90
|
+
/**
|
|
91
|
+
* Validate generate command options
|
|
92
|
+
*
|
|
93
|
+
* @param options - Options to validate
|
|
94
|
+
* @returns Validation result
|
|
95
|
+
*/
|
|
96
|
+
export declare function validateGenerateOptions(options: GenerateCommandOptions): {
|
|
97
|
+
valid: boolean;
|
|
98
|
+
errors: string[];
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Get available options for CLI help
|
|
102
|
+
*
|
|
103
|
+
* @returns Available values for each option
|
|
104
|
+
*/
|
|
105
|
+
export declare function getAvailableOptions(): {
|
|
106
|
+
componentTypes: ComponentType[];
|
|
107
|
+
designSystems: DesignSystem[];
|
|
108
|
+
tiers: Tier[];
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Format component name from input
|
|
112
|
+
*
|
|
113
|
+
* @param componentType - Component type
|
|
114
|
+
* @param designSystem - Design system
|
|
115
|
+
* @param tier - Quality tier
|
|
116
|
+
* @returns Formatted component name
|
|
117
|
+
*/
|
|
118
|
+
export declare function formatComponentName(componentType: ComponentType, designSystem: DesignSystem, tier: Tier): string;
|
|
119
|
+
//# sourceMappingURL=generate-command.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Nikkory Vibe CLI
|
|
4
|
+
* Command-line interface for the Algorithm Engine
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
* @module cli
|
|
8
|
+
* @since 4.0.0
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* vibe generate component button material-design enterprise
|
|
12
|
+
* vibe generate --batch --ds material-design
|
|
13
|
+
* vibe --help
|
|
14
|
+
*
|
|
15
|
+
* Powered by Nikkory
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* CLI Command result
|
|
19
|
+
*/
|
|
20
|
+
export interface CommandResult {
|
|
21
|
+
readonly success: boolean;
|
|
22
|
+
readonly message: string;
|
|
23
|
+
readonly data?: unknown;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Main CLI entry point
|
|
27
|
+
*
|
|
28
|
+
* @param args - Command line arguments (process.argv.slice(2))
|
|
29
|
+
* @returns Command result
|
|
30
|
+
*/
|
|
31
|
+
export declare function main(args: string[]): CommandResult;
|
|
32
|
+
export { generateCommand, parseGenerateArgs } from './generate-command';
|
|
33
|
+
export { BatchCommand, parseBatchArgs, executeBatch, getBatchEstimate } from './batch-command';
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component Types Constants
|
|
3
|
+
*
|
|
4
|
+
* All supported component types in Nikkory Vibe Library.
|
|
5
|
+
*
|
|
6
|
+
* Powered by Nikkory
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Basic UI Components
|
|
10
|
+
*/
|
|
11
|
+
export declare const BASIC_COMPONENTS: readonly ["button", "input", "textarea", "checkbox", "radio", "select", "switch", "slider"];
|
|
12
|
+
/**
|
|
13
|
+
* Layout Components
|
|
14
|
+
*/
|
|
15
|
+
export declare const LAYOUT_COMPONENTS: readonly ["card", "container", "grid", "flex", "stack", "divider", "spacer"];
|
|
16
|
+
/**
|
|
17
|
+
* Navigation Components
|
|
18
|
+
*/
|
|
19
|
+
export declare const NAVIGATION_COMPONENTS: readonly ["navbar", "sidebar", "breadcrumb", "tabs", "pagination", "menu", "dropdown"];
|
|
20
|
+
/**
|
|
21
|
+
* Feedback Components
|
|
22
|
+
*/
|
|
23
|
+
export declare const FEEDBACK_COMPONENTS: readonly ["modal", "dialog", "toast", "alert", "spinner", "skeleton", "progress"];
|
|
24
|
+
/**
|
|
25
|
+
* Data Display Components
|
|
26
|
+
*/
|
|
27
|
+
export declare const DATA_DISPLAY_COMPONENTS: readonly ["table", "list", "avatar", "badge", "chip", "tag", "tooltip"];
|
|
28
|
+
/**
|
|
29
|
+
* Form Components
|
|
30
|
+
*/
|
|
31
|
+
export declare const FORM_COMPONENTS: readonly ["form", "form-field", "date-picker", "time-picker", "file-upload", "color-picker", "autocomplete"];
|
|
32
|
+
/**
|
|
33
|
+
* Advanced Components
|
|
34
|
+
*/
|
|
35
|
+
export declare const ADVANCED_COMPONENTS: readonly ["accordion", "carousel", "stepper", "timeline", "tree-view", "data-grid", "virtualized-list"];
|
|
36
|
+
/**
|
|
37
|
+
* All Component Types
|
|
38
|
+
*/
|
|
39
|
+
export declare const ALL_COMPONENT_TYPES: readonly ["button", "input", "textarea", "checkbox", "radio", "select", "switch", "slider", "card", "container", "grid", "flex", "stack", "divider", "spacer", "navbar", "sidebar", "breadcrumb", "tabs", "pagination", "menu", "dropdown", "modal", "dialog", "toast", "alert", "spinner", "skeleton", "progress", "table", "list", "avatar", "badge", "chip", "tag", "tooltip", "form", "form-field", "date-picker", "time-picker", "file-upload", "color-picker", "autocomplete", "accordion", "carousel", "stepper", "timeline", "tree-view", "data-grid", "virtualized-list"];
|
|
40
|
+
/**
|
|
41
|
+
* Alias for backward compatibility
|
|
42
|
+
* @deprecated Use ALL_COMPONENT_TYPES instead
|
|
43
|
+
*/
|
|
44
|
+
export declare const CURRENT_COMPONENT_TYPES: readonly ["button", "input", "textarea", "checkbox", "radio", "select", "switch", "slider", "card", "container", "grid", "flex", "stack", "divider", "spacer", "navbar", "sidebar", "breadcrumb", "tabs", "pagination", "menu", "dropdown", "modal", "dialog", "toast", "alert", "spinner", "skeleton", "progress", "table", "list", "avatar", "badge", "chip", "tag", "tooltip", "form", "form-field", "date-picker", "time-picker", "file-upload", "color-picker", "autocomplete", "accordion", "carousel", "stepper", "timeline", "tree-view", "data-grid", "virtualized-list"];
|
|
45
|
+
/**
|
|
46
|
+
* Component Type Union
|
|
47
|
+
*/
|
|
48
|
+
export type ComponentType = (typeof ALL_COMPONENT_TYPES)[number];
|
|
49
|
+
/**
|
|
50
|
+
* Component Category
|
|
51
|
+
*/
|
|
52
|
+
export type ComponentCategory = 'basic' | 'layout' | 'navigation' | 'feedback' | 'data-display' | 'form' | 'advanced';
|
|
53
|
+
/**
|
|
54
|
+
* Component Category Map
|
|
55
|
+
*/
|
|
56
|
+
export declare const COMPONENT_CATEGORIES: Record<ComponentCategory, readonly string[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Get category for a component type
|
|
59
|
+
*/
|
|
60
|
+
export declare function getComponentCategory(componentType: string): ComponentCategory | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Check if a string is a valid component type
|
|
63
|
+
*/
|
|
64
|
+
export declare function isValidComponentType(type: string): type is ComponentType;
|
|
65
|
+
//# sourceMappingURL=ComponentTypes.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Systems Constants
|
|
3
|
+
*
|
|
4
|
+
* All supported design systems in Nikkory Vibe.
|
|
5
|
+
*
|
|
6
|
+
* Powered by Nikkory
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Current Design Systems (Implemented)
|
|
10
|
+
*/
|
|
11
|
+
export declare const CURRENT_DESIGN_SYSTEMS: readonly ["material-design", "ios-hig", "glassmorphism", "neumorphism", "brutalism", "minimalism", "cyberpunk", "flat-design", "retro-vintage", "fluent-design", "carbon-design", "ant-design"];
|
|
12
|
+
/**
|
|
13
|
+
* Planned Design Systems (Future)
|
|
14
|
+
*/
|
|
15
|
+
export declare const PLANNED_DESIGN_SYSTEMS: readonly ["skeuomorphism", "art-deco", "memphis", "bauhaus", "swiss-design", "organic-natural", "futuristic", "handcrafted", "corporate", "playful", "elegant", "dark-mode", "high-contrast", "accessibility-first", "dashboard", "e-commerce", "social-media", "gaming", "healthcare", "fintech", "education"];
|
|
16
|
+
/**
|
|
17
|
+
* All Design Systems (Current + Planned)
|
|
18
|
+
*/
|
|
19
|
+
export declare const ALL_DESIGN_SYSTEMS: readonly ["material-design", "ios-hig", "glassmorphism", "neumorphism", "brutalism", "minimalism", "cyberpunk", "flat-design", "retro-vintage", "fluent-design", "carbon-design", "ant-design", "skeuomorphism", "art-deco", "memphis", "bauhaus", "swiss-design", "organic-natural", "futuristic", "handcrafted", "corporate", "playful", "elegant", "dark-mode", "high-contrast", "accessibility-first", "dashboard", "e-commerce", "social-media", "gaming", "healthcare", "fintech", "education"];
|
|
20
|
+
/**
|
|
21
|
+
* Design System Union Type
|
|
22
|
+
*/
|
|
23
|
+
export type DesignSystem = (typeof CURRENT_DESIGN_SYSTEMS)[number];
|
|
24
|
+
/**
|
|
25
|
+
* All Design System Union Type (including planned)
|
|
26
|
+
*/
|
|
27
|
+
export type AllDesignSystem = (typeof ALL_DESIGN_SYSTEMS)[number];
|
|
28
|
+
/**
|
|
29
|
+
* Design System Metadata
|
|
30
|
+
*/
|
|
31
|
+
export interface DesignSystemInfo {
|
|
32
|
+
id: DesignSystem;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
characteristics: string[];
|
|
36
|
+
colorPalette: {
|
|
37
|
+
primary: string;
|
|
38
|
+
secondary: string;
|
|
39
|
+
accent: string;
|
|
40
|
+
background: string;
|
|
41
|
+
};
|
|
42
|
+
typography: {
|
|
43
|
+
fontFamily: string;
|
|
44
|
+
headingWeight: number;
|
|
45
|
+
bodyWeight: number;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Design System Metadata Map
|
|
50
|
+
*/
|
|
51
|
+
export declare const DESIGN_SYSTEM_INFO: Record<DesignSystem, DesignSystemInfo>;
|
|
52
|
+
/**
|
|
53
|
+
* Check if a string is a valid design system
|
|
54
|
+
*/
|
|
55
|
+
export declare function isValidDesignSystem(system: string): system is DesignSystem;
|
|
56
|
+
/**
|
|
57
|
+
* Get design system info
|
|
58
|
+
*/
|
|
59
|
+
export declare function getDesignSystemInfo(system: DesignSystem): DesignSystemInfo;
|
|
60
|
+
/**
|
|
61
|
+
* Get display name for design system
|
|
62
|
+
*/
|
|
63
|
+
export declare function getDesignSystemName(system: DesignSystem): string;
|
|
64
|
+
//# sourceMappingURL=DesignSystems.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frameworks Constants
|
|
3
|
+
*
|
|
4
|
+
* Supported frameworks for code generation.
|
|
5
|
+
*
|
|
6
|
+
* Powered by Nikkory
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Current Supported Frameworks
|
|
10
|
+
*/
|
|
11
|
+
export declare const CURRENT_FRAMEWORKS: readonly ["react", "vue", "svelte", "solid", "angular"];
|
|
12
|
+
/**
|
|
13
|
+
* Planned Frameworks (Future)
|
|
14
|
+
*/
|
|
15
|
+
export declare const PLANNED_FRAMEWORKS: readonly ["preact", "qwik", "lit", "alpine", "htmx", "astro"];
|
|
16
|
+
/**
|
|
17
|
+
* All Frameworks
|
|
18
|
+
*/
|
|
19
|
+
export declare const ALL_FRAMEWORKS: readonly ["react", "vue", "svelte", "solid", "angular", "preact", "qwik", "lit", "alpine", "htmx", "astro"];
|
|
20
|
+
/**
|
|
21
|
+
* Framework Type
|
|
22
|
+
*/
|
|
23
|
+
export type Framework = (typeof CURRENT_FRAMEWORKS)[number];
|
|
24
|
+
/**
|
|
25
|
+
* All Framework Type (including planned)
|
|
26
|
+
*/
|
|
27
|
+
export type AllFramework = (typeof ALL_FRAMEWORKS)[number];
|
|
28
|
+
/**
|
|
29
|
+
* Framework Metadata
|
|
30
|
+
*/
|
|
31
|
+
export interface FrameworkInfo {
|
|
32
|
+
id: Framework;
|
|
33
|
+
name: string;
|
|
34
|
+
description: string;
|
|
35
|
+
fileExtension: string;
|
|
36
|
+
componentExtension: string;
|
|
37
|
+
importStyle: 'default' | 'named' | 'namespace';
|
|
38
|
+
supportsJSX: boolean;
|
|
39
|
+
supportsSFC: boolean;
|
|
40
|
+
packageManager: string;
|
|
41
|
+
officialWebsite: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Framework Metadata Map
|
|
45
|
+
*/
|
|
46
|
+
export declare const FRAMEWORK_INFO: Record<Framework, FrameworkInfo>;
|
|
47
|
+
/**
|
|
48
|
+
* Check if a string is a valid framework
|
|
49
|
+
*/
|
|
50
|
+
export declare function isValidFramework(framework: string): framework is Framework;
|
|
51
|
+
/**
|
|
52
|
+
* Get framework info
|
|
53
|
+
*/
|
|
54
|
+
export declare function getFrameworkInfo(framework: Framework): FrameworkInfo;
|
|
55
|
+
/**
|
|
56
|
+
* Get framework display name
|
|
57
|
+
*/
|
|
58
|
+
export declare function getFrameworkName(framework: Framework): string;
|
|
59
|
+
/**
|
|
60
|
+
* Get component file extension for framework
|
|
61
|
+
*/
|
|
62
|
+
export declare function getComponentExtension(framework: Framework): string;
|
|
63
|
+
/**
|
|
64
|
+
* Check if framework supports JSX
|
|
65
|
+
*/
|
|
66
|
+
export declare function supportsJSX(framework: Framework): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Check if framework supports Single File Components
|
|
69
|
+
*/
|
|
70
|
+
export declare function supportsSFC(framework: Framework): boolean;
|
|
71
|
+
//# sourceMappingURL=Frameworks.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tiers Constants
|
|
3
|
+
*
|
|
4
|
+
* Quality tiers for component generation.
|
|
5
|
+
*
|
|
6
|
+
* Powered by Nikkory
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Available Tiers
|
|
10
|
+
*/
|
|
11
|
+
export declare const TIERS: readonly ["basic", "standard", "enterprise"];
|
|
12
|
+
/**
|
|
13
|
+
* Tier Type
|
|
14
|
+
*/
|
|
15
|
+
export type Tier = (typeof TIERS)[number];
|
|
16
|
+
/**
|
|
17
|
+
* Tier Metadata
|
|
18
|
+
*/
|
|
19
|
+
export interface TierInfo {
|
|
20
|
+
id: Tier;
|
|
21
|
+
name: string;
|
|
22
|
+
description: string;
|
|
23
|
+
targetUseCase: string;
|
|
24
|
+
features: string[];
|
|
25
|
+
linesOfCode: {
|
|
26
|
+
min: number;
|
|
27
|
+
max: number;
|
|
28
|
+
};
|
|
29
|
+
includes: {
|
|
30
|
+
forwardRef: boolean;
|
|
31
|
+
memo: boolean;
|
|
32
|
+
displayName: boolean;
|
|
33
|
+
analytics: boolean;
|
|
34
|
+
accessibility: boolean;
|
|
35
|
+
documentation: boolean;
|
|
36
|
+
variants: boolean;
|
|
37
|
+
animations: boolean;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Tier Metadata Map
|
|
42
|
+
*/
|
|
43
|
+
export declare const TIER_INFO: Record<Tier, TierInfo>;
|
|
44
|
+
/**
|
|
45
|
+
* Check if a string is a valid tier
|
|
46
|
+
*/
|
|
47
|
+
export declare function isValidTier(tier: string): tier is Tier;
|
|
48
|
+
/**
|
|
49
|
+
* Get tier info
|
|
50
|
+
*/
|
|
51
|
+
export declare function getTierInfo(tier: Tier): TierInfo;
|
|
52
|
+
/**
|
|
53
|
+
* Get tier display name
|
|
54
|
+
*/
|
|
55
|
+
export declare function getTierName(tier: Tier): string;
|
|
56
|
+
/**
|
|
57
|
+
* Compare tiers (returns -1, 0, or 1)
|
|
58
|
+
*/
|
|
59
|
+
export declare function compareTiers(a: Tier, b: Tier): number;
|
|
60
|
+
/**
|
|
61
|
+
* Check if tier A is higher than tier B
|
|
62
|
+
*/
|
|
63
|
+
export declare function isHigherTier(a: Tier, b: Tier): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Get the next tier (or undefined if already at highest)
|
|
66
|
+
*/
|
|
67
|
+
export declare function getNextTier(tier: Tier): Tier | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Get all tiers at or above the specified tier
|
|
70
|
+
*/
|
|
71
|
+
export declare function getTiersAtOrAbove(tier: Tier): Tier[];
|
|
72
|
+
//# sourceMappingURL=Tiers.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converters Module
|
|
3
|
+
* Bridge functions between Registry and Runtime configurations
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @module converters
|
|
7
|
+
* @since 4.1.0
|
|
8
|
+
*
|
|
9
|
+
* Powered by Nikkory
|
|
10
|
+
*/
|
|
11
|
+
export { toSectionConfig, toSectionConfigs, findAndConvertSection, findAndConvertByCategory, validateSectionConfig, isSectionUserOverrides, type SectionUserOverrides, } from './section-converter';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|