@quicktvui/ai 1.0.3 → 1.0.5

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.
Files changed (62) hide show
  1. package/README.md +99 -19
  2. package/USAGE.md +74 -0
  3. package/package.json +1 -1
  4. package/postinstall.js +10 -2
  5. package/rules/.clinerules +7 -3
  6. package/rules/.cursorrules +9 -4
  7. package/rules/.docs/examples/css/pseudo-classes/v-pseudo.vue +57 -0
  8. package/rules/.docs/examples/guide/slot/lifecycle-hooks.vue +108 -0
  9. package/rules/.docs/examples/module/key/component-event.vue +36 -0
  10. package/rules/.docs/examples/module/key/es-back-hooks.vue +30 -0
  11. package/rules/.docs/examples/module/key/es-dispatch-hooks.vue +36 -0
  12. package/rules/.docs/examples/module/key/es-event-hooks.vue +31 -0
  13. package/rules/.docs/examples/module/page/es-app-lifecycle-hooks.vue +85 -0
  14. package/rules/.docs/examples/module/page/es-page-lifecycle-hooks.vue +78 -0
  15. package/rules/.docs/examples/module/page/es-page-state-hooks.vue +35 -0
  16. package/rules/.docs/zh-CN/component/button.md +3 -3
  17. package/rules/.docs/zh-CN/component/column.md +3 -0
  18. package/rules/.docs/zh-CN/component/html/installation.md +8 -2
  19. package/rules/.docs/zh-CN/component/html/video.md +1 -0
  20. package/rules/.docs/zh-CN/component/media-series.md +3 -3
  21. package/rules/.docs/zh-CN/component/overview.md +1 -3
  22. package/rules/.docs/zh-CN/component/poster.md +1 -1
  23. package/rules/.docs/zh-CN/component/row.md +2 -0
  24. package/rules/.docs/zh-CN/component/text.md +1 -1
  25. package/rules/.docs/zh-CN/component/waterfall_structure.md +266 -0
  26. package/rules/.docs/zh-CN/css/animation-transition/overview.md +23 -0
  27. package/rules/.docs/zh-CN/css/auto/overview.md +18 -0
  28. package/rules/.docs/zh-CN/css/cheat-sheet.md +19 -0
  29. package/rules/.docs/zh-CN/css/color/overview.md +20 -0
  30. package/rules/.docs/zh-CN/css/function/overview.md +27 -0
  31. package/rules/.docs/zh-CN/css/installation.md +53 -0
  32. package/rules/.docs/zh-CN/css/introduction.md +33 -0
  33. package/rules/.docs/zh-CN/css/layout/background.md +21 -0
  34. package/rules/.docs/zh-CN/css/layout/display.md +1 -2
  35. package/rules/.docs/zh-CN/css/layout-model/overview.md +21 -0
  36. package/rules/.docs/zh-CN/css/media/overview.md +27 -0
  37. package/rules/.docs/zh-CN/css/pseudo-classes/overview.md +79 -0
  38. package/rules/.docs/zh-CN/css/selector/overview.md +90 -0
  39. package/rules/.docs/zh-CN/css/size/overview.md +28 -0
  40. package/rules/.docs/zh-CN/css/specificity-inheritance/overview.md +21 -0
  41. package/rules/.docs/zh-CN/css/style/font-family.md +13 -4
  42. package/rules/.docs/zh-CN/css/transform/overview.md +23 -0
  43. package/rules/.docs/zh-CN/css/variable/overview.md +21 -0
  44. package/rules/.docs/zh-CN/guide/ai/ai-assistant.md +74 -0
  45. package/rules/.docs/zh-CN/guide/faq/layout-style-faq.md +3 -3
  46. package/rules/.docs/zh-CN/guide/key/back.md +31 -0
  47. package/rules/.docs/zh-CN/guide/key/dispatch-key-event.md +34 -1
  48. package/rules/.docs/zh-CN/guide/key/key-event.md +54 -6
  49. package/rules/.docs/zh-CN/guide/layout/adapter.md +0 -2
  50. package/rules/.docs/zh-CN/guide/layout/layout.md +2 -9
  51. package/rules/.docs/zh-CN/guide/layout/style.md +6 -33
  52. package/rules/.docs/zh-CN/guide/layout/theming.md +24 -139
  53. package/rules/.docs/zh-CN/guide/page/application-lifecycle.md +28 -4
  54. package/rules/.docs/zh-CN/guide/page/page-lifecycle.md +37 -9
  55. package/rules/.docs/zh-CN/guide/page/page-state.md +24 -1
  56. package/rules/.docs/zh-CN/guide/slot/lifecycle.md +27 -1
  57. package/rules/.github/copilot-instructions.md +6 -2
  58. package/rules/.windsurfrules +7 -3
  59. package/rules/AGENTS.md +7 -3
  60. package/rules/AI_HANDOFF.md +6 -6
  61. package/rules/CLAUDE.md +8 -4
  62. package/rules/GEMINI.md +9 -5
