@amaster.ai/pi-lark 0.1.2-beta.41 → 0.1.2-beta.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/skills/lark-apps/SKILL.md +5 -3
- package/skills/lark-apps/references/lark-apps-automation.md +164 -0
- package/skills/lark-apps/references/lark-apps-get.md +43 -0
- package/skills/lark-apps/references/lark-apps-html-publish.md +7 -2
- package/skills/lark-apps/references/lark-apps-init.md +1 -2
- package/skills/lark-apps/references/lark-apps-openapi-key.md +1 -1
- package/skills/lark-apps/references/lark-apps-release-create.md +3 -1
- package/skills/lark-base/SKILL.md +1 -1
- package/skills/lark-base/references/lark-base-dashboard-block-get-data.md +7 -7
- package/skills/lark-calendar/references/lark-calendar-create.md +1 -0
- package/skills/lark-doc/references/lark-doc-xml-extended-blocks.md +2 -1
- package/skills/lark-drive/SKILL.md +10 -4
- package/skills/lark-drive/references/lark-drive-comment-location.md +16 -4
- package/skills/lark-drive/references/lark-drive-comments-guide.md +16 -8
- package/skills/lark-drive/references/lark-drive-export.md +39 -10
- package/skills/lark-drive/references/lark-drive-list-comments.md +125 -0
- package/skills/lark-drive/references/lark-drive-member-add.md +1 -1
- package/skills/lark-drive/references/lark-drive-pull.md +3 -3
- package/skills/lark-drive/references/lark-drive-push.md +1 -1
- package/skills/lark-drive/references/lark-drive-status.md +12 -14
- package/skills/lark-im/SKILL.md +5 -4
- package/skills/lark-im/references/lark-im-messages-reply.md +1 -1
- package/skills/lark-im/references/lark-im-messages-send.md +1 -1
- package/skills/lark-minutes/SKILL.md +19 -4
- package/skills/lark-minutes/references/lark-minutes-todo.md +2 -2
- package/skills/lark-shared/SKILL.md +9 -9
- package/skills/lark-sheets/SKILL.md +98 -29
- package/skills/lark-sheets/references/lark-sheets-batch-update.md +18 -9
- package/skills/lark-sheets/references/lark-sheets-changeset.md +105 -0
- package/skills/lark-sheets/references/lark-sheets-chart.md +4 -2
- package/skills/lark-sheets/references/lark-sheets-conditional-format.md +2 -0
- package/skills/lark-sheets/references/lark-sheets-filter-view.md +1 -1
- package/skills/lark-sheets/references/lark-sheets-float-image.md +6 -6
- package/skills/lark-sheets/references/lark-sheets-formula-translation.md +12 -3
- package/skills/lark-sheets/references/lark-sheets-formula-verify.md +77 -0
- package/skills/lark-sheets/references/lark-sheets-history.md +93 -0
- package/skills/lark-sheets/references/lark-sheets-pivot-table.md +7 -2
- package/skills/lark-sheets/references/lark-sheets-range-operations.md +44 -14
- package/skills/lark-sheets/references/lark-sheets-read-data.md +3 -3
- package/skills/lark-sheets/references/lark-sheets-sheet-structure.md +4 -4
- package/skills/lark-sheets/references/lark-sheets-visual-standards.md +4 -4
- package/skills/lark-sheets/references/lark-sheets-workbook.md +29 -4
- package/skills/lark-sheets/references/lark-sheets-write-cells.md +21 -11
- package/skills/lark-slides/SKILL.md +29 -18
- package/skills/lark-slides/references/asset-planning.md +0 -1
- package/skills/lark-slides/references/examples.md +57 -227
- package/skills/lark-slides/references/iconpark.md +2 -2
- package/skills/lark-slides/references/lark-slides-create.md +21 -2
- package/skills/lark-slides/references/lark-slides-media-upload.md +0 -1
- package/skills/lark-slides/references/lark-slides-pptx-template-workflows.md +89 -0
- package/skills/lark-slides/references/lark-slides-replace-pages.md +1 -1
- package/skills/lark-slides/references/lark-slides-replace-slide.md +1 -1
- package/skills/lark-slides/references/lark-slides-screenshot.md +11 -8
- package/skills/lark-slides/references/lark-slides-xml-get.md +100 -0
- package/skills/lark-slides/references/lark-slides-xml-presentation-slide-delete.md +9 -7
- package/skills/lark-slides/references/lark-slides-xml-presentation-slide-get.md +4 -4
- package/skills/lark-slides/references/lark-slides-xml-presentation-slide-replace.md +12 -10
- package/skills/lark-slides/references/lark-slides-xml-presentations-get.md +14 -13
- package/skills/lark-slides/references/planning-layer.md +1 -1
- package/skills/lark-slides/references/troubleshooting.md +7 -25
- package/skills/lark-slides/references/validation-checklist.md +18 -9
- package/skills/lark-slides/references/visual-planning.md +4 -3
- package/skills/lark-slides/references/xml-schema-quick-ref.md +6 -2
- package/skills/lark-slides/scripts/xml_text_overlap_lint.py +647 -52
- package/skills/lark-slides/scripts/xml_text_overlap_lint_test.py +529 -0
- package/skills/lark-task/SKILL.md +1 -0
- package/skills/lark-vc-agent/SKILL.md +11 -4
- package/skills/lark-vc-agent/references/lark-vc-agent-meeting-events.md +1 -1
- package/skills/lark-vc-agent/references/lark-vc-agent-meeting-leave.md +1 -1
- package/skills/lark-vc-agent/references/lark-vc-agent-meeting-list-active.md +2 -2
- package/skills/lark-sheets/references/lark-sheets-core-operations.md +0 -103
- package/skills/lark-slides/references/lark-slides-xml-presentation-slide-create.md +0 -220
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
## Required Flow
|
|
8
8
|
|
|
9
9
|
1. 记录创建或编辑返回的 `xml_presentation_id`,以及已知的 `slide_id` / `revision_id`。
|
|
10
|
-
2. 用 `
|
|
10
|
+
2. 用 `slides +xml-get` 回读全文 XML 到本地文件。
|
|
11
11
|
3. 检查实际页数是否符合计划或用户要求。
|
|
12
12
|
4. 检查每页 `<data>` 内是否有预期主要元素。
|
|
13
13
|
5. 检查没有明显空白页、破损页、缺失标题或缺失主视觉。
|
|
@@ -19,22 +19,24 @@
|
|
|
19
19
|
回读命令:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
lark-cli slides
|
|
23
|
-
--
|
|
22
|
+
lark-cli slides +xml-get --as user \
|
|
23
|
+
--presentation "YOUR_ID" \
|
|
24
|
+
--output .lark-slides/plan/<deck-or-task-id>/readback.xml \
|
|
25
|
+
--json
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
## Automated XML Text Overlap Lint
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
提交前本地 XML 必须运行 XML 语法和文本重叠静态检查:
|
|
29
31
|
|
|
30
32
|
```bash
|
|
31
|
-
python3 skills/lark-slides/scripts/xml_text_overlap_lint.py --input <presentation.xml>
|
|
33
|
+
python3 skills/lark-slides/scripts/xml_text_overlap_lint.py --input <presentation-or-slide.xml>
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
通过标准:
|
|
35
37
|
|
|
36
|
-
- `summary.error_count == 0`。任何 error
|
|
37
|
-
-
|
|
38
|
+
- `summary.error_count == 0`。任何 error 都必须先修复再提交接口。
|
|
39
|
+
- 当前工具检查 XML well-formed、SXSD tag/attr 支持情况、IconPark icon 类型和 icon 填充可见性、文本元素之间的明显重叠,以及 whiteboard 容器与外部 sibling 元素的可疑边界重叠;它不检查越界、文本高度不足、图文压盖、表格/图表压盖或底部拥挤。
|
|
38
40
|
- 该工具不能替代页数核对、关键内容核对或真实视觉验收。
|
|
39
41
|
|
|
40
42
|
常见 code 的处理方向:
|
|
@@ -42,7 +44,14 @@ python3 skills/lark-slides/scripts/xml_text_overlap_lint.py --input <presentatio
|
|
|
42
44
|
| code | 含义 | 处理方式 |
|
|
43
45
|
|------|------|----------|
|
|
44
46
|
| `xml_not_well_formed` | XML 语法错误或文本未转义 | 修复标签闭合、属性引号、`&` / `<` / `>` 转义 |
|
|
47
|
+
| `sml_prefixed_tag` | SML 元素使用了命名空间前缀,如 `<ns0:slide>` 或 `<sml:shape>` | 使用 `<slide xmlns="http://www.larkoffice.com/sml/2.0">` 的默认命名空间,或使用无前缀标签 |
|
|
48
|
+
| `sxsd_unsupported_tag` | 使用了 SXSD 不支持的标签 | 按 lint `hint` 替换为受支持标签;常见如 `textbox -> <shape type="text">`、`image -> <img>` |
|
|
49
|
+
| `sxsd_unsupported_attr` | 支持的标签上使用了不支持的属性 | 按 lint `hint` 改为支持的属性;常见如 `x -> topLeftX`、`fontColor -> color` |
|
|
50
|
+
| `iconpark_unsupported_icon_type` | `<icon>` 使用了 `iconpark-index.json` 中不存在的 `iconType` | 按 lint `hint` 改为名单内的 `iconType`,或先用 `scripts/iconpark_tool.py` 搜索 |
|
|
51
|
+
| `icon_missing_fill_color` | 视觉规范要求 `<icon>` 设置 `<fill><fillColor color="..."/></fill>`,避免图标不可见 | 给 `<icon>` 添加显式非透明填充色,例如 `rgba(37, 99, 235, 1)` |
|
|
52
|
+
| `icon_transparent_fill_color` | `<icon>` 的 `fillColor` 是透明色,不满足视觉可见性要求 | 改成与背景有足够对比的非透明颜色 |
|
|
45
53
|
| `bbox_overlap` | 文本元素的估算绘制区域明显重叠 | 拉开文本坐标、缩小文本框/字号,或改成明确的分栏/分组结构 |
|
|
54
|
+
| `whiteboard_external_overlap` | whiteboard 容器 bbox 与外部 sibling 元素跨边界重叠 | 按 lint `hint` 缩小或移动 whiteboard / 外部元素;若接受该风险,最终必须以截图 QA 或等价渲染视觉检查为准 |
|
|
46
55
|
|
|
47
56
|
## Page Count And Structure
|
|
48
57
|
|
|
@@ -80,7 +89,7 @@ python3 skills/lark-slides/scripts/xml_text_overlap_lint.py --input <presentatio
|
|
|
80
89
|
|
|
81
90
|
`slide.get` 回读 XML 时,`<whiteboard>` 块只返回位置属性(`topLeftX`、`topLeftY`、`width`、`height`),SVG / Mermaid 内容**不随 XML 返回**。
|
|
82
91
|
|
|
83
|
-
- whiteboard
|
|
92
|
+
- whiteboard 验证可以核对坐标是否越界:`topLeftX + width ≤ 960`,`topLeftY + height ≤ 540`;lint 还会报告 whiteboard 容器与外部 sibling 元素的可疑边界重叠。
|
|
84
93
|
- SVG 和 Mermaid 内容的正确性无法通过回读 XML 验证,需要人工视觉验收。
|
|
85
94
|
- 不要在验证记录中声称 whiteboard 内容已验证,除非用户确认了视觉效果。
|
|
86
95
|
|
|
@@ -101,7 +110,7 @@ python3 skills/lark-slides/scripts/xml_text_overlap_lint.py --input <presentatio
|
|
|
101
110
|
|
|
102
111
|
```text
|
|
103
112
|
验证记录:
|
|
104
|
-
- 回读:已执行
|
|
113
|
+
- 回读:已执行 slides +xml-get,实际页数 N / 预期 N。
|
|
105
114
|
- 关键页:架构解释 / Self-Attention / 对比或演进 / 总结页均存在。
|
|
106
115
|
- 结构:检查了主要 shape/img/table/chart 元素,无明显空白页或破损页。
|
|
107
116
|
- 布局:检查了标题层级、主视觉、重叠/越界/文本溢出风险。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
新建演示文稿或大幅改写页面时,在 `slide_plan.json` 完成后、生成 XML 前读取本文件。目标是让 `layout_type`、`visual_focus`、`text_density` 变成实际页面几何,而不是只写在 plan 里。
|
|
4
4
|
|
|
5
|
-
默认画布按 `960 x 540`
|
|
5
|
+
默认画布按 `960 x 540` 规划。模板 XML 可以覆盖具体坐标,但不能覆盖这些原则:页面要有主视觉区域、文本要受密度约束、不同 `layout_type` 必须产生明显不同的坐标结构。
|
|
6
6
|
|
|
7
7
|
## Core Rules
|
|
8
8
|
|
|
@@ -131,6 +131,7 @@ Purpose: make one metric or fact memorable.
|
|
|
131
131
|
|
|
132
132
|
Geometry:
|
|
133
133
|
- Reserve the largest object for the metric: font size often `64-110`, region at least `300 x 120`.
|
|
134
|
+
- Set `autoFit="normal-auto-fit"` on the metric's `<content>` so an oversized number shrinks to fit its box instead of overflowing.
|
|
134
135
|
- Pair the number with one explanation and optional 2-3 small supporting labels.
|
|
135
136
|
- Do not bury the number in a bullet list or small card.
|
|
136
137
|
|
|
@@ -168,7 +169,7 @@ Text:
|
|
|
168
169
|
|
|
169
170
|
Purpose: explain components, dependencies, or system flow.
|
|
170
171
|
|
|
171
|
-
Implementation: prefer `<whiteboard>` (see `lark-slides-whiteboard.md`); use `<shape>` + `<line>`
|
|
172
|
+
Implementation: prefer Mermaid `<whiteboard>` (see `lark-slides-whiteboard.md`); use `<shape>` + `<line>` as fallback.
|
|
172
173
|
|
|
173
174
|
Geometry:
|
|
174
175
|
- Main visual area should be a diagram, not prose.
|
|
@@ -184,7 +185,7 @@ Text:
|
|
|
184
185
|
|
|
185
186
|
Purpose: show operational steps, workflow, or cause-effect path.
|
|
186
187
|
|
|
187
|
-
Implementation: prefer `<whiteboard>` (see `lark-slides-whiteboard.md`); use `<shape>` + `<line>`
|
|
188
|
+
Implementation: prefer Mermaid `<whiteboard>` (see `lark-slides-whiteboard.md`); use `<shape>` + `<line>` as fallback.
|
|
188
189
|
|
|
189
190
|
Geometry:
|
|
190
191
|
- Use numbered steps connected by arrows or lines.
|
|
@@ -139,10 +139,14 @@ XSD 中的 `title`、`headline`、`sub-headline`、`body`、`caption` 主要出
|
|
|
139
139
|
### icon
|
|
140
140
|
|
|
141
141
|
```xml
|
|
142
|
-
<icon iconType="iconpark/Base/setting.svg" topLeftX="80" topLeftY="120" width="32" height="32"
|
|
142
|
+
<icon iconType="iconpark/Base/setting.svg" topLeftX="80" topLeftY="120" width="32" height="32">
|
|
143
|
+
<fill>
|
|
144
|
+
<fillColor color="rgba(37, 99, 235, 1)"/>
|
|
145
|
+
</fill>
|
|
146
|
+
</icon>
|
|
143
147
|
```
|
|
144
148
|
|
|
145
|
-
`iconType` 必须来自已验证的 IconPark
|
|
149
|
+
`iconType` 必须来自已验证的 IconPark 路径;视觉 lint 规范要求 `fillColor` 显式设置为非透明颜色,避免图标不可见。需要语义图标时,先运行 `scripts/iconpark_tool.py search --query "<语义>"`,不要凭记忆拼路径。更多规则见 [iconpark.md](iconpark.md)。
|
|
146
150
|
|
|
147
151
|
### whiteboard
|
|
148
152
|
|