@amaster.ai/pi-lark 0.1.9 → 0.1.11

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 (123) hide show
  1. package/README.md +1 -3
  2. package/package.json +2 -2
  3. package/skills/lark-approval/SKILL.md +2 -2
  4. package/skills/lark-approval/references/lark-approval-instances-initiated.md +5 -0
  5. package/skills/lark-approval/references/lark-approval-tasks-add-sign.md +68 -20
  6. package/skills/lark-approval/references/lark-approval-tasks-query.md +5 -0
  7. package/skills/lark-apps/SKILL.md +1 -1
  8. package/skills/lark-apps/references/lark-apps-cache.md +38 -5
  9. package/skills/lark-base/SKILL.md +131 -11
  10. package/skills/lark-base/references/lark-base-app.md +18 -0
  11. package/skills/lark-base/references/lark-base-dashboard-block-config.md +28 -1
  12. package/skills/lark-base/references/lark-base-dashboard.md +29 -11
  13. package/skills/lark-base/references/lark-base-data-query.md +2 -6
  14. package/skills/lark-base/references/lark-base-field-extension.md +170 -0
  15. package/skills/lark-base/references/lark-base-field-lookup.md +1 -1
  16. package/skills/lark-base/references/lark-base-field-schema.md +10 -1
  17. package/skills/lark-base/references/lark-base-filter-condition.md +32 -5
  18. package/skills/lark-base/references/lark-base-form-detail.md +1 -1
  19. package/skills/lark-base/references/lark-base-form-questions-create.md +36 -5
  20. package/skills/lark-base/references/lark-base-form-submit.md +2 -2
  21. package/skills/lark-base/references/lark-base-record-history-list.md +19 -2
  22. package/skills/lark-base/references/lark-base-record-query-and-analysis-sop.md +95 -205
  23. package/skills/lark-base/references/lark-base-template-center.md +199 -0
  24. package/skills/lark-calendar/SKILL.md +14 -5
  25. package/skills/lark-calendar/references/lark-calendar-join-event.md +43 -0
  26. package/skills/lark-calendar/references/lark-calendar-transfer.md +89 -0
  27. package/skills/lark-doc/references/lark-doc-fetch.md +1 -1
  28. package/skills/lark-drive/references/lark-drive-add-comment.md +2 -2
  29. package/skills/lark-drive/references/lark-drive-member-remove.md +2 -1
  30. package/skills/lark-im/SKILL.md +23 -3
  31. package/skills/lark-im/references/lark-im-message-read-status.md +96 -0
  32. package/skills/lark-im/references/lark-im-messages-edit.md +89 -0
  33. package/skills/lark-im/references/lark-im-messages-mget.md +8 -0
  34. package/skills/lark-im/references/lark-im-messages-reply.md +2 -0
  35. package/skills/lark-im/references/lark-im-messages-send.md +6 -2
  36. package/skills/lark-mail/references/lark-mail-draft-create.md +12 -12
  37. package/skills/lark-mail/references/lark-mail-forward.md +17 -17
  38. package/skills/lark-mail/references/lark-mail-reply-all.md +8 -8
  39. package/skills/lark-mail/references/lark-mail-reply.md +6 -6
  40. package/skills/lark-mail/references/lark-mail-send.md +20 -20
  41. package/skills/lark-mail/references/lark-mail-template-create.md +7 -6
  42. package/skills/lark-mail/references/lark-mail-template-update.md +7 -6
  43. package/skills/lark-markdown/SKILL.md +1 -1
  44. package/skills/lark-meeting/SKILL.md +150 -0
  45. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-apply-permission.md +2 -5
  46. package/skills/lark-meeting/references/lark-minutes-detail.md +52 -0
  47. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-download.md +4 -6
  48. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-search.md +4 -34
  49. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-speaker-replace.md +3 -4
  50. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-summary.md +3 -5
  51. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-todo.md +44 -16
  52. package/skills/{lark-minutes → lark-meeting}/references/lark-minutes-update.md +2 -3
  53. package/skills/lark-meeting/references/lark-minutes-upload.md +71 -0
  54. package/skills/lark-meeting/references/lark-note-detail.md +15 -0
  55. package/skills/lark-meeting/references/lark-note-transcript.md +19 -0
  56. package/skills/lark-meeting/references/lark-vc-agent-meeting-end.md +26 -0
  57. package/skills/lark-meeting/references/lark-vc-agent-meeting-invite.md +32 -0
  58. package/skills/{lark-vc-agent → lark-meeting}/references/lark-vc-agent-meeting-join.md +11 -56
  59. package/skills/{lark-vc-agent → lark-meeting}/references/lark-vc-agent-meeting-leave.md +2 -41
  60. package/skills/lark-meeting/references/lark-vc-detail.md +31 -0
  61. package/skills/lark-meeting/references/lark-vc-meeting-countdown.md +103 -0
  62. package/skills/{lark-vc → lark-meeting}/references/lark-vc-meeting-events.md +9 -98
  63. package/skills/{lark-vc → lark-meeting}/references/lark-vc-meeting-list-active.md +4 -29
  64. package/skills/{lark-vc → lark-meeting}/references/lark-vc-meeting-message-send.md +3 -5
  65. package/skills/lark-meeting/references/lark-vc-meeting-screenshot.md +34 -0
  66. package/skills/{lark-vc → lark-meeting}/references/lark-vc-recording.md +4 -65
  67. package/skills/{lark-vc → lark-meeting}/references/lark-vc-search.md +9 -28
  68. package/skills/lark-meeting/scenes/create-and-edit-minutes.md +147 -0
  69. package/skills/lark-meeting/scenes/live-meeting-attend.md +164 -0
  70. package/skills/lark-meeting/scenes/live-meeting-interact.md +101 -0
  71. package/skills/lark-meeting/scenes/query-meeting-and-artifacts.md +90 -0
  72. package/skills/lark-meeting/scenes/query-minutes-and-artifacts.md +70 -0
  73. package/skills/lark-meeting/scenes/query-note-and-artifacts.md +127 -0
  74. package/skills/lark-minutes/SKILL.md +5 -203
  75. package/skills/lark-note/SKILL.md +5 -88
  76. package/skills/lark-shared/SKILL.md +25 -224
  77. package/skills/lark-shared/references/lark-shared-config-init.md +12 -0
  78. package/skills/lark-shared/references/lark-shared-high-risk-approval.md +38 -0
  79. package/skills/lark-shared/references/lark-shared-identity-and-permissions.md +105 -0
  80. package/skills/lark-shared/references/lark-shared-output-contract.md +17 -0
  81. package/skills/lark-shared/references/lark-shared-update-notice.md +23 -0
  82. package/skills/lark-sheets/SKILL.md +76 -60
  83. package/skills/lark-sheets/references/lark-sheets-batch-update.md +83 -14
  84. package/skills/lark-sheets/references/lark-sheets-chart.md +296 -159
  85. package/skills/lark-sheets/references/lark-sheets-conditional-format.md +46 -9
  86. package/skills/lark-sheets/references/lark-sheets-filter.md +1 -1
  87. package/skills/lark-sheets/references/lark-sheets-formula-translation.md +78 -65
  88. package/skills/lark-sheets/references/lark-sheets-formula-verify.md +21 -17
  89. package/skills/lark-sheets/references/lark-sheets-pivot-table.md +2 -1
  90. package/skills/lark-sheets/references/lark-sheets-range-operations.md +1 -1
  91. package/skills/lark-sheets/references/lark-sheets-read-data.md +8 -5
  92. package/skills/lark-sheets/references/lark-sheets-search-replace.md +4 -4
  93. package/skills/lark-sheets/references/lark-sheets-sheet-structure.md +2 -2
  94. package/skills/lark-sheets/references/lark-sheets-sparkline.md +1 -0
  95. package/skills/lark-sheets/references/lark-sheets-styles-put.md +3 -3
  96. package/skills/lark-sheets/references/lark-sheets-visual-standards.md +6 -4
  97. package/skills/lark-sheets/references/lark-sheets-workbook.md +3 -1
  98. package/skills/lark-sheets/references/lark-sheets-write-cells.md +50 -48
  99. package/skills/lark-sheets/scripts/lark_chart_layout_check.py +472 -0
  100. package/skills/lark-slides/SKILL.md +2 -0
  101. package/skills/lark-slides/references/cli/lark-slides-add-slide.md +6 -6
  102. package/skills/lark-slides/references/cli/lark-slides-delete-slide.md +3 -3
  103. package/skills/lark-slides/references/cli/lark-slides-replace-slide.md +11 -11
  104. package/skills/lark-slides/references/cli/lark-slides-xml-presentation-slide-get.md +1 -1
  105. package/skills/lark-slides/references/cli/lark-slides-xml-presentation-slide-replace.md +2 -2
  106. package/skills/lark-slides/references/workflow/slides-editing.md +11 -11
  107. package/skills/lark-slides/references/xml/slides_xml_schema_definition.xml +103 -14
  108. package/skills/lark-task/SKILL.md +1 -1
  109. package/skills/lark-vc/SKILL.md +5 -205
  110. package/skills/lark-vc-agent/SKILL.md +5 -206
  111. package/skills/lark-workflow-meeting-summary/SKILL.md +20 -13
  112. package/skills/lark-base/references/lark-base-cell-value.md +0 -165
  113. package/skills/lark-base/references/lark-base-data-analysis-pandas.md +0 -93
  114. package/skills/lark-base/references/lark-base-data-analysis-python-stdlib.md +0 -120
  115. package/skills/lark-base/references/lark-base-record-batch-create.md +0 -63
  116. package/skills/lark-base/references/lark-base-record-batch-update.md +0 -57
  117. package/skills/lark-base/references/lark-base-record-query-and-analysis-cloud-sop.md +0 -145
  118. package/skills/lark-minutes/references/lark-minutes-detail.md +0 -63
  119. package/skills/lark-minutes/references/lark-minutes-upload.md +0 -104
  120. package/skills/lark-note/references/lark-note-detail.md +0 -29
  121. package/skills/lark-note/references/lark-note-transcript.md +0 -25
  122. package/skills/lark-vc/references/lark-vc-detail.md +0 -49
  123. package/skills/lark-vc/references/vc-domain-boundaries.md +0 -203
