@lmy54321/design-system 1.3.2 → 1.3.4
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/.codebuddy/rules/design-system.mdc +10 -2
- package/.codebuddy/rules/init-project.mdc +18 -10
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
description:
|
|
3
3
|
alwaysApply: true
|
|
4
4
|
enabled: true
|
|
5
|
-
updatedAt: 2026-03-
|
|
5
|
+
updatedAt: 2026-03-08T12:00:00.000Z
|
|
6
6
|
provider:
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -12,7 +12,14 @@ provider:
|
|
|
12
12
|
|
|
13
13
|
## 用户画像与交互原则
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> **核心原则:本设计系统的目标用户是纯设计师,没有编程背景。他们的电脑可能是全新的,本地没有任何项目文件,也没有开发环境(Node.js 等)。**
|
|
16
|
+
|
|
17
|
+
### 环境假设(重要)
|
|
18
|
+
|
|
19
|
+
- **全新电脑**:不要假设用户已有项目文件、已安装 Node.js 或任何开发工具
|
|
20
|
+
- **零编程知识**:用户不知道什么是"命令行"、"npm"、"git"
|
|
21
|
+
- **纯对话驱动**:用户只会通过自然语言与 AI 对话,所有技术操作必须 AI 自动完成
|
|
22
|
+
- **首次接触时**:如果检测到当前目录没有 `package.json`,主动询问"要不要帮你搭建项目?"然后自动执行初始化流程
|
|
16
23
|
|
|
17
24
|
### 必须遵守的交互规范
|
|
18
25
|
|
|
@@ -20,6 +27,7 @@ provider:
|
|
|
20
27
|
2. **零代码门槛** — 不要让用户手动编辑代码文件、配置文件或 JSON
|
|
21
28
|
3. **直观的交互方式** — 优先使用拖拽、点击、下拉选择等图形化操作
|
|
22
29
|
4. **友好的文案** — 避免技术术语(如 "npm"、"diff"、"merge"),使用设计师能理解的语言
|
|
30
|
+
5. **主动引导** — 不要等用户说出精确的技术指令,根据意图自动判断并执行
|
|
23
31
|
|
|
24
32
|
### AI 生成代码时的注意事项
|
|
25
33
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: 当用户提到任何与开始使用设计系统相关的意图时触发,包括但不限于:"初始化项目"、"新建项目"、"搭建项目"、"开始"、"我要开始"、"帮我搭环境"、"怎么用"、"怎么开始"、"从零开始"、"我是新来的"、"第一次用"、"帮我配置"、"搭建开发环境"。注意:用户的电脑可能是全新的,本地可能没有 Node.js,没有任何项目文件,用户也可能完全不懂编程。
|
|
3
3
|
alwaysApply: false
|
|
4
4
|
enabled: true
|
|
5
|
-
updatedAt: 2026-03-
|
|
5
|
+
updatedAt: 2026-03-08T12:00:00.000Z
|
|
6
6
|
provider:
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 项目一键初始化流程
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
> **核心原则:假设用户的电脑是全新的,没有任何开发环境,用户也不懂编程。所有步骤必须 AI 全自动完成,不让用户做任何手动操作。**
|
|
12
|
+
|
|
13
|
+
当用户表达任何"想开始用"、"帮我搭"、"初始化"、"新建"、"从头开始"等意图时,按以下步骤自动执行,**无需用户确认每一步**:
|
|
12
14
|
|
|
13
15
|
## 环境要求
|
|
14
16
|
|
|
@@ -126,13 +128,19 @@ npm run dev
|
|
|
126
128
|
```
|
|
127
129
|
|
|
128
130
|
### 6. 完成后告诉用户
|
|
129
|
-
告诉用户:
|
|
130
131
|
|
|
131
|
-
|
|
132
|
+
用友好的语言告诉用户(不要出现任何技术术语):
|
|
133
|
+
|
|
134
|
+
「一切准备就绪!我已经帮你搭好了整个项目。
|
|
135
|
+
|
|
136
|
+
浏览器应该已经自动打开了预览页面,你可以看到几个示例页面。
|
|
137
|
+
|
|
138
|
+
**接下来你可以直接告诉我你想做什么,比如:**
|
|
139
|
+
- "帮我做一个地图首页"
|
|
140
|
+
- "我想看看有哪些组件可以用"
|
|
141
|
+
- "做一个餐厅列表页面"
|
|
142
|
+
- "修改一下首页的标题"
|
|
132
143
|
|
|
133
|
-
|
|
134
|
-
- 开发者入口(默认首页):http://localhost:5173/
|
|
135
|
-
- Demo 手机预览:http://localhost:5173/demo
|
|
136
|
-
- 组件库:http://localhost:5173/components
|
|
144
|
+
直接用你自己的话描述就行,我会自动帮你完成。」
|
|
137
145
|
|
|
138
|
-
|
|
146
|
+
> **注意:** 不要在完成消息中展示 URL 链接、端口号、命令行等技术信息。如果用户需要手动打开浏览器,只说"在浏览器里打开 localhost:5173"即可。
|
package/dist/index.d.mts
CHANGED
|
@@ -422,6 +422,6 @@ declare function GridSystemDocs(): react_jsx_runtime.JSX.Element;
|
|
|
422
422
|
|
|
423
423
|
declare function cn(...inputs: ClassValue[]): string;
|
|
424
424
|
|
|
425
|
-
declare const VERSION
|
|
425
|
+
declare const VERSION: string;
|
|
426
426
|
|
|
427
427
|
export { ActionSheet, type ActionSheetVariant, BottomActionButtons, type BottomActionButtonsProps, type BottomActionMode, BottomNavigationBar, BottomSheet, BottomSheetOption, type BottomSheetOptionProps, type BottomSheetProps, BottomSheetShareItem, type BottomSheetShareItemProps, BottomToolbar, type BottomToolbarProps, Btn, type BtnProps, type BtnSize, type BtnVariant, type BubbleAlignment, type BubblePlacement, BubbleTip, CardDemo, DRAWER_STATES, Dialog, type DialogProps, type DialogVariant, DraggablePanel, EmptyState, type EmptyStateProps, type EmptyStateVariant, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, type IconFontProps, IconGallery, type IconName, ImageWithFallback, Loading, type LoadingProps, NewsItem, type NewsItemProps, type NotificationAction, NotificationBar, type NotificationVariant, POIListItem, PoiItem, type PoiItemProps, Push, type PushProps, SearchBox, type SearchBoxMode, type SearchBoxProps, type SearchBoxVariant, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type ShareItemType, StatGrid, type StatGridProps, type StatItem, Switch, type SwitchProps, type TabId, Tag, type TagProps, TencentMap, Toast, type ToastProps, type ToolbarMode, TopToolbar, type TopToolbarProps, TypographyDocs, VERSION, cn, hasFilledVariant };
|
package/dist/index.d.ts
CHANGED
|
@@ -422,6 +422,6 @@ declare function GridSystemDocs(): react_jsx_runtime.JSX.Element;
|
|
|
422
422
|
|
|
423
423
|
declare function cn(...inputs: ClassValue[]): string;
|
|
424
424
|
|
|
425
|
-
declare const VERSION
|
|
425
|
+
declare const VERSION: string;
|
|
426
426
|
|
|
427
427
|
export { ActionSheet, type ActionSheetVariant, BottomActionButtons, type BottomActionButtonsProps, type BottomActionMode, BottomNavigationBar, BottomSheet, BottomSheetOption, type BottomSheetOptionProps, type BottomSheetProps, BottomSheetShareItem, type BottomSheetShareItemProps, BottomToolbar, type BottomToolbarProps, Btn, type BtnProps, type BtnSize, type BtnVariant, type BubbleAlignment, type BubblePlacement, BubbleTip, CardDemo, DRAWER_STATES, Dialog, type DialogProps, type DialogVariant, DraggablePanel, EmptyState, type EmptyStateProps, type EmptyStateVariant, GridSystemDocs, ICON_GROUPS, ICON_NAMES, IcExpand, IcPlan, IconFont, type IconFontProps, IconGallery, type IconName, ImageWithFallback, Loading, type LoadingProps, NewsItem, type NewsItemProps, type NotificationAction, NotificationBar, type NotificationVariant, POIListItem, PoiItem, type PoiItemProps, Push, type PushProps, SearchBox, type SearchBoxMode, type SearchBoxProps, type SearchBoxVariant, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type ShareItemType, StatGrid, type StatGridProps, type StatItem, Switch, type SwitchProps, type TabId, Tag, type TagProps, TencentMap, Toast, type ToastProps, type ToolbarMode, TopToolbar, type TopToolbarProps, TypographyDocs, VERSION, cn, hasFilledVariant };
|