@open-dy/interest-card-cli 0.0.0-stage → 0.1.0-beta.27

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 (1055) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +31 -2
  3. package/THIRD_PARTY_NOTICES.json +307 -0
  4. package/browser-runtime/scripts/build-preview-message.mjs +193 -0
  5. package/browser-runtime/scripts/capture-feed-card.sh +507 -0
  6. package/browser-runtime/scripts/cdp-client.mjs +275 -0
  7. package/browser-runtime/scripts/cli-input.mjs +109 -0
  8. package/browser-runtime/scripts/cli.mjs +970 -0
  9. package/browser-runtime/scripts/close-session.mjs +82 -0
  10. package/browser-runtime/scripts/ensure-webgl.mjs +388 -0
  11. package/browser-runtime/scripts/inspect-preview-state.mjs +529 -0
  12. package/browser-runtime/scripts/observe-preview-network.mjs +210 -0
  13. package/browser-runtime/scripts/prepare-agent-browser.sh +135 -0
  14. package/browser-runtime/scripts/preview-console-collector.mjs +158 -0
  15. package/browser-runtime/scripts/preview-console-trace.mjs +291 -0
  16. package/browser-runtime/scripts/preview-console.mjs +174 -0
  17. package/browser-runtime/scripts/preview-document.mjs +96 -0
  18. package/browser-runtime/scripts/preview-frame-action.mjs +849 -0
  19. package/browser-runtime/scripts/preview-frame-map.mjs +251 -0
  20. package/browser-runtime/scripts/preview-session.mjs +459 -0
  21. package/browser-runtime/scripts/probe-browser-health.mjs +139 -0
  22. package/browser-runtime/scripts/resume-check.mjs +170 -0
  23. package/browser-runtime/scripts/run-browser-command.mjs +62 -0
  24. package/browser-runtime/scripts/wait-dev-status.mjs +149 -0
  25. package/card-skills/douyin-interest-card-browser/.interest-card-cli.json +3 -0
  26. package/card-skills/douyin-interest-card-browser/SKILL.md +48 -0
  27. package/card-skills/douyin-interest-card-browser/references/commands.md +123 -0
  28. package/card-skills/douyin-interest-card-capability/.interest-card-cli.json +3 -0
  29. package/card-skills/douyin-interest-card-capability/.skillignore +2 -0
  30. package/card-skills/douyin-interest-card-capability/SKILL.md +74 -0
  31. package/card-skills/douyin-interest-card-capability/references/common/openapi/external/guide.md +421 -0
  32. package/card-skills/douyin-interest-card-capability/references/common/openapi/guide.md +11 -0
  33. package/card-skills/douyin-interest-card-capability/references/microapp/api/add-calendar-event.md +104 -0
  34. package/card-skills/douyin-interest-card-capability/references/microapp/api/add-to-ec-cart.md +84 -0
  35. package/card-skills/douyin-interest-card-capability/references/microapp/api/apply-ec-coupon.md +84 -0
  36. package/card-skills/douyin-interest-card-capability/references/microapp/api/apply-refund.md +77 -0
  37. package/card-skills/douyin-interest-card-capability/references/microapp/api/array-buffer-to-base64.md +52 -0
  38. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-canplay.md +50 -0
  39. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-ended.md +50 -0
  40. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-error.md +50 -0
  41. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-next.md +50 -0
  42. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-pause.md +50 -0
  43. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-play.md +50 -0
  44. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-prev.md +50 -0
  45. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-seeked.md +50 -0
  46. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-seeking.md +50 -0
  47. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-stop.md +50 -0
  48. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-time-update.md +52 -0
  49. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-off-waiting.md +50 -0
  50. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-canplay.md +52 -0
  51. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-ended.md +52 -0
  52. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-error.md +52 -0
  53. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-next.md +55 -0
  54. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-pause.md +52 -0
  55. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-play.md +52 -0
  56. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-prev.md +55 -0
  57. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-seeked.md +52 -0
  58. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-seeking.md +52 -0
  59. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-stop.md +52 -0
  60. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-time-update.md +52 -0
  61. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-on-waiting.md +55 -0
  62. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-pause.md +52 -0
  63. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-play.md +52 -0
  64. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-seek.md +52 -0
  65. package/card-skills/douyin-interest-card-capability/references/microapp/api/background-audio-manager-stop.md +52 -0
  66. package/card-skills/douyin-interest-card-capability/references/microapp/api/base64-to-array-buffer.md +52 -0
  67. package/card-skills/douyin-interest-card-capability/references/microapp/api/batch-add-to-ec-cart.md +75 -0
  68. package/card-skills/douyin-interest-card-capability/references/microapp/api/bytenn-engine-context-load.md +50 -0
  69. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-context-on-camera-frame.md +62 -0
  70. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-context-set-zoom.md +91 -0
  71. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-context-start-record.md +60 -0
  72. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-context-stop-record.md +101 -0
  73. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-context-take-photo.md +99 -0
  74. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-frame-listener-start.md +52 -0
  75. package/card-skills/douyin-interest-card-capability/references/microapp/api/camera-frame-listener-stop.md +87 -0
  76. package/card-skills/douyin-interest-card-capability/references/microapp/api/can-iput-stuff-over-component.md +55 -0
  77. package/card-skills/douyin-interest-card-capability/references/microapp/api/can-iuse-video-format.md +94 -0
  78. package/card-skills/douyin-interest-card-capability/references/microapp/api/can-iuse.md +52 -0
  79. package/card-skills/douyin-interest-card-capability/references/microapp/api/can-rate-aweme-orders.md +96 -0
  80. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-arc.md +50 -0
  81. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-begin-path.md +50 -0
  82. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-bezier-curve-to.md +50 -0
  83. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-clear-rect.md +50 -0
  84. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-clip.md +50 -0
  85. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-close-path.md +50 -0
  86. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-create-linear-gradient.md +50 -0
  87. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-draw-image.md +50 -0
  88. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-draw.md +50 -0
  89. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-fill-rect.md +50 -0
  90. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-fill-text.md +50 -0
  91. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-fill.md +50 -0
  92. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-line-to.md +50 -0
  93. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-measure-text.md +50 -0
  94. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-move-to.md +50 -0
  95. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-quadratic-curve-to.md +50 -0
  96. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-rect.md +50 -0
  97. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-restore.md +50 -0
  98. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-rotate.md +50 -0
  99. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-save.md +50 -0
  100. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-scale.md +50 -0
  101. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-fill-style.md +50 -0
  102. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-font-size.md +50 -0
  103. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-global-alpha.md +50 -0
  104. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-line-cap.md +50 -0
  105. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-line-dash.md +50 -0
  106. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-line-join.md +50 -0
  107. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-line-width.md +50 -0
  108. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-miter-limit.md +50 -0
  109. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-stroke-style.md +50 -0
  110. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-text-align.md +50 -0
  111. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-text-baseline.md +50 -0
  112. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-set-transform.md +50 -0
  113. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-stroke-rect.md +50 -0
  114. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-stroke.md +50 -0
  115. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-transform.md +50 -0
  116. package/card-skills/douyin-interest-card-capability/references/microapp/api/canvas-context-translate.md +50 -0
  117. package/card-skills/douyin-interest-card-capability/references/microapp/api/capability-index.json +454 -0
  118. package/card-skills/douyin-interest-card-capability/references/microapp/api/check-follow-aweme-state.md +93 -0
  119. package/card-skills/douyin-interest-card-capability/references/microapp/api/check-follow-state.md +89 -0
  120. package/card-skills/douyin-interest-card-capability/references/microapp/api/check-session.md +88 -0
  121. package/card-skills/douyin-interest-card-capability/references/microapp/api/check-shop-member.md +75 -0
  122. package/card-skills/douyin-interest-card-capability/references/microapp/api/choose-address.md +98 -0
  123. package/card-skills/douyin-interest-card-capability/references/microapp/api/choose-image.md +106 -0
  124. package/card-skills/douyin-interest-card-capability/references/microapp/api/choose-location.md +100 -0
  125. package/card-skills/douyin-interest-card-capability/references/microapp/api/choose-media.md +114 -0
  126. package/card-skills/douyin-interest-card-capability/references/microapp/api/choose-video.md +110 -0
  127. package/card-skills/douyin-interest-card-capability/references/microapp/api/clear-storage-sync.md +50 -0
  128. package/card-skills/douyin-interest-card-capability/references/microapp/api/clear-storage.md +85 -0
  129. package/card-skills/douyin-interest-card-capability/references/microapp/api/compress-image.md +100 -0
  130. package/card-skills/douyin-interest-card-capability/references/microapp/api/confirm.md +46 -0
  131. package/card-skills/douyin-interest-card-capability/references/microapp/api/connect-socket.md +96 -0
  132. package/card-skills/douyin-interest-card-capability/references/microapp/api/continue-to-pay.md +82 -0
  133. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-animation.md +92 -0
  134. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-bytenn-engine-context.md +59 -0
  135. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-camera-context.md +50 -0
  136. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-canvas-context.md +57 -0
  137. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-effect-camera-stream.md +57 -0
  138. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-inner-audio-context.md +67 -0
  139. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-intersection-observer.md +59 -0
  140. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-interstitial-ad.md +63 -0
  141. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-live-player-context.md +72 -0
  142. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-map-context.md +55 -0
  143. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-media-recorder.md +58 -0
  144. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-offscreen-canvas.md +46 -0
  145. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-order.md +75 -0
  146. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-rewarded-video-ad.md +68 -0
  147. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-rtc-room-context.md +74 -0
  148. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-scene-activity-context.md +81 -0
  149. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-selector-query.md +46 -0
  150. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-sticker-manager.md +57 -0
  151. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-video-context.md +56 -0
  152. package/card-skills/douyin-interest-card-capability/references/microapp/api/delete-calendar-event.md +100 -0
  153. package/card-skills/douyin-interest-card-capability/references/microapp/api/disable-alert-before-unload.md +83 -0
  154. package/card-skills/douyin-interest-card-capability/references/microapp/api/disable-user-screen-record.md +85 -0
  155. package/card-skills/douyin-interest-card-capability/references/microapp/api/download-file.md +137 -0
  156. package/card-skills/douyin-interest-card-capability/references/microapp/api/download-task-abort.md +52 -0
  157. package/card-skills/douyin-interest-card-capability/references/microapp/api/download-task-off-progress-update.md +59 -0
  158. package/card-skills/douyin-interest-card-capability/references/microapp/api/download-task-on-progress-update.md +59 -0
  159. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-dispose.md +50 -0
  160. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-off-error.md +50 -0
  161. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-off-play.md +50 -0
  162. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-off-request.md +50 -0
  163. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-off-stop.md +50 -0
  164. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-on-error.md +50 -0
  165. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-on-play.md +50 -0
  166. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-on-request.md +52 -0
  167. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-on-stop.md +52 -0
  168. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-paint-to.md +69 -0
  169. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-play.md +50 -0
  170. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-request.md +61 -0
  171. package/card-skills/douyin-interest-card-capability/references/microapp/api/effect-camera-stream-stop.md +50 -0
  172. package/card-skills/douyin-interest-card-capability/references/microapp/api/enable-alert-before-unload.md +93 -0
  173. package/card-skills/douyin-interest-card-capability/references/microapp/api/enable-user-screen-record.md +85 -0
  174. package/card-skills/douyin-interest-card-capability/references/microapp/api/exit-mini-program.md +85 -0
  175. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-access-sync.md +58 -0
  176. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-access.md +94 -0
  177. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-append-file-sync.md +60 -0
  178. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-append-file.md +101 -0
  179. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-copy-file-sync.md +63 -0
  180. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-copy-file.md +100 -0
  181. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-get-file-info.md +99 -0
  182. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-get-saved-file-list.md +93 -0
  183. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-mkdir-sync.md +60 -0
  184. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-mkdir.md +100 -0
  185. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-read-file-sync.md +63 -0
  186. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-read-file.md +107 -0
  187. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-readdir-sync.md +61 -0
  188. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-readdir.md +96 -0
  189. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-remove-saved-file.md +95 -0
  190. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-rename-sync.md +64 -0
  191. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-rename.md +98 -0
  192. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-rmdir-sync.md +61 -0
  193. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-rmdir.md +98 -0
  194. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-save-file-sync.md +62 -0
  195. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-save-file.md +102 -0
  196. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-stat-sync.md +63 -0
  197. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-stat.md +99 -0
  198. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-truncate-sync.md +65 -0
  199. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-truncate.md +99 -0
  200. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-unlink-sync.md +64 -0
  201. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-unlink.md +96 -0
  202. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-unzip.md +100 -0
  203. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-write-file-sync.md +63 -0
  204. package/card-skills/douyin-interest-card-capability/references/microapp/api/file-system-manager-write-file.md +102 -0
  205. package/card-skills/douyin-interest-card-capability/references/microapp/api/follow-aweme-user.md +102 -0
  206. package/card-skills/douyin-interest-card-capability/references/microapp/api/follow-official-account.md +89 -0
  207. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-algorithm-manager.md +84 -0
  208. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-analysis-info.md +105 -0
  209. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-background-audio-manager.md +46 -0
  210. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-clipboard-data.md +92 -0
  211. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-connected-wifi.md +96 -0
  212. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-custom-button-bounding-client-rect.md +76 -0
  213. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-device-info-sync.md +58 -0
  214. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-enter-options-sync.md +57 -0
  215. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-env-info-sync.md +67 -0
  216. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-ext-config-sync.md +50 -0
  217. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-ext-config.md +84 -0
  218. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-file-info.md +96 -0
  219. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-file-system-manager.md +57 -0
  220. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-image-info.md +99 -0
  221. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-launch-options-sync.md +57 -0
  222. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-location.md +82 -0
  223. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-menu-button-bounding-client-rect.md +58 -0
  224. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-network-type.md +75 -0
  225. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-order-payment.md +108 -0
  226. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-privacy-setting.md +85 -0
  227. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-random-values.md +90 -0
  228. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-recorder-manager.md +50 -0
  229. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-saved-file-list.md +87 -0
  230. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-screen-brightness.md +86 -0
  231. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-setting.md +57 -0
  232. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-sidebar-activity.md +87 -0
  233. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-storage-info-sync.md +52 -0
  234. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-storage-info.md +86 -0
  235. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-storage-sync.md +55 -0
  236. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-storage.md +92 -0
  237. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-system-info-sync.md +78 -0
  238. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-system-info.md +105 -0
  239. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-update-manager.md +50 -0
  240. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-user-profile.md +112 -0
  241. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-wifi-list.md +95 -0
  242. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-home-button.md +86 -0
  243. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-keyboard.md +85 -0
  244. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-loading.md +88 -0
  245. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-navigation-bar-loading.md +87 -0
  246. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-share-menu.md +80 -0
  247. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-tab-bar-red-dot.md +89 -0
  248. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-tab-bar.md +89 -0
  249. package/card-skills/douyin-interest-card-capability/references/microapp/api/hide-toast.md +88 -0
  250. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-destroy.md +50 -0
  251. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-canplay.md +50 -0
  252. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-ended.md +50 -0
  253. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-error.md +50 -0
  254. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-pause.md +50 -0
  255. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-play.md +50 -0
  256. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-seeked.md +50 -0
  257. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-seeking.md +50 -0
  258. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-stop.md +50 -0
  259. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-time-update.md +50 -0
  260. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-off-waiting.md +50 -0
  261. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-canplay.md +55 -0
  262. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-ended.md +50 -0
  263. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-error.md +50 -0
  264. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-pause.md +55 -0
  265. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-play.md +55 -0
  266. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-seeked.md +50 -0
  267. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-seeking.md +50 -0
  268. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-stop.md +55 -0
  269. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-time-update.md +50 -0
  270. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-on-waiting.md +55 -0
  271. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-pause.md +50 -0
  272. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-play.md +50 -0
  273. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-seek.md +50 -0
  274. package/card-skills/douyin-interest-card-capability/references/microapp/api/inner-audio-context-stop.md +50 -0
  275. package/card-skills/douyin-interest-card-capability/references/microapp/api/intersection-observer-disconnect.md +50 -0
  276. package/card-skills/douyin-interest-card-capability/references/microapp/api/intersection-observer-observe.md +52 -0
  277. package/card-skills/douyin-interest-card-capability/references/microapp/api/intersection-observer-relative-to-viewport.md +67 -0
  278. package/card-skills/douyin-interest-card-capability/references/microapp/api/intersection-observer-relative-to.md +67 -0
  279. package/card-skills/douyin-interest-card-capability/references/microapp/api/interstitial-ad-destroy.md +50 -0
  280. package/card-skills/douyin-interest-card-capability/references/microapp/api/interstitial-ad-load.md +60 -0
  281. package/card-skills/douyin-interest-card-capability/references/microapp/api/interstitial-ad-off-load.md +50 -0
  282. package/card-skills/douyin-interest-card-capability/references/microapp/api/interstitial-ad-on-load.md +50 -0
  283. package/card-skills/douyin-interest-card-capability/references/microapp/api/interstitial-ad-show.md +69 -0
  284. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-exit-full-screen.md +52 -0
  285. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-mute.md +52 -0
  286. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-pause.md +52 -0
  287. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-play.md +52 -0
  288. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-request-full-screen.md +64 -0
  289. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-resume.md +52 -0
  290. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-set-water-mark.md +92 -0
  291. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-stop.md +52 -0
  292. package/card-skills/douyin-interest-card-capability/references/microapp/api/live-player-context-unmute.md +52 -0
  293. package/card-skills/douyin-interest-card-capability/references/microapp/api/login.md +97 -0
  294. package/card-skills/douyin-interest-card-capability/references/microapp/api/make-phone-call.md +98 -0
  295. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-destroy.md +50 -0
  296. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-on-error.md +50 -0
  297. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-on-start.md +50 -0
  298. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-on-stop.md +50 -0
  299. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-pause.md +50 -0
  300. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-request-frame.md +50 -0
  301. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-resume.md +50 -0
  302. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-start.md +50 -0
  303. package/card-skills/douyin-interest-card-capability/references/microapp/api/media-recorder-stop.md +50 -0
  304. package/card-skills/douyin-interest-card-capability/references/microapp/api/navigate-back-mini-program.md +90 -0
  305. package/card-skills/douyin-interest-card-capability/references/microapp/api/navigate-back.md +84 -0
  306. package/card-skills/douyin-interest-card-capability/references/microapp/api/navigate-to-mini-program.md +103 -0
  307. package/card-skills/douyin-interest-card-capability/references/microapp/api/navigate-to-scene.md +85 -0
  308. package/card-skills/douyin-interest-card-capability/references/microapp/api/navigate-to.md +91 -0
  309. package/card-skills/douyin-interest-card-capability/references/microapp/api/nodes-ref-bounding-client-rect.md +50 -0
  310. package/card-skills/douyin-interest-card-capability/references/microapp/api/nodes-ref-fields.md +73 -0
  311. package/card-skills/douyin-interest-card-capability/references/microapp/api/nodes-ref-node.md +57 -0
  312. package/card-skills/douyin-interest-card-capability/references/microapp/api/nodes-ref-scroll-offset.md +50 -0
  313. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-accelerometer-change.md +53 -0
  314. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-app-hide.md +53 -0
  315. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-app-show.md +53 -0
  316. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-compass-change.md +53 -0
  317. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-error.md +53 -0
  318. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-get-wifi-list.md +57 -0
  319. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-gyroscope-change.md +53 -0
  320. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-lazy-load-error.md +53 -0
  321. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-location-change-error.md +53 -0
  322. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-location-change.md +53 -0
  323. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-network-status-change.md +53 -0
  324. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-unhandled-rejection.md +56 -0
  325. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-user-capture-screen.md +53 -0
  326. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-user-screen-record.md +60 -0
  327. package/card-skills/douyin-interest-card-capability/references/microapp/api/off-window-resize.md +53 -0
  328. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-accelerometer-change.md +57 -0
  329. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-app-hide.md +53 -0
  330. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-app-launch.md +59 -0
  331. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-app-show.md +61 -0
  332. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-compass-change.md +55 -0
  333. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-error.md +53 -0
  334. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-get-wifi-list.md +62 -0
  335. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-gyroscope-change.md +62 -0
  336. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-lazy-load-error.md +58 -0
  337. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-location-change-error.md +55 -0
  338. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-location-change.md +61 -0
  339. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-memory-warning.md +53 -0
  340. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-need-privacy-authorization.md +57 -0
  341. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-network-status-change.md +56 -0
  342. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-unhandled-rejection.md +56 -0
  343. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-user-capture-screen.md +55 -0
  344. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-user-screen-record.md +60 -0
  345. package/card-skills/douyin-interest-card-capability/references/microapp/api/on-window-resize.md +57 -0
  346. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-document.md +101 -0
  347. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-douyin-order-list.md +78 -0
  348. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-cart.md +75 -0
  349. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-good.md +57 -0
  350. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-im.md +61 -0
  351. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-order-detail.md +59 -0
  352. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-order.md +63 -0
  353. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-shop-custom.md +46 -0
  354. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-ec-shop.md +46 -0
  355. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-location.md +107 -0
  356. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-privacy-contract.md +83 -0
  357. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-setting.md +90 -0
  358. package/card-skills/douyin-interest-card-capability/references/microapp/api/open-webcast-room.md +58 -0
  359. package/card-skills/douyin-interest-card-capability/references/microapp/api/page-scroll-to.md +101 -0
  360. package/card-skills/douyin-interest-card-capability/references/microapp/api/pay.md +76 -0
  361. package/card-skills/douyin-interest-card-capability/references/microapp/api/preload-video-task-abort.md +52 -0
  362. package/card-skills/douyin-interest-card-capability/references/microapp/api/preload-video.md +92 -0
  363. package/card-skills/douyin-interest-card-capability/references/microapp/api/prerender-video.md +96 -0
  364. package/card-skills/douyin-interest-card-capability/references/microapp/api/preview-image.md +101 -0
  365. package/card-skills/douyin-interest-card-capability/references/microapp/api/rate-aweme-order.md +99 -0
  366. package/card-skills/douyin-interest-card-capability/references/microapp/api/re-launch.md +100 -0
  367. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-error.md +55 -0
  368. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-frame-recorded.md +57 -0
  369. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-pause.md +55 -0
  370. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-resume.md +55 -0
  371. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-start.md +55 -0
  372. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-off-stop.md +55 -0
  373. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-error.md +57 -0
  374. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-frame-recorded.md +58 -0
  375. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-pause.md +55 -0
  376. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-resume.md +55 -0
  377. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-start.md +55 -0
  378. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-on-stop.md +59 -0
  379. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-pause.md +52 -0
  380. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-resume.md +52 -0
  381. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-start.md +69 -0
  382. package/card-skills/douyin-interest-card-capability/references/microapp/api/recorder-manager-stop.md +52 -0
  383. package/card-skills/douyin-interest-card-capability/references/microapp/api/redirect-to.md +101 -0
  384. package/card-skills/douyin-interest-card-capability/references/microapp/api/remove-saved-file.md +92 -0
  385. package/card-skills/douyin-interest-card-capability/references/microapp/api/remove-storage-sync.md +53 -0
  386. package/card-skills/douyin-interest-card-capability/references/microapp/api/remove-storage.md +88 -0
  387. package/card-skills/douyin-interest-card-capability/references/microapp/api/remove-tab-bar-badge.md +90 -0
  388. package/card-skills/douyin-interest-card-capability/references/microapp/api/report-analytics.md +68 -0
  389. package/card-skills/douyin-interest-card-capability/references/microapp/api/request-order.md +113 -0
  390. package/card-skills/douyin-interest-card-capability/references/microapp/api/request-subscribe-message.md +110 -0
  391. package/card-skills/douyin-interest-card-capability/references/microapp/api/request-task-abort.md +52 -0
  392. package/card-skills/douyin-interest-card-capability/references/microapp/api/request.md +132 -0
  393. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-load.md +65 -0
  394. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-off-close.md +62 -0
  395. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-off-error.md +62 -0
  396. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-off-load.md +59 -0
  397. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-on-close.md +62 -0
  398. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-on-error.md +72 -0
  399. package/card-skills/douyin-interest-card-capability/references/microapp/api/rewarded-video-ad-on-load.md +59 -0
  400. package/card-skills/douyin-interest-card-capability/references/microapp/api/save-file.md +96 -0
  401. package/card-skills/douyin-interest-card-capability/references/microapp/api/save-image-to-photos-album.md +97 -0
  402. package/card-skills/douyin-interest-card-capability/references/microapp/api/save-video-to-photos-album.md +101 -0
  403. package/card-skills/douyin-interest-card-capability/references/microapp/api/scan-code.md +94 -0
  404. package/card-skills/douyin-interest-card-capability/references/microapp/api/selector-query-exec.md +63 -0
  405. package/card-skills/douyin-interest-card-capability/references/microapp/api/selector-query-in.md +50 -0
  406. package/card-skills/douyin-interest-card-capability/references/microapp/api/selector-query-select-all.md +50 -0
  407. package/card-skills/douyin-interest-card-capability/references/microapp/api/selector-query-select-viewport.md +50 -0
  408. package/card-skills/douyin-interest-card-capability/references/microapp/api/selector-query-select.md +50 -0
  409. package/card-skills/douyin-interest-card-capability/references/microapp/api/send-sms.md +91 -0
  410. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-clipboard-data.md +94 -0
  411. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-keep-screen-on.md +88 -0
  412. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-navigation-bar-color.md +95 -0
  413. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-navigation-bar-title.md +90 -0
  414. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-page-info.md +79 -0
  415. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-screen-brightness.md +92 -0
  416. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-storage-sync.md +57 -0
  417. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-storage.md +98 -0
  418. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-swipe-back-mode.md +57 -0
  419. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-tab-bar-badge.md +92 -0
  420. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-tab-bar-item.md +98 -0
  421. package/card-skills/douyin-interest-card-capability/references/microapp/api/set-tab-bar-style.md +99 -0
  422. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-action-sheet.md +96 -0
  423. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-douyin-open-auth.md +144 -0
  424. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-favorite-guide.md +92 -0
  425. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-interaction-bar.md +75 -0
  426. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-loading.md +91 -0
  427. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-modal.md +113 -0
  428. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-navigation-bar-loading.md +87 -0
  429. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-share-menu.md +80 -0
  430. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-tab-bar-red-dot.md +89 -0
  431. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-tab-bar.md +89 -0
  432. package/card-skills/douyin-interest-card-capability/references/microapp/api/show-toast.md +96 -0
  433. package/card-skills/douyin-interest-card-capability/references/microapp/api/sign.md +99 -0
  434. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-close.md +99 -0
  435. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-on-close.md +63 -0
  436. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-on-error.md +59 -0
  437. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-on-message.md +61 -0
  438. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-on-open.md +61 -0
  439. package/card-skills/douyin-interest-card-capability/references/microapp/api/socket-task-send.md +96 -0
  440. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-accelerometer.md +88 -0
  441. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-compass.md +87 -0
  442. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-facial-recognition-verify.md +69 -0
  443. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-gyroscope.md +92 -0
  444. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-location-update.md +95 -0
  445. package/card-skills/douyin-interest-card-capability/references/microapp/api/start-pull-down-refresh.md +83 -0
  446. package/card-skills/douyin-interest-card-capability/references/microapp/api/stat-is-directory.md +54 -0
  447. package/card-skills/douyin-interest-card-capability/references/microapp/api/stat-is-file.md +54 -0
  448. package/card-skills/douyin-interest-card-capability/references/microapp/api/sticker-manager-load.md +50 -0
  449. package/card-skills/douyin-interest-card-capability/references/microapp/api/sticker-processor-paint-to-texture.md +50 -0
  450. package/card-skills/douyin-interest-card-capability/references/microapp/api/stop-accelerometer.md +86 -0
  451. package/card-skills/douyin-interest-card-capability/references/microapp/api/stop-compass.md +83 -0
  452. package/card-skills/douyin-interest-card-capability/references/microapp/api/stop-gyroscope.md +83 -0
  453. package/card-skills/douyin-interest-card-capability/references/microapp/api/stop-location-update.md +89 -0
  454. package/card-skills/douyin-interest-card-capability/references/microapp/api/stop-pull-down-refresh.md +87 -0
  455. package/card-skills/douyin-interest-card-capability/references/microapp/api/subscribe-audiences-follow-action.md +75 -0
  456. package/card-skills/douyin-interest-card-capability/references/microapp/api/subscribe-specified-content-comment.md +75 -0
  457. package/card-skills/douyin-interest-card-capability/references/microapp/api/subscribe-specified-user-comment.md +75 -0
  458. package/card-skills/douyin-interest-card-capability/references/microapp/api/switch-tab.md +91 -0
  459. package/card-skills/douyin-interest-card-capability/references/microapp/api/unsubscribe-all-specified-content-comment.md +75 -0
  460. package/card-skills/douyin-interest-card-capability/references/microapp/api/unsubscribe-all-specified-user-comment.md +75 -0
  461. package/card-skills/douyin-interest-card-capability/references/microapp/api/unsubscribe-audiences-follow-action.md +75 -0
  462. package/card-skills/douyin-interest-card-capability/references/microapp/api/update-manager-apply-update.md +89 -0
  463. package/card-skills/douyin-interest-card-capability/references/microapp/api/update-manager-on-check-for-update.md +57 -0
  464. package/card-skills/douyin-interest-card-capability/references/microapp/api/update-manager-on-update-failed.md +56 -0
  465. package/card-skills/douyin-interest-card-capability/references/microapp/api/update-manager-on-update-ready.md +55 -0
  466. package/card-skills/douyin-interest-card-capability/references/microapp/api/update-sidebar-activity.md +94 -0
  467. package/card-skills/douyin-interest-card-capability/references/microapp/api/upload-file.md +137 -0
  468. package/card-skills/douyin-interest-card-capability/references/microapp/api/upload-task-abort.md +52 -0
  469. package/card-skills/douyin-interest-card-capability/references/microapp/api/upload-task-off-progress-update.md +59 -0
  470. package/card-skills/douyin-interest-card-capability/references/microapp/api/upload-task-on-progress-update.md +59 -0
  471. package/card-skills/douyin-interest-card-capability/references/microapp/api/vibrate-long.md +86 -0
  472. package/card-skills/douyin-interest-card-capability/references/microapp/api/vibrate-short.md +86 -0
  473. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-exit-full-screen.md +52 -0
  474. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-get-media-volume.md +87 -0
  475. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-pause.md +52 -0
  476. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-play.md +52 -0
  477. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-playback-rate.md +65 -0
  478. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-request-full-screen.md +64 -0
  479. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-seek.md +63 -0
  480. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-set-media-volume.md +90 -0
  481. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-set-water-mark.md +92 -0
  482. package/card-skills/douyin-interest-card-capability/references/microapp/api/video-context-stop.md +52 -0
  483. package/card-skills/douyin-interest-card-capability/references/microapp/component/ad.md +57 -0
  484. package/card-skills/douyin-interest-card-capability/references/microapp/component/aweme-data.md +53 -0
  485. package/card-skills/douyin-interest-card-capability/references/microapp/component/aweme-user-card.md +59 -0
  486. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-add-calendar-event.md +80 -0
  487. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-add-shortcut.md +59 -0
  488. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-authorize-private-message.md +81 -0
  489. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-get-user-total-info.md +78 -0
  490. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-join-group.md +69 -0
  491. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-navigate-to-video-view.md +77 -0
  492. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-open-aweme-user-profile.md +77 -0
  493. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-open-webcast-room.md +73 -0
  494. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-platform-im.md +67 -0
  495. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-private-message.md +64 -0
  496. package/card-skills/douyin-interest-card-capability/references/microapp/component/button-share.md +64 -0
  497. package/card-skills/douyin-interest-card-capability/references/microapp/component/button.md +44 -0
  498. package/card-skills/douyin-interest-card-capability/references/microapp/component/camera.md +57 -0
  499. package/card-skills/douyin-interest-card-capability/references/microapp/component/canvas.md +48 -0
  500. package/card-skills/douyin-interest-card-capability/references/microapp/component/capability-index.json +60 -0
  501. package/card-skills/douyin-interest-card-capability/references/microapp/component/checkbox-group.md +40 -0
  502. package/card-skills/douyin-interest-card-capability/references/microapp/component/checkbox.md +41 -0
  503. package/card-skills/douyin-interest-card-capability/references/microapp/component/consume-card.md +46 -0
  504. package/card-skills/douyin-interest-card-capability/references/microapp/component/diamond-balance.md +56 -0
  505. package/card-skills/douyin-interest-card-capability/references/microapp/component/form.md +43 -0
  506. package/card-skills/douyin-interest-card-capability/references/microapp/component/icon.md +38 -0
  507. package/card-skills/douyin-interest-card-capability/references/microapp/component/image.md +48 -0
  508. package/card-skills/douyin-interest-card-capability/references/microapp/component/input.md +65 -0
  509. package/card-skills/douyin-interest-card-capability/references/microapp/component/label.md +38 -0
  510. package/card-skills/douyin-interest-card-capability/references/microapp/component/live-player.md +61 -0
  511. package/card-skills/douyin-interest-card-capability/references/microapp/component/live-preview.md +56 -0
  512. package/card-skills/douyin-interest-card-capability/references/microapp/component/map.md +75 -0
  513. package/card-skills/douyin-interest-card-capability/references/microapp/component/mask.md +37 -0
  514. package/card-skills/douyin-interest-card-capability/references/microapp/component/member-button.md +37 -0
  515. package/card-skills/douyin-interest-card-capability/references/microapp/component/movable-area.md +38 -0
  516. package/card-skills/douyin-interest-card-capability/references/microapp/component/movable-view.md +55 -0
  517. package/card-skills/douyin-interest-card-capability/references/microapp/component/navigator.md +48 -0
  518. package/card-skills/douyin-interest-card-capability/references/microapp/component/open-data.md +52 -0
  519. package/card-skills/douyin-interest-card-capability/references/microapp/component/pay-button.md +58 -0
  520. package/card-skills/douyin-interest-card-capability/references/microapp/component/picker-view-column.md +36 -0
  521. package/card-skills/douyin-interest-card-capability/references/microapp/component/picker-view.md +47 -0
  522. package/card-skills/douyin-interest-card-capability/references/microapp/component/picker.md +47 -0
  523. package/card-skills/douyin-interest-card-capability/references/microapp/component/progress.md +46 -0
  524. package/card-skills/douyin-interest-card-capability/references/microapp/component/radio-group.md +40 -0
  525. package/card-skills/douyin-interest-card-capability/references/microapp/component/radio.md +41 -0
  526. package/card-skills/douyin-interest-card-capability/references/microapp/component/rate-button.md +47 -0
  527. package/card-skills/douyin-interest-card-capability/references/microapp/component/rich-text.md +43 -0
  528. package/card-skills/douyin-interest-card-capability/references/microapp/component/rtc-room.md +46 -0
  529. package/card-skills/douyin-interest-card-capability/references/microapp/component/scroll-view.md +64 -0
  530. package/card-skills/douyin-interest-card-capability/references/microapp/component/slider.md +56 -0
  531. package/card-skills/douyin-interest-card-capability/references/microapp/component/swiper-item.md +40 -0
  532. package/card-skills/douyin-interest-card-capability/references/microapp/component/swiper.md +60 -0
  533. package/card-skills/douyin-interest-card-capability/references/microapp/component/switch.md +47 -0
  534. package/card-skills/douyin-interest-card-capability/references/microapp/component/text.md +40 -0
  535. package/card-skills/douyin-interest-card-capability/references/microapp/component/textarea.md +73 -0
  536. package/card-skills/douyin-interest-card-capability/references/microapp/component/video.md +127 -0
  537. package/card-skills/douyin-interest-card-capability/references/microapp/component/view.md +50 -0
  538. package/card-skills/douyin-interest-card-capability/references/microapp/component/web-view.md +64 -0
  539. package/card-skills/douyin-interest-card-capability/references/microapp/flow-index.json +94 -0
  540. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/capability-index.json +2237 -0
  541. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/censor-image.md +84 -0
  542. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/censor-text.md +77 -0
  543. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/check-fans.md +75 -0
  544. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/create-activity.md +72 -0
  545. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-affiliate-id.md +72 -0
  546. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-data-info.md +69 -0
  547. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-item-list.md +69 -0
  548. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-profile.md +75 -0
  549. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-favourite.md +75 -0
  550. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-profile.md +75 -0
  551. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-source.md +75 -0
  552. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-feed.md +69 -0
  553. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-follow-feed.md +69 -0
  554. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-follow-hot-word.md +69 -0
  555. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-friend-list.md +75 -0
  556. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-hot-list.md +68 -0
  557. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-music-collection-list.md +75 -0
  558. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-recommend.md +68 -0
  559. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-related-id.md +72 -0
  560. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-room-real-time-data.md +82 -0
  561. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-basic-data.md +69 -0
  562. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-cert-labels-info.md +75 -0
  563. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-comment-data.md +75 -0
  564. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-constellation.md +68 -0
  565. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-fans-data.md +75 -0
  566. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-fans-profile.md +75 -0
  567. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-following.md +69 -0
  568. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-hash-mobile.md +79 -0
  569. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-interest.md +69 -0
  570. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-item-data.md +75 -0
  571. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-like-data.md +75 -0
  572. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-profile-data.md +75 -0
  573. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-share-data.md +75 -0
  574. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-video-pack.md +68 -0
  575. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/modify-activity.md +72 -0
  576. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-activity-info.md +68 -0
  577. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-activity-user-completion-status.md +75 -0
  578. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-room-data.md +82 -0
  579. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-experience.md +68 -0
  580. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-general.md +68 -0
  581. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-live.md +68 -0
  582. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-music.md +95 -0
  583. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-user.md +68 -0
  584. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-video.md +96 -0
  585. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-vision.md +72 -0
  586. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/canvas-init.md +15 -0
  587. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/facial-recognition.md +15 -0
  588. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/image-recognition.md +16 -0
  589. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/location-map.md +13 -0
  590. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/scene-activity.md +15 -0
  591. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/search-video-navigation.md +17 -0
  592. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/sidebar-navigation.md +15 -0
  593. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/user-openapi-auth.md +28 -0
  594. package/card-skills/douyin-interest-card-capability/references/microapp/recipes/video-prerender.md +14 -0
  595. package/card-skills/douyin-interest-card-capability/references/opencard/api/array-buffer-to-base64.md +62 -0
  596. package/card-skills/douyin-interest-card-capability/references/opencard/api/base64-to-array-buffer.md +61 -0
  597. package/card-skills/douyin-interest-card-capability/references/opencard/api/call-container.md +72 -0
  598. package/card-skills/douyin-interest-card-capability/references/opencard/api/can-iuse.md +55 -0
  599. package/card-skills/douyin-interest-card-capability/references/opencard/api/capability-index.json +50 -0
  600. package/card-skills/douyin-interest-card-capability/references/opencard/api/check-session.md +74 -0
  601. package/card-skills/douyin-interest-card-capability/references/opencard/api/choose-image.md +103 -0
  602. package/card-skills/douyin-interest-card-capability/references/opencard/api/choose-media.md +111 -0
  603. package/card-skills/douyin-interest-card-capability/references/opencard/api/choose-video.md +107 -0
  604. package/card-skills/douyin-interest-card-capability/references/opencard/api/clear-storage-sync.md +57 -0
  605. package/card-skills/douyin-interest-card-capability/references/opencard/api/clear-storage.md +71 -0
  606. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-channel-video-context.md +66 -0
  607. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-cloud.md +61 -0
  608. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-event-source.md +71 -0
  609. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-inner-audio-context.md +57 -0
  610. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-map-context.md +74 -0
  611. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-selector-query.md +54 -0
  612. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-video-context.md +70 -0
  613. package/card-skills/douyin-interest-card-capability/references/opencard/api/download-file.md +130 -0
  614. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-background-audio-manager.md +60 -0
  615. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-device-info-sync.md +65 -0
  616. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-enter-options-sync.md +64 -0
  617. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-env-info-sync.md +71 -0
  618. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-image-info.md +86 -0
  619. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-launch-options-sync.md +64 -0
  620. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-location.md +68 -0
  621. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-setting.md +54 -0
  622. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-storage-info-sync.md +59 -0
  623. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-storage-info.md +72 -0
  624. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-storage-sync.md +62 -0
  625. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-storage.md +77 -0
  626. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-system-info-sync.md +85 -0
  627. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-system-info.md +90 -0
  628. package/card-skills/douyin-interest-card-capability/references/opencard/api/login.md +84 -0
  629. package/card-skills/douyin-interest-card-capability/references/opencard/api/navigate-to-mini-program.md +135 -0
  630. package/card-skills/douyin-interest-card-capability/references/opencard/api/open-schema.md +75 -0
  631. package/card-skills/douyin-interest-card-capability/references/opencard/api/preload-channel-video.md +59 -0
  632. package/card-skills/douyin-interest-card-capability/references/opencard/api/preview-image.md +92 -0
  633. package/card-skills/douyin-interest-card-capability/references/opencard/api/remove-storage-sync.md +60 -0
  634. package/card-skills/douyin-interest-card-capability/references/opencard/api/remove-storage.md +73 -0
  635. package/card-skills/douyin-interest-card-capability/references/opencard/api/request.md +138 -0
  636. package/card-skills/douyin-interest-card-capability/references/opencard/api/save-image-to-photos-album.md +92 -0
  637. package/card-skills/douyin-interest-card-capability/references/opencard/api/save-video-to-photos-album.md +96 -0
  638. package/card-skills/douyin-interest-card-capability/references/opencard/api/set-storage-sync.md +64 -0
  639. package/card-skills/douyin-interest-card-capability/references/opencard/api/set-storage.md +85 -0
  640. package/card-skills/douyin-interest-card-capability/references/opencard/api/upload-file.md +129 -0
  641. package/card-skills/douyin-interest-card-capability/references/opencard/closed-domain-openapi.md +43 -0
  642. package/card-skills/douyin-interest-card-capability/references/opencard/component/button.md +95 -0
  643. package/card-skills/douyin-interest-card-capability/references/opencard/component/canvas.md +68 -0
  644. package/card-skills/douyin-interest-card-capability/references/opencard/component/capability-index.json +28 -0
  645. package/card-skills/douyin-interest-card-capability/references/opencard/component/channel-video.md +100 -0
  646. package/card-skills/douyin-interest-card-capability/references/opencard/component/checkbox-group.md +62 -0
  647. package/card-skills/douyin-interest-card-capability/references/opencard/component/checkbox.md +51 -0
  648. package/card-skills/douyin-interest-card-capability/references/opencard/component/form.md +56 -0
  649. package/card-skills/douyin-interest-card-capability/references/opencard/component/icon.md +50 -0
  650. package/card-skills/douyin-interest-card-capability/references/opencard/component/image.md +62 -0
  651. package/card-skills/douyin-interest-card-capability/references/opencard/component/input.md +86 -0
  652. package/card-skills/douyin-interest-card-capability/references/opencard/component/label.md +48 -0
  653. package/card-skills/douyin-interest-card-capability/references/opencard/component/map.md +91 -0
  654. package/card-skills/douyin-interest-card-capability/references/opencard/component/progress.md +62 -0
  655. package/card-skills/douyin-interest-card-capability/references/opencard/component/radio-group.md +62 -0
  656. package/card-skills/douyin-interest-card-capability/references/opencard/component/radio.md +51 -0
  657. package/card-skills/douyin-interest-card-capability/references/opencard/component/slider.md +77 -0
  658. package/card-skills/douyin-interest-card-capability/references/opencard/component/svg.md +58 -0
  659. package/card-skills/douyin-interest-card-capability/references/opencard/component/swiper-item.md +56 -0
  660. package/card-skills/douyin-interest-card-capability/references/opencard/component/swiper.md +79 -0
  661. package/card-skills/douyin-interest-card-capability/references/opencard/component/switch.md +63 -0
  662. package/card-skills/douyin-interest-card-capability/references/opencard/component/text.md +49 -0
  663. package/card-skills/douyin-interest-card-capability/references/opencard/component/textarea.md +91 -0
  664. package/card-skills/douyin-interest-card-capability/references/opencard/component/video.md +104 -0
  665. package/card-skills/douyin-interest-card-capability/references/opencard/component/view.md +55 -0
  666. package/card-skills/douyin-interest-card-capability/references/opencard/component-guide.md +27 -0
  667. package/card-skills/douyin-interest-card-capability/references/opencard/flow-index.json +44 -0
  668. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/capability-index.json +2156 -0
  669. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/censor-image.md +86 -0
  670. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/censor-text.md +79 -0
  671. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/check-fans.md +30 -0
  672. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/create-activity.md +74 -0
  673. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-affiliate-id.md +74 -0
  674. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-data-info.md +71 -0
  675. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-item-list.md +71 -0
  676. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-profile.md +77 -0
  677. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-favourite.md +30 -0
  678. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-profile.md +30 -0
  679. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-source.md +30 -0
  680. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-feed.md +71 -0
  681. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-follow-feed.md +71 -0
  682. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-follow-hot-word.md +71 -0
  683. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-friend-list.md +30 -0
  684. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-hot-list.md +70 -0
  685. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-music-collection-list.md +30 -0
  686. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-recommend.md +70 -0
  687. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-related-id.md +74 -0
  688. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-room-real-time-data.md +30 -0
  689. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-basic-data.md +71 -0
  690. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-cert-labels-info.md +30 -0
  691. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-comment-data.md +30 -0
  692. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-constellation.md +70 -0
  693. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-fans-data.md +30 -0
  694. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-fans-profile.md +30 -0
  695. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-following.md +71 -0
  696. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-hash-mobile.md +30 -0
  697. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-interest.md +71 -0
  698. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-item-data.md +30 -0
  699. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-like-data.md +30 -0
  700. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-profile-data.md +30 -0
  701. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-share-data.md +30 -0
  702. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-video-pack.md +70 -0
  703. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/modify-activity.md +74 -0
  704. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-activity-info.md +70 -0
  705. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-activity-user-completion-status.md +30 -0
  706. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-room-data.md +30 -0
  707. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-experience.md +70 -0
  708. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-general.md +70 -0
  709. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-live.md +70 -0
  710. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-music.md +97 -0
  711. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-user.md +70 -0
  712. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-video.md +98 -0
  713. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-vision.md +74 -0
  714. package/card-skills/douyin-interest-card-capability/references/opencard/recipes/canvas-init.md +15 -0
  715. package/card-skills/douyin-interest-card-capability/references/opencard/recipes/channel-video-control.md +16 -0
  716. package/card-skills/douyin-interest-card-capability/references/opencard/recipes/location-map.md +15 -0
  717. package/card-skills/douyin-interest-card-capability/references/opencard/recipes/search-video-navigation.md +15 -0
  718. package/card-skills/douyin-interest-card-capability/references/opencard/runtime.md +203 -0
  719. package/card-skills/douyin-interest-card-capability/scripts/search-capabilities.mjs +365 -0
  720. package/card-skills/douyin-interest-card-cli/.interest-card-cli.json +3 -0
  721. package/card-skills/douyin-interest-card-cli/SKILL.md +294 -0
  722. package/card-skills/douyin-interest-card-cli/references/basic-info.md +54 -0
  723. package/card-skills/douyin-interest-card-cli/references/card-background.md +55 -0
  724. package/card-skills/douyin-interest-card-cli/references/transparent-assets.md +33 -0
  725. package/card-skills/douyin-interest-card-cli/scripts/chroma_key.py +209 -0
  726. package/card-skills/douyin-interest-card-design/.interest-card-cli.json +3 -0
  727. package/card-skills/douyin-interest-card-design/SKILL.md +56 -0
  728. package/card-skills/douyin-interest-card-design/assets/component/button/example.css +227 -0
  729. package/card-skills/douyin-interest-card-design/assets/component/button/example.tsx +85 -0
  730. package/card-skills/douyin-interest-card-design/assets/component/comparison/example.css +90 -0
  731. package/card-skills/douyin-interest-card-design/assets/component/comparison/example.tsx +24 -0
  732. package/card-skills/douyin-interest-card-design/assets/component/content-list/example.css +152 -0
  733. package/card-skills/douyin-interest-card-design/assets/component/content-list/example.tsx +55 -0
  734. package/card-skills/douyin-interest-card-design/assets/component/metrics/example.css +176 -0
  735. package/card-skills/douyin-interest-card-design/assets/component/metrics/example.tsx +47 -0
  736. package/card-skills/douyin-interest-card-design/assets/component/place-list/example.css +232 -0
  737. package/card-skills/douyin-interest-card-design/assets/component/place-list/example.tsx +83 -0
  738. package/card-skills/douyin-interest-card-design/assets/component/product-list/example.css +249 -0
  739. package/card-skills/douyin-interest-card-design/assets/component/product-list/example.tsx +83 -0
  740. package/card-skills/douyin-interest-card-design/assets/component/tab-bar/example.css +185 -0
  741. package/card-skills/douyin-interest-card-design/assets/component/tab-bar/example.tsx +87 -0
  742. package/card-skills/douyin-interest-card-design/assets/component/tag/example.css +150 -0
  743. package/card-skills/douyin-interest-card-design/assets/component/tag/example.tsx +62 -0
  744. package/card-skills/douyin-interest-card-design/assets/component/timeline/example.css +114 -0
  745. package/card-skills/douyin-interest-card-design/assets/component/timeline/example.tsx +20 -0
  746. package/card-skills/douyin-interest-card-design/assets/component/vote/example.css +173 -0
  747. package/card-skills/douyin-interest-card-design/assets/component/vote/example.tsx +33 -0
  748. package/card-skills/douyin-interest-card-design/assets/icon/AI_filled.svg +4 -0
  749. package/card-skills/douyin-interest-card-design/assets/icon/arrowdown_outlined.svg +3 -0
  750. package/card-skills/douyin-interest-card-design/assets/icon/arrowleft_outlined.svg +3 -0
  751. package/card-skills/douyin-interest-card-design/assets/icon/arrowright_outlined.svg +3 -0
  752. package/card-skills/douyin-interest-card-design/assets/icon/arrowup_outlined.svg +3 -0
  753. package/card-skills/douyin-interest-card-design/assets/icon/bell_filled.svg +4 -0
  754. package/card-skills/douyin-interest-card-design/assets/icon/bell_outlined.svg +3 -0
  755. package/card-skills/douyin-interest-card-design/assets/icon/book_filled.svg +4 -0
  756. package/card-skills/douyin-interest-card-design/assets/icon/book_outlined.svg +3 -0
  757. package/card-skills/douyin-interest-card-design/assets/icon/comment_outlined.svg +3 -0
  758. package/card-skills/douyin-interest-card-design/assets/icon/doc_filled.svg +3 -0
  759. package/card-skills/douyin-interest-card-design/assets/icon/doc_outlined.svg +5 -0
  760. package/card-skills/douyin-interest-card-design/assets/icon/eye_outlined.svg +4 -0
  761. package/card-skills/douyin-interest-card-design/assets/icon/fire_filled.svg +3 -0
  762. package/card-skills/douyin-interest-card-design/assets/icon/fire_outlined.svg +3 -0
  763. package/card-skills/douyin-interest-card-design/assets/icon/headphone_outlined.svg +3 -0
  764. package/card-skills/douyin-interest-card-design/assets/icon/image_filled.svg +4 -0
  765. package/card-skills/douyin-interest-card-design/assets/icon/image_outlined.svg +4 -0
  766. package/card-skills/douyin-interest-card-design/assets/icon/label_filled.svg +3 -0
  767. package/card-skills/douyin-interest-card-design/assets/icon/label_outlined.svg +4 -0
  768. package/card-skills/douyin-interest-card-design/assets/icon/like_filled.svg +3 -0
  769. package/card-skills/douyin-interest-card-design/assets/icon/like_outlined.svg +3 -0
  770. package/card-skills/douyin-interest-card-design/assets/icon/lineararrow_outlined.svg +3 -0
  771. package/card-skills/douyin-interest-card-design/assets/icon/message_filled.svg +3 -0
  772. package/card-skills/douyin-interest-card-design/assets/icon/message_outlined.svg +8 -0
  773. package/card-skills/douyin-interest-card-design/assets/icon/microphone_filled.svg +4 -0
  774. package/card-skills/douyin-interest-card-design/assets/icon/microphone_outlined.svg +4 -0
  775. package/card-skills/douyin-interest-card-design/assets/icon/play_filled.svg +3 -0
  776. package/card-skills/douyin-interest-card-design/assets/icon/play_outlined.svg +3 -0
  777. package/card-skills/douyin-interest-card-design/assets/icon/plus_outlined.svg +3 -0
  778. package/card-skills/douyin-interest-card-design/assets/icon/pluscircle_filled.svg +3 -0
  779. package/card-skills/douyin-interest-card-design/assets/icon/pulscircle_outlined.svg +4 -0
  780. package/card-skills/douyin-interest-card-design/assets/icon/questioncircle_filled.svg +3 -0
  781. package/card-skills/douyin-interest-card-design/assets/icon/questioncircle_outlined.svg +5 -0
  782. package/card-skills/douyin-interest-card-design/assets/icon/satr_outlined.svg +3 -0
  783. package/card-skills/douyin-interest-card-design/assets/icon/search_filled.svg +3 -0
  784. package/card-skills/douyin-interest-card-design/assets/icon/search_outlined.svg +3 -0
  785. package/card-skills/douyin-interest-card-design/assets/icon/shoppingcart_filled.svg +5 -0
  786. package/card-skills/douyin-interest-card-design/assets/icon/shoppingcart_outlined.svg +5 -0
  787. package/card-skills/douyin-interest-card-design/assets/icon/star_filled.svg +3 -0
  788. package/card-skills/douyin-interest-card-design/assets/icon/store_filled.svg +4 -0
  789. package/card-skills/douyin-interest-card-design/assets/icon/store_outlined.svg +4 -0
  790. package/card-skills/douyin-interest-card-design/assets/icon/thumbsdown_filled.svg +3 -0
  791. package/card-skills/douyin-interest-card-design/assets/icon/thumbsdown_outlined.svg +3 -0
  792. package/card-skills/douyin-interest-card-design/assets/icon/thumbsup_filled.svg +3 -0
  793. package/card-skills/douyin-interest-card-design/assets/icon/thumbsup_outlined.svg +3 -0
  794. package/card-skills/douyin-interest-card-design/assets/icon/tv_filled.svg +3 -0
  795. package/card-skills/douyin-interest-card-design/assets/icon/tv_outlined.svg +4 -0
  796. package/card-skills/douyin-interest-card-design/assets/icon/user_filled.svg +4 -0
  797. package/card-skills/douyin-interest-card-design/assets/icon/user_outlined.svg +4 -0
  798. package/card-skills/douyin-interest-card-design/assets/icon/warningcircle_filled.svg +3 -0
  799. package/card-skills/douyin-interest-card-design/assets/icon/warningcircle_outlined.svg +5 -0
  800. package/card-skills/douyin-interest-card-design/assets/layout/random-flip-decision/example.css +698 -0
  801. package/card-skills/douyin-interest-card-design/assets/layout/random-flip-decision/example.tsx +491 -0
  802. package/card-skills/douyin-interest-card-design/assets/layout/tarot-spread/example.css +708 -0
  803. package/card-skills/douyin-interest-card-design/assets/layout/tarot-spread/example.tsx +302 -0
  804. package/card-skills/douyin-interest-card-design/assets/layout/tarot-spread/tarot-card-back-light.png +0 -0
  805. package/card-skills/douyin-interest-card-design/assets/layout/tarot-spread/tarot-card-back.png +0 -0
  806. package/card-skills/douyin-interest-card-design/assets/layout/test-illustrated/example.css +476 -0
  807. package/card-skills/douyin-interest-card-design/assets/layout/test-illustrated/example.tsx +181 -0
  808. package/card-skills/douyin-interest-card-design/assets/layout/test-image/example.css +439 -0
  809. package/card-skills/douyin-interest-card-design/assets/layout/test-image/example.tsx +175 -0
  810. package/card-skills/douyin-interest-card-design/assets/layout/trend/example.css +81 -0
  811. package/card-skills/douyin-interest-card-design/assets/layout/trend/example.tsx +22 -0
  812. package/card-skills/douyin-interest-card-design/assets/layout/vote-comparison/example.css +149 -0
  813. package/card-skills/douyin-interest-card-design/assets/layout/vote-comparison/example.tsx +44 -0
  814. package/card-skills/douyin-interest-card-design/assets/shared/widget-shell.css +90 -0
  815. package/card-skills/douyin-interest-card-design/references/component.md +95 -0
  816. package/card-skills/douyin-interest-card-design/references/layout.md +168 -0
  817. package/card-skills/douyin-interest-card-design/references/system.md +170 -0
  818. package/card-skills/douyin-interest-card-design/references/widget.md +142 -0
  819. package/card-skills/douyin-interest-card-design/scripts/convert-card-background-to-9x16.py +594 -0
  820. package/card-skills/douyin-interest-card-design/scripts/package.sh +47 -0
  821. package/card-skills/douyin-interest-card-generate/.interest-card-cli.json +3 -0
  822. package/card-skills/douyin-interest-card-generate/SKILL.md +250 -0
  823. package/card-skills/douyin-interest-card-generate/init.sh +199 -0
  824. package/card-skills/douyin-interest-card-generate/references/common/business-experience.md +73 -0
  825. package/card-skills/douyin-interest-card-generate/references/common/canvas-2d.md +550 -0
  826. package/card-skills/douyin-interest-card-generate/references/common/canvas-3d.md +416 -0
  827. package/card-skills/douyin-interest-card-generate/references/common/card-data-model.md +191 -0
  828. package/card-skills/douyin-interest-card-generate/references/common/code-quality/async-outcome.md +70 -0
  829. package/card-skills/douyin-interest-card-generate/references/common/code-quality.md +40 -0
  830. package/card-skills/douyin-interest-card-generate/references/common/database_specification.md +232 -0
  831. package/card-skills/douyin-interest-card-generate/references/common/fullstack.md +624 -0
  832. package/card-skills/douyin-interest-card-generate/references/common/interest-card-cover.md +7 -0
  833. package/card-skills/douyin-interest-card-generate/references/common/legacy-project-compatibility.md +180 -0
  834. package/card-skills/douyin-interest-card-generate/references/common/post-card-differences.md +93 -0
  835. package/card-skills/douyin-interest-card-generate/references/common/privacy-service-consent.md +7 -0
  836. package/card-skills/douyin-interest-card-generate/references/common/private-data-intent-routing.md +158 -0
  837. package/card-skills/douyin-interest-card-generate/references/common/runtime-environments.md +14 -0
  838. package/card-skills/douyin-interest-card-generate/references/common/upgrade-to-post.md +63 -0
  839. package/card-skills/douyin-interest-card-generate/references/microapp/audit-compliance.md +96 -0
  840. package/card-skills/douyin-interest-card-generate/references/microapp/microapp.md +782 -0
  841. package/card-skills/douyin-interest-card-generate/references/microapp/miniapp-open-card.md +138 -0
  842. package/card-skills/douyin-interest-card-generate/references/opencard/api.md +408 -0
  843. package/card-skills/douyin-interest-card-generate/references/opencard/bgm-catalog.json +244 -0
  844. package/card-skills/douyin-interest-card-generate/references/opencard/bgm-pe.md +300 -0
  845. package/card-skills/douyin-interest-card-generate/references/opencard/closed-domain-card.md +70 -0
  846. package/card-skills/douyin-interest-card-generate/references/opencard/components.md +187 -0
  847. package/card-skills/douyin-interest-card-generate/references/opencard/coordinates.md +51 -0
  848. package/card-skills/douyin-interest-card-generate/references/opencard/feed-card-shell.md +44 -0
  849. package/card-skills/douyin-interest-card-generate/references/opencard/opencard.md +269 -0
  850. package/card-skills/douyin-interest-card-generate/references/opencard/rendering.md +1136 -0
  851. package/card-skills/douyin-interest-card-generate/references/opencard/state-sync.md +139 -0
  852. package/card-skills/douyin-interest-card-generate/references/opencard/taro-dsl.md +220 -0
  853. package/card-skills/douyin-interest-card-generate/scripts/install-opencard.sh +346 -0
  854. package/card-skills/douyin-interest-card-generate/scripts/verify-card-render-engine.cjs +42 -0
  855. package/card-skills/douyin-interest-card-generate/scripts/verify-card-render-scheduler.cjs +64 -0
  856. package/card-skills/douyin-interest-card-generate/scripts/verify-fingertip-page.cjs +76 -0
  857. package/card-skills/douyin-interest-card-generate/sdk-docs/README.md +10 -0
  858. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/babel.config.js +11 -0
  859. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/card-data/types.ts +41 -0
  860. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/config/index.ts +17 -0
  861. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/eslint.config.mjs +12 -0
  862. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/package.json +37 -0
  863. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/pnpm-lock.yaml +8338 -0
  864. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/project.card.json +9 -0
  865. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/project.tt.json +9 -0
  866. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/server-src/card-data/card-data.controller.ts +21 -0
  867. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/server-src/card-data/card-data.module.ts +10 -0
  868. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/server-src/card-data/card-data.mutation.example.ts +19 -0
  869. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/server-src/card-data/card-data.service.ts +54 -0
  870. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/server-src/card-data/card-data.types.ts +37 -0
  871. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/app.config.ts +14 -0
  872. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/app.css +34 -0
  873. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/empty.png +0 -0
  874. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/index.html +54 -0
  875. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/network.ts +14 -0
  876. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/pages/index/index.config.ts +3 -0
  877. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/pages/index/index.css +89 -0
  878. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/pages/index/index.tsx +80 -0
  879. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/src/services/card-data.ts +114 -0
  880. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/tsconfig.json +28 -0
  881. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/turbo.json +39 -0
  882. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/types/douyin-open-capabilities.d.ts +32 -0
  883. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/types/global.d.ts +1 -0
  884. package/card-skills/douyin-interest-card-generate/templates/taro/.editorconfig +12 -0
  885. package/card-skills/douyin-interest-card-generate/templates/taro/babel.config.js +11 -0
  886. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/Dockerfile +15 -0
  887. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/nest-cli.json +8 -0
  888. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/package.json +26 -0
  889. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/run.sh +9 -0
  890. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/scripts/extract-routes.js +29 -0
  891. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/app.module.ts +12 -0
  892. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/health.controller.ts +9 -0
  893. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/lib/closed-domain-readonly-db.ts +29 -0
  894. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/lib/closed-domain-runtime.ts +3 -0
  895. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/lib/preview-read-only-mysql.ts +86 -0
  896. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/lib/read-only-mysql-proxy.ts +143 -0
  897. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/lib/read-only-sql.ts +382 -0
  898. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/logger.middleware.ts +33 -0
  899. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/src/main.ts +15 -0
  900. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/tsconfig.build.json +4 -0
  901. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/tsconfig.json +22 -0
  902. package/card-skills/douyin-interest-card-generate/templates/taro/config/card-routing.json +10 -0
  903. package/card-skills/douyin-interest-card-generate/templates/taro/config/index.ts +17 -0
  904. package/card-skills/douyin-interest-card-generate/templates/taro/eslint.config.mjs +3 -0
  905. package/card-skills/douyin-interest-card-generate/templates/taro/feed/custom-card-schema.json +108 -0
  906. package/card-skills/douyin-interest-card-generate/templates/taro/package.json +117 -0
  907. package/card-skills/douyin-interest-card-generate/templates/taro/patches/@weapp-tailwindcss__postcss@2.1.7.patch +13 -0
  908. package/card-skills/douyin-interest-card-generate/templates/taro/pnpm-lock.yaml +15199 -0
  909. package/card-skills/douyin-interest-card-generate/templates/taro/pnpm-workspace.yaml +3 -0
  910. package/card-skills/douyin-interest-card-generate/templates/taro/postcss.config.mjs +5 -0
  911. package/card-skills/douyin-interest-card-generate/templates/taro/project.config.json +15 -0
  912. package/card-skills/douyin-interest-card-generate/templates/taro/project.tt.json +9 -0
  913. package/card-skills/douyin-interest-card-generate/templates/taro/scripts/check-routes.js +9 -0
  914. package/card-skills/douyin-interest-card-generate/templates/taro/scripts/dev_run.sh +92 -0
  915. package/card-skills/douyin-interest-card-generate/templates/taro/scripts/lint.sh +5 -0
  916. package/card-skills/douyin-interest-card-generate/templates/taro/scripts/pack.sh +6 -0
  917. package/card-skills/douyin-interest-card-generate/templates/taro/scripts/validate-feed-card.js +9 -0
  918. package/card-skills/douyin-interest-card-generate/templates/taro/server/.dockerignore +27 -0
  919. package/card-skills/douyin-interest-card-generate/templates/taro/server/.prettierrc +4 -0
  920. package/card-skills/douyin-interest-card-generate/templates/taro/server/.vscode/settings.json +10 -0
  921. package/card-skills/douyin-interest-card-generate/templates/taro/server/Dockerfile +15 -0
  922. package/card-skills/douyin-interest-card-generate/templates/taro/server/README.md +98 -0
  923. package/card-skills/douyin-interest-card-generate/templates/taro/server/eslint.config.mjs +5 -0
  924. package/card-skills/douyin-interest-card-generate/templates/taro/server/nest-cli.json +8 -0
  925. package/card-skills/douyin-interest-card-generate/templates/taro/server/package.json +41 -0
  926. package/card-skills/douyin-interest-card-generate/templates/taro/server/run.sh +17 -0
  927. package/card-skills/douyin-interest-card-generate/templates/taro/server/scripts/extract-routes.js +218 -0
  928. package/card-skills/douyin-interest-card-generate/templates/taro/server/scripts/init-mysql-db.js +407 -0
  929. package/card-skills/douyin-interest-card-generate/templates/taro/server/sql/001_create_database.sql +2 -0
  930. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/app.controller.ts +114 -0
  931. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/app.module.ts +14 -0
  932. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/app.service.ts +225 -0
  933. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/lib/db.ts +253 -0
  934. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/logger.middleware.ts +28 -0
  935. package/card-skills/douyin-interest-card-generate/templates/taro/server/src/main.ts +18 -0
  936. package/card-skills/douyin-interest-card-generate/templates/taro/server/tsconfig.build.json +4 -0
  937. package/card-skills/douyin-interest-card-generate/templates/taro/server/tsconfig.json +28 -0
  938. package/card-skills/douyin-interest-card-generate/templates/taro/src/app.config.ts +12 -0
  939. package/card-skills/douyin-interest-card-generate/templates/taro/src/app.css +2 -0
  940. package/card-skills/douyin-interest-card-generate/templates/taro/src/app.ts +15 -0
  941. package/card-skills/douyin-interest-card-generate/templates/taro/src/assets/empty.png +0 -0
  942. package/card-skills/douyin-interest-card-generate/templates/taro/src/base.css +37 -0
  943. package/card-skills/douyin-interest-card-generate/templates/taro/src/components/custom-nav-space.tsx +16 -0
  944. package/card-skills/douyin-interest-card-generate/templates/taro/src/hooks/use-custom-nav-layout.ts +19 -0
  945. package/card-skills/douyin-interest-card-generate/templates/taro/src/index.html +46 -0
  946. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/canvas-game.ts +162 -0
  947. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/custom-nav-layout.ts +122 -0
  948. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/event-bus.ts +31 -0
  949. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/measure.ts +101 -0
  950. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/pointer.ts +49 -0
  951. package/card-skills/douyin-interest-card-generate/templates/taro/src/lib/utils.ts +6 -0
  952. package/card-skills/douyin-interest-card-generate/templates/taro/src/network.ts +17 -0
  953. package/card-skills/douyin-interest-card-generate/templates/taro/src/pages/index/index.config.ts +5 -0
  954. package/card-skills/douyin-interest-card-generate/templates/taro/src/pages/index/index.tsx +59 -0
  955. package/card-skills/douyin-interest-card-generate/templates/taro/tsconfig.json +33 -0
  956. package/card-skills/douyin-interest-card-generate/templates/taro/turbo.json +36 -0
  957. package/card-skills/douyin-interest-card-generate/templates/taro/types/components-sar-game.d.ts +4 -0
  958. package/card-skills/douyin-interest-card-generate/templates/taro/types/douyin-open-capabilities.d.ts +48 -0
  959. package/card-skills/douyin-interest-card-generate/templates/taro/types/global.d.ts +1 -0
  960. package/card-skills/douyin-interest-card-llm/.interest-card-cli.json +3 -0
  961. package/card-skills/douyin-interest-card-llm/SKILL.md +231 -0
  962. package/card-skills/douyin-interest-card-llm/examples/frontend/ai-platform-client.example.tsx +376 -0
  963. package/card-skills/douyin-interest-card-llm/examples/server/ai-platform-sdk.example.d.ts +238 -0
  964. package/card-skills/douyin-interest-card-llm/examples/server/ai-platform-service.http-fallback.example.ts +659 -0
  965. package/card-skills/douyin-interest-card-llm/examples/server/ai-platform-service.sdk.example.ts +307 -0
  966. package/card-skills/douyin-interest-card-llm/examples/server/generate-text.sdk.example.ts +110 -0
  967. package/card-skills/douyin-interest-card-llm/references/frontend/usage.md +131 -0
  968. package/card-skills/douyin-interest-card-llm/references/server/generate-and-media.md +233 -0
  969. package/card-skills/douyin-interest-card-llm/references/server/model-constraints.md +177 -0
  970. package/card-skills/douyin-interest-card-llm/references/server/streaming.md +163 -0
  971. package/card-skills/douyin-interest-card-llm/scripts/check-model-permission.sh +194 -0
  972. package/card-skills/douyin-interest-card-optimize/.interest-card-cli.json +3 -0
  973. package/card-skills/douyin-interest-card-optimize/SKILL.md +34 -0
  974. package/card-skills/douyin-interest-card-optimize/references/README.md +26 -0
  975. package/card-skills/douyin-interest-card-optimize/references/creator-language.md +72 -0
  976. package/card-skills/douyin-interest-card-optimize/references/images/oversized-images.md +32 -0
  977. package/card-skills/douyin-interest-card-optimize/references/startup/inline-images.md +64 -0
  978. package/card-skills/douyin-interest-card-optimize/references/startup/non-essential-work.md +143 -0
  979. package/card-skills/douyin-interest-card-optimize/references/startup/prefetched-card-data.md +43 -0
  980. package/card-skills/douyin-interest-card-optimize/references/verification.md +73 -0
  981. package/dist/bin/interest-card-cli.js +8 -0
  982. package/dist/src/args.js +163 -0
  983. package/dist/src/browser.js +62 -0
  984. package/dist/src/card/agent-chat.js +182 -0
  985. package/dist/src/card/agent-events.js +132 -0
  986. package/dist/src/card/agent-questions.js +156 -0
  987. package/dist/src/card/aio-client.js +177 -0
  988. package/dist/src/card/answered-questions.js +44 -0
  989. package/dist/src/card/binding.js +119 -0
  990. package/dist/src/card/browser-command.js +275 -0
  991. package/dist/src/card/browser-runtime.js +93 -0
  992. package/dist/src/card/card-api.js +105 -0
  993. package/dist/src/card/card-token.js +361 -0
  994. package/dist/src/card/chat-commands.js +240 -0
  995. package/dist/src/card/constants.js +102 -0
  996. package/dist/src/card/create-project-client.js +144 -0
  997. package/dist/src/card/create.js +128 -0
  998. package/dist/src/card/dev-commands.js +312 -0
  999. package/dist/src/card/diff.js +54 -0
  1000. package/dist/src/card/editor-client.js +158 -0
  1001. package/dist/src/card/editor-fs.js +158 -0
  1002. package/dist/src/card/feed-preview.js +174 -0
  1003. package/dist/src/card/global-skills.js +250 -0
  1004. package/dist/src/card/handlers-global-skills.js +60 -0
  1005. package/dist/src/card/handlers-misc.js +214 -0
  1006. package/dist/src/card/handlers.js +346 -0
  1007. package/dist/src/card/help.js +146 -0
  1008. package/dist/src/card/ignore.js +153 -0
  1009. package/dist/src/card/list.js +110 -0
  1010. package/dist/src/card/logs.js +179 -0
  1011. package/dist/src/card/preview-qr.js +211 -0
  1012. package/dist/src/card/preview.js +234 -0
  1013. package/dist/src/card/project.js +117 -0
  1014. package/dist/src/card/reconcile.js +121 -0
  1015. package/dist/src/card/rename.js +72 -0
  1016. package/dist/src/card/reporter.js +25 -0
  1017. package/dist/src/card/sandbox-commands.js +81 -0
  1018. package/dist/src/card/skill-names.js +22 -0
  1019. package/dist/src/card/skills.js +264 -0
  1020. package/dist/src/card/snapshot.js +94 -0
  1021. package/dist/src/card/sync-engine.js +259 -0
  1022. package/dist/src/card/sync-local.js +122 -0
  1023. package/dist/src/card/zip-extract.js +86 -0
  1024. package/dist/src/card-install.js +153 -0
  1025. package/dist/src/cli-helpers.js +43 -0
  1026. package/dist/src/cli.js +210 -0
  1027. package/dist/src/command-context.js +62 -0
  1028. package/dist/src/config.js +306 -0
  1029. package/dist/src/creator-device-login.js +437 -0
  1030. package/dist/src/creator-login-session.js +295 -0
  1031. package/dist/src/creator-login.js +114 -0
  1032. package/dist/src/creator-passport-login.js +194 -0
  1033. package/dist/src/creator-session.js +60 -0
  1034. package/dist/src/external-login/cookie-jar.js +65 -0
  1035. package/dist/src/external-login/passport-platform.js +256 -0
  1036. package/dist/src/external-login/passport-qr-login.js +317 -0
  1037. package/dist/src/external-login/passport-sdk.js +233 -0
  1038. package/dist/src/external-login/passport-utils.js +181 -0
  1039. package/dist/src/external-login/qr-login.js +67 -0
  1040. package/dist/src/help.js +144 -0
  1041. package/dist/src/http.js +243 -0
  1042. package/dist/src/login-handlers.js +122 -0
  1043. package/dist/src/output.js +110 -0
  1044. package/dist/src/platform.js +105 -0
  1045. package/dist/src/qr.js +15 -0
  1046. package/dist/src/request-source.js +35 -0
  1047. package/dist/src/semver.js +58 -0
  1048. package/dist/src/telemetry-sender.js +32 -0
  1049. package/dist/src/telemetry.js +349 -0
  1050. package/dist/src/tenant-list.js +3 -0
  1051. package/dist/src/types.js +53 -0
  1052. package/dist/src/update-check.js +256 -0
  1053. package/dist/src/upgrade.js +220 -0
  1054. package/dist/src/version.js +40 -0
  1055. package/package.json +43 -4