@@ -18,16 +18,16 @@
18
18
  ## 最小读-改-写闭环
19
19
 
20
20
  ```bash
21
- PID="xml_presentation_id_here"
21
+ PRES_ID="xml_presentation_id_here"
22
22
  SID="slide_id_here"
23
23
 
24
24
  # 1. 读原页,从 XML 里挑出要改的块的 3 位 short id(如 bUn / bab)
25
25
  lark-cli slides xml_presentation.slide get --as user \
26
- --params "{\"xml_presentation_id\":\"$PID\",\"slide_id\":\"$SID\"}"
26
+ --params "{\"xml_presentation_id\":\"$PRES_ID\",\"slide_id\":\"$SID\"}"
27
27
 
28
28
  # 2. 用 +replace-slide 直接改那个块(不需要搬原 XML)
29
29
  lark-cli slides +replace-slide --as user \
30
- --presentation "$PID" --slide-id "$SID" \
30
+ --presentation "$PRES_ID" --slide-id "$SID" \
31
31
  --parts '[{"action":"block_replace","block_id":"bUn","replacement":"<shape type=\"text\" topLeftX=\"80\" topLeftY=\"80\" width=\"800\" height=\"120\"><content textType=\"title\"><p>新标题</p></content></shape>"}]'
32
32
  ```
