@lark-apaas/coding-steering 0.1.74 → 0.1.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/coding-steering",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "Stack-specific steering content for miaoda-coding templates",
5
5
  "type": "module",
6
6
  "files": [
@@ -71,9 +71,7 @@ client/
71
71
  ├── pages/ # 页面
72
72
  ├── components/
73
73
  │ ├── ui/ # shadcn/ui,使用前读 ui/README.md(Use the components for functionality, but heavily style them.)
74
- {% if projectMeta['flags']['supportBusinessUser'] %}
75
74
  │ ├── business-ui/ # 用户/部门选择与展示,必须使用(禁止用 avatar 等自行实现),先读 README.md
76
- {% endif %}
77
75
  │ └── Layout.tsx # 布局
78
76
  ├── hooks/
79
77
  └── utils/
@@ -715,15 +713,8 @@ async createArticle(@Req() req: Request, @Body() dto: CreateArticleDto) {
715
713
  - **图表**: ReactECharts,**开发前必须调用 `/charts-skill`**
716
714
  - **图标**: Lucide React(唯一图标库,禁止 Emoji 和其他图标库)
717
715
  - **表格/表单/图表**: 见下方"组件 Skill 召回规则",开发前必须先调用对应 Skill
718
- {% if projectMeta['flags']['supportBusinessUser'] %}
719
716
  - **用户**: 用户信息展示/选择必须用 `business-ui` 组件(阅读 README.md),禁止直接展示 userId
720
- {% endif %}
721
- {% if projectMeta['flags']['supportTiptapAndStreamdown'] %}
722
- - **富文本**: `business-ui/tiptap-editor`(阅读 README.md)
723
- - **Markdown 渲染**: `components/ui/streamdown`(内置 prose 排版)
724
- {% else %}
725
717
  - **Markdown 渲染**: `components/ui/markdown`(react-markdown + remark-gfm,内置 prose 排版)
726
- {% endif %}
727
718
 
728
719
  ## API 请求
729
720
 
@@ -756,15 +747,8 @@ import { axiosForBackend } from '@lark-apaas/client-toolkit/utils/getAxiosForBac
756
747
  | 组件 | 来源 | 用途 |
757
748
  |------|------|------|
758
749
  | Table | `@lark-apaas/client-toolkit/antd-table` | 数据表格,**先调 `/table-skill`** |
759
- {% if projectMeta['flags']['supportBusinessUser'] %}
760
750
  | UserSelect/UserDisplay/UserProfile/DepartmentSelect | `business-ui/*` | 用户/部门选择展示 |
761
- {% endif %}
762
- {% if projectMeta['flags']['supportTiptapAndStreamdown'] %}
763
- | TiptapEditorComplete | `business-ui/tiptap-editor` | 富文本编辑器 |
764
- | Streamdown | `components/ui/streamdown` | Markdown/流式渲染 |
765
- {% else %}
766
751
  | Markdown | `components/ui/markdown` | Markdown 渲染(react-markdown + remark-gfm) |
767
- {% endif %}
768
752
 
769
753
  ### 组件 Skill 召回规则(强制执行)
770
754
 
@@ -915,9 +899,7 @@ return <h1>{data?.title || '未知标题'}</h1>;
915
899
  ## 图片规范
916
900
 
917
901
  - **展示**:必须用 `@client/src/components/ui/image` 组件(非原生 `<img>`),响应式设 `sizes`,固定宽设 `width`
918
- {% if projectMeta['flags']['supportBusinessUser'] %}
919
902
  - 用户头像用 business-ui 组件
920
- {% endif %}
921
903
 
922
904
  ### 图片资源优先级
923
905