@@ -0,0 +1,1136 @@
1
+ # Lynx 渲染 CSS 兼容参考
2
+
3
+ 本文档供 AI 在生成、迁移、审查 Lynx 页面、组件、样式和布局时使用。文档只以 Web CSS 已有能力为基线,说明这些 Web CSS 写法在 Lynx 中的差异、限制和替代方案。
4
+
5
+ 本文档不作为 Web CSS 教程,也不展开超出 Web CSS 基线的能力。生成代码时应优先使用 Web CSS 也具备的表达方式,例如 `flex`、`grid`、显式尺寸、CSS 变量、视口单位和 JS class 切换。
6
+
7
+ ## 目录
8
+
9
+ - [0. 使用策略](#0-使用策略)
10
+ - [1. 生成硬规则](#1-生成硬规则)
11
+ - [2. 核心差异](#2-核心差异)
12
+ - [3. Web CSS 能力差异表](#3-web-css-能力差异表)
13
+ - [4. 常用替代方案](#4-常用替代方案)
14
+ - [5. Review Checklist](#5-review-checklist)
15
+ - [6. Debug 顺序](#6-debug-顺序)
16
+
17
+ ## 0. 使用策略
18
+
19
+ 工程 `cardType=post` 时,先读取 `${SKILL_DIR}/references/common/post-card-differences.md`。
20
+
21
+ AI 生成、迁移、Review 时,按以下顺序使用本文档:
22
+
23
+ 1. 先识别输入写法属于哪类 Web CSS 能力。
24
+ 2. 再检查该能力在 Lynx 中是 supported、diff、partial 还是 unsupported。
25
+ 3. 如果 Lynx 行为和 Web 不一致,按本文档的替代方案重写。
26
+ 4. 替代方案优先选 Web CSS 也支持的写法。
27
+ 5. 不要引入超出 Web CSS 基线的布局属性、单位或样式作为默认方案。
28
+ 6. 机械禁写由 `opencard/` 的 `pnpm lint` 拦截(规则 SSOT:`@open-dy/vibecoding-cli 的兴趣卡 Lynx CSS 规则模块`),不要手工 grep,也不要把禁写表背进 prompt。写完 CSS 后跑 lint。本文负责 diff/partial 的解释和替代写法;默认填宽、margin collapse、flex-shrink 权重、尺寸链路、stacking、单行 `Text` 行高等 lint 判不了的语义仍按本文生成。
29
+
30
+ ### 状态标记
31
+
32
+ | 标记 | 含义 | AI 行为 |
33
+ | --- | --- | --- |
34
+ | ✅ supported | Lynx 中可按常规 CSS 使用 | 可直接生成 |
35
+ | 🔁 diff | Lynx 支持但行为、默认值或边界条件与 Web 不同 | 必须按差异规则生成 |
36
+ | ⚠️ partial | 仅部分属性、值、平台或场景支持 | 只在条件明确时生成 |
37
+ | 🚫 unsupported | Lynx 中不支持或解析但不生效 | 禁止生成,使用替代方案 |
38
+
39
+ ## 1. 生成硬规则
40
+
41
+ 这些规则优先级最高。机械禁写已由 lint 覆盖的条目(`@media`、伪类伪元素、不支持属性/取值、`flex: 1`、负 padding、SVG url 等)以 lint 报错为准,下面只保留 lint 判不了的生成约束。
42
+
43
+ - 不要把 Web 浏览器默认布局行为直接套到 Lynx。
44
+ - 不要依赖 Web block formatting context 的隐式宽度、margin collapse、float、table layout。
45
+ - Flex 容器的直接子元素必须显式声明 shrink 策略:使用独立 `flex-shrink`,或完整三值 `flex: <grow> <shrink> <basis>`;为减少简写推导歧义,生成代码时使用完整三值,不要生成 `flex: 1`。
46
+ - 不要用不同 `flex-shrink` 权重分配溢出宽度;负空间会按 `flex-shrink * flex base size` 参与分配,并且 Lynx 不会隐式套用 Web 的自动最小内容尺寸保护。跨 Web / Lynx 布局应改为统一 basis 的 `flex-grow` 分配、显式尺寸或固定项 `flex-shrink: 0`。
47
+ - `adaptive` 直接放在可见内容节点;尺寸型内容建立完整尺寸链路,列表/选项调整行盒或密度,短文字允许留白,不要求每层都 flex-grow。
48
+ - 当 `DESIGN.md` 定义 `.widget-header` / `.widget-body` / `.widget-footer` 时,Footer 由 root 的 Flex 分区排在 Body 后;Body 承接余高,简单内容直接与 Body 合并 class;禁止空 spacer、`justify-content: space-between`、`margin-top:auto` 或绝对定位。
49
+ - 布局硬约束按 `DESIGN.md`:无重叠、无裁边;双列用 `flex: 1 1 0` + `min-width: 0` + `box-sizing: border-box`;根 `overflow: hidden` 只裁底板圆角。
50
+ - 不要使用超出 Web CSS 基线的 CSS 扩展作为通用替代方案。
51
+ - 文字字号和行高按 `DESIGN.md` 用 `px`(Taro `pxtransform` 按 `designWidth` 换算)。若 `DESIGN.md` 给的是 rem,按 1rem = 16px 换成 px。字号与结构保持可读;Body 分配余高;图片/图表伸缩,短文字保持自然高度并允许留白。不要写 `@media`(lint 会拦),不要用 `rem` / `vw` 当字号。
52
+ - 需要生成内容时增加真实节点,不要用伪元素(lint 会拦 `::before` / `::after`)。
53
+ - 结构伪类不匹配;在 JSX/数据层加 class(lint 会拦 `:first-child` / `:nth-child()` 等)。
54
+ - 直接文本节点支持;只有需要独立文本样式、选择器命中、换行/省略控制或文本组件能力时才使用 `Text` 并添加 class。
55
+ - `Text` 是最小文本布局节点,不作为 Flex 或 Grid 容器;不要在 `Text` 上设置 `display: flex`、`display: grid`、`flex-direction`、`flex-wrap`、`flex-flow`、`justify-content`、`align-items`、`align-content` 或 `gap`。多个节点的排列由外层 `View` 承担。
56
+ - 固定高交互控件:外层 `View` 用 `display: flex; align-items: center;`(需要时加 `justify-content: center`),写 `padding: 0 <horizontal>`;内部 `Text` 保持正常字阶行高。仅无外层容器的单字符/短数字徽标可用 `line-height === height`。
57
+ - 完整展示的选项/按钮文字:外层 `View` 不要写 `overflow: hidden`;`font-size` 与 `line-height` 写在 `Text` 的 class 上,不要只写在父级 `View`。`overflow: hidden` 只用于明确的单行省略。
58
+ - 父级通过 `display: none` 隐藏包含 `Text` 的子树时,把 `overflow: hidden` 与 `display: none` 写在同一个隐藏父级 selector;不要把 workaround 加到 `Text` 本身、无关祖先或正常显示态容器。
59
+ - 图片应设置明确尺寸、宽高比例或容器约束,并且只能使用 PNG / WebP / JPG 等位图资源。CSS 里的 SVG url 由 lint 拦截;确需 SVG 时按 `components.md` 使用 Taro `Svg`。
60
+ - `z-index` 必须配合 `position`;不要通过纵向滚动容器、sticky 或 move 手势制造层级依赖。
61
+ - 动画优先使用 `transform` 和 `opacity`。
62
+
63
+ ## 2. 核心差异
64
+
65
+ ### 2.1 默认布局行为
66
+
67
+ Web 默认布局通常按 block / flow 行为理解,块级子元素经常表现为填满父容器宽度。Lynx 默认布局行为不同,不能假设子元素自动填满父元素。
68
+
69
+ 以下尺寸和布局转换只适用于 `View` 等结构容器。`Text` 需要与其他节点排列时,把 Flex / Grid 布局设置在其外层 `View`,不要把 `Text` 改成布局容器。
70
+
71
+ Web 常见写法:
72
+
73
+ ```css
74
+ .parent {
75
+ width: 200px;
76
+ }
77
+
78
+ .child {
79
+ /* 在 Web block layout 中通常表现为填满父元素宽度 */
80
+ }
81
+ ```
82
+
83
+ Lynx 中需要显式表达尺寸或布局:
84
+
85
+ ```css
86
+ .parent {
87
+ width: 200px;
88
+ display: flex;
89
+ flex-direction: column;
90
+ }
91
+
92
+ .child {
93
+ width: 100%;
94
+ }
95
+ ```
96
+
97
+ 嵌套元素需要逐层明确尺寸链路:
98
+
99
+ ```css
100
+ .grandparent {
101
+ width: 100px;
102
+ height: 100px;
103
+ display: flex;
104
+ flex-direction: column;
105
+ }
106
+
107
+ .parent {
108
+ width: 100%;
109
+ height: 100%;
110
+ }
111
+
112
+ .child {
113
+ width: 100%;
114
+ height: 100%;
115
+ }
116
+ ```
117
+
118
+ ### 2.2 盒模型默认值
119
+
120
+ Lynx 默认使用 `border-box`;当前预览环境已在内部全局设置 `* { box-sizing: border-box; }`。
121
+
122
+ ### 2.3 Margin Collapsing
123
+
124
+ Web 中相邻垂直 margin 可能折叠。Lynx 中 margin 不折叠,两个 margin 会相加。
125
+
126
+ Web 迁移前:
127
+
128
+ ```css
129
+ .a {
130
+ margin-bottom: 20px;
131
+ }
132
+
133
+ .b {
134
+ margin-top: 20px;
135
+ }
136
+ ```
137
+
138
+ Lynx 中等效间距需要改为单边 margin:
139
+
140
+ ```css
141
+ .a {
142
+ margin-bottom: 20px;
143
+ }
144
+
145
+ .b {
146
+ margin-top: 0;
147
+ }
148
+ ```
149
+
150
+ 如果父容器使用 flex 或 grid,优先用 `gap`:
151
+
152
+ ```css
153
+ .list {
154
+ display: flex;
155
+ flex-direction: column;
156
+ gap: 20px;
157
+ }
158
+
159
+ .item {
160
+ margin: 0;
161
+ }
162
+ ```
163
+
164
+ 父子 margin 也不会折叠。迁移时不要让父容器 margin 和第一个/最后一个子元素 margin 同时参与间距。
165
+
166
+ ### 2.4 Negative Values
167
+
168
+ 负 margin 仅可用于局部装饰回拉(如角标贴齐),不要用来叠内容或把子卡片推出可用区。
169
+
170
+ ```css
171
+ .badge {
172
+ margin-left: -8px;
173
+ }
174
+ ```
175
+
176
+ 负 padding 在 Web 中是无效值,Lynx 中可能被解析并参与布局,造成差异。不要生成负 padding。
177
+
178
+ ```css
179
+ .bad {
180
+ padding-bottom: -1px;
181
+ }
182
+
183
+ .fixed {
184
+ padding-bottom: 0;
185
+ }
186
+ ```
187
+
188
+ ### 2.5 根元素与默认间距
189
+
190
+ Web 的 `body` 可能有浏览器默认 margin。Lynx 根元素不要假设存在这些默认样式;OpenCard 是宿主中的固定 widget,也不要把普通长页面 margin 或安全区 padding 搬到卡片根节点。widget 的 inset / 背景以 `DESIGN.md` 为准。
191
+
192
+ OpenCard 根节点应直接承接宿主卡位,并显式建立尺寸链路:
193
+
194
+ ```css
195
+ .widget-root {
196
+ box-sizing: border-box;
197
+ width: 100%;
198
+ height: 100%;
199
+ margin: 0;
200
+ }
201
+ ```
202
+
203
+ ### 2.6 文本换行与省略
204
+
205
+ 直接文本节点支持。需要对文本单独设置换行、省略、颜色、字号等样式时,应给文本建立可命中的节点或 class。
206
+
207
+ 需要换行:
208
+
209
+ ```css
210
+ .body-text {
211
+ white-space: normal;
212
+ }
213
+ ```
214
+
215
+ 单行省略:
216
+
217
+ ```css
218
+ .one-line {
219
+ white-space: nowrap;
220
+ overflow: hidden;
221
+ text-overflow: ellipsis;
222
+ }
223
+ ```
224
+
225
+ ### 2.7 z-index 与固定容器
226
+
227
+ `z-index` 需要配合定位:
228
+
229
+ ```css
230
+ .overlay {
231
+ position: relative;
232
+ z-index: 10;
233
+ }
234
+ ```
235
+
236
+ opencard 不生成纵向滚动容器。需要叠层时,在固定 widget 容器内显式建立 stacking context,不要依赖纵向滚动上下文、sticky 或滚动跟随:
237
+
238
+ ```css
239
+ .widget-layer {
240
+ position: relative;
241
+ z-index: 0;
242
+ }
243
+
244
+ .widget-layer .overlay {
245
+ position: absolute;
246
+ z-index: 10;
247
+ }
248
+ ```
249
+
250
+ 嵌套组件的内部元素非必要不要添加 `z-index`。确需在内部叠加遮罩、角标或浮层时,由组件根节点建立局部 stacking context,内部浮层只在该局部上下文中使用 `z-index`。不要把嵌套子元素的数值与外部兄弟节点直接比较。
251
+
252
+ **硬约束**:`Swiper` / `SwiperItem` 及其子树禁止写 `z-index`。
253
+
254
+ ```css
255
+ .component-layer {
256
+ position: relative;
257
+ z-index: 0;
258
+ }
259
+
260
+ .component-overlay {
261
+ position: absolute;
262
+ z-index: 1;
263
+ }
264
+ ```
265
+
266
+ ## 3. Web CSS 能力差异表
267
+
268
+ ### 3.1 Display
269
+
270
+ 本节的 Flex / Grid 容器能力只适用于 `View` 等结构容器。`Text` 的布局边界见 [3.6 Text](#36-text)。
271
+
272
+ | Web CSS 写法 | Lynx 状态 | 差异 | 替代方案 |
273
+ | --- | --- | --- | --- |
274
+ | `display: block` | 🔁 diff | 在部分模式中可能可解析,但不能依赖 Web block layout 的自动填宽、BFC、margin collapse | 对 `View` 等结构容器使用 `display: flex; flex-direction: column;`,并显式设置子元素宽高 |
275
+ | `display: inline` | 🚫 unsupported | 不能用 inline 布局模拟文本流 | 移除该声明;直接文本可保留;需要独立样式时使用文本节点组件或 class |
276
+ | `display: inline-block` | 🚫 unsupported | 不能用 inline-block 做行内盒 | 结构布局改用外层 `View` 的 Flex / Grid;固定尺寸单行 `Text` 使用显式宽高、`text-align` 和 `line-height` |
277
+ | `display: flex` | ✅ supported | 仅用于 `View` 等结构容器;不要依赖未显式声明的主轴方向、对齐和收缩边界 | 显式写出 `flex-direction`、`justify-content`、`align-items` 和子项 shrink 策略;不要用于 `Text` |
278
+ | `display: grid` | ✅ supported | 支持 Grid 子集,简写和命名线受限 | 使用 `grid-template-*`、`grid-*-start/end`、`gap` |
279
+ | `display: table*` | 🚫 unsupported | table layout 不可用 | 用 CSS Grid 表达行列 |
280
+ | `display: list-item` | 🚫 unsupported | 列表 marker 不可用 | 用真实节点或文本内容模拟 marker |
281
+ | `display: contents` | 🚫 unsupported | 不能移除盒但保留子节点参与布局 | 保留容器或重构层级 |
282
+ | `display: none` | 🔁 diff | 可以隐藏父级并移除布局占位,但当前 Lynx 渲染中,其 `Text` 子节点仍可能残留显示 | 在同一个隐藏父级 selector 中同时写 `display: none` 与 `overflow: hidden` |
283
+
284
+ 当隐藏内容中包含 `Text` 时,把 workaround 限定在隐藏状态:
285
+
286
+ ```tsx
287
+ <View className={hidden ? "content is-hidden" : "content"}>
288
+ <Text className="content-text">{message}</Text>
289
+ </View>
290
+ ```
291
+
292
+ ```css
293
+ .content.is-hidden {
294
+ display: none;
295
+ overflow: hidden;
296
+ }
297
+ ```
298
+
299
+ `overflow: hidden` 必须与 `display: none` 落在同一个隐藏父级 selector。不要把它写到 `.content` 的正常状态或 `.content-text` 上,否则可能裁掉正常显示内容,也没有命中需要兜底的父级渲染边界。
300
+
301
+ ### 3.2 Flex
302
+
303
+ | 能力 | Lynx 状态 | 规则 |
304
+ | --- | --- | --- |
305
+ | `flex-direction` | ✅ supported | 显式写 `row` / `column` |
306
+ | `flex-wrap` | ✅ supported | 需要换行时使用 |
307
+ | `flex-flow` | ✅ supported | 可用;复杂场景建议拆开 |
308
+ | `justify-content` | 🔁 diff | 不依赖默认值,显式声明;不要把默认对齐当作 Web 的 `flex-start` |
309
+ | `align-items` | ✅ supported | 可用 |
310
+ | `align-self` | ✅ supported | 可用 |
311
+ | `align-content` | ✅ supported | 多行时使用 |
312
+ | `flex-grow` | ✅ supported | 可用 |
313
+ | `flex-shrink` | 🔁 diff | 每个 flex item 必须显式声明;仅在主轴可用空间不足时触发;Lynx 不会隐式套用 Web 的自动最小内容尺寸保护 |
314
+ | `flex-basis` | ⚠️ partial | 不要用 `min-content` 表达内容最小尺寸;该值在 `flex-basis` 中会按 `0px` 处理 |
315
+ | `flex` | ✅ supported | 简写能力可用;生成代码时使用完整三值,例如 `flex: 1 1 0`、`flex: 0 0 auto`,避免依赖简写推导 |
316
+ | `order` | ✅ supported | 可用,但不要用来替代语义顺序 |
317
+ | `gap`, `row-gap`, `column-gap` | ✅ supported | 推荐用于间距 |
318
+
319
+ #### 受限空间下的 Flex 布局
320
+
321
+ - 使用 Flex 分配剩余空间前,先明确父容器的主轴可用尺寸及其来源。仅设置 `max-height` 或 `max-width`,不代表已经建立明确的尺寸分配。
322
+ - 区分必须保留空间的区域与允许伸缩的区域。不可压缩区域设置 `flex-shrink: 0` 或必要的最小尺寸;弹性区域使用完整三值 `flex`,明确增长、收缩和基础尺寸。
323
+ - 不依赖预览环境自动按内容撑住容器。显式设置 `height` 的 Flex 子项仍可能被压缩,需要同时声明收缩策略。
324
+ - `min-height: 0` / `min-width: 0` 表示允许继续收缩,不提供内容最小尺寸保护。需要完整展示的内容,应根据行高、可见数量及间距确定最小空间。
325
+ - 所有区域的最小空间需求超过容器可用空间时,应减少内容、分页,或使用产品允许的滚动能力。兴趣卡禁止纵向滚动,不得以纵向滚动兜底;横向滚动仅限本文 3.5、3.13 允许的场景。不得通过增加空白节点、反复增加 padding、裁切内容或禁止所有区域收缩来掩盖溢出。
326
+ - 具体尺寸由业务设计决定,不固化高度、选项数量或某个弹层结构。
327
+
328
+ #### 跨 Web / Lynx 的 Flex 写法
329
+
330
+ 跨 Web / Lynx 保持一致时,溢出收缩不要写成“不同宽度 + 不同 `flex-shrink`”:
331
+
332
+ ```css
333
+ .bad-a {
334
+ width: 200px;
335
+ flex-shrink: 1;
336
+ }
337
+
338
+ .bad-b {
339
+ width: 400px;
340
+ flex-shrink: 2;
341
+ }
342
+ ```
343
+
344
+ 如果需要按比例占位,使用统一 basis 的 grow 分配,并显式声明可收缩边界:
345
+
346
+ ```css
347
+ .stable-a {
348
+ flex-grow: 1;
349
+ flex-shrink: 1;
350
+ flex-basis: 0;
351
+ min-width: 0;
352
+ }
353
+
354
+ .stable-b {
355
+ flex-grow: 2;
356
+ flex-shrink: 1;
357
+ flex-basis: 0;
358
+ min-width: 0;
359
+ }
360
+ ```
361
+
362
+ 如果是固定尺寸、图标、按钮或不能被压缩的内容,显式锁定:
363
+
364
+ ```css
365
+ .fixed {
366
+ flex-grow: 0;
367
+ flex-shrink: 0;
368
+ flex-basis: auto;
369
+ }
370
+ ```
371
+
372
+ 仅在区域允许收缩时,才在 Web 侧设置 `min-width: 0` 或 `min-height: 0`,使预览接近 Lynx 的收缩效果;需要完整展示的内容仍须按上文声明最小空间。
373
+
374
+ 推荐写法:
375
+
376
+ ```css
377
+ .row {
378
+ display: flex;
379
+ flex-direction: row;
380
+ justify-content: flex-start;
381
+ align-items: center;
382
+ gap: 12px;
383
+ }
384
+
385
+ .main {
386
+ flex-grow: 1;
387
+ flex-shrink: 1;
388
+ flex-basis: 0;
389
+ min-width: 0;
390
+ }
391
+ ```
392
+
393
+ ### 3.3 Grid
394
+
395
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
396
+ | --- | --- | --- | --- |
397
+ | `grid-template-columns` | ✅ supported | 固定长度、`fr`、`repeat()` 可用 | 可直接使用 |
398
+ | `grid-template-rows` | ✅ supported | 基础值可用 | 可直接使用 |
399
+ | `grid-auto-columns` / `grid-auto-rows` | ✅ supported | 可用 | 可直接使用 |
400
+ | `grid-auto-flow` | ✅ supported | `row`、`column`、`dense` 等可用 | 可直接使用 |
401
+ | `gap` / `row-gap` / `column-gap` | ✅ supported | 可用 | 推荐用于行列间距 |
402
+ | `justify-items` | ✅ supported | 可用于 Grid 单元格内水平对齐 | 使用 `start`、`center`、`end`、`stretch` |
403
+ | `justify-self` | ✅ supported | 可用于单个 Grid item 水平对齐 | 使用 `auto`、`start`、`center`、`end`、`stretch` |
404
+ | `align-items` | 🔁 diff | Grid 垂直对齐值使用 Flex 风格值 | 使用 `flex-start`、`center`、`flex-end`、`stretch`、`baseline` |
405
+ | `align-self` | 🔁 diff | 单个 Grid item 垂直对齐也使用 Flex 风格值 | 使用 `auto`、`flex-start`、`center`、`flex-end`、`stretch`、`baseline` |
406
+ | `grid-column` | 🚫 unsupported | 简写不可用 | 用 `grid-column-start` / `grid-column-end` |
407
+ | `grid-row` | 🚫 unsupported | 简写不可用 | 用 `grid-row-start` / `grid-row-end` |
408
+ | `grid-area` | 🚫 unsupported | 简写不可用 | 拆成 start/end |
409
+ | named grid lines | 🚫 unsupported | 命名线不可用 | 使用数字线或 class |
410
+ | `subgrid` | 🚫 unsupported | 不可用 | 展平结构或复制 grid 定义 |
411
+ | complex `minmax()` | ⚠️ partial | 复杂 intrinsic size 组合可能不一致 | 使用固定长度、`fr` 或 JS 计算 |
412
+
413
+ 正确:
414
+
415
+ ```css
416
+ .grid {
417
+ display: grid;
418
+ grid-template-columns: repeat(3, 1fr);
419
+ gap: 12px;
420
+ }
421
+
422
+ .wide {
423
+ grid-column-start: 1;
424
+ grid-column-end: 3;
425
+ }
426
+ ```
427
+
428
+ 错误:
429
+
430
+ ```css
431
+ .wide {
432
+ grid-column: 1 / 3;
433
+ }
434
+ ```
435
+
436
+ ### 3.4 Position
437
+
438
+ | Web CSS 写法 | Lynx 状态 | 差异 | 替代方案 |
439
+ | --- | --- | --- | --- |
440
+ | `position: static` | 🚫 unsupported | 不要显式生成 | 移除声明或使用 `position: relative` |
441
+ | `position: relative` | ✅ supported | 可用 | 可直接使用 |
442
+ | `position: absolute` | ✅ supported | 需明确 containing block 和方向 | 显式设置 `top/right/bottom/left` |
443
+ | `position: fixed` | 🔁 diff | 参考系和 stacking 会受宿主 widget 视口影响 | OpenCard 内优先使用普通 Flex 分区或父级 `position: relative` + 子级 `absolute`;确需 `fixed` 时必须目标端验证 |
444
+ | `position: sticky` | 🚫 unsupported | opencard 不提供可依赖的纵向滚动上下文,sticky 依赖滚动能力 | 改为固定区域内的 `position: relative` / `absolute` 叠层 |
445
+ | `z-index` | ✅ supported | 需要配合定位;不要依赖纵向滚动上下文 | 父容器必要时加 `position: relative; z-index: 0;` |
446
+ | logical inset | ✅ supported | `inset-inline-start/end` 可用 | RTL 场景优先使用 |
447
+
448
+ ### 3.5 Box Model
449
+
450
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
451
+ | --- | --- | --- | --- |
452
+ | `width` / `height` | ✅ supported | 百分比依赖父级明确尺寸 | 建立完整尺寸链路 |
453
+ | `min-width` / `min-height` | ✅ supported | 可用 | 可直接使用 |
454
+ | `max-width` / `max-height` | ✅ supported | 可用 | 可直接使用 |
455
+ | `aspect-ratio` | ✅ supported | 可用 | 图片和比例容器推荐 |
456
+ | `margin` | 🔁 diff | 无 margin collapse | 用单边 margin 或 `gap` |
457
+ | `margin-inline-start/end` | ✅ supported | 逻辑方向 margin 可用 | RTL 场景优先使用 |
458
+ | `padding` | 🔁 diff | 不要使用负值 | 负值改为 `0` 或重写布局 |
459
+ | `padding-inline-start/end` | ✅ supported | 逻辑方向 padding 可用 | RTL 场景优先使用 |
460
+ | `border` | ✅ supported | 可用 | 可直接使用 |
461
+ | `border-radius` | ✅ supported | 可用 | 可直接使用 |
462
+ | logical border radius | ✅ supported | 逻辑方向圆角可用 | 使用 `border-start-start-radius`、`border-start-end-radius`、`border-end-start-radius`、`border-end-end-radius` |
463
+ | `box-sizing` | 🔁 diff | Lynx 默认 `border-box` | 当前预览环境已全局对齐 |
464
+ | `box-shadow` | ✅ supported | 可用 | 可直接使用 |
465
+ | `overflow` / `overflow-x` / `overflow-y` | ⚠️ partial | 允许 `hidden`(单行省略、隐藏含 `Text` 子树、裁 `.widget-root` 自身圆角);允许 `overflow-x: auto/scroll` + `overflow-y: hidden` 做横向信息带;禁止纵向 `auto/scroll`;禁止用根 `overflow: hidden` 藏超宽或重叠 | 先按 `DESIGN.md` 收敛;横向带固定高度与宽度预算 |
466
+ | `clip-path` | ⚠️ partial | 复杂形状需验证 | 简化形状或使用位图图片资产 |
467
+ | `mask-image` | ⚠️ partial | 复杂 mask 支持需目标端确认;不得使用 SVG mask | 目标端验证后仅使用非 SVG 资源 |
468
+
469
+ ### 3.6 Text
470
+
471
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
472
+ | --- | --- | --- | --- |
473
+ | `color` | ✅ supported | 可用 | 可直接使用 |
474
+ | `font-size` | ✅ supported | 可用 | 使用 `DESIGN.md` 规定的字号,源码写 `px` |
475
+ | `font-weight` | ✅ supported | 可用 | 可直接使用 |
476
+ | `font-family` | ✅ supported | 字体可用性依赖平台 | 优先系统字体 |
477
+ | `font-style` | ✅ supported | 可用 | 可直接使用 |
478
+ | `line-height` | ✅ supported | 文本字阶行高 | 按 `DESIGN.md` 写;固定高交互控件由外层 Flex 对齐,独立单字符/短数字徽标可设为与 `height` 相同 |
479
+ | `text-align` | ✅ supported | 可用;需要明确的文本行盒宽度 | 固定宽度 `Text` 水平居中使用 `text-align: center` |
480
+ | `text-decoration` | ✅ supported | 可用 | 可直接使用 |
481
+ | `text-indent` | ⚠️ partial | 部分支持;`calc()` 可用于该属性 | 目标端确认后使用,或用 padding/margin 表达缩进 |
482
+ | `text-overflow: clip/ellipsis` | ✅ supported | 只支持常见值 | 配合 `white-space` 和 `overflow` |
483
+ | `white-space: normal/nowrap` | ✅ supported | 只生成这两个值 | 其他值不要生成 |
484
+ | `white-space: pre/pre-wrap/pre-line/break-spaces` | 🚫 unsupported | 不可用 | 使用真实换行节点、数据预处理或简化排版 |
485
+ | `word-break` | 🚫 unsupported | 不可用 | 控制容器宽度、`white-space`、ellipsis |
486
+ | `overflow-wrap` / `word-wrap` | 🚫 unsupported | 不可用 | 控制文本节点宽度和换行策略 |
487
+ | `word-spacing` | 🚫 unsupported | 不可用 | 用文本内容或布局间距重构 |
488
+ | `hyphens` | 🚫 unsupported | 不可用 | 不生成 |
489
+ | `tab-size` | 🚫 unsupported | 不可用 | 数据层替换 tab 或使用显式空白节点 |
490
+ | `text-transform` | 🚫 unsupported | 不可用 | 在数据层转换文本 |
491
+ | `letter-spacing` | ⚠️ partial | 需目标端确认 | 目标端确认后使用;否则用文本内容或布局间距调整 |
492
+ | `vertical-align` | ⚠️ partial | 不适合作为通用布局方案 | 控件与多个节点由外层 `View` 使用 Flex 对齐 |
493
+ | `direction` | ✅ supported | 支持 `ltr`、`rtl`、`normal` 等方向值 | RTL 场景可用,并配合逻辑属性 |
494
+ | `unicode-bidi` | 🚫 unsupported | 不可用 | 用数据层 bidi 处理或拆分节点 |
495
+ | `writing-mode` | 🚫 unsupported | 不可用 | 必要时用 transform 旋转 |
496
+ | `text-orientation` | 🚫 unsupported | 不可用 | 不生成 |
497
+
498
+ `Text` 可以作为父级 Flex / Grid 的 item,按需使用 `flex-shrink`、`flex-grow`、`flex-basis` 或 `align-self`;这不等于把 `Text` 自身变成布局容器。禁止的是 `display: flex`、`display: grid`、`justify-content`、`align-items` 等容器属性。
499
+
500
+ 固定尺寸的单行徽标直接使用 `Text`,不额外包裹只用于居中的 `View`:
501
+
502
+ ```tsx
503
+ <Text className="option-key">A</Text>
504
+ ```
505
+
506
+ ```css
507
+ .option-key {
508
+ width: 18px;
509
+ height: 18px;
510
+ /* 颜色/字号以 DESIGN.md 为准;这里只示范 line-height === height */
511
+ line-height: 18px;
512
+ text-align: center;
513
+ white-space: nowrap;
514
+ flex-shrink: 0;
515
+ }
516
+ ```
517
+
518
+ 仅独立单字符/短数字徽标可用这个等高 `line-height` 写法;按钮、选项和多节点控件用外层 `View` Flex 对齐。
519
+
520
+ 不要生成:
521
+
522
+ ```css
523
+ .option-key {
524
+ display: flex;
525
+ align-items: center;
526
+ justify-content: center;
527
+ }
528
+ ```
529
+
530
+ 多行省略不要迁移 Web 的 `-webkit-line-clamp` / `display: -webkit-box` 组合。单行省略用 `white-space: nowrap`、`overflow: hidden`、`text-overflow: ellipsis` 和明确宽度;多行内容优先摘要化、减行,或只使用目标端已经确认的文本截断能力。
531
+
532
+ ### 3.7 Selectors
533
+
534
+ | Web Selector | Lynx 状态 | 差异 | 替代方案 |
535
+ | --- | --- | --- | --- |
536
+ | tag selector | ✅ supported | 可用 | 可直接使用 |
537
+ | class selector | ✅ supported | 推荐 | 优先使用 |
538
+ | ID selector | ✅ supported | 可用但不推荐滥用 | 优先 class |
539
+ | universal selector | ✅ supported | 可用但可能扩大匹配范围 | 谨慎使用 |
540
+ | descendant selector | ✅ supported | 可用 | 可直接使用 |
541
+ | child selector | ✅ supported | 可用 | 可直接使用 |
542
+ | adjacent sibling | ✅ supported | 可用 | 可直接使用 |
543
+ | general sibling | ✅ supported | 复杂场景谨慎 | 优先 class |
544
+ | attribute presence / exact match | ✅ supported | 可用 | 可直接使用 |
545
+ | attribute substring match | ⚠️ partial | 部分匹配能力有限 | 优先 class |
546
+ | `[attr~="value"]` | 🚫 unsupported | 不可用 | 使用 class |
547
+ | `:active` | ✅ supported | 可用 | 可直接使用 |
548
+ | `:focus` | ✅ supported | 可用 | 可直接使用 |
549
+ | `:hover` | ⚠️ partial | 平台相关 | 不作为移动端唯一反馈 |
550
+ | `:root` | ✅ 仅 `opencard/src/app.css` | 只有全局 `app.css` 允许;页面/组件 CSS、`base.css`、`:root` 组合选择器(如 `:root, page`)、`@media` 内 `:root` 一律禁止 | 变量上移 `app.css` 或定义在局部 class;主题用 `.dark` |
551
+ | `:not()` | ✅ supported | 不要嵌入 unsupported selector | 简化使用 |
552
+ | structural pseudo classes | 🚫 unsupported | 解析但不匹配 | 在 JSX/数据层添加 class |
553
+ | `:is()` / `:where()` / `:has()` | 🚫 unsupported | 不可用 | 拆成明确 class |
554
+ | `:disabled` / `:enabled` | 🚫 unsupported | 可被解析但不参与匹配 | 用 `.disabled` class |
555
+ | `:checked` | 🚫 unsupported | 可被解析但不参与匹配 | 用 state class |
556
+ | `::placeholder` | ✅ supported | 可用 | 可直接使用 |
557
+ | `::selection` | ✅ supported | 可用 | 可直接使用 |
558
+ | `::before` / `::after` | 🚫 unsupported | 不生成内容 | 增加真实节点 |
559
+ | `::first-line` / `::first-letter` | 🚫 unsupported | 不可用 | 用真实节点或数据层拆分 |
560
+ | `::marker` | 🚫 unsupported | 列表 marker 不可用 | 用真实节点模拟 marker |
561
+ | `::backdrop` | 🚫 unsupported | 不可用 | 用真实遮罩节点 |
562
+
563
+ 替代 structural pseudo:
564
+
565
+ ```jsx
566
+ {items.map((item, index) => (
567
+ <View className={index === 0 ? 'item first' : 'item'} />
568
+ ))}
569
+ ```
570
+
571
+ ```css
572
+ .item.first {
573
+ margin-top: 0;
574
+ }
575
+ ```
576
+
577
+ 替代 generated content:
578
+
579
+ ```jsx
580
+ <View className="label">
581
+ <Text className="required">*</Text>
582
+ <Text>{label}</Text>
583
+ </View>
584
+ ```
585
+
586
+ ```css
587
+ .label {
588
+ display: flex;
589
+ flex-direction: row;
590
+ }
591
+
592
+ .required {
593
+ color: red;
594
+ }
595
+ ```
596
+
597
+ ### 3.8 Units and Values
598
+
599
+ | Web CSS 单位/值 | Lynx 状态 | 差异 | 替代方案 |
600
+ | --- | --- | --- | --- |
601
+ | `rem` | ✅ supported | 可用;相对根字号 | 不要作为字号 / 间距默认单位。稿面和生成输出用 `px` |
602
+ | `px` | ✅ supported | 可用 | 字号、行高、间距、圆角默认用 `px`;Taro `pxtransform` 负责运行时换算。底板描边仍是 `1px`,圆角 `12px` |
603
+ | `%` | ✅ supported | 百分比高度依赖父级高度 | 建立父级尺寸链路 |
604
+ | `vw` / `vh` | ✅ supported | 可用 | `vw` 仅必要时做宽度适配;`vh` 用纵向间距/自适应内容;不要在具体文字节点上用 `vw` 缩字号 |
605
+ | `em` | ✅ supported | 可用 | 可直接使用 |
606
+ | `cm` / `mm` / `in` / `pt` / `pc` | 🚫 unsupported | 不可用 | `px` / `rem` |
607
+ | `ch` / `ex` | 🚫 unsupported | 不可用 | `rem` / `em` |
608
+ | `vmin` / `vmax` | ⚠️ partial | 视口最小/最大值支持不完整 | 使用 `vw` / `vh` |
609
+ | `max-content` | ✅ supported | 可用 | 可直接使用 |
610
+ | `fit-content` | ✅ supported | 可用 | 可直接使用 |
611
+ | `min-content` | ⚠️ partial | `flex-basis` 中不要用 | 使用 `auto`、固定值或 JS 计算 |
612
+ | `currentColor` | ⚠️ partial | 支持不完整 | 显式颜色变量 |
613
+ | `inherit` / `initial` | ✅ supported | 可用 | 谨慎使用 |
614
+ | `auto` | ✅ supported | 常规尺寸和 margin 场景可用 | 可直接使用 |
615
+ | `none` | ✅ supported | 常见重置值可用 | 可直接使用 |
616
+
617
+ 样式来自 Web、设计系统或外部配置时,不支持的单位必须在输出 Lynx 样式前完成转换。物理单位不会在 Lynx 运行时自动归一化为 `px`;例如 `1in` 可按 CSS 绝对长度规则转换为 `96px`。不要把该规则类推到 `ch`、`ex` 等字体相关单位。
618
+
619
+ 兴趣卡文字与尺寸按 `DESIGN.md` 的视觉值用 `px` 落地(Taro `pxtransform` 换算):
620
+
621
+ ```css
622
+ .title {
623
+ font-size: 18px;
624
+ line-height: 24px;
625
+ }
626
+
627
+ .body {
628
+ font-size: 14px;
629
+ line-height: 20px;
630
+ }
631
+ ```
632
+
633
+ 宽度不足时用 flex、换行、重排和减少 optional 内容适配;不要在文字节点上额外写 `vw` 缩字号,也不要用 `rem` 当字号。间距和尺寸以 `DESIGN.md` 为准。
634
+
635
+ ### 3.9 Functions
636
+
637
+ | Web CSS 函数 | Lynx 状态 | 差异 | 替代方案 |
638
+ | --- | --- | --- | --- |
639
+ | `calc()` | ⚠️ partial | 仅用于长度相关属性 | 只能在本文档 allowlist 中使用 |
640
+ | `var()` | ✅ supported | 可用 | 推荐用于主题和 tokens |
641
+ | `env(safe-area-inset-*)` | ✅ supported | 引擎能力可用,但 OpenCard 宿主通常已经分配卡位 | 仅在宿主契约明确要求且目标端验证后使用,不要默认加到卡片根节点 |
642
+ | other `env()` | 🚫 unsupported | 不可用 | 使用平台 API 或 JS |
643
+ | `min()` | 🚫 unsupported | 不可用 | JS 计算、class 切换或明确尺寸 |
644
+ | `max()` | 🚫 unsupported | 不可用 | JS 计算、class 切换或明确尺寸 |
645
+ | `clamp()` | 🚫 unsupported | 不可用 | 文字直接用 `DESIGN.md` 的 `px`;容器改用 flex / `vw` / 明确尺寸 |
646
+ | `linear-gradient()` | ✅ supported | 可用 | 简单渐变可直接使用 |
647
+ | `radial-gradient()` | ✅ supported | 可用 | 简单渐变可直接使用 |
648
+ | `cubic-bezier()` | ✅ supported | 可用;控制点超出常见 Web 范围时需目标端验证 | 严格对齐 Web 动效时使用 Web 标准范围内的显式曲线 |
649
+ | `steps()` | 🔁 diff | 必须包含 direction | 使用 `steps(5, end)`,不要写 `steps(5)` |
650
+ | timing keywords | 🔁 diff | `ease`、`ease-in-out`、`ease-in-ease-out` 映射可能不同于 Web 标准曲线 | 严格对齐 Web 动效时使用显式 `cubic-bezier()` |
651
+
652
+ `calc()` allowlist:
653
+
654
+ - 尺寸:`width`、`height`、`min-width`、`max-width`、`min-height`、`max-height`
655
+ - 定位:`top`、`right`、`bottom`、`left`
656
+ - 盒模型:`margin-*`、`padding-*`
657
+ - 逻辑属性:`margin-inline-start/end`、`padding-inline-start/end`、`inset-inline-start/end`
658
+ - Flex/Grid 间距:`flex-basis`、`gap`、`row-gap`、`column-gap`、`grid-row-gap`、`grid-column-gap`
659
+ - 文本:`font-size`、`text-indent`
660
+ - 视觉:`perspective`
661
+
662
+ `calc()` 正确:
663
+
664
+ ```css
665
+ .card {
666
+ width: calc(100% - 32px);
667
+ margin-inline-start: calc(var(--space) * 2);
668
+ }
669
+ ```
670
+
671
+ `calc()` 不要用于枚举、颜色、整数、圆角、transform:
672
+
673
+ ```css
674
+ .bad {
675
+ flex-direction: calc(row);
676
+ color: calc(#ff0000);
677
+ z-index: calc(10);
678
+ border-radius: calc(8px + 2px);
679
+ }
680
+ ```
681
+
682
+ `steps()` 支持的 direction:
683
+
684
+ - `start`
685
+ - `jump-start`
686
+ - `end`
687
+ - `jump-end`
688
+ - `jump-none`
689
+ - `jump-both`
690
+
691
+ 以下关键字可用,但 `ease`、`ease-in-out`、`ease-in-ease-out` 在 Lynx 内部可能映射为同一种时间函数:
692
+
693
+ - `linear`
694
+ - `ease`
695
+ - `ease-in`
696
+ - `ease-out`
697
+ - `ease-in-out`
698
+ - `ease-in-ease-out`
699
+ - `step-start`
700
+ - `step-end`
701
+
702
+ ### 3.10 At-rules
703
+
704
+ | Web CSS At-rule | Lynx 状态 | 差异 | 替代方案 |
705
+ | --- | --- | --- | --- |
706
+ | `@media` | 🚫 unsupported | 不生效 | 按 `DESIGN.md` 用 `px` 文字 + flex / `vw` / `vh` 布局 |
707
+ | `@supports` | 🚫 unsupported | 不可用 | 构建期或运行时能力分支 |
708
+ | `@layer` | 🚫 unsupported | 不可用 | 常规 CSS 顺序 |
709
+ | `@charset` | 🚫 unsupported | 不生成 | 交给构建系统 |
710
+ | `@namespace` | 🚫 unsupported | 不生成 | 不使用 |
711
+ | `@import` | ⚠️ partial | 构建链路相关 | 优先用项目构建 import |
712
+ | `@font-face` | ⚠️ partial | 字体格式和加载依赖平台 | 优先系统字体或项目确认方案 |
713
+ | `@keyframes` | ⚠️ partial | 基础动画可用,高级特性需验证 | 保持简单 keyframes |
714
+
715
+ ### 3.11 Animation
716
+
717
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
718
+ | --- | --- | --- | --- |
719
+ | `transition` | ✅ supported | 可用 | 优先 transition transform/opacity |
720
+ | `animation` | ⚠️ partial | 基础动画可用,高级组合需验证 | 保持 keyframes 简单 |
721
+ | `animation-*` | ⚠️ partial | 常见属性可用,高级组合需验证 | 避免复杂组合 |
722
+ | `transform` | ✅ supported | 推荐动画属性 | 可直接使用 |
723
+ | `opacity` | ✅ supported | 推荐动画属性 | 可直接使用 |
724
+ | `will-change` | ⚠️ partial | 是否产生预期优化效果需要目标端确认 | 减少动画范围,优先优化动画属性 |
725
+ | `width/height/margin/padding` animation | ✅ supported | 可表达,但容易触发布局计算 | 优先改用 transform/opacity |
726
+
727
+ 示例:
728
+
729
+ ```css
730
+ .button {
731
+ transition: transform 0.2s ease, opacity 0.2s ease;
732
+ }
733
+
734
+ .button:active {
735
+ transform: scale(0.98);
736
+ opacity: 0.8;
737
+ }
738
+ ```
739
+
740
+ 基础 keyframes:
741
+
742
+ ```css
743
+ @keyframes fadeIn {
744
+ from {
745
+ opacity: 0;
746
+ }
747
+
748
+ to {
749
+ opacity: 1;
750
+ }
751
+ }
752
+
753
+ .fade-in {
754
+ animation: fadeIn 0.3s ease-out;
755
+ }
756
+ ```
757
+
758
+ ### 3.12 Background and Visual
759
+
760
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
761
+ | --- | --- | --- | --- |
762
+ | `background` | ⚠️ partial | 常见简写可用;带有 attachment 等 Web 背景槽位时不要直接迁移 | 拆成 `background-color`、`background-image`、`background-size`、`background-position`、`background-repeat` |
763
+ | `background-color` | ✅ supported | 可用 | 可直接使用 |
764
+ | `background-image` | ✅ supported | 可用;不得引用 SVG 图片、SVG data URI 或 SVG base64 | 使用渐变或 PNG / WebP / JPG 等位图资源 |
765
+ | `background-size` | ✅ supported | 可用 | 可直接使用 |
766
+ | `background-position` | ✅ supported | 可用 | 可直接使用 |
767
+ | `background-repeat` | ✅ supported | 可用 | 可直接使用 |
768
+ | `background-origin` / `background-clip` | ✅ supported | 可用 | 可直接使用 |
769
+ | `background-attachment` | 🚫 unsupported | 不支持 Web 背景和滚动容器绑定语义 | 移除 attachment;只保留颜色、图片、repeat、position 等可表达槽位 |
770
+ | `opacity` | ✅ supported | 可用 | 可直接使用 |
771
+ | `visibility` | ✅ supported | 可用 | 需要移除布局时用 `display: none` |
772
+ | `transform` | ✅ supported | 可用 | 可直接使用 |
773
+ | `transform-origin` | ✅ supported | 可用 | 可直接使用 |
774
+ | `perspective` | ⚠️ partial | 谨慎使用 | 简化 3D 效果 |
775
+ | `transform-style` | 🚫 unsupported | 不可用 | 不生成 |
776
+
777
+ 多图层 `background-image` 中不要用 `none` 作为透明占位层。删除某一层时,应同步删除其他 `background-*` 列表中相同索引的值;必须保留独立视觉层时,使用嵌套 `View` 拆分背景层。
778
+
779
+ ### 3.13 Interaction and Scroll
780
+
781
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
782
+ | --- | --- | --- | --- |
783
+ | `pointer-events` | 🚫 unsupported | 不可用 | 用条件渲染、透明度、移出交互区域或事件层级控制 |
784
+ | `cursor` | 🚫 unsupported | 不可用 | 不生成,交互反馈用状态样式 |
785
+ | `user-select` | ⚠️ partial | 部分支持,平台行为需确认 | 目标端确认后使用;否则用组件或平台能力控制选择 |
786
+ | `resize` | 🚫 unsupported | 不可用 | 不生成,使用组件状态或 JS 调整尺寸 |
787
+ | `scroll-behavior` | 🚫 unsupported | 不可用;不要为横向滚动补平滑滚动,纵向滚动仍禁止 | 内容收敛、分页态切换或弹层式状态切换 |
788
+ | `scroll-snap-*` | 🚫 unsupported | 不可用;不要用 CSS scroll snap 表达横向轮播或吸附 | 横向轮播使用 `Swiper` 组件自身能力 |
789
+ | `overscroll-behavior` | 🚫 unsupported | 不可用;不要依赖滚动边界行为 | 不生成纵向滚动容器;横向滚动不依赖 overscroll |
790
+
791
+ ### 3.14 Lists, Counters, Generated Content, Tables
792
+
793
+ | Web CSS 能力 | Lynx 状态 | 差异 | 替代方案 |
794
+ | --- | --- | --- | --- |
795
+ | `content` | 🚫 unsupported | 不能配合伪元素生成内容 | 增加真实节点 |
796
+ | `quotes` | 🚫 unsupported | 不可用 | 在数据或文本内容中直接写引号 |
797
+ | `counter-*` | 🚫 unsupported | CSS counter 不可用 | 在数据层计算序号 |
798
+ | `list-style-type` | 🚫 unsupported | 列表 marker 不可用 | 用真实节点模拟 marker |
799
+ | `list-style-image` | 🚫 unsupported | 列表图片 marker 不可用;不得用 SVG marker | 用真实位图图片/文本节点 |
800
+ | `list-style-position` | 🚫 unsupported | 不可用 | 用外层 `View` 的 Flex / Grid 组织 marker 和内容;marker `Text` 保持为文本节点 |
801
+ | `caption-side` | 🚫 unsupported | table caption 不可用 | 使用普通节点控制标题位置 |
802
+ | `table-layout` | 🚫 unsupported | table layout 不可用 | 用 CSS Grid 显式列宽 |
803
+ | `border-collapse` | 🚫 unsupported | table border 合并不可用 | 用 grid `gap`、背景色和单元格边框模拟 |
804
+ | `border-spacing` | 🚫 unsupported | table spacing 不可用 | 用 grid/flex `gap` |
805
+ | `empty-cells` | 🚫 unsupported | table empty-cell 语义不可用 | 条件渲染或显式空节点样式 |
806
+
807
+ ## 4. 常用替代方案
808
+
809
+ ### 4.1 Block Flow to Flex
810
+
811
+ Web 迁移前:
812
+
813
+ ```css
814
+ .page {
815
+ width: 100%;
816
+ }
817
+
818
+ .section {
819
+ margin-bottom: 16px;
820
+ }
821
+ ```
822
+
823
+ Lynx 推荐:
824
+
825
+ ```css
826
+ .page {
827
+ width: 100%;
828
+ display: flex;
829
+ flex-direction: column;
830
+ gap: 16px;
831
+ }
832
+
833
+ .section {
834
+ width: 100%;
835
+ margin: 0;
836
+ }
837
+ ```
838
+
839
+ ### 4.2 Float to Flex
840
+
841
+ Web 迁移前:
842
+
843
+ ```css
844
+ .avatar {
845
+ float: left;
846
+ margin-right: 8px;
847
+ }
848
+ ```
849
+
850
+ Lynx 推荐:
851
+
852
+ ```css
853
+ .profile {
854
+ display: flex;
855
+ flex-direction: row;
856
+ align-items: center;
857
+ gap: 8px;
858
+ }
859
+
860
+ .avatar {
861
+ width: 40px;
862
+ height: 40px;
863
+ }
864
+
865
+ .name {
866
+ flex-grow: 1;
867
+ flex-shrink: 1;
868
+ flex-basis: 0;
869
+ min-width: 0;
870
+ }
871
+ ```
872
+
873
+ ### 4.3 Table to Grid
874
+
875
+ Web 迁移前:
876
+
877
+ ```css
878
+ .table {
879
+ display: table;
880
+ border-spacing: 2px;
881
+ }
882
+
883
+ .row {
884
+ display: table-row;
885
+ }
886
+
887
+ .cell {
888
+ display: table-cell;
889
+ width: 50px;
890
+ height: 30px;
891
+ }
892
+ ```
893
+
894
+ Lynx 推荐:
895
+
896
+ ```css
897
+ .table {
898
+ display: grid;
899
+ grid-template-columns: repeat(3, 50px);
900
+ gap: 2px;
901
+ }
902
+
903
+ .cell {
904
+ height: 30px;
905
+ border: 1px solid;
906
+ }
907
+ ```
908
+
909
+ 不能准确迁移的场景:
910
+
911
+ - 依赖 table automatic column width algorithm。
912
+ - 依赖 table-cell 的垂直对齐语义。
913
+ - 依赖 border-collapse 的精确渲染。
914
+
915
+ ### 4.4 Inline and Inline-block
916
+
917
+ Web 迁移前:
918
+
919
+ ```css
920
+ .tag {
921
+ display: inline-block;
922
+ padding: 4px 8px;
923
+ }
924
+ ```
925
+
926
+ Lynx 推荐:
927
+
928
+ ```css
929
+ .tags {
930
+ display: flex;
931
+ flex-direction: row;
932
+ flex-wrap: wrap;
933
+ gap: 8px;
934
+ }
935
+
936
+ .tag {
937
+ padding: 4px 8px;
938
+ }
939
+ ```
940
+
941
+ ### 4.5 Media Query to Fluid Layout
942
+
943
+ 不要生成:
944
+
945
+ ```css
946
+ @media (min-width: 768px) {
947
+ .layout {
948
+ flex-direction: row;
949
+ }
950
+ }
951
+ ```
952
+
953
+ 使用移动端优先的流式布局:
954
+
955
+ ```css
956
+ .cards {
957
+ display: flex;
958
+ flex-wrap: wrap;
959
+ gap: 16px;
960
+ }
961
+
962
+ .card {
963
+ flex: 1 1 0;
964
+ min-width: 0;
965
+ box-sizing: border-box;
966
+ }
967
+ ```
968
+
969
+ OpenCard 高度方向不要写 `@media`。高度按 `DESIGN.md`。Lynx 隐藏含 `Text` 的子树时,隐藏父级须同时 `display: none` 与 `overflow: hidden`(见 3.1)。
970
+
971
+ ### 4.6 Generated Content to Real Node
972
+
973
+ Web 迁移前:
974
+
975
+ ```css
976
+ .label::before {
977
+ content: '*';
978
+ color: red;
979
+ }
980
+ ```
981
+
982
+ Lynx 推荐:
983
+
984
+ ```jsx
985
+ <View className="label">
986
+ <Text className="required">*</Text>
987
+ <Text>{label}</Text>
988
+ </View>
989
+ ```
990
+
991
+ ```css
992
+ .label {
993
+ display: flex;
994
+ flex-direction: row;
995
+ gap: 2px;
996
+ }
997
+
998
+ .required {
999
+ color: red;
1000
+ }
1001
+ ```
1002
+
1003
+ ### 4.7 Structural Selector to Class
1004
+
1005
+ Web 迁移前:
1006
+
1007
+ ```css
1008
+ .item:first-child {
1009
+ margin-top: 0;
1010
+ }
1011
+
1012
+ .item:nth-child(2n) {
1013
+ background-color: #f5f5f5;
1014
+ }
1015
+ ```
1016
+
1017
+ Lynx 推荐:
1018
+
1019
+ ```jsx
1020
+ {items.map((item, index) => (
1021
+ <view
1022
+ className={[
1023
+ 'item',
1024
+ index === 0 ? 'first' : '',
1025
+ index % 2 === 1 ? 'even' : '',
1026
+ ].join(' ')}
1027
+ />
1028
+ ))}
1029
+ ```
1030
+
1031
+ ```css
1032
+ .item.first {
1033
+ margin-top: 0;
1034
+ }
1035
+
1036
+ .item.even {
1037
+ background-color: #f5f5f5;
1038
+ }
1039
+ ```
1040
+
1041
+ ### 4.8 Safe Area
1042
+
1043
+ OpenCard 是宿主卡位中的固定 widget,不是独立全屏页面。不要默认给 `page` 或卡片根节点添加 `env(safe-area-inset-*)` padding,也不要用 `position: fixed` 模拟底部操作区;这些写法会压缩宿主已经分配好的内容区域。
1044
+
1045
+ 只有宿主契约明确要求卡片自行处理安全区,并且经过目标端验证时,才使用 `env(safe-area-inset-*)`。普通底部操作区使用固定 widget 内的 Flex 分区,浮层使用父级 `position: relative` 与子级 `position: absolute`。
1046
+
1047
+ ### 4.9 Image and SVG Size
1048
+
1049
+ `Image` 与 CSS 图片源需要明确尺寸、比例或父级尺寸链路,且必须是 PNG / WebP / JPG 等位图资源;不要通过 `Image`、CSS 背景、mask、inline style 或数据字段使用 `.svg`、SVG data URI、SVG base64 或远端 SVG URL。确需 SVG 时按 `components.md` 使用 Taro `Svg` 组件,并为 `Svg` 自身或父级建立明确尺寸链路。
1050
+
1051
+ ```css
1052
+ .cover {
1053
+ width: 100%;
1054
+ aspect-ratio: 16 / 9;
1055
+ }
1056
+
1057
+ .avatar {
1058
+ width: 40px;
1059
+ height: 40px;
1060
+ border-radius: 50%;
1061
+ }
1062
+ ```
1063
+
1064
+ ### 4.10 Sticky
1065
+
1066
+ opencard 不生成纵向滚动容器,因此不要使用 `position: sticky`。需要固定头部、角标、浮层或底部操作区时,用固定 widget 内的 flex 分区、`position: relative` / `absolute` 和显式高度链路表达。
1067
+
1068
+ ```css
1069
+ .widget-root {
1070
+ position: relative;
1071
+ display: flex;
1072
+ flex-direction: column;
1073
+ height: 100%;
1074
+ /* padding / 背景以 DESIGN.md 为准 */
1075
+ }
1076
+
1077
+ .widget-footer {
1078
+ flex-shrink: 0;
1079
+ }
1080
+ ```
1081
+
1082
+ ## 5. Review Checklist
1083
+
1084
+ 机械禁写(`@media`、伪类伪元素、`:root` 文件边界、不支持属性/取值、`flex: 1`、负 padding、`min()/max()/clamp()`、SVG url、`Text` 当 Flex 容器等)由 `pnpm --dir opencard run lint` 覆盖,不必再 grep。
1085
+
1086
+ 生成或审查时只人工确认 lint 判不了的语义:
1087
+
1088
+ - [ ] 没有依赖 Web block layout 的自动填宽和 BFC 行为。
1089
+ - [ ] `View` 等结构容器需要纵向排列时使用 `display: flex; flex-direction: column;`;没有把该规则套到 `Text`。
1090
+ - [ ] 子元素需要填满父容器时显式设置 `width: 100%`、`height: 100%` 或 flex 规则。
1091
+ - [ ] `adaptive` 已落在可见内容节点;图片/图表按可用空间伸缩,短文字保持可读字号,允许留白;不要为填满槽高增加内容或 wrapper。
1092
+ - [ ] Flex 容器的直接子元素都显式声明了 `flex-shrink`,或使用完整三值 `flex: <grow> <shrink> <basis>`。
1093
+ - [ ] 没有用不同 `flex-shrink` 权重分摊溢出;跨 Web / Lynx 的比例布局使用统一 basis 的 `flex-grow`、显式尺寸或固定项 `flex-shrink: 0`。
1094
+ - [ ] 包含 `Text` 的隐藏父级在同一个隐藏状态 selector 中同时设置了 `display: none` 与 `overflow: hidden`;workaround 没有加到 `Text` 或正常显示态容器。
1095
+ - [ ] 没有依赖 margin collapsing。
1096
+ - [ ] 尺寸单位按 `DESIGN.md`;
1097
+ - [ ] `:disabled`、`:checked` 等状态通过 class 实现。
1098
+ - [ ] 固定高交互控件用外层 Flex 居中、无纵向 padding;独立单字符/短数字徽标才可用等高 `line-height`。
1099
+ - [ ] 完整展示的选项/按钮文字:`font-size` / `line-height` 写在 `Text` 上;外层 View 没有 `overflow: hidden`。
1100
+ - [ ] 文本需要换行时设置 `white-space: normal`。
1101
+ - [ ] 单行省略同时处理 `white-space`、`overflow`、`text-overflow` 和明确宽度。
1102
+ - [ ] `Image` 和 CSS 图片源有明确尺寸、`aspect-ratio` 或父级尺寸链路;确需 SVG 时按 `components.md` 使用 Taro `Svg`。
1103
+ - [ ] 没有把多图层 `background-*` 的 `none` 占位直接迁移到 Lynx。
1104
+ - [ ] `z-index` 配合 `position`。
1105
+ - [ ] 嵌套组件内部非必要不添加 `z-index`;确需浮层时由组件根建立局部 stacking context,没有跨 stacking context 直接比较父子数值。
1106
+ - [ ] `Swiper` / `SwiperItem` 及其子树没有写 `z-index`。
1107
+ - [ ] 没有默认给卡片根节点添加 safe-area padding,也没有用 `position: fixed` 模拟固定 widget 内的操作区。
1108
+ - [ ] 横向滚动仅使用固定高度的 `overflow-x` 场景。
1109
+ - [ ] 布局落实 `DESIGN.md`:无重叠、无裁边(双列右侧圆角完整)。
1110
+ - [ ] 动画优先使用 `transform` 和 `opacity`。
1111
+ - [ ] 没有超出 Web CSS 基线的布局属性或样式作为默认替代方案。
1112
+
1113
+ ## 6. Debug 顺序
1114
+
1115
+ ### 预览与真机样式不一致时
1116
+
1117
+ - 排查真机样式问题前,先读取本文,按其中的样式差异和调试规则定位、修复,不能直接套用预览环境的默认布局行为。
1118
+ - 根据现象查对应章节:溢出、重叠重点检查尺寸链路和 Flex 收缩(2.1、2.5、3.2、3.5);文字异常检查行高、换行和省略(2.6、3.6);位置异常检查定位参考系与层级(2.7、3.4)。
1119
+ - 以真机上的实际表现为修复依据。预览正常只能作为对照,不能据此判断真机布局没有问题。
1120
+
1121
+ ### 排查顺序
1122
+
1123
+ 机械禁写(不支持的选择器、Grid 简写、`@media`、单位、`calc()` 范围、`Text` 当容器等)先看 `pnpm lint` 输出,不要再全文搜索。
1124
+
1125
+ 1. 检查是否依赖 Web block / inline / float / table 默认行为。
1126
+ 2. 检查父子尺寸链路,尤其是百分比高度和嵌套空容器。
1127
+ 3. 检查 flex 直接子元素是否显式声明 `flex-shrink`,或使用完整三值 `flex: <grow> <shrink> <basis>`。
1128
+ 4. 检查是否用 `flex-shrink` 权重分摊溢出;这类布局改为统一 basis 的 `flex-grow`、显式尺寸或固定项 `flex-shrink: 0`。
1129
+ 5. 检查 margin 是否因为无 collapse 而叠加。
1130
+ 6. 检查隐藏父级中的 `Text` 是否仍残留显示;如果是,在同一个隐藏父级 selector 中配对 `display: none` 与 `overflow: hidden`。
1131
+ 7. 固定高控件是否由外层 Flex 居中、无纵向 padding。
1132
+ 8. 检查文本是否需要 `white-space: normal` 或省略组合,单行省略是否有明确宽度。
1133
+ 9. 检查 `Image`、CSS 图片源和 `Svg` 是否有明确尺寸链路。
1134
+ 10. 检查 `z-index` 是否配合 `position`,并确认没有跨 stacking context 比较数值,也没有引入纵向滚动上下文、sticky 或 move 手势依赖;`Swiper` / `SwiperItem` 及其子树没有 `z-index`。
1135
+ 11. 检查布局是否符合 `DESIGN.md`(无重叠 / 无裁边)。
1136
+ 12. 如果仍有 diff,再确认当前 Lynx 版本、平台和编译模式。