33
33
 
@@ -42,12 +42,12 @@ lark-cli slides +replace-slide --as user \
42
42
  ```bash
43
43
  # 读时拿当前 revision_id
44
44
  REV=$(lark-cli slides xml_presentation.slide get --as user \
45
- --params "{\"xml_presentation_id\":\"$PID\",\"slide_id\":\"$SID\"}" \
45
+ --params "{\"xml_presentation_id\":\"$PRES_ID\",\"slide_id\":\"$SID\"}" \
46
46
  --jq '.data.revision_id')
47
47
 
48
48
  # 写时传该版本号,服务端以此为 base
49
49
  lark-cli slides +replace-slide --as user \
50
- --presentation "$PID" --slide-id "$SID" --revision-id "$REV" \
50
+ --presentation "$PRES_ID" --slide-id "$SID" --revision-id "$REV" \
51
51
  --parts '[{"action":"block_replace","block_id":"bUn","replacement":"<shape type=\"rect\" topLeftX=\"100\" topLeftY=\"100\" width=\"200\" height=\"100\"/>"}]'
52
52
  ```
53
53
 
@@ -65,7 +65,7 @@ lark-cli slides +replace-slide --as user \
65
65
 
66
66
  ```bash
67
67
  lark-cli slides +replace-slide --as user \
68
- --presentation "$PID" --slide-id "$SID" \
68
+ --presentation "$PRES_ID" --slide-id "$SID" \
69
69
  --parts '[{"action":"block_replace","block_id":"bab","replacement":"<shape type=\"text\" topLeftX=\"80\" topLeftY=\"80\" width=\"800\" height=\"120\"><content textType=\"title\"><p>新标题</p></content></shape>"}]'
70
70
  ```
71
71
 
@@ -83,7 +83,7 @@ lark-cli slides +replace-slide --as user \
83
83
 
84
84
  ```bash
85
85
  lark-cli slides +replace-slide --as user \
86
- --presentation "$PID" --slide-id "$SID" \
86
+ --presentation "$PRES_ID" --slide-id "$SID" \
87
87
  --parts "$(jq -n --arg token "$FILE_TOKEN" \
88
88
  '[{action:"block_insert",insertion:("<img src=\""+$token+"\" topLeftX=\"500\" topLeftY=\"100\" width=\"200\" height=\"150\"/>"),insert_before_block_id:"baa"}]')"
89
89
  ```
@@ -96,7 +96,7 @@ lark-cli slides +replace-slide --as user \
96
96
  | `insertion` | 是 | 要插入的完整 XML 片段 |
97
97
  | `insert_before_block_id` | 否 | 插到这个块之前;省略(不提供此字段)则追加到页面末尾 |
98
98
 
99
- > **`<img>` 必须用 `file_token`**,不能用外链 URL——先 `slides +media-upload --file ./pic.png --presentation $PID` 拿 token。
99
+ > **`<img>` 必须用 `file_token`**,不能用外链 URL——先 `slides +media-upload --file ./pic.png --presentation $PRES_ID` 拿 token。
100
100
 
101
101
  ### 批量 parts
102
102
 
@@ -104,7 +104,7 @@ lark-cli slides +replace-slide --as user \
104
104
 
105
105
  ```bash
106
106
  lark-cli slides +replace-slide --as user \
107
- --presentation "$PID" --slide-id "$SID" \
107
+ --presentation "$PRES_ID" --slide-id "$SID" \
108
108
  --parts '[{"action":"block_replace","block_id":"bab","replacement":"<shape type=\"text\" topLeftX=\"80\" topLeftY=\"80\" width=\"800\" height=\"120\"><content textType=\"title\"><p>新标题</p></content></shape>"},{"action":"block_insert","insertion":"<img src=\"<file_token>\" topLeftX=\"700\" topLeftY=\"400\" width=\"180\" height=\"100\"/>"}]'
109
109
  ```
110
110
 
@@ -116,11 +116,11 @@ lark-cli slides +replace-slide --as user \
116
116
 
117
117
  ```bash
118
118
  # 从文件读
119
- lark-cli slides +replace-slide --as user --presentation "$PID" --slide-id "$SID" \
119
+ lark-cli slides +replace-slide --as user --presentation "$PRES_ID" --slide-id "$SID" \
120
120
  --parts @parts.json
121
121
 
122
122
  # 从 stdin 读
123
- cat parts.json | lark-cli slides +replace-slide --as user --presentation "$PID" --slide-id "$SID" \
123
+ cat parts.json | lark-cli slides +replace-slide --as user --presentation "$PRES_ID" --slide-id "$SID" \
124
124
  --parts -
125
125
  ```
126
126
 
@@ -18,11 +18,11 @@
18
18
 
19
19
  <!-- ==================== 命名规范说明 ==================== -->
20
20
  <!--
21
- 元素名:小写, HTML 兼容优先(p, ul, span)
22
- 属性名:camelCase(textType, fontSize, textAlign)
23
- 类型名:PascalCase(TextType, FontFamilyType)
24
- 枚举值:kebab-case(sub-headline, left-right-arrow)
25
- -->
21
+ 元素名:小写, HTML 兼容优先(p, ul, span)
22
+ 属性名:camelCase(textType, fontSize, textAlign)
23
+ 类型名:PascalCase(TextType, FontFamilyType)
24
+ 枚举值:kebab-case(sub-headline, left-right-arrow)
25
+ -->
26
26
 
