@microi.net/cli 5.9.2 → 5.9.3

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 (199) hide show
  1. package/.codebuddy-plugin/marketplace.json +2 -2
  2. package/.codebuddy-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.workbuddy-plugin/marketplace.json +2 -2
  5. package/.workbuddy-plugin/plugin.json +1 -1
  6. package/LICENSE +21 -21
  7. package/README.md +71 -71
  8. package/assets/build-meta.json +5 -5
  9. package/assets/feature-matrix.json +138 -138
  10. package/assets/logo.svg +4 -4
  11. package/cordis.patch.yml +1 -1
  12. package/package.json +1 -1
  13. package/scripts/microi-codex-broker.js +466 -450
  14. package/scripts/microi-codex-router.js +634 -618
  15. package/scripts/microi-skills.meta.json +384 -378
  16. package/skills/.microi-skills-version.json +2 -2
  17. package/skills/.progressive-disclosure-manifest.json +122 -115
  18. package/skills/README.md +287 -287
  19. package/skills/ai-engine/SKILL.md +269 -269
  20. package/skills/ai-engine/agents/openai.yaml +4 -4
  21. package/skills/ai-engine/references/ai-employees.md +48 -48
  22. package/skills/ai-engine/references/self-hosted-digital-human.md +59 -59
  23. package/skills/ai-platform-governance/SKILL.md +177 -177
  24. package/skills/ai-platform-governance/references/progressive-01-/345/212/237/350/203/275/345/274/200/345/205/263.md +190 -190
  25. package/skills/app-store/SKILL.md +525 -525
  26. package/skills/app-store/agents/openai.yaml +4 -4
  27. package/skills/business-blueprint/SKILL.md +193 -193
  28. package/skills/datasource-engine/SKILL.md +93 -93
  29. package/skills/datasource-engine/agents/openai.yaml +4 -4
  30. package/skills/dos-orm/SKILL.md +101 -95
  31. package/skills/dos-orm/references/api-reference.md +229 -229
  32. package/skills/email-engine/SKILL.md +81 -81
  33. package/skills/email-engine/references/v8-email.md +34 -34
  34. package/skills/job-engine/SKILL.md +176 -176
  35. package/skills/job-engine/agents/openai.yaml +4 -4
  36. package/skills/message-notification/SKILL.md +156 -156
  37. package/skills/message-notification/agents/openai.yaml +5 -5
  38. package/skills/message-notification/references/contracts.md +102 -102
  39. package/skills/microi/SKILL.md +14 -14
  40. package/skills/microi-ai-app-auth.js +652 -652
  41. package/skills/microi-ai-application/SKILL.md +115 -115
  42. package/skills/microi-ai-application/agents/openai.yaml +4 -4
  43. package/skills/microi-ai-application/references/frontend-baseline.md +164 -164
  44. package/skills/microi-client-frontend/SKILL.md +242 -242
  45. package/skills/microi-client-frontend/references/progressive-01-3-/345/212/250/346/200/201/346/214/211/351/222/256/347/263/273/347/273/237.md +144 -144
  46. package/skills/microi-client-frontend/references/progressive-02-8-/350/277/220/350/241/214/346/227/266/351/253/230/351/242/221/345/235/221/345/244/215/347/233/230.md +196 -196
  47. package/skills/microi-client-frontend/references/progressive-03-vue3-/345/211/215/347/253/257/345/276/256/346/234/215/345/212/241/345/256/277/344/270/273/350/247/204/345/210/231.md +167 -167
  48. package/skills/microi-codex-installer/SKILL.md +231 -231
  49. package/skills/microi-codex-installer/agents/openai.yaml +7 -7
  50. package/skills/microi-datasource-mapping/SKILL.md +122 -122
  51. package/skills/microi-db-schema/SKILL.md +175 -175
  52. package/skills/microi-db-schema/agents/openai.yaml +4 -4
  53. package/skills/microi-db-schema/references/core-tables.md +695 -695
  54. package/skills/microi-db-schema/references/form-component-options.md +256 -256
  55. package/skills/microi-db-schema/references/schema-overview.md +202 -202
  56. package/skills/microi-db-schema/references/schema.md +646 -646
  57. package/skills/microi-db-schema/references/table-catalog.md +1599 -1599
  58. package/skills/microi-deployment/SKILL.md +239 -220
  59. package/skills/microi-deployment/references/deployment-matrix.md +109 -109
  60. package/skills/microi-docs-coverage/SKILL.md +133 -133
  61. package/skills/microi-docs-coverage/references/capability-map.md +90 -90
  62. package/skills/microi-docs-coverage/scripts/audit-doc-skill-coverage.mjs +894 -894
  63. package/skills/microi-form-engine/SKILL.md +338 -333
  64. package/skills/microi-form-engine/references/component-catalog.md +218 -218
  65. package/skills/microi-form-engine/references/data-source-events.md +124 -124
  66. package/skills/microi-frontend-sdk/SKILL.md +194 -194
  67. package/skills/microi-frontend-sdk/references/progressive-01-token-/345/275/223/345/211/215/347/231/273/345/275/225/347/224/250/346/210/267/344/270/216/345/275/223/345/211/215/347/273/210/347/253/257/347/231/273/345/275/225/345/215/217/350/256/256.md +176 -176
  68. package/skills/microi-left-right-layout/SKILL.md +141 -141
  69. package/skills/microi-microservice/SKILL.md +330 -328
  70. package/skills/microi-microservice/references/runtime-delivery.md +278 -278
  71. package/skills/microi-mobile-app-quality/SKILL.md +203 -203
  72. package/skills/microi-mobile-app-quality/references/progressive-01-4-/351/207/215/350/246/201/346/214/211/351/222/256/345/277/205/351/241/273/345/270/246/345/233/276/346/240/207.md +227 -227
  73. package/skills/microi-mobile-app-quality/references/progressive-02-9-/344/270/273/351/242/230/345/210/207/346/215/242/345/277/205/351/241/273/347/234/237/345/256/236/344/270/224/345/205/250/345/261/200/347/224/237/346/225/210.md +129 -129
  74. package/skills/microi-solution-quotation/SKILL.md +78 -78
  75. package/skills/microi-solution-quotation/agents/openai.yaml +4 -4
  76. package/skills/microi-solution-quotation/scripts/build_solution_quote.py +296 -296
  77. package/skills/microi-sso/SKILL.md +95 -91
  78. package/skills/microi-sso/references/acceptance.md +51 -49
  79. package/skills/microi-sso/references/configuration-and-security.md +53 -53
  80. package/skills/microi-sso/references/inbound.md +53 -53
  81. package/skills/microi-sso/references/outbound.md +43 -39
  82. package/skills/microi-ui/SKILL.md +192 -192
  83. package/skills/microi-ui/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/234/272/346/231/257/350/223/235/345/233/276.md +183 -183
  84. package/skills/microi-uniapp-frontend/SKILL.md +206 -204
  85. package/skills/microi-uniapp-frontend/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/210/206/347/261/273-/345/217/214/346/240/217/345/210/227/350/241/250/347/213/254/347/253/213/346/273/232/345/212/250.md +261 -261
  86. package/skills/microi-uniapp-frontend/references/progressive-02-/345/205/263/351/224/256/344/270/232/345/212/241/350/265/204/344/272/247/344/270/215/345/276/227/351/273/230/350/256/244/351/200/211/344/270/255.md +154 -154
  87. package/skills/microi.v8.js +1921 -1921
  88. package/skills/module-engine/SKILL.md +255 -255
  89. package/skills/module-engine/references/module-config.md +204 -204
  90. package/skills/ocr-engine/SKILL.md +113 -113
  91. package/skills/ocr-engine/agents/openai.yaml +4 -4
  92. package/skills/page-engine/SKILL.md +206 -206
  93. package/skills/page-engine/examples/compact-dashboard.json +1444 -1444
  94. package/skills/page-engine/references/progressive-01-/346/211/200/346/234/211/347/273/204/344/273/266/347/261/273/345/236/213.md +234 -234
  95. package/skills/page-engine/references/progressive-02-/347/211/210/346/234/254/345/216/206/345/217/262-/345/271/266/345/217/221/344/277/235/345/255/230/344/270/216/345/233/236/346/273/232.md +60 -60
  96. package/skills/performance-testing/SKILL.md +227 -221
  97. package/skills/playwright-e2e/SKILL.md +197 -196
  98. package/skills/playwright-e2e/references/progressive-01-/345/205/250/350/207/252/345/212/250/347/231/273/345/275/225-/345/205/215/351/252/214/350/257/201/347/240/201-/344/275/206/344/270/215/345/205/215/345/257/206/347/240/201-/345/277/205/350/257/273.md +173 -173
  99. package/skills/playwright-e2e/references/progressive-02-/346/226/207/345/255/227/345/257/271/346/257/224/345/272/246/344/270/216/345/217/257/350/257/273/346/200/247/350/207/252/345/212/250/345/214/226/346/243/200/346/237/245-/345/277/205/345/201/232.md +183 -183
  100. package/skills/playwright-e2e/references/progressive-03-microi-helper-/346/250/241/346/235/277.md +221 -221
  101. package/skills/playwright-e2e/references/progressive-04-ci-/345/273/272/350/256/256.md +115 -115
  102. package/skills/print-engine/SKILL.md +259 -259
  103. package/skills/production-readonly-audit/SKILL.md +41 -41
  104. package/skills/report-engine/SKILL.md +71 -71
  105. package/skills/report-engine/agents/openai.yaml +4 -4
  106. package/skills/scripts/optimize-progressive-disclosure.mjs +204 -204
  107. package/skills/scripts/refresh-progressive-disclosure.mjs +64 -64
  108. package/skills/scripts/sync-embedded-skills.mjs +46 -46
  109. package/skills/scripts/validate-progressive-disclosure.mjs +57 -57
  110. package/skills/search-engine/SKILL.md +75 -75
  111. package/skills/search-engine/agents/openai.yaml +4 -4
  112. package/skills/spider-engine/SKILL.md +190 -190
  113. package/skills/system-observability/SKILL.md +259 -246
  114. package/skills/system-observability/references/memory-incident-triage.md +77 -77
  115. package/skills/translate-engine/SKILL.md +140 -140
  116. package/skills/translate-engine/agents/openai.yaml +4 -4
  117. package/skills/ui-design/SKILL.md +223 -223
  118. package/skills/ui-design/assets/pattern-showcase/app.js +54 -54
  119. package/skills/ui-design/assets/pattern-showcase/index.html +163 -163
  120. package/skills/ui-design/assets/pattern-showcase/styles.css +311 -311
  121. package/skills/ui-design/assets/templates/MCI-DESIGN.md +206 -206
  122. package/skills/ui-design/references/design-pattern-library.md +184 -184
  123. package/skills/ui-design/references/mci-design-contract.md +163 -163
  124. package/skills/ui-design/references/motion-and-media.md +78 -78
  125. package/skills/ui-design/references/product-flow-recipes.md +94 -94
  126. package/skills/ui-design/references/progressive-01-/351/242/234/350/211/262/344/275/223/347/263/273-css-variables-/346/224/257/346/214/201/344/270/273/351/242/230/345/210/207/346/215/242.md +218 -218
  127. package/skills/ui-design/references/progressive-02-/345/255/227/344/275/223.md +164 -164
  128. package/skills/ui-design/references/progressive-03-/345/212/250/346/225/210/350/247/204/350/214/203-/344/270/260/345/257/214/344/275/206/344/270/215/345/215/241.md +235 -235
  129. package/skills/ui-design/references/progressive-04-/347/273/204/344/273/266/351/243/216/346/240/274/351/200/237/346/237/245.md +152 -152
  130. package/skills/ui-design/references/progressive-05-/347/247/273/345/212/250/347/253/257/344/270/223/347/224/250/350/247/204/350/214/203.md +238 -238
  131. package/skills/ui-design/references/progressive-06-/344/270/273/351/242/230/345/210/207/346/215/242/345/256/236/347/216/260.md +194 -194
  132. package/skills/ui-design/references/progressive-07-/351/200/237/346/237/245-/344/273/216/345/244/264/346/220/255/345/273/272/344/270/200/344/270/252/347/247/273/345/212/250/347/253/257/351/241/265/351/235/242.md +207 -207
  133. package/skills/ui-design/references/progressive-08-/350/241/250/345/215/225/345/210/206/347/273/204/350/247/204/350/214/203-tabs-vs-collapsegroup-/345/274/272/345/210/266.md +142 -142
  134. package/skills/uniapp-mall-assets/SKILL.md +176 -176
  135. package/skills/unity-integration/SKILL.md +178 -171
  136. package/skills/unity-integration/agents/openai.yaml +4 -4
  137. package/skills/unity-integration/references/ai-app-delivery.md +119 -119
  138. package/skills/unity-integration/references/sdk-api.md +82 -82
  139. package/skills/unity-integration/references/toolbox-migration.md +66 -66
  140. package/skills/unity-integration/references/webgl-hosting.md +57 -57
  141. package/skills/v8-api-config/SKILL.md +388 -388
  142. package/skills/v8-cache-pattern/SKILL.md +312 -312
  143. package/skills/v8-crud-api/SKILL.md +179 -178
  144. package/skills/v8-crud-api/references/progressive-01-/346/237/245/350/257/242/345/210/227/350/241/250-/345/210/206/351/241/265.md +226 -226
  145. package/skills/v8-crud-api/references/progressive-02-where-/346/235/241/344/273/266/350/257/255/346/263/225/351/200/237/346/237/245.md +49 -49
  146. package/skills/v8-debugging/SKILL.md +284 -284
  147. package/skills/v8-explorer-tree/SKILL.md +228 -228
  148. package/skills/v8-export-import/SKILL.md +219 -219
  149. package/skills/v8-export-import/references/progressive-01-excellayout-/351/253/230/347/272/247/350/207/252/347/224/261/345/270/203/345/261/200.md +211 -211
  150. package/skills/v8-export-import/references/progressive-02-powerpoint-/345/257/274/345/207/272.md +202 -202
  151. package/skills/v8-export-import/references/progressive-03-/345/256/211/345/205/250-/346/200/247/350/203/275/346/263/250/346/204/217.md +42 -42
  152. package/skills/v8-file-upload/SKILL.md +255 -284
  153. package/skills/v8-file-upload/references/cdn-alias-repair.md +13 -0
  154. package/skills/v8-file-upload/references/progressive-01-/345/205/254/346/234/211/346/241/266-vs-/347/247/201/346/234/211/346/241/266.md +263 -263
  155. package/skills/v8-file-upload/references/progressive-02-office-/346/226/207/344/273/266/345/234/250/347/272/277/347/274/226/350/276/221/347/211/210/346/234/254/345/217/267/350/247/204/345/210/231.md +161 -161
  156. package/skills/v8-file-upload/references/progressive-03-/347/251/272/347/233/256/345/275/225/346/240/207/350/256/260/344/270/216/350/277/234/347/250/213/344/270/213/350/275/275.md +36 -0
  157. package/skills/v8-formengine-http/SKILL.md +238 -238
  158. package/skills/v8-frontend-events/SKILL.md +180 -180
  159. package/skills/v8-frontend-events/references/bluetooth-print-api.md +135 -135
  160. package/skills/v8-frontend-events/references/bluetooth-print.md +258 -258
  161. package/skills/v8-frontend-events/references/progressive-01-/345/210/227/350/241/250/344/272/213/344/273/266.md +219 -219
  162. package/skills/v8-http-integration/SKILL.md +182 -182
  163. package/skills/v8-http-integration/references/progressive-01-get-/350/257/267/346/261/202.md +220 -220
  164. package/skills/v8-http-integration/references/progressive-02-/351/224/231/350/257/257/345/244/204/347/220/206/346/250/241/345/274/217.md +44 -44
  165. package/skills/v8-image-processing/SKILL.md +190 -190
  166. package/skills/v8-image-processing/agents/openai.yaml +4 -4
  167. package/skills/v8-image-processing/references/api-reference.md +623 -623
  168. package/skills/v8-menu-buttons/SKILL.md +186 -186
  169. package/skills/v8-menu-buttons/references/progressive-01-2-/346/214/211/351/222/256/345/257/271/350/261/241-schema.md +222 -222
  170. package/skills/v8-menu-buttons/references/progressive-02-8-/346/250/241/345/274/217-f-/345/220/216/345/217/260/344/273/273/345/212/241/346/214/211/351/222/256-/351/225/277/344/273/273/345/212/241.md +228 -228
  171. package/skills/v8-menu-buttons/references/progressive-03-10-/345/217/215/346/250/241/345/274/217-/351/201/277/345/205/215.md +104 -104
  172. package/skills/v8-mongodb/SKILL.md +200 -200
  173. package/skills/v8-mq-mqtt/SKILL.md +178 -176
  174. package/skills/v8-mq-mqtt/references/mqtt-production.md +352 -342
  175. package/skills/v8-mq-mqtt/references/progressive-01-v8-mqtt-iot-/347/211/251/350/201/224/347/275/221.md +181 -181
  176. package/skills/v8-mq-mqtt/scripts/check-mqtt-skill-coverage.mjs +203 -203
  177. package/skills/v8-saas-multi-tenant/SKILL.md +305 -305
  178. package/skills/v8-security/SKILL.md +227 -210
  179. package/skills/v8-security/references/progressive-01-2-/346/235/203/351/231/220/346/240/241/351/252/214.md +200 -200
  180. package/skills/v8-security/references/progressive-02-7-/346/227/245/345/277/227/350/256/260/345/275/225.md +160 -160
  181. package/skills/v8-sql-query/SKILL.md +302 -302
  182. package/skills/v8-table-event/SKILL.md +176 -176
  183. package/skills/v8-table-event/references/progressive-01-informv8-js-/350/241/250/345/215/225/346/211/223/345/274/200/344/272/213/344/273/266.md +216 -216
  184. package/skills/v8-table-event/references/progressive-02-/345/211/215/347/253/257/344/272/213/344/273/266/345/220/215-v8-eventname-/345/217/257/350/203/275/347/232/204/345/200/274.md +46 -46
  185. package/skills/v8-tcp-integration/SKILL.md +158 -147
  186. package/skills/v8-tcp-integration/agents/openai.yaml +4 -4
  187. package/skills/v8-template-engine/SKILL.md +167 -167
  188. package/skills/v8-utilities/SKILL.md +104 -104
  189. package/skills/v8-utilities/references/client-api-index.md +143 -143
  190. package/skills/v8-utilities/references/platform-http-routes.md +83 -83
  191. package/skills/v8-utilities/references/server-api-index.md +188 -188
  192. package/skills/v8-workflow/SKILL.md +252 -252
  193. package/skills/v8-workflow/references/progressive-01-/350/212/202/347/202/271/345/274/200/345/247/213-v8-/344/272/213/344/273/266.md +180 -180
  194. package/skills/v8-workflow/references/workflow-configuration.md +49 -49
  195. package/skills/vision-engine/SKILL.md +160 -160
  196. package/skills/vision-engine/agents/openai.yaml +4 -4
  197. package/skills/vision-engine/references/architecture-and-acceptance.md +194 -194
  198. package/skills/workspace-conventions/SKILL.md +13 -13
  199. package/skills/workspace-conventions/references/progressive-03-cli-/344/270/216-ide-/346/217/222/344/273/266/351/224/231/347/211/210/345/205/261/345/255/230/347/272/246/345/256/232.md +2 -2
