@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.
@@ -2,7 +2,7 @@
2
2
  description:
3
3
  alwaysApply: true
4
4
  enabled: true
5
- updatedAt: 2026-03-05T12:00:00.000Z
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: 当用户说"初始化项目"、"新建项目"、"搭建项目"、"项目初始化"时触发,自动完成 React + Vite + 团队设计系统的完整初始化。
2
+ description: 当用户提到任何与开始使用设计系统相关的意图时触发,包括但不限于:"初始化项目"、"新建项目"、"搭建项目"、"开始"、"我要开始"、"帮我搭环境"、"怎么用"、"怎么开始"、"从零开始"、"我是新来的"、"第一次用"、"帮我配置"、"搭建开发环境"。注意:用户的电脑可能是全新的,本地可能没有 Node.js,没有任何项目文件,用户也可能完全不懂编程。
3
3
  alwaysApply: false
4
4
  enabled: true
5
- updatedAt: 2026-03-02T10:03:20.525Z
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
- 「项目已初始化完成!已加载完整的 Demo 项目,包含多个示例页面。
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
- 你可以在这些 Demo 的基础上修改,或者描述你想要的新页面。」
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 = "1.3.2";
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 = "1.3.2";
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.js CHANGED
@@ -3761,7 +3761,7 @@ function GridSystemDocs() {
3761
3761
  }
3762
3762
 
3763
3763
  // index.ts
3764
- var VERSION = "1.3.2";
3764
+ var VERSION = "1.3.4";
3765
3765
 
3766
3766
  exports.ActionSheet = ActionSheet;
3767
3767
  exports.BottomActionButtons = BottomActionButtons;