27
27
  <!-- ==================== 基础类型定义 ==================== -->
28
28
  <!-- Color: 颜色类型 -->
@@ -157,7 +157,8 @@
157
157
  寒蝉团圆体 圆体、寒蝉团圆体 黑体、荆南缘默体、寒蝉端黑宋、
158
158
  资源圆体、钟齐流江毛草、寒蝉端黑体、站酷庆科黄油体、寒蝉云墨黑、
159
159
  有字库龙藏体、寒蝉全圆体、思源黑体、钟齐志莽行书、抖音美好体、
160
- 马善政毛笔楷体、霞鹜 975 圆体
160
+ 马善政毛笔楷体、霞鹜 975 圆体、阿里妈妈刀隶体、阿里妈妈东方大楷、
161
+ 精品点阵体、站酷文艺体、寒蝉正楷体、朱雀仿宋
161
162
 
162
163
  常用拉丁字体:
163
164
  Francois One、Heebo、Lobster、Roboto Slab、Varela Round、
@@ -176,7 +177,7 @@
176
177
  Archivo Narrow、Hind、Open Sans、Poiret One、Asap、Roboto、Nunito、
177
178
  Bitter、Dosis、Oxygen、Prompt、Karla、Fjalla One、Fira Sans、
178
179
  Crimson Text、Pacifico、Arimo、Maven Pro、Cairo、Montserrat、
179
- Righteous、Lora
180
+ Righteous、Lora、ZCOOL Addict Italic
180
181
 
181
182
  其他语言字体:
182
183
  源ノ角ゴシック、본고딕、Nanum Gothic
@@ -674,6 +675,8 @@
674
675
  <xs:enumeration value="dash-dot"><xs:annotation><xs:documentation>短划线-点</xs:documentation></xs:annotation></xs:enumeration>
675
676
  <xs:enumeration value="long-dash-dot"><xs:annotation><xs:documentation>长划线-点</xs:documentation></xs:annotation></xs:enumeration>
676
677
  <xs:enumeration value="long-dash-dot-dot"><xs:annotation><xs:documentation>长划线-点-点</xs:documentation></xs:annotation></xs:enumeration>
678
+ <xs:enumeration value="sys-dash-dot"><xs:annotation><xs:documentation>系统划线-点</xs:documentation></xs:annotation></xs:enumeration>
679
+ <xs:enumeration value="sys-dash-dot-dot"><xs:annotation><xs:documentation>系统划线-点-点</xs:documentation></xs:annotation></xs:enumeration>
677
680
  </xs:restriction>
678
681
  </xs:simpleType>
679
682
 
@@ -820,7 +823,6 @@
820
823
  <xs:attribute name="lineJoin" type="sml:LineJoinType" use="optional" default="round"/>
821
824
  <xs:attribute name="miterLimit" type="xs:nonNegativeInteger" use="optional" default="8"/>
822
825
  <xs:attribute name="rotateWithShape" type="xs:boolean" use="optional" default="true"/>
823
-
824
826
  </xs:complexType>
825
827
 
826
828
  <!-- 起始箭头样式类型 -->
@@ -885,6 +887,7 @@
885
887
 
886
888
  可选属性:
887
889
  type: 裁剪形状, 默认 rect
890
+ path: 自定义裁剪路径, type="custom" 时生效, SVG path 字符串, 坐标系为裁剪框本地坐标系
888
891
  anchor: 裁剪方位 (top/bottom/left/right), 参见 CropAnchorType
889
892
  leftOffset / rightOffset / topOffset / bottomOffset: 四向偏移量 (px), 正值向内裁剪、负值向外扩展留白、0对齐边缘
890
893
  presetHandlers: 控制点配置, 对应 ECMA 预设形状的控制点。单个或多个数字, 多个用逗号分隔。
@@ -912,6 +915,7 @@
912
915
  </xs:documentation>
913
916
  </xs:annotation>
914
917
  <xs:attribute name="type" type="sml:ShapeType" use="optional" default="rect"/>
918
+ <xs:attribute name="path" type="xs:string" use="optional"/>
915
919
  <xs:attribute name="anchor" type="sml:CropAnchorType" use="optional"/>
916
920
  <xs:attribute name="leftOffset" type="xs:double" use="optional"/>
917
921
  <xs:attribute name="rightOffset" type="xs:double" use="optional"/>
@@ -936,6 +940,17 @@
936
940
  <xs:attribute name="size" type="sml:RatioType" use="optional" default="0.3"/>
937
941
  </xs:complexType>
938
942
 
943
+ <!-- 柔化边缘效果类型 -->
944
+ <xs:complexType name="SoftEdgeType">
945
+ <xs:annotation>
946
+ <xs:documentation>
947
+ 柔化边缘效果配置
948
+ - radius: 柔化边缘半径(像素), 取值范围 [0, +∞)
949
+ 注意: 无softEdge标签表示无柔化边缘效果, 空softEdge标签表示默认柔化边缘效果(radius=2)
950
+ </xs:documentation>
951
+ </xs:annotation>
952
+ <xs:attribute name="radius" type="sml:NonNegativeDouble" use="optional" default="2"/>
953
+ </xs:complexType>
939
954
 
940
955
  <!-- 阴影效果类型 -->
941
956
  <xs:complexType name="ShadowType">
@@ -976,10 +991,20 @@
976
991
  属性:
977
992
  - color: 轮廓颜色
978
993
  - width: 轮廓宽度