package/rules/AGENTS.md CHANGED
@@ -6,14 +6,14 @@
6
6
 
7
7
  **AI MUST refer to the official documentation and source code below BEFORE generating any code. NEVER hallucinate component names, attribute names, or APIs. These are the ONLY authorities.**
8
8
 
9
- 1. **Local Documentation (PRIMARY)**: The `.docs/` folder in the project root. Contains detailed MD documentation for all components, CSS, and native modules. **AI MUST use `grep_search` or `read_file` to retrieve relevant content from the `.docs/` directory before generating code.**
9
+ 1. **Local Documentation (PRIMARY)**: The `node_modules/@quicktvui/ai/rules/.docs/` folder. Contains detailed MD documentation for all components, CSS, and native modules. **AI MUST use `grep_search` or `read_file` to retrieve relevant content from the `node_modules/@quicktvui/ai/rules/.docs/` directory before generating code.**
10
10
  2. **Official Docs**: https://quicktvui.com (390+ docs)
11
11
  3. **Core Library Samples**: https://github.com/quicktvui/quicktvui.git (Core library + samples)
12
12
  4. **Cross-platform Framework Samples**: https://github.com/quicktvui/es-vue3.git (Cross-platform framework + samples)
13
13
  5. **Best Practice App**: https://github.com/quicktvui/hellotv.git (Complete video app)
14
14
 
15
15
  **STRICT RULES:**
16
- - **VERIFY CAPABILITIES FIRST**: Before implementing features like "video playback," search the `.docs/` directory to verify component capabilities. DO NOT assume web behavior. **For example, `qt-web-view` does NOT support video playback; you MUST use the native `es-video-player` and `es-player-manager` components.**
16
+ - **VERIFY CAPABILITIES FIRST**: Before implementing features like "video playback," search the `node_modules/@quicktvui/ai/rules/.docs/` directory to verify component capabilities. DO NOT assume web behavior. **For example, `qt-web-view` does NOT support video playback; you MUST use the native `es-video-player` and `es-player-manager` components.**
17
17
  - **NOT A BROWSER & NO HTML**: **This framework does NOT support HTML. Standard HTML tags (like `p`, `img`, `a`, `ul`, `li`, `h1`) are STRICTLY PROHIBITED. It does NOT support `window`, `document` (DOM), or DOM APIs. You must exclusively use framework tags (like `qt-text`, `qt-image`) and Vue `ref`s.**
18
18
  - **NO HALLUCINATED TAGS**: e.g. `qt-web` is wrong, it is `qt-web-view`.
19
19
  - **NO HALLUCINATED APIs**: e.g. `onBack` is wrong, it must be `onBackPressed`.
@@ -38,6 +38,10 @@ AI assistants frequently fail by applying traditional Web paradigms to QuickTVUI
38
38
  2. **List Components (`qt-list-view`, `qt-grid-view`, `qt-waterfall`)**:
