@conscience-technology/ovenn 0.0.0-stage → 0.6.7
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/README.md +189 -2
- package/assets/components/AIMessage/AIMessage.module.css +149 -0
- package/assets/components/AIMessage/AIMessage.tsx +106 -0
- package/assets/components/AIMessage/index.ts +2 -0
- package/assets/components/Accordion/Accordion.module.css +262 -0
- package/assets/components/Accordion/Accordion.tsx +209 -0
- package/assets/components/Accordion/index.ts +7 -0
- package/assets/components/AppFrame/AppFrame.module.css +198 -0
- package/assets/components/AppFrame/AppFrame.tsx +93 -0
- package/assets/components/AppFrame/index.ts +6 -0
- package/assets/components/AttachmentItem/AttachmentItem.module.css +118 -0
- package/assets/components/AttachmentItem/AttachmentItem.tsx +185 -0
- package/assets/components/AttachmentItem/index.ts +6 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.module.css +137 -0
- package/assets/components/AttachmentThumb/AttachmentThumb.tsx +102 -0
- package/assets/components/AttachmentThumb/index.ts +2 -0
- package/assets/components/Avatar/Avatar.module.css +201 -0
- package/assets/components/Avatar/Avatar.tsx +283 -0
- package/assets/components/Avatar/index.ts +9 -0
- package/assets/components/AvatarUpload/AvatarUpload.module.css +82 -0
- package/assets/components/AvatarUpload/AvatarUpload.tsx +155 -0
- package/assets/components/AvatarUpload/index.ts +2 -0
- package/assets/components/Badge/Badge.module.css +152 -0
- package/assets/components/Badge/Badge.tsx +109 -0
- package/assets/components/Badge/index.ts +2 -0
- package/assets/components/BrandSet/BrandSetController.tsx +56 -0
- package/assets/components/BrandSet/index.ts +14 -0
- package/assets/components/BrandSet/resolve.ts +10 -0
- package/assets/components/BrandSet/types.ts +43 -0
- package/assets/components/Breadcrumb/Breadcrumb.module.css +277 -0
- package/assets/components/Breadcrumb/Breadcrumb.tsx +352 -0
- package/assets/components/Breadcrumb/index.ts +8 -0
- package/assets/components/Bubble/Bubble.module.css +65 -0
- package/assets/components/Bubble/Bubble.tsx +63 -0
- package/assets/components/Bubble/index.ts +2 -0
- package/assets/components/Button/Button.module.css +336 -0
- package/assets/components/Button/Button.tsx +217 -0
- package/assets/components/Button/index.ts +2 -0
- package/assets/components/ButtonGroup/ButtonGroup.tsx +22 -0
- package/assets/components/ButtonGroup/index.ts +5 -0
- package/assets/components/Callout/Callout.module.css +146 -0
- package/assets/components/Callout/Callout.tsx +207 -0
- package/assets/components/Callout/index.ts +2 -0
- package/assets/components/CanvasNode/CanvasNode.module.css +110 -0
- package/assets/components/CanvasNode/CanvasNode.tsx +77 -0
- package/assets/components/CanvasNode/index.ts +2 -0
- package/assets/components/CanvasNode/tokens.css +26 -0
- package/assets/components/Card/Card.module.css +122 -0
- package/assets/components/Card/Card.tsx +88 -0
- package/assets/components/Card/index.ts +2 -0
- package/assets/components/ChatInput/ChatInput.module.css +373 -0
- package/assets/components/ChatInput/ChatInput.tsx +362 -0
- package/assets/components/ChatInput/ModelSelector.tsx +48 -0
- package/assets/components/ChatInput/SendButton.tsx +72 -0
- package/assets/components/ChatInput/index.ts +12 -0
- package/assets/components/Checkbox/Checkbox.module.css +147 -0
- package/assets/components/Checkbox/Checkbox.tsx +44 -0
- package/assets/components/Checkbox/index.ts +2 -0
- package/assets/components/CheckboxCard/CheckboxCard.module.css +177 -0
- package/assets/components/CheckboxCard/CheckboxCard.tsx +83 -0
- package/assets/components/CheckboxCard/index.ts +2 -0
- package/assets/components/Chip/Chip.module.css +219 -0
- package/assets/components/Chip/Chip.tsx +219 -0
- package/assets/components/Chip/index.ts +2 -0
- package/assets/components/Code/Code.module.css +25 -0
- package/assets/components/Code/Code.tsx +26 -0
- package/assets/components/Code/index.ts +2 -0
- package/assets/components/CodeBlock/CodeBlock.module.css +255 -0
- package/assets/components/CodeBlock/CodeBlock.tsx +283 -0
- package/assets/components/CodeBlock/copy-code.ts +15 -0
- package/assets/components/CodeBlock/index.ts +2 -0
- package/assets/components/ColorArea/ColorArea.module.css +145 -0
- package/assets/components/ColorArea/ColorArea.tsx +156 -0
- package/assets/components/ColorArea/index.ts +2 -0
- package/assets/components/ColorField/ColorField.module.css +195 -0
- package/assets/components/ColorField/ColorField.tsx +372 -0
- package/assets/components/ColorField/index.ts +2 -0
- package/assets/components/ColorSlider/ColorSlider.module.css +167 -0
- package/assets/components/ColorSlider/ColorSlider.tsx +165 -0
- package/assets/components/ColorSlider/index.ts +15 -0
- package/assets/components/ColorSwatch/ColorSwatch.module.css +35 -0
- package/assets/components/ColorSwatch/ColorSwatch.tsx +69 -0
- package/assets/components/ColorSwatch/index.ts +2 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.module.css +114 -0
- package/assets/components/ColorSwatchPicker/ColorSwatchPicker.tsx +183 -0
- package/assets/components/ColorSwatchPicker/index.ts +15 -0
- package/assets/components/Combobox/Combobox.module.css +13 -0
- package/assets/components/Combobox/Combobox.tsx +107 -0
- package/assets/components/Combobox/index.ts +2 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +269 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +423 -0
- package/assets/components/CommandPalette/index.ts +9 -0
- package/assets/components/CommandPalette/useCommandPaletteHotkey.ts +49 -0
- package/assets/components/ContextMenu/ContextMenu.module.css +118 -0
- package/assets/components/ContextMenu/ContextMenu.tsx +415 -0
- package/assets/components/ContextMenu/index.ts +9 -0
- package/assets/components/ControlGroup/ControlGroup.module.css +313 -0
- package/assets/components/ControlGroup/ControlGroup.tsx +69 -0
- package/assets/components/ControlGroup/context.tsx +12 -0
- package/assets/components/ControlGroup/index.ts +3 -0
- package/assets/components/ControlGroup/size.ts +9 -0
- package/assets/components/DataTable/DataTable.module.css +55 -0
- package/assets/components/DataTable/DataTable.tsx +137 -0
- package/assets/components/DataTable/index.ts +4 -0
- package/assets/components/DataTable/state.ts +34 -0
- package/assets/components/DatePicker/Calendar.tsx +485 -0
- package/assets/components/DatePicker/DESIGN_NOTES.md +106 -0
- package/assets/components/DatePicker/DESIGN_NOTES_TIME.md +125 -0
- package/assets/components/DatePicker/DateField.tsx +303 -0
- package/assets/components/DatePicker/DatePicker.module.css +590 -0
- package/assets/components/DatePicker/DatePicker.tsx +520 -0
- package/assets/components/DatePicker/TimeSelector.tsx +77 -0
- package/assets/components/DatePicker/index.ts +11 -0
- package/assets/components/DatePicker/presets.ts +84 -0
- package/assets/components/DatePicker/utils.ts +214 -0
- package/assets/components/Disclosure/Disclosure.module.css +73 -0
- package/assets/components/Disclosure/Disclosure.tsx +129 -0
- package/assets/components/Disclosure/index.ts +6 -0
- package/assets/components/Drawer/Drawer.module.css +190 -0
- package/assets/components/Drawer/Drawer.tsx +226 -0
- package/assets/components/Drawer/index.ts +15 -0
- package/assets/components/DropdownMenu/DropdownMenu.module.css +26 -0
- package/assets/components/DropdownMenu/DropdownMenu.tsx +395 -0
- package/assets/components/DropdownMenu/index.ts +9 -0
- package/assets/components/EmptyState/EmptyState.module.css +102 -0
- package/assets/components/EmptyState/EmptyState.tsx +80 -0
- package/assets/components/EmptyState/index.ts +2 -0
- package/assets/components/EventChip/EventChip.module.css +76 -0
- package/assets/components/EventChip/EventChip.tsx +47 -0
- package/assets/components/EventChip/index.ts +2 -0
- package/assets/components/EventListItem/EventListItem.module.css +220 -0
- package/assets/components/EventListItem/EventListItem.tsx +226 -0
- package/assets/components/EventListItem/index.ts +8 -0
- package/assets/components/FileIcon/FileIcon.module.css +76 -0
- package/assets/components/FileIcon/FileIcon.tsx +142 -0
- package/assets/components/FileIcon/fileExtMap.ts +166 -0
- package/assets/components/FileIcon/index.ts +9 -0
- package/assets/components/FileUpload/FileUpload.module.css +12 -0
- package/assets/components/FileUpload/FileUpload.tsx +100 -0
- package/assets/components/FileUpload/index.ts +2 -0
- package/assets/components/FileUpload/utils.ts +8 -0
- package/assets/components/GalleryItem/GalleryItem.module.css +220 -0
- package/assets/components/GalleryItem/GalleryItem.tsx +163 -0
- package/assets/components/GalleryItem/index.ts +7 -0
- package/assets/components/GeneratedImage/GeneratedImage.module.css +91 -0
- package/assets/components/GeneratedImage/GeneratedImage.tsx +84 -0
- package/assets/components/GeneratedImage/index.ts +5 -0
- package/assets/components/Hint/Hint.module.css +75 -0
- package/assets/components/Hint/Hint.tsx +89 -0
- package/assets/components/Hint/index.ts +2 -0
- package/assets/components/Icon/Icon.tsx +1478 -0
- package/assets/components/Icon/context.tsx +39 -0
- package/assets/components/Icon/index.ts +4 -0
- package/assets/components/IconButton/IconButton.module.css +116 -0
- package/assets/components/IconButton/IconButton.tsx +113 -0
- package/assets/components/IconButton/index.ts +2 -0
- package/assets/components/Input/Input.module.css +357 -0
- package/assets/components/Input/Input.tsx +424 -0
- package/assets/components/Input/index.ts +2 -0
- package/assets/components/Kanban/Kanban.module.css +347 -0
- package/assets/components/Kanban/Kanban.tsx +371 -0
- package/assets/components/Kanban/index.ts +10 -0
- package/assets/components/ListItem/ListItem.module.css +232 -0
- package/assets/components/ListItem/ListItem.tsx +262 -0
- package/assets/components/ListItem/index.ts +9 -0
- package/assets/components/MenuItem/MenuItem.module.css +601 -0
- package/assets/components/MenuItem/MenuItem.tsx +704 -0
- package/assets/components/MenuItem/index.ts +8 -0
- package/assets/components/MessageActions/MessageActions.module.css +43 -0
- package/assets/components/MessageActions/MessageActions.tsx +114 -0
- package/assets/components/MessageActions/index.ts +6 -0
- package/assets/components/MessageQuote/MessageQuote.module.css +29 -0
- package/assets/components/MessageQuote/MessageQuote.tsx +33 -0
- package/assets/components/MessageQuote/index.ts +2 -0
- package/assets/components/MessageSources/MessageSources.module.css +58 -0
- package/assets/components/MessageSources/MessageSources.tsx +60 -0
- package/assets/components/MessageSources/index.ts +2 -0
- package/assets/components/MessageState/MessageState.module.css +118 -0
- package/assets/components/MessageState/MessageState.tsx +150 -0
- package/assets/components/MessageState/index.ts +2 -0
- package/assets/components/MessageTable/MessageTable.module.css +59 -0
- package/assets/components/MessageTable/MessageTable.tsx +21 -0
- package/assets/components/MessageTable/index.ts +2 -0
- package/assets/components/MetricCard/MetricCard.module.css +153 -0
- package/assets/components/MetricCard/MetricCard.tsx +140 -0
- package/assets/components/MetricCard/index.ts +2 -0
- package/assets/components/Modal/Modal.module.css +285 -0
- package/assets/components/Modal/Modal.tsx +398 -0
- package/assets/components/Modal/index.ts +22 -0
- package/assets/components/MultiSelect/MultiSelect.tsx +7 -0
- package/assets/components/MultiSelect/index.ts +2 -0
- package/assets/components/Onboarding/DocsIndex.tsx +102 -0
- package/assets/components/Onboarding/LayoutBuilder.tsx +204 -0
- package/assets/components/Onboarding/Onboarding.module.css +1561 -0
- package/assets/components/Onboarding/OnboardingAxisPanel.tsx +516 -0
- package/assets/components/Onboarding/OnboardingPage.tsx +1481 -0
- package/assets/components/Onboarding/PresetsGallery.tsx +56 -0
- package/assets/components/Onboarding/actions.ts +524 -0
- package/assets/components/Onboarding/index.ts +8 -0
- package/assets/components/Onboarding/palette.css +40 -0
- package/assets/components/Onboarding/wizardData.ts +529 -0
- package/assets/components/PageHeader/PageHeader.module.css +119 -0
- package/assets/components/PageHeader/PageHeader.tsx +126 -0
- package/assets/components/PageHeader/index.ts +2 -0
- package/assets/components/Pagination/Pagination.module.css +132 -0
- package/assets/components/Pagination/Pagination.tsx +294 -0
- package/assets/components/Pagination/index.ts +6 -0
- package/assets/components/ProgressBar/ProgressBar.module.css +127 -0
- package/assets/components/ProgressBar/ProgressBar.tsx +90 -0
- package/assets/components/ProgressBar/index.ts +7 -0
- package/assets/components/QuotationBar/QuotationBar.module.css +61 -0
- package/assets/components/QuotationBar/QuotationBar.tsx +60 -0
- package/assets/components/QuotationBar/index.ts +2 -0
- package/assets/components/Radio/Radio.module.css +123 -0
- package/assets/components/Radio/Radio.tsx +39 -0
- package/assets/components/Radio/index.ts +2 -0
- package/assets/components/RadioCard/RadioCard.module.css +208 -0
- package/assets/components/RadioCard/RadioCard.tsx +164 -0
- package/assets/components/RadioCard/index.ts +2 -0
- package/assets/components/SegmentedChart/SegmentedChart.module.css +221 -0
- package/assets/components/SegmentedChart/SegmentedChart.tsx +104 -0
- package/assets/components/SegmentedChart/index.ts +2 -0
- package/assets/components/Select/Select.module.css +161 -0
- package/assets/components/Select/Select.tsx +450 -0
- package/assets/components/Select/index.ts +10 -0
- package/assets/components/Shortcut/Shortcut.module.css +77 -0
- package/assets/components/Shortcut/Shortcut.tsx +206 -0
- package/assets/components/Shortcut/index.ts +2 -0
- package/assets/components/Sidebar/Sidebar.module.css +406 -0
- package/assets/components/Sidebar/Sidebar.tsx +585 -0
- package/assets/components/Sidebar/index.ts +7 -0
- package/assets/components/Slider/Slider.module.css +134 -0
- package/assets/components/Slider/Slider.tsx +99 -0
- package/assets/components/Slider/index.ts +2 -0
- package/assets/components/Spinner/LottiePlayer.tsx +179 -0
- package/assets/components/Spinner/Spinner.module.css +205 -0
- package/assets/components/Spinner/Spinner.tsx +133 -0
- package/assets/components/Spinner/index.ts +10 -0
- package/assets/components/Spinner/lottieColor.ts +166 -0
- package/assets/components/Spinner/lottieManifest.ts +100 -0
- package/assets/components/Stepper/Stepper.module.css +330 -0
- package/assets/components/Stepper/Stepper.tsx +244 -0
- package/assets/components/Stepper/index.ts +2 -0
- package/assets/components/Switch/Switch.module.css +163 -0
- package/assets/components/Switch/Switch.tsx +73 -0
- package/assets/components/Switch/index.ts +2 -0
- package/assets/components/TabStrip/TabStrip.module.css +358 -0
- package/assets/components/TabStrip/TabStrip.tsx +404 -0
- package/assets/components/TabStrip/index.ts +7 -0
- package/assets/components/TableCell/TableCell.module.css +130 -0
- package/assets/components/TableCell/TableCellAvatar.tsx +66 -0
- package/assets/components/TableCell/TableCellBadge.tsx +26 -0
- package/assets/components/TableCell/TableCellImage.tsx +49 -0
- package/assets/components/TableCell/TableCellMeter.tsx +55 -0
- package/assets/components/TableCell/TableCellNumber.tsx +43 -0
- package/assets/components/TableCell/TableCellText.tsx +33 -0
- package/assets/components/TableCell/index.ts +19 -0
- package/assets/components/TableHeader/TableHeader.module.css +351 -0
- package/assets/components/TableHeader/TableHeader.tsx +658 -0
- package/assets/components/TableHeader/index.ts +9 -0
- package/assets/components/TableRow/TableRow.module.css +352 -0
- package/assets/components/TableRow/TableRow.tsx +292 -0
- package/assets/components/TableRow/index.ts +8 -0
- package/assets/components/TableRowEdit/TableRowEdit.module.css +162 -0
- package/assets/components/TableRowEdit/TableRowEdit.tsx +279 -0
- package/assets/components/TableRowEdit/index.ts +2 -0
- package/assets/components/TableRowSelect/TableRowSelect.module.css +23 -0
- package/assets/components/TableRowSelect/TableRowSelect.tsx +173 -0
- package/assets/components/TableRowSelect/index.ts +2 -0
- package/assets/components/TableToolbar/TableToolbar.module.css +37 -0
- package/assets/components/TableToolbar/TableToolbar.tsx +105 -0
- package/assets/components/TableToolbar/index.ts +5 -0
- package/assets/components/Tabs/Tabs.module.css +372 -0
- package/assets/components/Tabs/Tabs.tsx +517 -0
- package/assets/components/Tabs/index.ts +9 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.module.css +4 -0
- package/assets/components/TemplateBoundary/TemplateBoundary.tsx +50 -0
- package/assets/components/TemplateBoundary/index.ts +3 -0
- package/assets/components/TemplateBoundary/types.ts +23 -0
- package/assets/components/Textarea/Textarea.module.css +343 -0
- package/assets/components/Textarea/Textarea.tsx +438 -0
- package/assets/components/Textarea/index.ts +7 -0
- package/assets/components/ThemeController.tsx +369 -0
- package/assets/components/TimePicker/TimePicker.module.css +112 -0
- package/assets/components/TimePicker/TimePicker.tsx +403 -0
- package/assets/components/TimePicker/index.ts +8 -0
- package/assets/components/TimePicker/utils.ts +116 -0
- package/assets/components/Toast/Toast.module.css +332 -0
- package/assets/components/Toast/Toast.tsx +310 -0
- package/assets/components/Toast/index.ts +16 -0
- package/assets/components/Toolbar/Toolbar.module.css +128 -0
- package/assets/components/Toolbar/Toolbar.tsx +186 -0
- package/assets/components/Toolbar/index.ts +7 -0
- package/assets/components/Tooltip/Tooltip.module.css +42 -0
- package/assets/components/Tooltip/Tooltip.tsx +332 -0
- package/assets/components/Tooltip/index.ts +2 -0
- package/assets/components/TopLoader/TopLoader.module.css +64 -0
- package/assets/components/TopLoader/TopLoader.tsx +58 -0
- package/assets/components/TopLoader/index.ts +2 -0
- package/assets/components/Topbar/Topbar.module.css +54 -0
- package/assets/components/Topbar/Topbar.tsx +102 -0
- package/assets/components/Topbar/index.ts +2 -0
- package/assets/components/TreeNav/TreeNav.module.css +32 -0
- package/assets/components/TreeNav/TreeNav.tsx +130 -0
- package/assets/components/TreeNav/index.ts +2 -0
- package/assets/components/UserMessage/UserMessage.module.css +47 -0
- package/assets/components/UserMessage/UserMessage.tsx +66 -0
- package/assets/components/UserMessage/index.ts +2 -0
- package/assets/components/_cn.ts +3 -0
- package/assets/components/_color.ts +75 -0
- package/assets/components/_data.ts +607 -0
- package/assets/components/_rowInteraction.ts +16 -0
- package/assets/components/_utils.css +130 -0
- package/assets/components/app-shell.css +17 -0
- package/assets/components/axisOptions.ts +15 -0
- package/assets/components/component-registry.json +914 -0
- package/assets/components/index.ts +102 -0
- package/assets/components/reset.css +77 -0
- package/assets/components/themeBootScript.ts +124 -0
- package/assets/components/tokens.css +1121 -0
- package/assets/prompts/ASSEMBLY.md +70 -0
- package/assets/prompts/CASCADE.md +49 -0
- package/assets/prompts/CATALOG.md +127 -0
- package/assets/prompts/GUIDE.md +307 -0
- package/assets/prompts/MEMORY.md +202 -0
- package/assets/prompts/OVERRIDE.md +30 -0
- package/assets/prompts/PRINCIPLES.md +114 -0
- package/assets/prompts/SLOTS.md +194 -0
- package/assets/prompts/WORKFLOW_DESIGN.md +156 -0
- package/assets/prompts/axes/density.md +42 -0
- package/assets/prompts/axes/font.md +30 -0
- package/assets/prompts/axes/icon.md +57 -0
- package/assets/prompts/axes/mode.md +52 -0
- package/assets/prompts/axes/motion.md +77 -0
- package/assets/prompts/axes/palette.md +50 -0
- package/assets/prompts/axes/shape.md +33 -0
- package/assets/prompts/axes/voice.md +57 -0
- package/assets/prompts/brand-sets/_SCHEMA.md +27 -0
- package/assets/prompts/components/README.md +84 -0
- package/assets/prompts/components/_variants.md +86 -0
- package/assets/prompts/components/accordion.md +151 -0
- package/assets/prompts/components/ai-message.md +53 -0
- package/assets/prompts/components/app-frame.md +141 -0
- package/assets/prompts/components/attachment-item.md +88 -0
- package/assets/prompts/components/attachment-thumb.md +54 -0
- package/assets/prompts/components/avatar-upload.md +62 -0
- package/assets/prompts/components/avatar.md +106 -0
- package/assets/prompts/components/badge.md +123 -0
- package/assets/prompts/components/breadcrumb.md +123 -0
- package/assets/prompts/components/bubble.md +61 -0
- package/assets/prompts/components/button-group.md +35 -0
- package/assets/prompts/components/button.md +133 -0
- package/assets/prompts/components/callout.md +98 -0
- package/assets/prompts/components/canvas-node.md +63 -0
- package/assets/prompts/components/card.md +167 -0
- package/assets/prompts/components/chat-input.md +103 -0
- package/assets/prompts/components/checkbox-card.md +72 -0
- package/assets/prompts/components/checkbox.md +98 -0
- package/assets/prompts/components/chip.md +163 -0
- package/assets/prompts/components/code-block.md +94 -0
- package/assets/prompts/components/code.md +62 -0
- package/assets/prompts/components/color-area.md +95 -0
- package/assets/prompts/components/color-field.md +108 -0
- package/assets/prompts/components/color-slider.md +108 -0
- package/assets/prompts/components/color-swatch-picker.md +96 -0
- package/assets/prompts/components/color-swatch.md +85 -0
- package/assets/prompts/components/combobox.md +35 -0
- package/assets/prompts/components/command-palette.md +193 -0
- package/assets/prompts/components/context-menu.md +150 -0
- package/assets/prompts/components/control-group.md +67 -0
- package/assets/prompts/components/data-table.md +81 -0
- package/assets/prompts/components/date-picker.md +146 -0
- package/assets/prompts/components/disclosure.md +55 -0
- package/assets/prompts/components/drawer.md +141 -0
- package/assets/prompts/components/dropdown-menu.md +165 -0
- package/assets/prompts/components/empty-state.md +74 -0
- package/assets/prompts/components/event-chip.md +81 -0
- package/assets/prompts/components/event-list-item.md +108 -0
- package/assets/prompts/components/file-icon.md +83 -0
- package/assets/prompts/components/file-upload.md +35 -0
- package/assets/prompts/components/gallery-item.md +163 -0
- package/assets/prompts/components/generated-image.md +85 -0
- package/assets/prompts/components/hint.md +94 -0
- package/assets/prompts/components/icon-button.md +99 -0
- package/assets/prompts/components/icon.md +79 -0
- package/assets/prompts/components/input.md +134 -0
- package/assets/prompts/components/kanban.md +172 -0
- package/assets/prompts/components/list-item.md +325 -0
- package/assets/prompts/components/menu-item.md +247 -0
- package/assets/prompts/components/message-actions.md +54 -0
- package/assets/prompts/components/message-quote.md +34 -0
- package/assets/prompts/components/message-sources.md +46 -0
- package/assets/prompts/components/message-state.md +61 -0
- package/assets/prompts/components/message-table.md +42 -0
- package/assets/prompts/components/metric-card.md +137 -0
- package/assets/prompts/components/modal.md +235 -0
- package/assets/prompts/components/multi-select.md +31 -0
- package/assets/prompts/components/onboarding.md +51 -0
- package/assets/prompts/components/page-header.md +161 -0
- package/assets/prompts/components/pagination.md +99 -0
- package/assets/prompts/components/progress-bar.md +75 -0
- package/assets/prompts/components/quotation-bar.md +44 -0
- package/assets/prompts/components/radio-card.md +146 -0
- package/assets/prompts/components/radio.md +56 -0
- package/assets/prompts/components/segmented-chart.md +65 -0
- package/assets/prompts/components/select.md +145 -0
- package/assets/prompts/components/shortcut.md +81 -0
- package/assets/prompts/components/sidebar.md +528 -0
- package/assets/prompts/components/slider.md +111 -0
- package/assets/prompts/components/spinner.md +124 -0
- package/assets/prompts/components/stepper.md +108 -0
- package/assets/prompts/components/switch.md +103 -0
- package/assets/prompts/components/tab-strip.md +162 -0
- package/assets/prompts/components/table-cell.md +65 -0
- package/assets/prompts/components/table-header.md +181 -0
- package/assets/prompts/components/table-row-edit.md +144 -0
- package/assets/prompts/components/table-row-select.md +90 -0
- package/assets/prompts/components/table-row.md +175 -0
- package/assets/prompts/components/table-toolbar.md +94 -0
- package/assets/prompts/components/tabs.md +134 -0
- package/assets/prompts/components/textarea.md +114 -0
- package/assets/prompts/components/time-picker.md +86 -0
- package/assets/prompts/components/toast.md +155 -0
- package/assets/prompts/components/toolbar.md +86 -0
- package/assets/prompts/components/tooltip.md +76 -0
- package/assets/prompts/components/top-loader.md +64 -0
- package/assets/prompts/components/topbar.md +177 -0
- package/assets/prompts/components/tree-nav.md +77 -0
- package/assets/prompts/components/user-message.md +50 -0
- package/assets/prompts/design-examples/README.md +57 -0
- package/assets/prompts/design-examples/catalog.json +1 -0
- package/assets/prompts/primitives/emerge.md +43 -0
- package/assets/prompts/primitives/fade.md +31 -0
- package/assets/prompts/primitives/mobile.md +53 -0
- package/assets/prompts/primitives/scale.md +32 -0
- package/assets/prompts/primitives/scroll.md +170 -0
- package/assets/prompts/primitives/slide.md +31 -0
- package/assets/prompts/recipes/README.md +104 -0
- package/assets/prompts/recipes/card-row.md +39 -0
- package/assets/prompts/recipes/form-footer.md +76 -0
- package/assets/prompts/recipes/meta-line.md +61 -0
- package/assets/prompts/recipes/page-banner.md +121 -0
- package/assets/prompts/recipes/page-header.md +107 -0
- package/assets/prompts/recipes/section-header.md +90 -0
- package/assets/prompts/templates/README.md +9 -0
- package/assets/prompts/templates/ains.md +630 -0
- package/assets/prompts/templates/aurora.md +439 -0
- package/assets/prompts/templates/glass-button.md +336 -0
- package/assets/prompts/templates/minimal.md +207 -0
- package/assets/prompts/templates/workspace.md +346 -0
- package/assets/prompts/themes/_SCHEMA.md +135 -0
- package/assets/prompts/themes/_TEMPLATE.md +73 -0
- package/assets/prompts/themes/expressive.md +118 -0
- package/assets/prompts/themes/pure.md +87 -0
- package/assets/prompts/themes/spare.md +73 -0
- package/assets/prompts/tokens/breakpoint.md +29 -0
- package/assets/prompts/tokens/color.md +103 -0
- package/assets/prompts/tokens/radius.md +33 -0
- package/assets/prompts/tokens/shadow.md +35 -0
- package/assets/prompts/tokens/spacing.md +96 -0
- package/assets/prompts/tokens/typography.md +67 -0
- package/assets/prompts/tokens/z-index.md +35 -0
- package/assets/public/expressive.png +0 -0
- package/assets/public/pure.png +0 -0
- package/assets/public/spare.png +0 -0
- package/assets/skills/ovenn/SKILL.md +12 -0
- package/assets/skills/ovenn-component/SKILL.md +12 -0
- package/assets/skills/ovenn-page/SKILL.md +12 -0
- package/assets/skills/ovenn-theme/SKILL.md +12 -0
- package/assets/skills/ovenn-validate/SKILL.md +14 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.module.css +12 -0
- package/assets/skills/ovenn-validate/fixtures/clean/Clean.tsx +9 -0
- package/assets/skills/ovenn-validate/scripts/lib/component-usage.js +112 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-graph.js +15 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.mjs +25 -0
- package/assets/skills/ovenn-validate/scripts/lib/source-utils.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.mjs +151 -0
- package/assets/skills/ovenn-validate/scripts/rules/doc-sync.test.mjs +91 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.mjs +69 -0
- package/assets/skills/ovenn-validate/scripts/rules/ghost-tokens.test.mjs +52 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.mjs +145 -0
- package/assets/skills/ovenn-validate/scripts/rules/hardcoded.test.mjs +83 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.mjs +252 -0
- package/assets/skills/ovenn-validate/scripts/rules/memory-rules.test.mjs +131 -0
- package/assets/skills/ovenn-validate/scripts/validate.mjs +169 -0
- package/assets/skills/ovenn-wireframe/SKILL.md +12 -0
- package/bin/ovenn.js +85 -0
- package/package.json +139 -4
- package/src/commands/info.js +217 -0
- package/src/commands/init.js +386 -0
- package/src/commands/update.js +65 -0
- package/src/utils/agents.js +83 -0
- package/src/utils/assets.js +51 -0
- package/src/utils/client-bridges.js +32 -0
- package/src/utils/component-usage.js +112 -0
- package/src/utils/deps.js +59 -0
- package/src/utils/design-examples.js +101 -0
- package/src/utils/design-workflow.js +155 -0
- package/src/utils/detect.js +59 -0
- package/src/utils/diff.js +52 -0
- package/src/utils/doctor.js +47 -0
- package/src/utils/hash.js +16 -0
- package/src/utils/launch.js +94 -0
- package/src/utils/log.js +41 -0
- package/src/utils/managed-assets.js +50 -0
- package/src/utils/mcp-client.js +47 -0
- package/src/utils/meta.js +73 -0
- package/src/utils/patch.js +334 -0
- package/src/utils/prompt.js +28 -0
- package/src/utils/source-graph.js +15 -0
- package/src/utils/update-transaction.js +79 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { checkHardcoded } from './rules/hardcoded.mjs';
|
|
6
|
+
import { checkGhostTokens, loadDeclaredTokens } from './rules/ghost-tokens.mjs';
|
|
7
|
+
import { checkMemoryRules } from './rules/memory-rules.mjs';
|
|
8
|
+
import { checkDocSync } from './rules/doc-sync.mjs';
|
|
9
|
+
|
|
10
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
|
+
const REPO_ROOT = path.resolve(__dirname, '../../../..');
|
|
12
|
+
|
|
13
|
+
const HELP = `ovenn-validate — Ovenn 코드 검증
|
|
14
|
+
|
|
15
|
+
사용법:
|
|
16
|
+
node .claude/skills/ovenn-validate/scripts/validate.mjs <glob> [<glob> ...]
|
|
17
|
+
node .claude/skills/ovenn-validate/scripts/validate.mjs --help
|
|
18
|
+
|
|
19
|
+
예:
|
|
20
|
+
node .claude/skills/ovenn-validate/scripts/validate.mjs 'web/components/Button/**'
|
|
21
|
+
node .claude/skills/ovenn-validate/scripts/validate.mjs 'web/components/**' 'prompts/components/**'
|
|
22
|
+
|
|
23
|
+
종료 코드: 위반 0 → 0, 위반 ≥1 → 1.
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
const args = process.argv.slice(2);
|
|
27
|
+
if(args.includes('--component-usage')) {
|
|
28
|
+
let engine;
|
|
29
|
+
try{engine=await import('@conscience-technology/ovenn/component-usage');}
|
|
30
|
+
catch{try{engine=await import('./lib/component-usage.js');}catch{try{engine=await import('../../../../packages/ovenn-cli/src/utils/component-usage.js');}catch{throw new Error('Run ovenn info check-component-usage --local with the updated Ovenn CLI.');}}}
|
|
31
|
+
const report=engine.checkComponentUsage(engine.readUsageProject(process.cwd()),{ts:engine.loadTypeScript(process.cwd())});
|
|
32
|
+
process.stdout.write(JSON.stringify(report,null,2)+'\n');process.exit(report.valid&&report.complete?0:1);
|
|
33
|
+
}
|
|
34
|
+
if (args.length === 0 || args.includes('--help') || args.includes('-h')) {
|
|
35
|
+
process.stdout.write(HELP);
|
|
36
|
+
process.exit(args.length === 0 ? 1 : 0);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function globToRegex(glob) {
|
|
40
|
+
let re = '^';
|
|
41
|
+
for (let i = 0; i < glob.length; i++) {
|
|
42
|
+
const c = glob[i];
|
|
43
|
+
if (c === '*') {
|
|
44
|
+
if (glob[i + 1] === '*') {
|
|
45
|
+
re += '.*';
|
|
46
|
+
i++;
|
|
47
|
+
if (glob[i + 1] === '/') i++;
|
|
48
|
+
} else {
|
|
49
|
+
re += '[^/]*';
|
|
50
|
+
}
|
|
51
|
+
} else if (c === '?') {
|
|
52
|
+
re += '[^/]';
|
|
53
|
+
} else if ('.+^$(){}|[]\\'.includes(c)) {
|
|
54
|
+
re += '\\' + c;
|
|
55
|
+
} else {
|
|
56
|
+
re += c;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
re += '$';
|
|
60
|
+
return new RegExp(re);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function walk(dir, out) {
|
|
64
|
+
let entries;
|
|
65
|
+
try {
|
|
66
|
+
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
67
|
+
} catch {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
for (const e of entries) {
|
|
71
|
+
if (e.name === 'node_modules' || e.name === '.next' || e.name === '.git') continue;
|
|
72
|
+
const full = path.join(dir, e.name);
|
|
73
|
+
if (e.isDirectory()) walk(full, out);
|
|
74
|
+
else if (e.isFile()) out.push(full);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function collectFiles(globs) {
|
|
79
|
+
const allFiles = [];
|
|
80
|
+
walk(REPO_ROOT, allFiles);
|
|
81
|
+
const matchers = globs.map((g) => globToRegex(g));
|
|
82
|
+
const matched = new Set();
|
|
83
|
+
for (const f of allFiles) {
|
|
84
|
+
const rel = path.relative(REPO_ROOT, f);
|
|
85
|
+
for (const m of matchers) {
|
|
86
|
+
if (m.test(rel)) {
|
|
87
|
+
matched.add(f);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
return [...matched].sort();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function parseDisableComments(content) {
|
|
96
|
+
const disabled = new Map();
|
|
97
|
+
const lines = content.split('\n');
|
|
98
|
+
const re = /ovenn-validate-disable-next-line\s+([\w\-\/,\s]+)/;
|
|
99
|
+
for (let i = 0; i < lines.length; i++) {
|
|
100
|
+
const m = lines[i].match(re);
|
|
101
|
+
if (m) {
|
|
102
|
+
const ids = m[1].split(/[\s,]+/).filter(Boolean);
|
|
103
|
+
disabled.set(i + 2, new Set(ids));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return disabled;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function isDisabled(disabled, line, ruleId) {
|
|
110
|
+
const set = disabled.get(line);
|
|
111
|
+
if (!set) return false;
|
|
112
|
+
if (set.has(ruleId)) return true;
|
|
113
|
+
const prefix = ruleId.split('/')[0];
|
|
114
|
+
return set.has(prefix) || set.has(prefix + '/*');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function run() {
|
|
118
|
+
const files = collectFiles(args);
|
|
119
|
+
if (files.length === 0) {
|
|
120
|
+
process.stderr.write(`매칭된 파일 없음: ${args.join(', ')}\n`);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const declaredTokens = loadDeclaredTokens(REPO_ROOT);
|
|
125
|
+
const violations = [];
|
|
126
|
+
|
|
127
|
+
for (const file of files) {
|
|
128
|
+
const ext = path.extname(file);
|
|
129
|
+
const rel = path.relative(REPO_ROOT, file);
|
|
130
|
+
const content = fs.readFileSync(file, 'utf8');
|
|
131
|
+
const disabled = parseDisableComments(content);
|
|
132
|
+
const ctx = { file, rel, content, ext };
|
|
133
|
+
|
|
134
|
+
const raw = [];
|
|
135
|
+
if (ext === '.tsx' || ext === '.ts' || ext === '.jsx' || ext === '.js' || ext === '.css') {
|
|
136
|
+
raw.push(...checkHardcoded(ctx));
|
|
137
|
+
raw.push(...checkGhostTokens(ctx, declaredTokens));
|
|
138
|
+
raw.push(...checkMemoryRules(ctx));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
for (const v of raw) {
|
|
142
|
+
if (isDisabled(disabled, v.line, v.ruleId)) continue;
|
|
143
|
+
violations.push({ ...v, rel });
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
violations.push(...checkDocSync(files, REPO_ROOT));
|
|
148
|
+
|
|
149
|
+
const reviews = violations.filter((v) => v.severity === 'review');
|
|
150
|
+
const errors = violations.filter((v) => v.severity !== 'review');
|
|
151
|
+
|
|
152
|
+
if (violations.length === 0) {
|
|
153
|
+
process.stdout.write(`0개 위반 (${files.length}개 파일 검사)\n`);
|
|
154
|
+
process.exit(0);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
violations.sort((a, b) => a.rel.localeCompare(b.rel) || a.line - b.line);
|
|
158
|
+
const fileSet = new Set();
|
|
159
|
+
for (const v of violations) {
|
|
160
|
+
fileSet.add(v.rel);
|
|
161
|
+
const label = v.severity === 'review' ? 'REVIEW' : 'ERROR';
|
|
162
|
+
process.stdout.write(`${v.rel}:${v.line} — ${label} — ${v.ruleId} — ${v.message}\n`);
|
|
163
|
+
if (v.suggest) process.stdout.write(` 제안: ${v.suggest}\n`);
|
|
164
|
+
}
|
|
165
|
+
process.stdout.write(`\n${errors.length}개 오류, ${reviews.length}개 검토 (${fileSet.size}개 파일)\n`);
|
|
166
|
+
process.exit(errors.length > 0 ? 1 : 0);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
run();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ovenn-wireframe
|
|
3
|
+
description: 기존 화면/와이어프레임을 Ovenn의 행동 계약과 프로젝트 디자인으로 연결한다. 사용자가 유지하라는 표현을 보존하고 필요한 부분만 변형한다.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# ovenn-wireframe
|
|
7
|
+
|
|
8
|
+
모든 UI 작업은 `prompts/PRINCIPLES.md`를 읽고 `prompts/ASSEMBLY.md`를 실행한다. 전체 페이지·부분 UI·컴포넌트 모두 적용한다. 화면 점검·독립 검수·대기와 완료 조건은 `prompts/WORKFLOW_DESIGN.md`가 원본이다. MCP 연결 시 `get_rules`와 `get_design_workflow`로 같은 원본을 받는다.
|
|
9
|
+
|
|
10
|
+
필요한 행동은 전체 `prompts/CATALOG.md`에서 찾고 해당 문서의 Do/Don't·Props와 실제 컴포넌트 코드를 확인한다. 클라이언트의 실행·캡처·독립 검수 기능이 없으면 원본의 검수 대기 계약을 따른다. 검사 통과를 화면 검수로 대신하지 않는다.
|
|
11
|
+
|
|
12
|
+
조립 전 역할별 componentPlan과 실제 부품 사용 검증은 `prompts/ASSEMBLY.md`의 v2 계약을 따른다. MCP의 `check_component_usage` 또는 `ovenn info check-component-usage --local`로 확인한다.
|
package/bin/ovenn.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Ovenn CLI entry.
|
|
4
|
+
*
|
|
5
|
+
* 사용법:
|
|
6
|
+
* ovenn init [--dry] [--force]
|
|
7
|
+
* ovenn update [--dry] [--force]
|
|
8
|
+
* ovenn --help
|
|
9
|
+
* ovenn --version
|
|
10
|
+
*
|
|
11
|
+
* 서브커맨드는 ../src/commands/<name>.js 로 디스패치.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { fileURLToPath } from "node:url";
|
|
15
|
+
import { dirname, join } from "node:path";
|
|
16
|
+
import { readFileSync } from "node:fs";
|
|
17
|
+
|
|
18
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
19
|
+
const pkg = JSON.parse(
|
|
20
|
+
readFileSync(join(__dirname, "..", "package.json"), "utf8")
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
const [, , cmd, ...rest] = process.argv;
|
|
24
|
+
|
|
25
|
+
if (!cmd || cmd === "--help" || cmd === "-h") {
|
|
26
|
+
printHelp();
|
|
27
|
+
process.exit(0);
|
|
28
|
+
}
|
|
29
|
+
if (cmd === "--version" || cmd === "-v") {
|
|
30
|
+
console.log(pkg.version);
|
|
31
|
+
process.exit(0);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const commands = {
|
|
35
|
+
init: () => import("../src/commands/init.js").then((m) => m.run(rest)),
|
|
36
|
+
update: () => import("../src/commands/update.js").then((m) => m.run(rest)),
|
|
37
|
+
info: () => import("../src/commands/info.js").then((m) => m.run(rest)),
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
if (!(cmd in commands)) {
|
|
41
|
+
console.error(`unknown command: ${cmd}`);
|
|
42
|
+
console.error("");
|
|
43
|
+
printHelp();
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
commands[cmd]().catch((err) => {
|
|
48
|
+
console.error("");
|
|
49
|
+
console.error("❌ failed:", err?.message ?? err);
|
|
50
|
+
if (process.env.OVENN_DEBUG) console.error(err);
|
|
51
|
+
process.exit(1);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
function printHelp() {
|
|
55
|
+
console.log(`
|
|
56
|
+
Ovenn — hybrid design system CLI (v${pkg.version})
|
|
57
|
+
|
|
58
|
+
Usage:
|
|
59
|
+
ovenn <command> [options]
|
|
60
|
+
|
|
61
|
+
Commands:
|
|
62
|
+
init Install Ovenn into the current Next.js project (components, prompts, /ovenn route)
|
|
63
|
+
update Pull the latest Ovenn assets (local edits are preserved)
|
|
64
|
+
info Query Ovenn knowledge via MCP tools (ovenn info --help)
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
--help, -h Show help
|
|
68
|
+
--version, -v Show version
|
|
69
|
+
|
|
70
|
+
Examples:
|
|
71
|
+
ovenn init
|
|
72
|
+
ovenn init --dry Preview the files that would be created without writing anything
|
|
73
|
+
ovenn init --force Overwrite existing files
|
|
74
|
+
ovenn init --no-open Skip the auto dev server launch and browser open
|
|
75
|
+
ovenn update Pull the latest and prompt only on conflicts
|
|
76
|
+
ovenn update --dry Preview changes and conflict count without writing
|
|
77
|
+
ovenn update --force Ignore local edits and overwrite everything (commit first)
|
|
78
|
+
ovenn info doctor --json Diagnose the local install without network
|
|
79
|
+
ovenn update --keep-local Preserve all conflicts in automation
|
|
80
|
+
ovenn update --recover=ID Recover an interrupted update
|
|
81
|
+
ovenn update --rollback=ID Restore a completed update backup
|
|
82
|
+
ovenn info list-components List every component
|
|
83
|
+
ovenn info get-component Button Button details (slots, states, variants)
|
|
84
|
+
`);
|
|
85
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,141 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conscience-technology/ovenn",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.6.7",
|
|
4
|
+
"description": "Ovenn — 하이브리드 디자인 시스템 설치 · 온보딩 CLI (shadcn식 코드 생성기)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"assets/components/**/*.css",
|
|
8
|
+
"assets/app/**/*.css"
|
|
9
|
+
],
|
|
10
|
+
"bin": {
|
|
11
|
+
"ovenn": "./bin/ovenn.js"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"bin",
|
|
15
|
+
"src",
|
|
16
|
+
"assets",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./bin/ovenn.js"
|
|
22
|
+
},
|
|
23
|
+
"./assets/*": "./assets/*",
|
|
24
|
+
"./component-usage": "./src/utils/component-usage.js"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"bundle-assets": "node ./scripts/bundle-assets.mjs",
|
|
28
|
+
"prepublishOnly": "npm run bundle-assets"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=18"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [
|
|
34
|
+
"ovenn",
|
|
35
|
+
"design-system",
|
|
36
|
+
"cli",
|
|
37
|
+
"shadcn",
|
|
38
|
+
"nextjs",
|
|
39
|
+
"react",
|
|
40
|
+
"tokens"
|
|
41
|
+
],
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/Conscience-Technology/CTDS.git",
|
|
49
|
+
"directory": "packages/ovenn-cli"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": ">=18.2.0 <20.0.0",
|
|
53
|
+
"react-dom": ">=18.2.0 <20.0.0",
|
|
54
|
+
"next": ">=14.0.0 <17.0.0",
|
|
55
|
+
"@phosphor-icons/react": "^2.1.10",
|
|
56
|
+
"solar-icon-set": "^2.0.1",
|
|
57
|
+
"lucide-react": "^1.47.0",
|
|
58
|
+
"@radix-ui/react-popover": "^1.1.23",
|
|
59
|
+
"@radix-ui/react-select": "^2.3.7",
|
|
60
|
+
"@radix-ui/react-tooltip": "^1.2.16",
|
|
61
|
+
"@radix-ui/react-context-menu": "^2.3.7",
|
|
62
|
+
"@radix-ui/react-dropdown-menu": "^2.1.25",
|
|
63
|
+
"@radix-ui/react-dialog": "^1.2.0",
|
|
64
|
+
"@radix-ui/react-toast": "^1.2.24",
|
|
65
|
+
"@radix-ui/react-slot": "^1.3.3",
|
|
66
|
+
"@radix-ui/react-accordion": "^1.3.1",
|
|
67
|
+
"@radix-ui/react-slider": "^1.6.1",
|
|
68
|
+
"@dnd-kit/core": "^6.3.1",
|
|
69
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
70
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
71
|
+
"lottie-react": "^3.1.2",
|
|
72
|
+
"cmdk": "^1.1.1",
|
|
73
|
+
"react-aria-components": "^1.22.1",
|
|
74
|
+
"typescript": ">=5.0.0 <7.0.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"next": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"@phosphor-icons/react": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"solar-icon-set": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
86
|
+
"lucide-react": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
89
|
+
"@radix-ui/react-popover": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@radix-ui/react-select": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@radix-ui/react-tooltip": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@radix-ui/react-context-menu": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"@radix-ui/react-dropdown-menu": {
|
|
102
|
+
"optional": true
|
|
103
|
+
},
|
|
104
|
+
"@radix-ui/react-dialog": {
|
|
105
|
+
"optional": true
|
|
106
|
+
},
|
|
107
|
+
"@radix-ui/react-toast": {
|
|
108
|
+
"optional": true
|
|
109
|
+
},
|
|
110
|
+
"@radix-ui/react-slot": {
|
|
111
|
+
"optional": true
|
|
112
|
+
},
|
|
113
|
+
"@radix-ui/react-accordion": {
|
|
114
|
+
"optional": true
|
|
115
|
+
},
|
|
116
|
+
"@dnd-kit/core": {
|
|
117
|
+
"optional": true
|
|
118
|
+
},
|
|
119
|
+
"@dnd-kit/sortable": {
|
|
120
|
+
"optional": true
|
|
121
|
+
},
|
|
122
|
+
"@dnd-kit/utilities": {
|
|
123
|
+
"optional": true
|
|
124
|
+
},
|
|
125
|
+
"lottie-react": {
|
|
126
|
+
"optional": true
|
|
127
|
+
},
|
|
128
|
+
"cmdk": {
|
|
129
|
+
"optional": true
|
|
130
|
+
},
|
|
131
|
+
"@radix-ui/react-slider": {
|
|
132
|
+
"optional": true
|
|
133
|
+
},
|
|
134
|
+
"react-aria-components": {
|
|
135
|
+
"optional": true
|
|
136
|
+
},
|
|
137
|
+
"typescript": {
|
|
138
|
+
"optional": true
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import {listDesignExamples, getDesignExample} from "../utils/design-examples.js";
|
|
2
|
+
import {join} from "node:path";
|
|
3
|
+
import {checkComponentUsage,readUsageProject,loadTypeScript,assessComponentPlan} from '../utils/component-usage.js';
|
|
4
|
+
import {getAssetSources} from "../utils/assets.js";
|
|
5
|
+
import {workflowContext, workflowPolicy, assessWorkflow} from "../utils/design-workflow.js";
|
|
6
|
+
/**
|
|
7
|
+
* `ovenn info <subcommand> [args]` — MCP tool 을 CLI 로 호출.
|
|
8
|
+
*
|
|
9
|
+
* 쉘에서 직접 Ovenn 지식을 fetch — 공주 web/api/mcp HTTP endpoint 를 호출.
|
|
10
|
+
* dev 서버(localhost:3000)가 떠 있어야 작동.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* ovenn info list-components # find_components (query 없이 전체 카탈로그)
|
|
14
|
+
* ovenn info get-component Button [--sections=Do,Don't,Props]
|
|
15
|
+
* ovenn info find Button # find_components (query)
|
|
16
|
+
* ovenn info get-token primary
|
|
17
|
+
* ovenn info get-axis shape
|
|
18
|
+
* ovenn info get-guide [topic] # topic 생략 시 리스트
|
|
19
|
+
* ovenn info get-rules # PRINCIPLES
|
|
20
|
+
* ovenn info check-hardcoding --file=<path> [--ext=css]
|
|
21
|
+
*
|
|
22
|
+
* Options:
|
|
23
|
+
* --json raw JSON 으로 출력
|
|
24
|
+
* --endpoint=URL MCP endpoint (기본 http://localhost:3000/api/mcp)
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
28
|
+
import { callTool } from "../utils/mcp-client.js";
|
|
29
|
+
import { diagnose } from "../utils/doctor.js";
|
|
30
|
+
|
|
31
|
+
const DEFAULT_ENDPOINT = "http://localhost:3000/api/mcp";
|
|
32
|
+
|
|
33
|
+
function parseArgs(argv) {
|
|
34
|
+
const positional = [];
|
|
35
|
+
const flags = {};
|
|
36
|
+
for (const a of argv) {
|
|
37
|
+
const m = a.match(/^--([^=]+)(?:=(.*))?$/);
|
|
38
|
+
if (m) flags[m[1]] = m[2] ?? true;
|
|
39
|
+
else positional.push(a);
|
|
40
|
+
}
|
|
41
|
+
return { positional, flags };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const SUBCOMMANDS = {
|
|
45
|
+
"list-design-examples": {toolName:"list_design_examples", buildArgs:({positional, flags})=>({query:positional.join(" ") || undefined, scope:flags.scope || undefined})},
|
|
46
|
+
"get-design-example": {toolName:"get_design_example", buildArgs:({positional})=>({id:positional[0]})},
|
|
47
|
+
"check-component-usage": {toolName:"check_component_usage",buildArgs:({flags})=>JSON.parse(readFileSync(String(flags.project),"utf8"))},
|
|
48
|
+
"get-design-workflow": {toolName: "get_design_workflow", buildArgs: ({flags}) => ({scope: flags.scope || "page", role: flags.role || "generator"})},
|
|
49
|
+
"check-design-review": {toolName: "check_design_review", buildArgs: ({flags}) => ({record: JSON.parse(readFileSync(String(flags.file), "utf8")),phase:flags.phase||'complete'})},
|
|
50
|
+
"list-brand-sets": {toolName: "list_brand_sets", buildArgs: () => ({})},
|
|
51
|
+
"get-brand-set": {toolName: "get_brand_set", buildArgs: ({positional}) => ({id: positional[0]})},
|
|
52
|
+
"list-templates": {toolName: "list_templates", buildArgs: () => ({})},
|
|
53
|
+
"get-template": {toolName: "get_template", buildArgs: ({positional, flags}) => ({id: positional[0], locale: flags.locale ?? "ko", intent: flags.intent || undefined})},
|
|
54
|
+
"check-brand": {toolName: "check_brand_compliance", buildArgs: ({flags}) => flags.project ? JSON.parse(readFileSync(String(flags.project), "utf8")) : {code: readFileSync(String(flags.file), "utf8"), brandSetId: flags.brand ?? "core"}},
|
|
55
|
+
"list-components": {
|
|
56
|
+
toolName: "find_components",
|
|
57
|
+
buildArgs: () => ({}),
|
|
58
|
+
},
|
|
59
|
+
find: {
|
|
60
|
+
toolName: "find_components",
|
|
61
|
+
buildArgs: ({ positional, flags }) => ({
|
|
62
|
+
query: positional.join(" ") || undefined,
|
|
63
|
+
limit: flags.limit ? Number(flags.limit) : undefined,
|
|
64
|
+
}),
|
|
65
|
+
},
|
|
66
|
+
"get-component": {
|
|
67
|
+
toolName: "get_component",
|
|
68
|
+
buildArgs: ({ positional, flags }) => ({
|
|
69
|
+
name: positional[0],
|
|
70
|
+
includeSource: Boolean(flags.source),
|
|
71
|
+
detail: flags.detail || undefined,
|
|
72
|
+
sections: flags.sections ? String(flags.sections).split(",") : undefined,
|
|
73
|
+
}),
|
|
74
|
+
},
|
|
75
|
+
"get-token": {
|
|
76
|
+
toolName: "get_token",
|
|
77
|
+
buildArgs: ({ positional }) => ({ name: positional[0] }),
|
|
78
|
+
},
|
|
79
|
+
"get-axis": {
|
|
80
|
+
toolName: "get_axis",
|
|
81
|
+
buildArgs: ({ positional }) => ({ name: positional[0] }),
|
|
82
|
+
},
|
|
83
|
+
"get-guide": {
|
|
84
|
+
toolName: "get_guide",
|
|
85
|
+
buildArgs: ({ positional }) => (positional[0] ? { topic: positional[0] } : {}),
|
|
86
|
+
},
|
|
87
|
+
"get-rules": {
|
|
88
|
+
toolName: "get_rules",
|
|
89
|
+
buildArgs: () => ({}),
|
|
90
|
+
},
|
|
91
|
+
"check-hardcoding": {
|
|
92
|
+
toolName: "check_hardcoding",
|
|
93
|
+
buildArgs: ({ flags }) => {
|
|
94
|
+
const code = flags.file
|
|
95
|
+
? readFileSync(String(flags.file), "utf-8")
|
|
96
|
+
: flags.code;
|
|
97
|
+
if (!code) throw new Error("Pass either --code=... or --file=<path>");
|
|
98
|
+
return {
|
|
99
|
+
code: String(code),
|
|
100
|
+
ext: flags.ext ? String(flags.ext) : undefined,
|
|
101
|
+
};
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
function printInfoHelp() {
|
|
107
|
+
console.log(`
|
|
108
|
+
ovenn info <subcommand> [args]: call the Ovenn MCP endpoint from the shell
|
|
109
|
+
|
|
110
|
+
Requires the dev server to be running (localhost:3000). Use --endpoint=... for a different port.
|
|
111
|
+
|
|
112
|
+
Subcommands:
|
|
113
|
+
doctor [--json] Local installation diagnostics; no network
|
|
114
|
+
list-brand-sets / get-brand-set <id> Brand metadata and Core fallback
|
|
115
|
+
list-design-examples [query] [--scope=page-content] [--local] Approved references by scope
|
|
116
|
+
get-design-example <id> [--local] Selected reference source and context
|
|
117
|
+
list-templates / get-template <id> Exact Template metadata/install artifact
|
|
118
|
+
check-brand --file=... [--brand=core] AST diagnostics
|
|
119
|
+
check-brand --project=files.json File graph {files, entryFiles, brandSetId}
|
|
120
|
+
list-components Full component catalog
|
|
121
|
+
find <query> Natural-language search (e.g. "card inside a status column")
|
|
122
|
+
get-component <Name> [--source] [--sections=...] Component details and optional public source
|
|
123
|
+
get-token <name> Token declaration site and axis bindings
|
|
124
|
+
get-axis <name> Axis values and the tokens they drive
|
|
125
|
+
get-guide [topic] Guides (e.g. axes/shape, tokens/spacing, ASSEMBLY)
|
|
126
|
+
get-design-workflow [--scope=page] Common workflow and review schema
|
|
127
|
+
check-component-usage --local [--project=input.json] Actual component render use
|
|
128
|
+
check-design-review --file=workflow.json [--phase=preflight] Validate submitted evidence structure
|
|
129
|
+
get-rules Global PRINCIPLES
|
|
130
|
+
check-hardcoding --file=<path> [--ext=css] Quick CSS/TSX hardcoding scan
|
|
131
|
+
check-hardcoding --code="..." [--ext=css]
|
|
132
|
+
|
|
133
|
+
Options:
|
|
134
|
+
--local Workflow commands: read installed source docs without MCP/network
|
|
135
|
+
--scope=<scope> Design examples: app-shell | page-content | section | component
|
|
136
|
+
--timeout=15000 Bound total MCP request duration (milliseconds)
|
|
137
|
+
--json Print raw JSON
|
|
138
|
+
--endpoint=URL Override MCP endpoint (default ${DEFAULT_ENDPOINT})
|
|
139
|
+
|
|
140
|
+
Examples:
|
|
141
|
+
ovenn info list-components
|
|
142
|
+
ovenn info find "button with a dropdown arrow next to save"
|
|
143
|
+
ovenn info get-component Button --sections=Do,Don't
|
|
144
|
+
ovenn info get-token primary
|
|
145
|
+
ovenn info get-axis shape
|
|
146
|
+
ovenn info get-guide
|
|
147
|
+
ovenn info get-guide axes/shape
|
|
148
|
+
ovenn info get-guide ASSEMBLY
|
|
149
|
+
ovenn info check-hardcoding --file=web/components/Button/Button.module.css
|
|
150
|
+
`);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export async function run(argv) {
|
|
154
|
+
if (argv.length === 0 || argv[0] === "--help" || argv[0] === "-h") {
|
|
155
|
+
printInfoHelp();
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const parsed = parseArgs(argv);
|
|
160
|
+
const [sub, ...positional] = parsed.positional;
|
|
161
|
+
const { flags } = parsed;
|
|
162
|
+
if (sub === "doctor") {
|
|
163
|
+
const report = diagnose(process.cwd());
|
|
164
|
+
if (flags.json) console.log(JSON.stringify(report, null, 2));
|
|
165
|
+
else { console.log(`Ovenn doctor: ${report.valid ? "no errors" : "needs attention"}`); for (const item of report.diagnostics) console.log(`[${item.severity}] ${item.code}: ${item.message}\n ${item.fix}`); }
|
|
166
|
+
if (!report.valid) process.exitCode = 1;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (flags.local && ["list-design-examples", "get-design-example"].includes(sub)) {
|
|
170
|
+
const projectPrompts = join(process.cwd(), "prompts");
|
|
171
|
+
const root = existsSync(join(projectPrompts, "design-examples/catalog.json")) ? projectPrompts : getAssetSources().prompts;
|
|
172
|
+
const repoRoot = existsSync(join(root, "design-examples/sources")) ? undefined : join(root, "..");
|
|
173
|
+
const value = sub === "list-design-examples" ? listDesignExamples(root, positional.join(" "), {scope: flags.scope}) : getDesignExample(root, positional[0], {repoRoot});
|
|
174
|
+
console.log(JSON.stringify(value, null, 2));
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
if(flags.local && sub==="check-component-usage") {
|
|
178
|
+
const input=flags.project?JSON.parse(readFileSync(String(flags.project),"utf8")):readUsageProject(process.cwd(),{componentsPath:flags.components,planFile:flags.plan||".ovenn/component-plan.json"});
|
|
179
|
+
const report=checkComponentUsage(input,{ts:loadTypeScript(process.cwd())});console.log(JSON.stringify(report,null,2));if(!report.valid||!report.complete)process.exitCode=1;return;
|
|
180
|
+
}
|
|
181
|
+
if(flags.local && ["get-design-workflow","check-design-review"].includes(sub)) {
|
|
182
|
+
const root=existsSync(join(process.cwd(),"prompts/ASSEMBLY.md"))?join(process.cwd(),"prompts"):getAssetSources().prompts;
|
|
183
|
+
const assembly=readFileSync(join(root,"ASSEMBLY.md"),"utf8");
|
|
184
|
+
if(sub==='check-design-review'&&flags.phase==='preflight'){const registry=JSON.parse(readFileSync(join(getAssetSources().components,'component-registry.json'),'utf8'));const report=assessComponentPlan(JSON.parse(readFileSync(String(flags.file),'utf8')),registry);console.log(JSON.stringify({...report,evidence:'client-supplied; no UI write ordering is certified'},null,2));if(!report.valid)process.exitCode=1;return;}
|
|
185
|
+
const value=sub==="get-design-workflow"?workflowContext(assembly,readFileSync(join(root,"WORKFLOW_DESIGN.md"),"utf8"),{scope:flags.scope||"page",role:flags.role||"generator"}):{...assessWorkflow(JSON.parse(readFileSync(String(flags.file),"utf8")),workflowPolicy(assembly)),evidence:"client-supplied; structural validation only"};
|
|
186
|
+
console.log(JSON.stringify(value,null,2));return;
|
|
187
|
+
}
|
|
188
|
+
const def = SUBCOMMANDS[sub];
|
|
189
|
+
if (!def) {
|
|
190
|
+
console.error(`unknown subcommand: ${sub}`);
|
|
191
|
+
console.error("");
|
|
192
|
+
printInfoHelp();
|
|
193
|
+
process.exit(1);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const endpoint = flags.endpoint ? String(flags.endpoint) : DEFAULT_ENDPOINT;
|
|
197
|
+
const args = def.buildArgs({ positional, flags });
|
|
198
|
+
|
|
199
|
+
const timeout = flags.timeout ? Number(flags.timeout) : 15000;
|
|
200
|
+
if (!Number.isFinite(timeout) || timeout <= 0 || timeout > 120000) throw new Error("--timeout must be between 1 and 120000 milliseconds");
|
|
201
|
+
const result = await callTool(endpoint, def.toolName, args, {timeout});
|
|
202
|
+
if(sub==='check-component-usage'){
|
|
203
|
+
try{const report=JSON.parse(result.content.find(item=>item.type==='text').text);if(!report.valid||!report.complete)process.exitCode=1;}catch{process.exitCode=1;}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (flags.json) {
|
|
207
|
+
console.log(JSON.stringify(result, null, 2));
|
|
208
|
+
if (result.isError) process.exit(1);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// MCP tool 응답은 { content: [{ type: "text", text }], isError? }
|
|
213
|
+
for (const c of result.content ?? []) {
|
|
214
|
+
if (c.type === "text") console.log(c.text);
|
|
215
|
+
}
|
|
216
|
+
if (result.isError) process.exit(1);
|
|
217
|
+
}
|