994
+ - dashArray: 虚线样式
995
+ - compound: 复合边框样式
996
+ - lineCap: 线端样式
997
+ - lineJoin: 线连接样式
998
+ - miterLimit: 斜接限制
979
999
  </xs:documentation>
980
1000
  </xs:annotation>
981
- <xs:attribute name="color" type="sml:SolidColor" use="optional" default="rgba(0, 0, 0, 0.25)"/>
1001
+ <xs:attribute name="color" type="sml:Color" use="optional" default="rgba(0, 0, 0, 0.25)"/>
982
1002
  <xs:attribute name="width" type="sml:NonNegativeDouble" use="optional" default="2"/>
1003
+ <xs:attribute name="dashArray" type="sml:DashArrayType" use="optional" default="solid"/>
1004
+ <xs:attribute name="compound" type="sml:CompoundType" use="optional" default="single"/>
1005
+ <xs:attribute name="lineCap" type="sml:LineCapType" use="optional" default="butt"/>
1006
+ <xs:attribute name="lineJoin" type="sml:LineJoinType" use="optional" default="round"/>
1007
+ <xs:attribute name="miterLimit" type="xs:nonNegativeInteger" use="optional" default="8"/>
983
1008
  </xs:complexType>
984
1009
 
985
1010
  <!-- ==================== 主题相关类型 ==================== -->
@@ -1142,6 +1167,7 @@
1142
1167
  <xs:annotation>
1143
1168
  <xs:documentation>
1144
1169
  文本内容根容器, 用于描述结构化文本
1170
+
1145
1171
  属性说明:
1146
1172
  - textType: 控制整体文本样式 (title/headline/sub-headline/body/caption)
1147
1173
  - verticalAlign: 内容在容器中的垂直对齐方式
@@ -1164,6 +1190,7 @@
1164
1190
  - bulletSize: 列表符号大小, 可选, 百分比字符串(相对于文本字号, 取值范围 25%-400%)如 "100%", 或绝对像素值(取值范围 6-400)如 "14"
1165
1191
  - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 作为后代段落的初始计数器, 子元素 &lt;p&gt;/&lt;ol&gt; 可通过自身 autoStartAt 重置
1166
1192
  - bulletChar: 自定义列表符号字符, 可选, 如 "★", "→" 等, 设置后覆盖 listStyle 的符号
1193
+ - tabStopPos/defaultTabSize: 后代段落的默认 Tab 停止位和步长, p 同名属性可覆盖
1167
1194
  - anchorCenter: 控制文本对齐方式, 优先级高于 textAlign
1168
1195
  - autoFit: 控制文本编辑溢出时处理策略
1169
1196
  - baseline: 上标/下标, 相较于文本基线的偏移量
@@ -1218,6 +1245,8 @@
1218
1245
  <xs:attribute name="bulletSize" type="sml:BulletSizeType" use="optional"/>
1219
1246
  <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1220
1247
  <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1248
+ <xs:attribute name="tabStopPos" type="sml:TabStopPosType" use="optional"/>
1249
+ <xs:attribute name="defaultTabSize" type="sml:TabSizeType" use="optional"/>
1221
1250
  <xs:attribute name="anchorCenter" type="xs:boolean" default="false" /> <!-- 控制竖排文字是否在垂直方向保持居中 -->
1222
1251
  <xs:attribute name="autoFit" type="sml:AutoFitType" default="no-auto-fit" />
1223
1252
  <xs:attribute name="wrap" type="xs:boolean" default="true" />
@@ -1229,7 +1258,7 @@
1229
1258
  <xs:annotation>
1230
1259
  <xs:documentation>
1231
1260
  段落容器, 支持富文本内容
1232
- 可包含纯文本和内联格式元素(br/strong/em/u/span/del/a/shadow/outline/formula/field)
1261
+ 可包含纯文本和内联格式元素(br/tab/strong/em/u/span/del/a/shadow/outline/formula/field)
1233
1262
  内联元素嵌套:所有内联元素均可包含纯文本或其他内联元素,以实现复杂的格式组合
1234
1263
  元素自嵌套:除a/formula元素外,其余内联元素支持自身嵌套,当shadow和outline自嵌套时,渲染效果遵循就近原则,以内层定义的样式为准
1235
1264
 
@@ -1240,10 +1269,11 @@
1240
1269
  - 标签之间的空格和换行符会自动省略,换行请使用<br/>标签
1241
1270
 
1242
1271
  制表符处理规则:
1243
- - 需要使用制表符时,请使用&#9;字符
1272
+ - 需要使用制表符时,请使用 tab 元素
1244
1273
 
1245
1274
  富文本元素说明:
1246
1275
  - br: 换行
1276
+ - tab: 制表符
1247
1277
  - strong: 加粗
1248
1278
  - em: 斜体
1249
1279
  - u: 下划线
@@ -1267,12 +1297,15 @@
1267
1297
  - autoStartAt: 有序列表起始编号, 可选, 取值范围 [1, 32767]; 显式指定时从当前段落起重置计数器, 未指定时沿用同一 content 内的前序计数器
1268
1298
  - bulletChar: 自定义列表符号字符, 可选
1269
1299
  - marginLeft: 段落左侧缩进宽度
1300
+ - marginRight: 段落右侧缩进宽度
1270
1301
  - indent: 首行缩进宽度
1302
+ - tabStopPos/defaultTabSize: 段落级 Tab 配置, 覆盖 content 同名配置
1271
1303
  </xs:documentation>
1272
1304
  </xs:annotation>
1273
1305
  <xs:complexType mixed="true">
1274
1306
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1275
1307
  <xs:element ref="sml:br"/>
1308
+ <xs:element ref="sml:tab"/>
1276
1309
  <xs:element ref="sml:formula"/>