39
39
  * You MUST set `listenBoundEvent="true"` and listen to `@item-bind`.
40
40
  * The "Loading More" template `type` **MUST** be `1002`. The "End of List" template `type` **MUST** be `1003`.
41
+ * **Waterfall Critical Rules (qt-waterfall)**:
42
+ * Custom item root nodes **MUST** include `layout="${layout}"` and `flexStyle="${style}"` to avoid stacking/overlapping.
43
+ * Local image paths in waterfall data **MUST** use the `file://` protocol (e.g., `file://${icon}`).
44
+ * Refer to `node_modules/@quicktvui/ai/rules/.docs/zh-CN/component/waterfall_structure.md` for full layout logic.
41
45
  3. **Zero HTML & Zero DOM**:
42
46
  * **This is NOT a browser.** It compiles to Hippy Native Android Views.
43
47
  * **Banned Tags**: Standard HTML tags (`<p>`, `<img>`, `<ul>`, `<li>`, `<a>`, `<h1>`, `<button>`) will **CRASH** the app. Use only `div`, `span`, or `qt-*` tags.
@@ -158,7 +162,7 @@ Android clips child views outside parent bounds by default. When using `focusSca
158
162
 
159
163
  当用户通过以下方式表达困惑时:
160
164
  - **关键词触发**:当用户提到“问题上报”、“碰到问题”、“反馈”、“Bug 反馈”、“还是没改好”、“运行报错”、“API 报错”等。
161
- - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `.docs` 规范但无法在用户端运行。
165
+ - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `node_modules/@quicktvui/ai/rules/.docs/` 规范但无法在用户端运行。
162
166
 
163
167
  **AI 执行协议 (Execution Protocol):**
164
168
  1. **脱敏诊断 (Sanitized Diagnosis)**:
@@ -6,14 +6,14 @@
6
6
 
7
7
  **AI 在生成任何代码前,必须严格参考以下权威来源,严禁凭空想象任何组件名、属性名或 API。这是所有开发工作的唯一依据。**
8
8
 
9
- 1. **本地文档 (PRIMARY)**:项目根目录下的 `.docs/` 文件夹。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `.docs/` 目录中的相关内容。**
9
+ 1. **本地文档 (PRIMARY)**:`node_modules/@quicktvui/ai/rules/.docs/` 目录。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `node_modules/@quicktvui/ai/rules/.docs/` 目录中的相关内容。**
10
10
  2. **官方文档**:https://quicktvui.com (包含约 390 个详细文档)
11
11
  3. **核心库示例**:https://github.com/quicktvui/quicktvui.git (Core library + samples)
12
12
  4. **跨平台框架示例**:https://github.com/quicktvui/es-vue3.git (Cross-platform framework + samples)
13
13
  5. **最佳实践应用**:https://github.com/quicktvui/hellotv.git (Complete video app)
14
14
 
15
15
  **要求:**
16
- - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
16
+ - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `node_modules/@quicktvui/ai/rules/.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
17
17
  - **非浏览器与无 HTML 环境**:**本框架绝对不支持标准 HTML 标签(如 `p`, `img`, `a`, `ul`, `li`, `h1` 等),严禁在模板中使用!绝对不支持 `window`、`document` (DOM) 对象或任何 DOM 操作 API。必须使用框架专属标签(如 `qt-text`, `qt-image`)和 Vue `ref`。**
18
18
  - **严禁自造标签**:如 `qt-web` 是错的,官方示例中是 `qt-web-view`。
19
19
  - **严禁自造 API**:如 `onBack` 是错的,必须是 `onBackPressed`。
@@ -64,7 +64,7 @@ QuickTVUI 是基于 Vue 3 的 Android TV/大屏端 UI 框架,运行在 Hippy-b
64
64
 
65
65
  1. 自动理解 QuickTVUI 框架的核心概念和约束