@@ -1,206 +1,206 @@
1
- # MCI-DESIGN
2
-
3
- > 本文件同时保存精确 token 与设计理由。实现前先读完整文件;修改视觉结构时同步更新本文件、源码和验收截图。
4
-
5
- ```yaml
6
- contract:
7
- version: 1
8
- project:
9
- mode: data-workspace
10
- intent:
11
-
12
- tokens:
13
- color:
14
- canvas: var(--mci-bg-base)
15
- surface: var(--mci-bg-card)
16
- surfaceElevated: var(--mci-bg-elevated)
17
- textPrimary: var(--mci-text-primary)
18
- textSecondary: var(--mci-text-secondary)
19
- primary: var(--mci-color-primary)
20
- success: var(--mci-color-success)
21
- warning: var(--mci-color-warning)
22
- danger: var(--mci-color-danger)
23
- typography:
24
- display: { size: 48px, lineHeight: 1.1, weight: 800 }
25
- h1: { size: 32px, lineHeight: 1.2, weight: 750 }
26
- h2: { size: 24px, lineHeight: 1.3, weight: 700 }
27
- body: { size: 16px, lineHeight: 1.7, weight: 400 }
28
- meta: { size: 13px, lineHeight: 1.5, weight: 500 }
29
- spacing:
30
- micro: 4px
31
- compact: 8px
32
- control: 12px
33
- card: 16px
34
- section: 24px
35
- page: 32px
36
- shape:
37
- input: var(--mci-shape-input)
38
- panel: var(--mci-shape-panel)
39
- card: var(--mci-shape-card)
40
- button: var(--mci-shape-button)
41
- elevation:
42
- card: var(--mci-shadow-card)
43
- cardHover: var(--mci-shadow-card-hover)
44
- float: var(--mci-shadow-float)
45
-
46
- components:
47
- primaryButton:
48
- height: 44px
49
- states:
50
- default: { background: "{tokens.color.primary}" }
51
- hover: { lift: -1px }
52
- focus: { outline: "{tokens.color.primary}" }
53
- pressed: { scale: 0.98 }
54
- loading: { preserveWidth: true }
55
- disabled: { opacity: 0.56 }
56
- dataCard:
57
- background: "{tokens.color.surface}"
58
- radius: "{tokens.shape.card}"
59
- padding: "{tokens.spacing.card}"
60
- states:
61
- default: { elevation: "{tokens.elevation.card}" }
62
- hover: { elevation: "{tokens.elevation.cardHover}", lift: -2px }
63
- focus: { outline: "{tokens.color.primary}" }
64
- selected: { border: "{tokens.color.primary}" }
65
-
66
- omissions: []
67
- ```
68
-
69
- ## 1. 产品概览与目标用户
70
-
71
- - 首要用户:
72
- - 首要任务:
73
- - 用户进入后第一眼必须理解:
74
- - 成功结果与衡量方式:
75
- - 关键设备与使用环境:
76
-
77
- ## 2. 视觉性格与情绪目标
78
-
79
- - 主情绪(只选一个):
80
- - 具体视觉隐喻:
81
- - 辅助气质(最多两项):
82
- - 选择理由:
83
- - 明确不采用的视觉语言:
84
-
85
- ## 3. 颜色
86
-
87
- - 页面底色与表面关系:
88
- - 主色只用于:
89
- - 成功 / 警告 / 危险 / 信息色语义:
90
- - 明亮与暗黑主题的对比策略:
91
- - 透明表面的叠加底色:
92
-
93
- ## 4. 字体
94
-
95
- | 角色 | 字号 / 行高 / 字重 | 用途 | 禁止 |
96
- | --- | --- | --- | --- |
97
- | Display | | | |
98
- | H1 | | | |
99
- | H2 | | | |
100
- | Body | | | |
101
- | Meta | | | |
102
-
103
- ## 5. 布局与间距
104
-
105
- - Desktop:12 列,最大宽度:
106
- - Tablet:8 列,重排规则:
107
- - Mobile:4 列,左右安全间距:
108
- - 内部紧凑间距:
109
- - 区域与页面留白:
110
-
111
- ## 6. 层级、材质与形状
112
-
113
- - 深度来自:色调层 / 细边框 / 环境阴影 / 透明材质 / 实体投影
114
- - 圆角或切角表达的性格:
115
- - 页面 / 卡片 / 浮层的层级关系:
116
- - 低性能与不支持透明效果时的降级:
117
-
118
- ## 7. 组件与状态
119
-
120
- | 组件 | Default | Hover / Focus / Pressed | Loading | Empty / Error | Disabled | Selected / Success |
121
- | --- | --- | --- | --- | --- | --- | --- |
122
- | 主按钮 | | | | - | | |
123
- | 搜索 / 筛选 | | | | | | |
124
- | 列表 / 数据卡片 | | | | | - | |
125
- | 表单 | | | | | | |
126
- | 弹层 | 20–24px 大圆角、居中;图标 + 英文眉题 + 标题 + 副标题;连续柔和内容底 | 关闭按钮有可见底色;标题栏可拖动且四边留在视口 | 首个可操作控件获得焦点,Esc/关闭路径明确 | 拖动边界按真实尺寸钳制,窗口缩放后重新钳制 | 提交按钮显示进度并防重复 | 错误留在关联字段或底部操作区,可恢复 |
127
-
128
- ### 弹层
129
-
130
- - 页头:左侧语义图标、英文眉题、大字标题、可选小字副标题;右上关闭按钮有独立背景并垂直居中。
131
- - 内容:使用连续柔和背景和整齐栅格,不把普通字段拆成小卡片。
132
- - 页脚:右侧大号关闭与保存按钮,均带语义图标。
133
- - 行为:默认上下左右居中,PC 标题栏可拖动;按弹层真实宽高限制四边并在窗口缩放后重新限制。Teleport 到 `body` 时同步应用根标识与主题 token。
134
-
135
- ### 数据卡片
136
-
137
- - 信息顺序:身份 → 标题/状态 → 关键字段 → 时间/辅助标签 → 操作。
138
- - 缺图:40—44px 紧凑标记,不渲染大面积装饰占位图。
139
- - 默认列数:桌面 4,平板 2—3,移动 1;显式业务配置优先。
140
- - 操作:一个主动作、一至两个次动作,其余进入“更多”;危险动作降权。
141
-
142
- ## 8. 页面模式与信息架构
143
-
144
- 1. 首屏:
145
- 2. 核心任务:
146
- 3. 证据或数据:
147
- 4. 辅助内容:
148
- 5. 最终行动:
149
-
150
- - 主模式:品牌叙事 / 真实产品流程 / 趋势构图 / 沉浸互动 / 动态首屏 / 数据工作台
151
- - 辅助能力(最多两项):
152
-
153
- ## 9. 动效与媒体
154
-
155
- - 0—120ms:
156
- - 120—360ms:
157
- - 360—800ms:
158
- - 循环动效存在理由:
159
- - 图片比例与 `object-fit`:
160
- - `prefers-reduced-motion` 与静态降级:
161
-
162
- ## 10. 响应式与安全区
163
-
164
- | 宽度 | 栅格 | 导航 | 主操作 | 内容重排 |
165
- | --- | --- | --- | --- | --- |
166
- | 390 | 4 列 | | | |
167
- | 768 | 8 列 | | | |
168
- | 1440 | 12 列 | | | |
169
-
170
- ## 11. 可访问性、性能与降级
171
-
172
- - 键盘顺序与可见焦点:
173
- - 正文、状态与交互对比度:
174
- - 触控目标:移动端不小于 44px
175
- - 首屏资源预算:
176
- - 网络失败、媒体失败与离线策略:
177
- - 骨架屏、空态、错误态与恢复路径:
178
-
179
- ## 12. 应当与禁止
180
-
181
- ### 应当
182
-
183
- -
184
-
185
- ### 禁止
186
-
187
- -
188
-
189
- ## 有意省略
190
-
191
- | 规则 | 省略理由 | 替代方案 |
192
- | --- | --- | --- |
193
- | | | |
194
-
195
- ## 验收清单
196
-
197
- - [ ] 机器块能解析,核心章节顺序正确,无重复或近似拼写章节。
198
- - [ ] 所有 `{路径}` 引用存在且无循环;无未说明的孤立 token。
199
- - [ ] 首屏在 3 秒内说清产品、对象和主操作。
200
- - [ ] 默认、加载、空、错误、禁用、权限、成功状态可验证。
201
- - [ ] 390 / 768 / 1440 无横向滚动、遮挡和错位。
202
- - [ ] 明亮、暗黑主题均有足够对比度。
203
- - [ ] 所有可点击元素有 hover、focus、pressed 和真实结果。
204
- - [ ] 动效尊重 `prefers-reduced-motion`。
205
- - [ ] 契约差异与实现差异同时评审,没有意外删除或语义漂移。
206
- - [ ] 所有图片、字体、模型和代码资产来源合法且可离线构建。
1
+ # MCI-DESIGN
2
+
3
+ > 本文件同时保存精确 token 与设计理由。实现前先读完整文件;修改视觉结构时同步更新本文件、源码和验收截图。
4
+
5
+ ```yaml
6
+ contract:
7
+ version: 1
8
+ project:
9
+ mode: data-workspace
10
+ intent:
11
+
12
+ tokens:
13
+ color:
14
+ canvas: var(--mci-bg-base)
15
+ surface: var(--mci-bg-card)
16
+ surfaceElevated: var(--mci-bg-elevated)
17
+ textPrimary: var(--mci-text-primary)
18
+ textSecondary: var(--mci-text-secondary)
19
+ primary: var(--mci-color-primary)
20
+ success: var(--mci-color-success)
21
+ warning: var(--mci-color-warning)
22
+ danger: var(--mci-color-danger)
23
+ typography:
24
+ display: { size: 48px, lineHeight: 1.1, weight: 800 }
25
+ h1: { size: 32px, lineHeight: 1.2, weight: 750 }
26
+ h2: { size: 24px, lineHeight: 1.3, weight: 700 }
27
+ body: { size: 16px, lineHeight: 1.7, weight: 400 }
28
+ meta: { size: 13px, lineHeight: 1.5, weight: 500 }
29
+ spacing:
30
+ micro: 4px
31
+ compact: 8px
32
+ control: 12px
33
+ card: 16px
34
+ section: 24px
35
+ page: 32px
36
+ shape:
37
+ input: var(--mci-shape-input)
38
+ panel: var(--mci-shape-panel)
39
+ card: var(--mci-shape-card)
40
+ button: var(--mci-shape-button)
41
+ elevation:
42
+ card: var(--mci-shadow-card)
43
+ cardHover: var(--mci-shadow-card-hover)
44
+ float: var(--mci-shadow-float)
45
+
46
+ components:
47
+ primaryButton:
48
+ height: 44px
49
+ states:
50
+ default: { background: "{tokens.color.primary}" }
51
+ hover: { lift: -1px }
52
+ focus: { outline: "{tokens.color.primary}" }
53
+ pressed: { scale: 0.98 }
54
+ loading: { preserveWidth: true }
55
+ disabled: { opacity: 0.56 }
56
+ dataCard:
57
+ background: "{tokens.color.surface}"
58
+ radius: "{tokens.shape.card}"
59
+ padding: "{tokens.spacing.card}"
60
+ states:
61
+ default: { elevation: "{tokens.elevation.card}" }
62
+ hover: { elevation: "{tokens.elevation.cardHover}", lift: -2px }
63
+ focus: { outline: "{tokens.color.primary}" }
64
+ selected: { border: "{tokens.color.primary}" }
65
+
66
+ omissions: []
67
+ ```
68
+
69
+ ## 1. 产品概览与目标用户
70
+
71
+ - 首要用户:
72
+ - 首要任务:
73
+ - 用户进入后第一眼必须理解:
74
+ - 成功结果与衡量方式:
75
+ - 关键设备与使用环境:
76
+
77
+ ## 2. 视觉性格与情绪目标
78
+
79
+ - 主情绪(只选一个):
80
+ - 具体视觉隐喻:
81
+ - 辅助气质(最多两项):
82
+ - 选择理由:
83
+ - 明确不采用的视觉语言:
84
+
85
+ ## 3. 颜色
86
+
87
+ - 页面底色与表面关系:
88
+ - 主色只用于:
89
+ - 成功 / 警告 / 危险 / 信息色语义:
90
+ - 明亮与暗黑主题的对比策略:
91
+ - 透明表面的叠加底色:
92
+
93
+ ## 4. 字体
94
+
95
+ | 角色 | 字号 / 行高 / 字重 | 用途 | 禁止 |
96
+ | --- | --- | --- | --- |
97
+ | Display | | | |
98
+ | H1 | | | |
99
+ | H2 | | | |
100
+ | Body | | | |
101
+ | Meta | | | |
102
+
103
+ ## 5. 布局与间距
104
+
105
+ - Desktop:12 列,最大宽度:
106
+ - Tablet:8 列,重排规则:
107
+ - Mobile:4 列,左右安全间距:
108
+ - 内部紧凑间距:
109
+ - 区域与页面留白:
110
+
111
+ ## 6. 层级、材质与形状
112
+
113
+ - 深度来自:色调层 / 细边框 / 环境阴影 / 透明材质 / 实体投影
114
+ - 圆角或切角表达的性格:
115
+ - 页面 / 卡片 / 浮层的层级关系:
116
+ - 低性能与不支持透明效果时的降级:
117
+
118
+ ## 7. 组件与状态
119
+
120
+ | 组件 | Default | Hover / Focus / Pressed | Loading | Empty / Error | Disabled | Selected / Success |
121
+ | --- | --- | --- | --- | --- | --- | --- |
122
+ | 主按钮 | | | | - | | |
123
+ | 搜索 / 筛选 | | | | | | |
124
+ | 列表 / 数据卡片 | | | | | - | |
125
+ | 表单 | | | | | | |
126
+ | 弹层 | 20–24px 大圆角、居中;图标 + 英文眉题 + 标题 + 副标题;连续柔和内容底 | 关闭按钮有可见底色;标题栏可拖动且四边留在视口 | 首个可操作控件获得焦点,Esc/关闭路径明确 | 拖动边界按真实尺寸钳制,窗口缩放后重新钳制 | 提交按钮显示进度并防重复 | 错误留在关联字段或底部操作区,可恢复 |
127
+
128
+ ### 弹层
129
+
130
+ - 页头:左侧语义图标、英文眉题、大字标题、可选小字副标题;右上关闭按钮有独立背景并垂直居中。
131
+ - 内容:使用连续柔和背景和整齐栅格,不把普通字段拆成小卡片。
132
+ - 页脚:右侧大号关闭与保存按钮,均带语义图标。
133
+ - 行为:默认上下左右居中,PC 标题栏可拖动;按弹层真实宽高限制四边并在窗口缩放后重新限制。Teleport 到 `body` 时同步应用根标识与主题 token。
134
+
135
+ ### 数据卡片
136
+
137
+ - 信息顺序:身份 → 标题/状态 → 关键字段 → 时间/辅助标签 → 操作。
138
+ - 缺图:40—44px 紧凑标记,不渲染大面积装饰占位图。
139
+ - 默认列数:桌面 4,平板 2—3,移动 1;显式业务配置优先。
140
+ - 操作:一个主动作、一至两个次动作,其余进入“更多”;危险动作降权。
141
+
142
+ ## 8. 页面模式与信息架构
143
+
144
+ 1. 首屏:
145
+ 2. 核心任务:
146
+ 3. 证据或数据:
147
+ 4. 辅助内容:
148
+ 5. 最终行动:
149
+
150
+ - 主模式:品牌叙事 / 真实产品流程 / 趋势构图 / 沉浸互动 / 动态首屏 / 数据工作台
151
+ - 辅助能力(最多两项):
152
+
153
+ ## 9. 动效与媒体
154
+
155
+ - 0—120ms:
156
+ - 120—360ms:
157
+ - 360—800ms:
158
+ - 循环动效存在理由:
159
+ - 图片比例与 `object-fit`:
160
+ - `prefers-reduced-motion` 与静态降级:
161
+
162
+ ## 10. 响应式与安全区
163
+
164
+ | 宽度 | 栅格 | 导航 | 主操作 | 内容重排 |
165
+ | --- | --- | --- | --- | --- |
166
+ | 390 | 4 列 | | | |
167
+ | 768 | 8 列 | | | |
168
+ | 1440 | 12 列 | | | |
169
+
170
+ ## 11. 可访问性、性能与降级
171
+
172
+ - 键盘顺序与可见焦点:
173
+ - 正文、状态与交互对比度:
174
+ - 触控目标:移动端不小于 44px
175
+ - 首屏资源预算:
176
+ - 网络失败、媒体失败与离线策略:
177
+ - 骨架屏、空态、错误态与恢复路径:
178
+
179
+ ## 12. 应当与禁止
180
+
181
+ ### 应当
182
+
183
+ -
184
+
185
+ ### 禁止
186
+
187
+ -
188
+
189
+ ## 有意省略
190
+
191
+ | 规则 | 省略理由 | 替代方案 |
192
+ | --- | --- | --- |
193
+ | | | |
194
+
195
+ ## 验收清单
196
+
197
+ - [ ] 机器块能解析,核心章节顺序正确,无重复或近似拼写章节。
198
+ - [ ] 所有 `{路径}` 引用存在且无循环;无未说明的孤立 token。
199
+ - [ ] 首屏在 3 秒内说清产品、对象和主操作。
200
+ - [ ] 默认、加载、空、错误、禁用、权限、成功状态可验证。
201
+ - [ ] 390 / 768 / 1440 无横向滚动、遮挡和错位。
202
+ - [ ] 明亮、暗黑主题均有足够对比度。
203
+ - [ ] 所有可点击元素有 hover、focus、pressed 和真实结果。
204
+ - [ ] 动效尊重 `prefers-reduced-motion`。
205
+ - [ ] 契约差异与实现差异同时评审,没有意外删除或语义漂移。
206
+ - [ ] 所有图片、字体、模型和代码资产来源合法且可离线构建。