1277
1310
  <xs:element ref="sml:strong"/>
1278
1311
  <xs:element ref="sml:em"/>
@@ -1297,7 +1330,10 @@
1297
1330
  <xs:attribute name="autoStartAt" type="sml:AutoStartAtType" use="optional"/>
1298
1331
  <xs:attribute name="bulletChar" type="sml:BulletCharType" use="optional"/>
1299
1332
  <xs:attribute name="marginLeft" type="xs:double" use="optional" />
1333
+ <xs:attribute name="marginRight" type="xs:double" use="optional" />
1300
1334
  <xs:attribute name="indent" type="sml:NonNegativeDouble" use="optional"/>
1335
+ <xs:attribute name="tabStopPos" type="sml:TabStopPosType" use="optional"/>
1336
+ <xs:attribute name="defaultTabSize" type="sml:TabSizeType" use="optional"/>
1301
1337
  </xs:complexType>
1302
1338
  </xs:element>
1303
1339
 
@@ -1371,7 +1407,7 @@
1371
1407
  未定义元素, 用于处理不支持的形状类型, 当导出时遇到不支持的type数据时, 使用此元素替代
1372
1408
  属性说明:
1373
1409
  - id: 元素唯一标识符(可选)
1374
- - type: 原始的不支持的类型名称, 包括 video(视频), audio(音频)
1410
+ - type: 原始的不支持的类型名称, 包括 video(视频), audio(音频), whiteboard(画板)
1375
1411
  </xs:documentation>
1376
1412
  </xs:annotation>
1377
1413
  <xs:complexType>
@@ -1408,6 +1444,7 @@
1408
1444
  - content: 图形内的文本内容, 可选, 富文本
1409
1445
  - reflection: 倒影效果, 可选, 无reflection标签表示无倒影效果, 空reflection标签表示默认倒影效果
1410
1446
  - shadow: 阴影效果, 可选, 无shadow标签表示无阴影效果, 空shadow标签表示默认阴影效果
1447
+ - softEdge: 柔化边缘效果, 可选, 无softEdge标签表示无柔化边缘效果, 空softEdge标签表示默认柔化边缘效果(radius=2)
1411
1448
  </xs:documentation>
1412
1449
  </xs:annotation>
1413
1450
  <xs:complexType>
@@ -1416,6 +1453,7 @@
1416
1453
  <xs:element name="border" type="sml:BorderType" minOccurs="0"/>
1417
1454
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1418
1455
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1456
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1419
1457
  <xs:element ref="sml:content" minOccurs="0"/>
1420
1458
  </xs:all>
1421
1459
 
@@ -1459,6 +1497,7 @@
1459
1497
  - endArrow: 终点箭头, 可选
1460
1498
  - shadow: 阴影效果, 可选, 无shadow标签表示无阴影效果, 空shadow标签表示默认阴影效果
1461
1499
  - reflection: 倒影效果, 可选, 无reflection标签表示无倒影效果, 空reflection标签表示默认倒影效果
1500
+ - softEdge: 柔化边缘效果, 可选, 无softEdge标签表示无柔化边缘效果, 空softEdge标签表示默认柔化边缘效果(radius=2)
1462
1501
  </xs:documentation>
1463
1502
  </xs:annotation>
1464
1503
  <xs:complexType>
@@ -1468,6 +1507,7 @@
1468
1507
  <xs:element name="endArrow" type="sml:EndArrowStyleType" minOccurs="0"/>
1469
1508
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1470
1509
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0" />
1510
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1471
1511
  </xs:all>
1472
1512
  <xs:attribute name="type" type="sml:LineType" use="optional" default="straight-connector1"/>
1473
1513
  <xs:attribute name="id" type="xs:string" use="optional"/>
@@ -1505,6 +1545,7 @@
1505
1545
  - endArrow: 终点箭头, 可选
1506
1546
  - shadow: 阴影效果, 可选, 无shadow标签表示无阴影效果, 空shadow标签表示默认阴影效果
1507
1547
  - reflection: 倒影效果, 可选, 无reflection标签表示无倒影效果, 空reflection标签表示默认倒影效果
1548
+ - softEdge: 柔化边缘效果, 可选, 无softEdge标签表示无柔化边缘效果, 空softEdge标签表示默认柔化边缘效果(radius=2)
1508
1549
  </xs:documentation>
1509
1550
  </xs:annotation>
1510
1551
  <xs:complexType>
@@ -1514,6 +1555,7 @@
1514
1555
  <xs:element name="endArrow" type="sml:EndArrowStyleType" minOccurs="0"/>
1515
1556
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1516
1557
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1558
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1517
1559
  </xs:all>
1518
1560
 
1519
1561
  <xs:attribute name="id" type="xs:string" use="optional"/>
@@ -1551,6 +1593,7 @@
1551
1593
  crop: 裁剪。无标签 / 空标签 / 仅设 anchor 时按等比缩放后裁剪到 width×height; anchor 指定保留方位 (top/bottom/left/right), 不设 anchor 即居中裁剪; offset 用于精细控制
1552
1594
  reflection: 倒影。无标签代表无倒影,空标签代表使用默认样式
1553
1595
  shadow: 阴影。无标签代表无阴影,空标签代表使用默认样式
1596
+ softEdge: 柔化边缘。无softEdge标签代表无柔化边缘, 空softEdge标签表示默认柔化边缘(radius=2)
1554
1597
  border: 边框。无标签代表无边框,空标签代表使用默认样式(颜色: rgba(43, 47, 54, 1), 宽度: 2)
1555
1598
  fill: 填充。无标签代表无填充,空标签代表使用默认样式(颜色: rgba(91, 155, 213, 1))