66
66
  2. 生成符合框架规范的 Vue 代码(焦点系统、CSS 子集、TV 交互)
67
- 3. 所有配置文件自包含、可移植,拷贝到任何 QuickTVUI 应用项目即可使用
67
+ 3. 所有配置文件引用 `@quicktvui/ai` 包内的文档库,安装包后即可使用。
68
68
 
69
69
  ## 三、已创建的文件清单
70
70
 
@@ -134,9 +134,9 @@ CSS 属性列表由框架作者直接提供,优先级高于文档推断。已
134
134
 
135
135
  ### 1. 自包含 vs 引用本地文档路径
136
136
 
137
- 最初版本引用了 `docs/zh-CN/component/<name>.md` 等本地路径,但这些路径只存在于框架源码仓库中,不存在于用户的应用项目中。
137
+ 最初版本引用了 `docs/zh-CN/component/<name>.md` 等本地路径,但这些路径只存在于框架源码仓库中,不存 在于用户的应用项目中。
138
138
 
139
- **最终方案**:所有 AI 指令文件完全自包含,将核心知识直接嵌入文件内容,不依赖任何本地文件路径。用户只需将文件拷贝到自己的项目根目录即可使用。
139
+ **最终方案**:AI 指令文件引用 `node_modules/@quicktvui/ai/rules/.docs/` 目录。用户通过安装 `@quicktvui/ai` 包即可获得这些文档。这样既保持了知识的实时性,又避免了在用户项目根目录下生成大量冗余文件。
140
140
 
141
141
  ### 2. 分层详略
142
142
 
@@ -354,7 +354,7 @@ onESCreate(params) → onESStart() → onESResume() → onESPause() → onESStop
354
354
  3. 根据"后续改进建议"选择优先级高的任务开始改进
355
355
 
356
356
  4. 改进时的关键原则:
357
- - 保持所有文件自包含、可移植
357
+ - 保持配置文件引用的路径正确、可移植
358
358
  - 从 `docs/zh-CN/` 提取知识,不要编造
359
359
  - 使用用户提供的权威 CSS 属性列表
360
360
  - 参考 3 个外部代码仓库的实际代码风格
package/rules/CLAUDE.md CHANGED
@@ -6,18 +6,18 @@
6
6
 
7
7
  **AI 在生成代码前,必须严格参考以下权威来源,严禁凭空想象任何组件名、属性名或 API。这是所有代码的唯一依据。**
8
8
 
9
- 1. **本地文档 (PRIMARY)**:项目根目录下的 `.docs/` 文件夹。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `.docs/` 目录中的相关内容。**
9
+ 1. **本地文档 (PRIMARY)**:`node_modules/@quicktvui/ai/rules/.docs/` 目录。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `node_modules/@quicktvui/ai/rules/.docs/` 目录中的相关内容。**
10
10
  2. **官方文档**:https://quicktvui.com (官网 390+ 篇详细文档)
11
11
  3. **核心库示例**:https://github.com/quicktvui/quicktvui.git (Core library + samples)
12
12
  4. **跨平台框架示例**:https://github.com/quicktvui/es-vue3.git (Cross-platform framework + samples)
13
13
  5. **最佳实践应用**:https://github.com/quicktvui/hellotv.git (Complete video app)
14
14
 
15
15
  **要求:**
16
- - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
16
+ - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `node_modules/@quicktvui/ai/rules/.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
17
17
  - **非浏览器与无 HTML 环境**:**本框架绝对不支持标准 HTML 标签(如 `p`, `img`, `a`, `ul`, `li`, `h1` 等),严禁在模板中使用!绝对不支持 `window`、`document` (DOM) 对象或任何 DOM 操作 API。必须使用框架专属标签(如 `qt-text`, `qt-image`)和 Vue `ref`。**
18
18
  - **严禁自造标签**:如 `qt-web` 是错的,官方示例中是 `qt-web-view`。
19
19
  - **严禁自造 API**:如 `onBack` 是错的,必须是 `onBackPressed`。
20
- - **参考优先**:遇到不确定的组件用法,必须先在上述仓库中搜索同名组件的实际用法。
20
+ - **参考优先**:遇到不确定的组件用法,必须先在上述仓库或 `node_modules/@quicktvui/ai/rules/.docs/` 中搜索同名组件的实际用法。
21
21
 
22
22
  ## 快速创建项目 (Scaffolding)
23
23
 
@@ -38,6 +38,10 @@ AI 在编写业务逻辑时,极易带入传统 Web 开发习惯导致严重报
38
38
  2. **长列表组件 (`qt-list-view`, `qt-grid-view`, `qt-waterfall`)**:
39
39
  * 必须设置 `listenBoundEvent="true"` 并监听 `@item-bind`。
40
40
  * 列表的加载更多模版 `type` **必须**是 `1002`,底线提示 `type` **必须**是 `1003`。
41
+ * **Waterfall 瀑布流硬约束**:
42
+ * 自定义 Item 根节点 **必须** 包含 `layout="${layout}"` 和 `flexStyle="${style}"`,否则条目会堆叠重合。
43
+ * 瀑布流数据中的本地图片路径 **必须** 补充 `file://` 协议头(如 ``file://${icon}``)。
44
+ * 详细布局逻辑参考:`node_modules/@quicktvui/ai/rules/.docs/zh-CN/component/waterfall_structure.md`。
41
45
  3. **零 HTML 与 零 DOM 环境**:
42
46
  * **这不是浏览器!** 底层是 Hippy 渲染的 Android Native View。
43
47
  * **禁用标签**:`<p>`, `<img>`, `<ul>`, `<li>`, `<a>`, `<h1>`, `<button>` 等标准 HTML 标签**全部禁用**。只允许使用 `div`, `span` 或 `qt-` 开头的专属标签。