1556
1599
  </xs:documentation>
@@ -1561,6 +1604,7 @@
1561
1604
  <xs:element name="border" type="sml:BorderType" minOccurs="0"/>
1562
1605
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1563
1606
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1607
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1564
1608
  <xs:element name="fill" type="sml:FillType" minOccurs="0"/>
1565
1609
  </xs:all>
1566
1610
  <xs:attribute name="id" type="xs:string" use="optional"/>
@@ -1600,6 +1644,7 @@
1600
1644
  - border: 边框样式, 无border标签代表无边框, 空border标签代表使用默认样式(默认实线边框, 颜色为rgba(51, 51, 51, 1), 宽度为3)
1601
1645
  - reflection: 倒影样式, 无reflection标签代表无倒影, 空reflection标签代表使用默认样式
1602
1646
  - shadow: 阴影样式, 无shadow标签代表无阴影, 空shadow标签代表使用默认样式
1647
+ - softEdge: 柔化边缘样式, 无softEdge标签代表无柔化边缘, 空softEdge标签表示默认柔化边缘(radius=2)
1603
1648
  </xs:documentation>
1604
1649
  </xs:annotation>
1605
1650
  <xs:complexType>
@@ -1608,6 +1653,7 @@
1608
1653
  <xs:element name="border" type="sml:BorderType" minOccurs="0"/>
1609
1654
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1610
1655
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1656
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1611
1657
  </xs:all>
1612
1658
 
1613
1659
  <xs:attribute name="id" type="xs:string" use="optional"/>
@@ -1645,6 +1691,7 @@
1645
1691
  - svg: 标准 SVG 根元素, 仅描述嵌入内容, 不承载 Slides 布局属性
1646
1692
  - reflection: 倒影样式, 无reflection标签代表无倒影, 空reflection标签代表使用默认样式
1647
1693
  - shadow: 阴影样式, 无shadow标签代表无阴影, 空shadow标签代表使用默认样式
1694
+ - softEdge: 柔化边缘样式, 无softEdge标签代表无柔化边缘, 空softEdge标签表示默认柔化边缘(radius=2)
1648
1695
  </xs:documentation>
1649
1696
  </xs:annotation>
1650
1697
  <xs:complexType>
@@ -1652,8 +1699,8 @@
1652
1699
  <xs:any namespace="http://www.w3.org/2000/svg" processContents="lax" minOccurs="1" maxOccurs="1"/>
1653
1700
  <xs:element name="reflection" type="sml:ReflectionType" minOccurs="0"/>
1654
1701
  <xs:element name="shadow" type="sml:ShadowType" minOccurs="0"/>
1702
+ <xs:element name="softEdge" type="sml:SoftEdgeType" minOccurs="0"/>
1655
1703
  </xs:sequence>
1656
-
1657
1704
  <xs:attribute name="id" type="xs:string" use="optional"/>
1658
1705
  <xs:attribute name="topLeftX" type="sml:XType" use="required"/>
1659
1706
  <xs:attribute name="topLeftY" type="sml:YType" use="required"/>
@@ -1788,7 +1835,14 @@
1788
1835
  </xs:complexType>
1789
1836
  </xs:element>
1790
1837
 
1791
-
1838
+ <xs:element name="tab">
1839
+ <xs:annotation>
1840
+ <xs:documentation>
1841
+ 文本级制表符占位元素, 不携带属性
1842
+ </xs:documentation>
1843
+ </xs:annotation>
1844
+ <xs:complexType/>
1845
+ </xs:element>
1792
1846
 
1793
1847
  <xs:element name="formula">
1794
1848
  <xs:annotation>
@@ -1837,6 +1891,7 @@
1837
1891
  <xs:complexType mixed="true">
1838
1892
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1839
1893
  <xs:element ref="sml:br"/>
1894
+ <xs:element ref="sml:tab"/>
1840
1895
  <xs:element ref="sml:formula"/>
1841
1896
  <xs:element ref="sml:strong"/>
1842
1897
  <xs:element ref="sml:em"/>
@@ -1864,6 +1919,7 @@
1864
1919
  <xs:extension base="sml:ShadowType">
1865
1920
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1866
1921
  <xs:element ref="sml:br"/>
1922
+ <xs:element ref="sml:tab"/>
1867
1923
  <xs:element ref="sml:formula"/>
1868
1924
  <xs:element ref="sml:strong"/>
1869
1925
  <xs:element ref="sml:em"/>
@@ -1893,6 +1949,7 @@
1893
1949
  <xs:extension base="sml:OutlineType">
1894
1950
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1895
1951
  <xs:element ref="sml:br"/>
1952
+ <xs:element ref="sml:tab"/>
1896
1953
  <xs:element ref="sml:formula"/>
1897
1954
  <xs:element ref="sml:strong"/>
1898
1955
  <xs:element ref="sml:em"/>
@@ -1916,6 +1973,7 @@
1916
1973
  <xs:complexType mixed="true">
1917
1974
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1918
1975
  <xs:element ref="sml:br"/>
1976
+ <xs:element ref="sml:tab"/>
1919
1977
  <xs:element ref="sml:formula"/>
1920
1978
  <xs:element ref="sml:strong"/>
1921
1979
  <xs:element ref="sml:em"/>
@@ -1937,6 +1995,7 @@
1937
1995
  <xs:complexType mixed="true">
1938
1996
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1939
1997
  <xs:element ref="sml:br"/>
1998
+ <xs:element ref="sml:tab"/>
1940
1999
  <xs:element ref="sml:formula"/>
1941
2000
  <xs:element ref="sml:strong"/>
1942
2001
  <xs:element ref="sml:em"/>
@@ -1958,6 +2017,7 @@
1958
2017
  <xs:complexType mixed="true">
1959
2018
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1960
2019
  <xs:element ref="sml:br"/>
2020
+ <xs:element ref="sml:tab"/>
1961
2021
  <xs:element ref="sml:formula"/>
1962
2022
  <xs:element ref="sml:strong"/>
1963
2023
  <xs:element ref="sml:em"/>
@@ -1982,6 +2042,7 @@
1982
2042
  <xs:complexType mixed="true">
1983
2043
  <xs:choice minOccurs="0" maxOccurs="unbounded">
1984
2044
  <xs:element ref="sml:br"/>
2045
+ <xs:element ref="sml:tab"/>
1985
2046
  <xs:element ref="sml:formula"/>
1986
2047
  <xs:element ref="sml:strong"/>
1987
2048
  <xs:element ref="sml:em"/>
@@ -2015,6 +2076,7 @@
2015
2076
  <xs:complexType mixed="true">
2016
2077
  <xs:choice minOccurs="0" maxOccurs="unbounded">
2017
2078
  <xs:element ref="sml:br"/>
2079
+ <xs:element ref="sml:tab"/>
2018
2080
  <xs:element ref="sml:formula"/>
2019
2081
  <xs:element ref="sml:strong"/>
2020
2082
  <xs:element ref="sml:em"/>
@@ -2048,6 +2110,33 @@
2048
2110
  </xs:restriction>
2049
2111
  </xs:simpleType>
2050
2112
 
2113
+ <!-- Tab 停止位字符串类型 -->
2114
+ <xs:simpleType name="TabStopPosType">
2115
+ <xs:annotation>
2116
+ <xs:documentation>
2117
+ Tab 停止位列表, 用于 content@tabStopPos 或 p@tabStopPos, p 优先级更高。
2118
+ 格式为 位置+对齐方式, 逗号分隔, 如 "100r,200l,300ctr"; 对齐方式支持 l/ctr/r/dec。
2119
+ 位置单位 px, 有限正数, 支持小数, 范围 (0,4031]; 列表长度 1-32。
2120
+ 消费方按位置升序处理; 同一生效配置内位置不重复, 由 Node 层校验。
2121
+ 遇到 tab 元素时, 使用第一个大于当前行内坐标的停止位; 不存在则按 defaultTabSize 步进。
2122
+ </xs:documentation>
2123
+ </xs:annotation>
2124
+ <xs:restriction base="xs:string">
2125
+ <xs:pattern value="(0\.\d*[1-9]\d*|([1-9]\d{0,2}|[1-3]\d{3}|40[0-2]\d|4030)(\.\d+)?|4031(\.0+)?)(l|ctr|r|dec)(,(0\.\d*[1-9]\d*|([1-9]\d{0,2}|[1-3]\d{3}|40[0-2]\d|4030)(\.\d+)?|4031(\.0+)?)(l|ctr|r|dec)){0,31}"/>
2126
+ </xs:restriction>
2127
+ </xs:simpleType>
2128
+
2129
+ <!-- Tab 默认间距类型 -->
2130
+ <xs:simpleType name="TabSizeType">
2131
+ <xs:annotation>
2132
+ <xs:documentation>Tab 默认间距, 单位 px, 有限正数, 支持小数, 取值范围 (0,4031]</xs:documentation>
2133
+ </xs:annotation>
2134
+ <xs:restriction base="xs:decimal">
2135
+ <xs:minExclusive value="0"/>
2136
+ <xs:maxInclusive value="4031"/>
2137
+ </xs:restriction>
2138
+ </xs:simpleType>
2139
+
2051
2140
  <xs:simpleType name="LineSpacingType">
2052
2141
  <xs:annotation>
2053
2142
  <xs:documentation>
@@ -31,7 +31,7 @@ shortcut 名称只能来自本 Skill 的 Shortcut 表或 `lark-cli task --help`
31
31
  > **用户身份识别**:在用户身份(user identity)场景下,如果用户提到了“我”(例如“分配给我”、“由我创建”),请默认获取当前登录用户的 `open_id` 作为对应的参数值。
32
32
  > **术语理解 — 待办 disambiguation(必读)**:
33
33
  > - 用户提到「待办 / todo / 任务」时,**先判断归属**,不要默认走本 skill。
34
- > - **走 [lark-minutes](../lark-minutes/SKILL.md) 的 `minutes +todo`**(禁止本 skill):上下文含 **妙记 / 会议纪要 / minute_token / 妙记 URL**(`/minutes/`);或「在某某妙记里新建/修改待办」「妙记 AI 待办」「会议录制里的待办」。
34
+ > - **走 [lark-meeting](../lark-meeting/SKILL.md) 的 `minutes +todo`**(禁止本 skill):上下文含 **妙记 / 会议纪要 / minute_token / 妙记 URL**(`/minutes/`);或「在某某妙记里新建/修改待办」「妙记 AI 待办」「会议录制里的待办」。
35
35
  > - **走本 skill(lark-task)**:任务清单、分配给我、项目待办、截止日期/提醒、子任务、任务清单成员;或 applink 含 `client/todo/task?guid=`;或明确说「飞书任务」「任务中心」「我的任务清单」。
36
36
  > - **禁止**:用户要在妙记里加待办时,**不要**调用 `task tasklists list`、`task +create` 或任何 task 命令去「找清单再放任务」。
37
37
  > **友好输出**:在输出任务(或清单)的执行结果给用户时,建议同时提取并输出命令返回结果中的 `url` 字段(任务链接),以便用户可以直接点击跳转查看详情。