@@ -182,7 +186,7 @@ Android 默认裁切超出父容器边界的子元素。TV 端使用 `focusScale
182
186
 
183
187
  当用户通过以下方式表达困惑时:
184
188
  - **关键词触发**:用户提到“问题上报”、“碰到问题”、“反馈”、“Bug 反馈”、“还是没改好”、“运行报错”、“API 报错”等。
185
- - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `.docs` 规范但无法在用户端运行。
189
+ - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `node_modules/@quicktvui/ai/rules/.docs/` 规范但无法在用户端运行。
186
190
 
187
191
  **AI 执行协议:**
188
192
  1. **脱敏诊断 (Sanitized Diagnosis)**:
package/rules/GEMINI.md CHANGED
@@ -6,18 +6,18 @@
6
6
 
7
7
  **AI 在生成代码前,必须严格参考以下权威来源,严禁凭空想象任何组件名、属性名或 API。这是所有代码的唯一依据。**
8
8
 
9
- 1. **本地文档 (PRIMARY)**:项目根目录下的 `.docs/` 文件夹。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `.docs/` 目录中的相关内容。**
9
+ 1. **本地文档 (PRIMARY)**:`node_modules/@quicktvui/ai/rules/.docs/` 目录。包含所有组件、CSS、原生模块的详细 MD 文档。**AI 必须在生成代码前使用 `grep_search` 或 `read_file` 检索 `node_modules/@quicktvui/ai/rules/.docs/` 目录中的相关内容。**
10
10
  2. **官方文档**:https://quicktvui.com (官网 390+ 篇详细文档)
11
11
  3. **核心库示例**:https://github.com/quicktvui/quicktvui.git (Core library + samples)
12
12
  4. **跨平台框架示例**:https://github.com/quicktvui/es-vue3.git (Cross-platform framework + samples)
13
13
  5. **最佳实践应用**:https://github.com/quicktvui/hellotv.git (Complete video app)
14
14
 
15
15
  **要求:**
16
- - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
17
- - **非浏览器与无 HTML 环境**:**本框架绝对不支持标准 HTML 标签(如 `p`, `img`, `a`, `ul`, `li`, `h1` 等),严禁在模板中使用!绝对不支持 `window`、`document` (DOM) 对象或任何 DOM 操作 API。必须使用框架专属标签(如 `qt-text`, `qt-image`)和 Vue `ref`。**
16
+ - **检索与能力验证优先**:在实现任何功能(如“视频播放”)前,必须先在 `node_modules/@quicktvui/ai/rules/.docs/` 目录中检索相关文档,验证组件是否支持该功能。切勿想当然!**例如:`qt-web-view` 绝对不支持视频播放,视频播放必须使用框架提供的专用视频组件和管理器(如 `es-video-player` 和 `es-player-manager`)。**
17
+ - **非浏览器与无 HTML 环境**:**本框架绝对不支持标准 HTML 标签(如 `p`, `img`, `a`, `ul`, `li`, `h1` 等),严禁在模板中使用!绝对不支持 `window`、`document` (DOM) 对象或任何 DOM 操作 API。必须使用框架专属标签(如 `qt-text`, `qt-image`) and Vue `ref`。**
18
18
  - **严禁自造标签**:如 `qt-web` 是错的,官方示例中是 `qt-web-view`。
19
19
  - **严禁自造 API**:如 `onBack` 是错的,必须是 `onBackPressed`。
20
- - **参考优先**:遇到不确定的组件用法,必须先在上述仓库或本地 `.docs` 中搜索同名组件的实际用法。
20
+ - **参考优先**:遇到不确定的组件用法,必须先在上述仓库或 `node_modules/@quicktvui/ai/rules/.docs/` 中搜索同名组件的实际用法。
21
21
 
22
22
  ## 快速创建项目 (Scaffolding)
23
23
 
@@ -38,6 +38,10 @@ AI 在编写业务逻辑时,极易带入传统 Web 开发习惯导致严重报
38
38
  2. **长列表组件 (`qt-list-view`, `qt-grid-view`, `qt-waterfall`)**:
39
39
  * 必须设置 `listenBoundEvent="true"` 并监听 `@item-bind`。
40
40
  * 列表的加载更多模版 `type` **必须**是 `1002`,底线提示 `type` **必须**是 `1003`。
41
+ * **Waterfall 瀑布流硬约束**:
42
+ * 自定义 Item 根节点 **必须** 包含 `layout="${layout}"` 和 `flexStyle="${style}"`,否则条目会堆叠重合。
43
+ * 瀑布流数据中的本地图片路径 **必须** 补充 `file://` 协议头(如 ``file://${icon}``)。
44
+ * 详细布局逻辑参考:`node_modules/@quicktvui/ai/rules/.docs/zh-CN/component/waterfall_structure.md`。
41
45
  3. **零 HTML 与 零 DOM 环境**:
42
46
  * **这不是浏览器!** 底层是 Hippy 渲染的 Android Native View。
43
47
  * **禁用标签**:`<p>`, `<img>`, `<ul>`, `<li>`, `<a>`, `<h1>`, `<button>` 等标准 HTML 标签**全部禁用**。只允许使用 `div`, `span` 或 `qt-` 开头的专属标签。
@@ -163,7 +167,7 @@ Android clips child views outside parent bounds by default. When using `focusSca
163
167
 
164
168
  当用户通过以下方式表达困惑时:
165
169
  - **关键词触发**:用户提到“问题上报”、“碰到问题”、“反馈”、“Bug 反馈”、“还是没改好”、“运行报错”、“API 报错”等。
166
- - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `.docs` 规范但无法在用户端运行。
170
+ - **自动检测触发**:同一段代码逻辑在 3 次修复后仍然报错,或 AI 确认生成的代码符合 `node_modules/@quicktvui/ai/rules/.docs/` 规范但无法在用户端运行。
167
171
 
168
172
  **AI 执行协议:**
169
173
  1. **脱敏诊断 (Sanitized Diagnosis)**: