@lark-apaas/coding-miaoda-sandbox-skills 0.1.0-dev.28c4f05 → 0.1.0-dev.4e64c13
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/miaoda/animation-skill/SKILL.md +348 -0
- package/miaoda/authz-cli/SKILL.md +1 -0
- package/miaoda/charts-skill/SKILL.md +264 -0
- package/miaoda/creative-to-fullstack/SKILL.md +157 -0
- package/miaoda/creative-to-fullstack/references/artifact-signals.md +46 -0
- package/miaoda/creative-to-fullstack/references/ui-to-function.md +134 -0
- package/miaoda/data-analysis/SKILL.md +151 -0
- package/miaoda/data-analysis/references/json-output-specification.md +277 -0
- package/miaoda/data-analysis/references/post-analysis-guide.md +77 -0
- package/miaoda/data-analysis/references/python-analysis-reference.md +272 -0
- package/miaoda/data-analysis/references/tmp-file-management-guide.md +100 -0
- package/miaoda/debug-investigation/SKILL.md +21 -18
- package/miaoda/extract-json-schema/SKILL.md +147 -0
- package/miaoda/lark-apps/SKILL.md +37 -0
- package/miaoda/lark-apps/references/openapi-key.md +80 -0
- package/miaoda/lark-apps-authz/SKILL.md +292 -0
- package/miaoda/lark-apps-authz/references/permission-points.md +39 -0
- package/miaoda/lark-apps-authz/references/role.md +122 -0
- package/miaoda/lark-apps-db/SKILL.md +226 -0
- package/miaoda/lark-apps-db/references/full-reference.md +302 -0
- package/miaoda/lark-apps-file/SKILL.md +216 -0
- package/miaoda/lark-apps-ops/SKILL.md +62 -0
- package/miaoda/lark-apps-ops/references/lark-apps-access-scope-get.md +30 -0
- package/miaoda/lark-apps-ops/references/lark-apps-access-scope-set.md +40 -0
- package/miaoda/lark-apps-ops/references/lark-apps-cache.md +62 -0
- package/miaoda/lark-apps-ops/references/lark-apps-env.md +46 -0
- package/miaoda/lark-apps-ops/references/lark-apps-local-dev.md +25 -0
- package/miaoda/lark-apps-ops/references/lark-apps-member.md +93 -0
- package/miaoda/lark-apps-ops/references/lark-apps-observability.md +46 -0
- package/miaoda/lark-apps-ops/references/lark-apps-plugin-install.md +36 -0
- package/miaoda/lark-apps-ops/references/lark-apps-plugin-list.md +23 -0
- package/miaoda/lark-apps-ops/references/lark-apps-plugin-uninstall.md +25 -0
- package/miaoda/lark-apps-ops/references/lark-apps-release-create.md +30 -0
- package/miaoda/lark-apps-ops/references/lark-apps-release-get.md +28 -0
- package/miaoda/lark-apps-ops/references/lark-apps-release-list.md +31 -0
- package/miaoda/lark-apps-ops/references/lark-apps-update.md +30 -0
- package/miaoda/lark-apps-ops/references/openapi-key.md +80 -0
- package/miaoda/miaoda-file/SKILL.md +1 -0
- package/miaoda/miaoda-sql/SKILL.md +6 -2
- package/miaoda/performance-review/SKILL.md +144 -0
- package/miaoda/performance-review/references/business-analyzer.md +139 -0
- package/miaoda/performance-review/references/examples.md +107 -0
- package/miaoda/reviewer-usage/SKILL.md +111 -0
- package/miaoda/testing-guide/SKILL.md +218 -0
- package/miaoda-design/lark-apps-comment/SKILL.md +110 -0
- package/miaoda-design/lark-apps-ops/SKILL.md +45 -0
- package/miaoda-design/lark-apps-ops/references/lark-apps-release-create.md +51 -0
- package/miaoda-design/lark-apps-ops/references/lark-apps-release-get.md +28 -0
- package/miaoda-design/lark-apps-ops/references/lark-apps-release-list.md +31 -0
- package/miaoda-design/lark-apps-ops/references/lark-apps-update.md +33 -0
- package/{shared → miaoda-modern}/lark-apps/SKILL.md +5 -5
- package/miaoda-modern/lark-apps/references/openapi-key.md +80 -0
- package/miaoda-modern/lark-apps-ops/SKILL.md +62 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-access-scope-get.md +30 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-access-scope-set.md +40 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-cache.md +62 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-env.md +46 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-local-dev.md +25 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-member.md +93 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-observability.md +46 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-plugin-install.md +36 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-plugin-list.md +23 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-plugin-uninstall.md +25 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-release-create.md +30 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-release-get.md +28 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-release-list.md +31 -0
- package/miaoda-modern/lark-apps-ops/references/lark-apps-update.md +30 -0
- package/{shared/lark-apps → miaoda-modern/lark-apps-ops}/references/openapi-key.md +3 -3
- package/miaoda-modern/memory/SKILL.md +86 -0
- package/package.json +1 -1
- package/shared/lark-cli/SKILL.md +221 -0
- package/shared/lark-cli/lark-base/README.md +56 -0
- package/shared/lark-cli/lark-base/references/lark-base-commands.md +108 -0
- package/shared/lark-cli/lark-calendar/README.md +158 -0
- package/shared/lark-cli/lark-calendar/references/lark-calendar-meeting.md +30 -0
- package/shared/lark-cli/lark-calendar/references/lark-calendar-room-find.md +108 -0
- package/shared/lark-cli/lark-calendar/references/lark-calendar-suggestion.md +120 -0
- package/shared/lark-cli/lark-contact/README.md +35 -0
- package/shared/lark-cli/lark-contact/references/lark-contact-get-user.md +13 -0
- package/shared/lark-cli/lark-contact/references/lark-contact-search-user.md +121 -0
- package/shared/lark-cli/lark-doc/README.md +67 -0
- package/shared/lark-cli/lark-doc/references/lark-doc-fetch.md +138 -0
- package/shared/lark-cli/lark-doc/references/lark-doc-history.md +61 -0
- package/shared/lark-cli/lark-drive/README.md +129 -0
- package/shared/lark-cli/lark-drive/references/lark-drive-files-list.md +183 -0
- package/shared/lark-cli/lark-im/README.md +84 -0
- package/shared/lark-cli/lark-im/references/lark-im-chat-list.md +140 -0
- package/shared/lark-cli/lark-im/references/lark-im-chat-members-list.md +84 -0
- package/shared/lark-cli/lark-im/references/lark-im-chat-search.md +135 -0
- package/shared/lark-cli/lark-im/references/lark-im-reactions.md +232 -0
- package/shared/lark-cli/lark-minutes/README.md +51 -0
- package/shared/lark-cli/lark-minutes/references/lark-minutes-download.md +130 -0
- package/shared/lark-cli/lark-sheets/README.md +173 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-changeset.md +105 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-chart.md +45 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-conditional-format.md +42 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-filter-view.md +49 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-filter.md +42 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-float-image.md +43 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-formula-verify.md +64 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-history.md +70 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-pivot-table.md +44 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-read-data.md +216 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-search-replace.md +67 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-sheet-structure.md +52 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-sparkline.md +47 -0
- package/shared/lark-cli/lark-sheets/references/lark-sheets-workbook.md +69 -0
- package/shared/lark-cli/lark-sheets/scripts/sheets_df.py +32 -0
- package/shared/lark-cli/lark-slides/README.md +86 -0
- package/shared/lark-cli/lark-slides/references/lark-slides-history.md +105 -0
- package/shared/lark-cli/lark-slides/references/lark-slides-xml-presentation-slide-get.md +108 -0
- package/shared/lark-cli/lark-slides/references/lark-slides-xml-presentations-get.md +77 -0
- package/shared/lark-cli/lark-task/README.md +93 -0
- package/shared/lark-cli/lark-task/references/lark-task-get-my-tasks.md +57 -0
- package/shared/lark-cli/lark-task/references/lark-task-get-related-tasks.md +49 -0
- package/shared/lark-cli/lark-task/references/lark-task-search.md +36 -0
- package/shared/lark-cli/lark-task/references/lark-task-tasklist-search.md +35 -0
- package/shared/lark-cli/lark-vc/README.md +40 -0
- package/shared/lark-cli/lark-vc/references/lark-vc-recording.md +31 -0
- package/shared/lark-cli/lark-whiteboard/README.md +35 -0
- package/shared/lark-cli/lark-whiteboard/references/lark-whiteboard-export.md +59 -0
- package/shared/lark-cli/lark-wiki/README.md +50 -0
- package/shared/lark-cli/lark-wiki/references/lark-wiki-node-get.md +59 -0
- package/shared/lark-cli/lark-wiki/references/lark-wiki-node-list.md +95 -0
- package/shared/lark-cli/lark-wiki/references/lark-wiki-space-list.md +68 -0
- package/miaoda-design/attachment/SKILL.md +0 -58
- /package/{shared → miaoda}/memory/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/animation-skill/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/charts-skill/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/data-analysis/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/data-analysis/references/json-output-specification.md +0 -0
- /package/{shared → miaoda-modern}/data-analysis/references/post-analysis-guide.md +0 -0
- /package/{shared → miaoda-modern}/data-analysis/references/python-analysis-reference.md +0 -0
- /package/{shared → miaoda-modern}/data-analysis/references/tmp-file-management-guide.md +0 -0
- /package/{shared → miaoda-modern}/extract-json-schema/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/performance-review/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/performance-review/references/business-analyzer.md +0 -0
- /package/{shared → miaoda-modern}/performance-review/references/examples.md +0 -0
- /package/{shared → miaoda-modern}/reviewer-usage/SKILL.md +0 -0
- /package/{shared → miaoda-modern}/testing-guide/SKILL.md +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# slides history(历史版本与回滚任务状态)
|
|
2
|
+
|
|
3
|
+
用于查看 Slides XML presentation 的历史版本列表,以及查询回滚任务的执行状态。这两个都是
|
|
4
|
+
**只读**接口:
|
|
5
|
+
|
|
6
|
+
- `slides xml_presentation.history list` — 分页列出历史版本。
|
|
7
|
+
- `slides xml_presentation.history revert_status` — 按 `task_id` 查询回滚任务状态。
|
|
8
|
+
|
|
9
|
+
> 发起回滚本身(`xml_presentation.history revert`)是高风险写操作,不在本沙箱的只读推荐入口
|
|
10
|
+
> 内。用户临时要求回滚而撞到 exit 10 时,按上层 lark-cli SKILL.md 的高风险写审批协议处理。`revert_status`
|
|
11
|
+
> 只负责查询一个已存在的回滚任务的执行进度。
|
|
12
|
+
|
|
13
|
+
`entries[].edit_time` 是 UTC RFC3339 时间字符串(例如 `2026-06-22T12:24:45Z`)。按时间匹配时先将
|
|
14
|
+
其解析为时间值,再比较先后关系或时间差。
|
|
15
|
+
|
|
16
|
+
## 命令形态
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# 列出历史版本
|
|
20
|
+
lark-cli slides xml_presentation.history list --as user --params '<json_params>'
|
|
21
|
+
|
|
22
|
+
# 查询回滚任务状态
|
|
23
|
+
lark-cli slides xml_presentation.history revert_status --as user --params '<json_params>'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> 参数结构以 schema 为准,调用前先查看:
|
|
27
|
+
> `lark-cli schema slides.xml_presentation.history.list` /
|
|
28
|
+
> `lark-cli schema slides.xml_presentation.history.revert_status`。
|
|
29
|
+
> `list` 支持分页:无 `page_token` 取第一页,`has_more=true` 时用上一页返回的 `page_token`
|
|
30
|
+
> 继续翻页;`revert_status` 需要提供发起回滚时返回的 `task_id`。
|
|
31
|
+
|
|
32
|
+
## 按 revision_id 或时间点定位版本
|
|
33
|
+
|
|
34
|
+
当用户说"看看昨天下午 3 点的版本""revision_id=42 是哪一条"这类需求时,用 `list` 定位:
|
|
35
|
+
|
|
36
|
+
1. 执行 `list` 获取第一页历史记录;只有 `has_more=true` 且还需要更多候选时才继续翻页。
|
|
37
|
+
2. 如果用户给出 `revision_id`:先筛选当前页中 `entries[].revision_id == 用户给出的 revision_id`。
|
|
38
|
+
如果未命中且 `has_more=true`,继续拉下一页;如果已经命中候选,最多额外再拉一页,补齐同一个
|
|
39
|
+
`revision_id` 可能跨页出现的相邻 `history_version_id`。若用户同时给出目标时间,在候选里选择
|
|
40
|
+
`edit_time` 与目标时间最接近的一条;若未给目标时间但候选只有一条,可直接使用;若多个候选无法
|
|
41
|
+
可靠区分,不要自行取第一条,向用户展示候选并确认。
|
|
42
|
+
3. 如果用户只给出时间:用 `entries[].edit_time` 匹配,选择目标时刻之前最近的一条;如果用户表达
|
|
43
|
+
的是"最接近某时刻",则选择绝对时间差最小的一条。
|
|
44
|
+
4. 从最终匹配条目读取 `history_version_id`。`history_version_id` 对应服务端 `minor_history.version`。
|
|
45
|
+
|
|
46
|
+
候选确认时使用类似格式:
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
同一个 revision_id 命中多个历史版本,请确认是哪一条:
|
|
50
|
+
- history_version_id=11 revision_id=42 edit_time=2026-06-22T12:24:45Z name=...
|
|
51
|
+
- history_version_id=12 revision_id=42 edit_time=2026-06-22T12:25:14Z name=...
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 回滚任务状态轮询
|
|
55
|
+
|
|
56
|
+
已发起的回滚任务返回 `task_id` 与 `status` 后:
|
|
57
|
+
|
|
58
|
+
1. 如果 `status` 不是 `running`,不再调用状态接口。
|
|
59
|
+
2. 如果 `status` 是 `running`,等待响应中的 `poll_after_ms` 后调用 `revert_status`;`poll_after_ms`
|
|
60
|
+
缺失、为 `0` 或非法时,默认等待 10 秒。
|
|
61
|
+
3. 状态查询返回 `running` 时继续轮询;返回 `done`、`partial_failed` 或 `failed` 时停止。
|
|
62
|
+
4. 默认最多轮询 5 分钟。达到上限后停止轮询,向用户说明任务仍在运行并返回 `task_id`,不得将其
|
|
63
|
+
描述为回滚失败。
|
|
64
|
+
5. 状态查询出现临时错误时,按相同间隔最多连续重试 3 次;只重试 `revert_status`。
|
|
65
|
+
6. `partial_failed` 或 `failed` 时展示 `failed_block_tokens`。
|
|
66
|
+
|
|
67
|
+
## 返回值要点
|
|
68
|
+
|
|
69
|
+
`list` 返回:
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"entries": [
|
|
74
|
+
{
|
|
75
|
+
"revision_id": 42,
|
|
76
|
+
"history_version_id": "11",
|
|
77
|
+
"edit_time": "2026-06-22T12:24:45Z",
|
|
78
|
+
"type": 1,
|
|
79
|
+
"name": "版本名",
|
|
80
|
+
"description": "版本说明",
|
|
81
|
+
"editor_ids": ["ou_xxx"]
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"has_more": true,
|
|
85
|
+
"page_token": "page_token"
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`revert_status` 返回:
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"status": "partial_failed",
|
|
94
|
+
"history_version_id": "11",
|
|
95
|
+
"failed_block_tokens": ["blk_xxx"]
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`status` 可能是 `running`、`done`、`partial_failed`、`failed`。当状态是 `partial_failed` 或
|
|
100
|
+
`failed` 时,优先检查 `failed_block_tokens`。
|
|
101
|
+
|
|
102
|
+
## 相关命令
|
|
103
|
+
|
|
104
|
+
- [xml_presentations get](lark-slides-xml-presentations-get.md) — 读取整份演示文稿 XML
|
|
105
|
+
- [xml_presentation.slide get](lark-slides-xml-presentation-slide-get.md) — 按 `slide_id` 读取单页 XML
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# lark-slides xml_presentation.slide get
|
|
2
|
+
|
|
3
|
+
## 用途
|
|
4
|
+
|
|
5
|
+
按 `slide_id` 拉取指定演示文稿单页的 XML 内容(可指定历史版本)。
|
|
6
|
+
|
|
7
|
+
## 命令
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
lark-cli slides xml_presentation.slide get --as user --params '<json_params>'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 参数说明
|
|
14
|
+
|
|
15
|
+
| 参数 | 类型 | 必需 | 说明 |
|
|
16
|
+
|------|------|------|------|
|
|
17
|
+
| `--params` | JSON string | 是 | 路径参数与查询参数 |
|
|
18
|
+
|
|
19
|
+
### params JSON 结构
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"xml_presentation_id": "slides_example_presentation_id",
|
|
24
|
+
"slide_id": "slide_example_id",
|
|
25
|
+
"revision_id": -1
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
| 字段 | 类型 | 必需 | 说明 |
|
|
30
|
+
|------|------|------|------|
|
|
31
|
+
| `xml_presentation_id` | string | 是 | 目标演示文稿唯一标识 |
|
|
32
|
+
| `slide_id` | string | 是 | 目标页面唯一标识 |
|
|
33
|
+
| `revision_id` | integer | 否 | 版本号,`-1` 表示最新版(默认)|
|
|
34
|
+
|
|
35
|
+
## 使用示例
|
|
36
|
+
|
|
37
|
+
### 读最新版本
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
lark-cli slides xml_presentation.slide get --as user --params '{
|
|
41
|
+
"xml_presentation_id": "slides_example_presentation_id",
|
|
42
|
+
"slide_id": "slide_example_id"
|
|
43
|
+
}'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 只提取 XML 内容
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
lark-cli slides xml_presentation.slide get --as user \
|
|
50
|
+
--params '{"xml_presentation_id":"slides_example_presentation_id","slide_id":"slide_example_id"}' \
|
|
51
|
+
| jq -r '.data.slide.content'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 读指定历史版本
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
lark-cli slides xml_presentation.slide get --as user --params '{
|
|
58
|
+
"xml_presentation_id": "slides_example_presentation_id",
|
|
59
|
+
"slide_id": "slide_example_id",
|
|
60
|
+
"revision_id": 42
|
|
61
|
+
}'
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## 返回值
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"ok": true,
|
|
69
|
+
"identity": "user",
|
|
70
|
+
"data": {
|
|
71
|
+
"slide": {
|
|
72
|
+
"slide_id": "slide_example_id",
|
|
73
|
+
"content": "<slide id=\"slide_example_id\"><style/><data>...</data></slide>"
|
|
74
|
+
},
|
|
75
|
+
"revision_id": 100
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
| 字段 | 类型 | 说明 |
|
|
81
|
+
|------|------|------|
|
|
82
|
+
| `data.slide.slide_id` | string | 页面唯一标识 |
|
|
83
|
+
| `data.slide.content` | string | 页面完整 XML(`<slide>` 根节点,不含 xmlns)|
|
|
84
|
+
| `data.revision_id` | integer | 此次读到的版本号 |
|
|
85
|
+
|
|
86
|
+
## 常见错误
|
|
87
|
+
|
|
88
|
+
| 错误码 | 含义 |
|
|
89
|
+
|--------|------|
|
|
90
|
+
| 404 | 演示文稿或页面不存在,检查 `xml_presentation_id` / `slide_id` |
|
|
91
|
+
| 403 | 对该演示文稿无访问权限 |
|
|
92
|
+
| 400 | `revision_id` 不存在,用 `-1` 或真实存在的版本号 |
|
|
93
|
+
|
|
94
|
+
## 注意事项
|
|
95
|
+
|
|
96
|
+
1. **执行前必做**:`lark-cli schema slides.xml_presentation.slide.get` 查看最新参数结构
|
|
97
|
+
2. **block_id 提取**:返回 XML 里每个顶层块(shape、img、table、chart 等)的 `id` 属性即为 `block_id`,通常是 3 字符短码,例如 `<shape id="bUn" ...>`。用以下命令列出当前页所有 block_id:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
lark-cli slides xml_presentation.slide get --as user \
|
|
101
|
+
--params "{\"xml_presentation_id\":\"$PID\",\"slide_id\":\"$SID\"}" \
|
|
102
|
+
| jq -r '.data.slide.content' | grep -oE 'id="[^"]+"' | sed 's/id="//;s/"//'
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## 相关命令
|
|
106
|
+
|
|
107
|
+
- [xml_presentations get](lark-slides-xml-presentations-get.md) — 读取整份演示文稿 XML
|
|
108
|
+
- [slides history](lark-slides-history.md) — 历史版本列表与回滚任务状态查询
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# lark-slides xml_presentations get
|
|
2
|
+
|
|
3
|
+
## 用途
|
|
4
|
+
|
|
5
|
+
读取飞书幻灯片(PPT)演示文稿的完整 XML 内容信息。
|
|
6
|
+
|
|
7
|
+
## 命令形态
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
lark-cli slides xml_presentations get --as user --params '<json_params>'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### 参数说明
|
|
14
|
+
|
|
15
|
+
| 参数 | 类型 | 必需 | 说明 |
|
|
16
|
+
|------|------|------|------|
|
|
17
|
+
| `--params` | JSON string | 是 | 路径参数与查询参数,结构以 schema 为准 |
|
|
18
|
+
|
|
19
|
+
### params JSON 结构
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"xml_presentation_id": "slides_example_presentation_id",
|
|
24
|
+
"revision_id": -1
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
| 字段 | 类型 | 必需 | 说明 |
|
|
29
|
+
|------|------|------|------|
|
|
30
|
+
| `xml_presentation_id` | string | 是 | 演示文稿的唯一标识符 |
|
|
31
|
+
| `revision_id` | integer | 否 | 版本号,`-1` 表示最新版本 |
|
|
32
|
+
|
|
33
|
+
### 返回值
|
|
34
|
+
|
|
35
|
+
成功时返回演示文稿的完整信息:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"ok": true,
|
|
40
|
+
"identity": "user",
|
|
41
|
+
"data": {
|
|
42
|
+
"xml_presentation": {
|
|
43
|
+
"presentation_id": "slides_example_presentation_id",
|
|
44
|
+
"revision_id": 1,
|
|
45
|
+
"content": "<presentation xmlns=\"https://www.larkoffice.com/sml/2.0\" height=\"540\" width=\"960\">...</presentation>"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### 返回字段说明
|
|
52
|
+
|
|
53
|
+
| 字段 | 类型 | 说明 |
|
|
54
|
+
|------|------|------|
|
|
55
|
+
| `data.xml_presentation.presentation_id` | string | 演示文稿唯一标识 |
|
|
56
|
+
| `data.xml_presentation.revision_id` | integer | 版本号 |
|
|
57
|
+
| `data.xml_presentation.content` | string | XML 格式的完整内容 |
|
|
58
|
+
|
|
59
|
+
### 常见错误
|
|
60
|
+
|
|
61
|
+
| 错误码 | 含义 |
|
|
62
|
+
|--------|------|
|
|
63
|
+
| 404 | 演示文稿不存在,检查 `xml_presentation_id` 是否正确 |
|
|
64
|
+
| 403 | 对该演示文稿无访问权限 |
|
|
65
|
+
| 400 | 参数格式错误,确保 `--params` 是合法的 JSON 字符串 |
|
|
66
|
+
|
|
67
|
+
### 注意事项
|
|
68
|
+
|
|
69
|
+
1. 直接调用前,使用 `lark-cli schema slides.xml_presentations.get` 查看最新的参数结构
|
|
70
|
+
2. 返回的 XML 在 `data.xml_presentation.content` 字段中
|
|
71
|
+
3. 如果只需要部分信息,可以使用 `jq` 等工具过滤返回结果
|
|
72
|
+
4. 完整 XML 可能很长,用 `jq` 提取到本地文件而不是直接打到终端,避免输出被截断
|
|
73
|
+
|
|
74
|
+
## 相关命令
|
|
75
|
+
|
|
76
|
+
- [xml_presentation.slide get](lark-slides-xml-presentation-slide-get.md) — 按 `slide_id` 读取单页 XML
|
|
77
|
+
- [slides history](lark-slides-history.md) — 历史版本列表与回滚任务状态查询
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# task (v2)
|
|
2
|
+
|
|
3
|
+
## 身份
|
|
4
|
+
|
|
5
|
+
任务查询针对当前登录用户(默认 `--as user`)。当用户提到"我"(例如"分配给我""由我创建""我关注的")时,默认取当前登录用户的 `open_id` 作为对应参数值。
|
|
6
|
+
|
|
7
|
+
## 搜索 vs 列取(意图判断)
|
|
8
|
+
|
|
9
|
+
- **任务搜索技巧**:先区分用户是否**特地指定使用搜索**,以及是否真的提供了**查询关键字**(例如任务名称、关键词、片段描述)。如果用户特地指定使用搜索,或明确给出了任务查询关键字,则目标是**任务**时优先使用 `+search`。如果用户没有特地指定使用搜索,且意图里没有查询关键字,只有范围条件(例如"今年以来""已完成""由我创建""我关注的"),并且列取与搜索都能达到目的时,应优先使用列表型能力:其中"与我相关 / 我关注的 / 由我创建"优先 `+get-related-tasks`;"我负责的 / 分配给我"优先 `+get-my-tasks`。不要把时间范围词(例如"今年以来")本身误当成 `query` 去走搜索。
|
|
10
|
+
- **任务搜索相关性提示**:`+search` 当前不会自动判断搜索结果与搜索发起人的相关性。如果用户明确要求搜索"与我相关"的任务,必须先识别具体关系,获取当前用户的 `open_id`,并显式传入对应的 `--assignee`(负责人)、`--creator`(创建人)或 `--follower`(关注人)过滤条件;不能只依赖 `query` 期待自动返回与当前用户相关的任务。
|
|
11
|
+
- **任务清单搜索技巧**:任务清单遵循同样的判断逻辑。有清单查询关键字(清单名称、关键词、片段描述)或明确要求搜索时用 `+tasklist-search`;若只有范围条件(例如"由我创建的任务清单""今年以来创建的清单"),可用原生 `tasklists list` 列取(先 `lark-cli schema task.tasklists.list`,再 `lark-cli task tasklists list --as user ...`),再按 `creator`、`created_at` 等字段做本地筛选和分页控制。
|
|
12
|
+
- **意图区分补充**:像"搜索飞书中今年以来我关注的任务"这类表达,虽字面带"搜索",但若无真正查询关键字、本质是限定"与我相关 + 时间范围",应优先走 `+get-related-tasks`;像"搜索飞书中由我创建的任务清单",若无清单关键字、本质是限定"清单范围 + 创建者",应优先用原生 `tasklists list` 后本地筛选。
|
|
13
|
+
|
|
14
|
+
## 待办归属 disambiguation(必读)
|
|
15
|
+
|
|
16
|
+
用户提到「待办 / todo / 任务」时,**先判断归属**,不要默认走本 skill:
|
|
17
|
+
|
|
18
|
+
- **妙记里的待办能力在当前沙箱不可用**(也不走本 skill):上下文含 **妙记 / 会议纪要 / minute_token / 妙记 URL**(`/minutes/`);或「在某某妙记里新建/修改待办」「妙记 AI 待办」「会议录制里的待办」——直接告知用户该能力当前在沙箱不可用,不要用本 skill 或其它域命令替代。
|
|
19
|
+
- **走本 skill(lark-task)**:任务清单、分配给我、项目待办、截止日期/提醒、子任务、任务清单成员;或 applink 含 `client/todo/task?guid=`;或明确说「飞书任务」「任务中心」「我的任务清单」。
|
|
20
|
+
- 用户要在妙记里加待办时,不要用 task 命令去「找清单再放任务」。
|
|
21
|
+
|
|
22
|
+
## 输出与渲染
|
|
23
|
+
|
|
24
|
+
- **友好输出**:输出任务(或清单)结果时,建议同时提取并输出返回结果里的 `url` 字段(任务链接),方便用户点击跳转。
|
|
25
|
+
- **人员字段**:渲染负责人、创建人、owner、成员等人员字段时,除展示 `id`(如 open_id)外,应尽量通过通讯录(`lark-cli contact +search-user --user-ids <open_id>`)解析并展示真实姓名,便于识别。
|
|
26
|
+
- **时间字段**:渲染创建时间、截止时间等字段时使用本地时区,格式为 `2006-01-02 15:04:05`。
|
|
27
|
+
|
|
28
|
+
## Task GUID 定义
|
|
29
|
+
|
|
30
|
+
Task OpenAPI 中用于操作任务的 `guid` 是任务的全局唯一标识(GUID),不是客户端展示的任务编号(例如 `t104121` / `suite_entity_num`)。对于飞书任务 applink(例如 `.../client/todo/task?guid=...`),必须使用 URL query 里的 `guid` 参数作为 task guid。
|
|
31
|
+
|
|
32
|
+
## Shortcuts
|
|
33
|
+
|
|
34
|
+
| Shortcut | 说明 |
|
|
35
|
+
|----------|------|
|
|
36
|
+
| [`+get-my-tasks`](references/lark-task-get-my-tasks.md) | 列出分配给当前用户的任务(支持按完成状态、创建时间、截止时间过滤) |
|
|
37
|
+
| [`+get-related-tasks`](references/lark-task-get-related-tasks.md) | 列出与当前用户相关的任务(支持仅看我创建 / 我关注) |
|
|
38
|
+
| [`+search`](references/lark-task-search.md) | 按关键词与过滤条件搜索任务 |
|
|
39
|
+
| [`+tasklist-search`](references/lark-task-tasklist-search.md) | 按关键词与过滤条件搜索任务清单 |
|
|
40
|
+
|
|
41
|
+
## API Resources
|
|
42
|
+
|
|
43
|
+
除上述快捷命令外,本域在沙箱内**仅**以下只读原生 API 命令可用(通用格式 `lark-cli task <resource> <method> [flags]`):
|
|
44
|
+
|
|
45
|
+
### tasks
|
|
46
|
+
|
|
47
|
+
- `get` — 获取任务详情
|
|
48
|
+
- `list` — 列取任务列表
|
|
49
|
+
|
|
50
|
+
### tasklists
|
|
51
|
+
|
|
52
|
+
- `get` — 获取清单详情
|
|
53
|
+
- `list` — 获取清单列表
|
|
54
|
+
- `tasks` — 获取清单任务列表
|
|
55
|
+
|
|
56
|
+
### subtasks
|
|
57
|
+
|
|
58
|
+
- `list` — 获取任务的子任务列表
|
|
59
|
+
|
|
60
|
+
示例:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# 获取单个任务详情
|
|
64
|
+
lark-cli task tasks get --task-guid <task_guid>
|
|
65
|
+
|
|
66
|
+
# 获取清单下的任务列表
|
|
67
|
+
lark-cli task tasklists tasks --tasklist-guid <tasklist_guid>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 查询方法的使用方式
|
|
71
|
+
|
|
72
|
+
- 查看方法的 cli flag:`lark-cli task <resource> <method> -h`
|
|
73
|
+
- 查看方法 API 参数:`lark-cli schema task.<resource>.<method>`(例:`lark-cli schema task.tasks.get`)
|
|
74
|
+
|
|
75
|
+
沙箱内仅上述 API 命令可用,不要尝试其它 `service`/`api` 组合或写操作方法。
|
|
76
|
+
|
|
77
|
+
## 权限表(保留只读命令)
|
|
78
|
+
|
|
79
|
+
| 方法 | 所需 scope |
|
|
80
|
+
|------|-----------|
|
|
81
|
+
| `tasks.get` | `task:task:read` |
|
|
82
|
+
| `tasks.list` | `task:task:read` |
|
|
83
|
+
| `tasklists.get` | `task:tasklist:read` |
|
|
84
|
+
| `tasklists.list` | `task:tasklist:read` |
|
|
85
|
+
| `tasklists.tasks` | `task:tasklist:read` |
|
|
86
|
+
| `subtasks.list` | `task:task:read` |
|
|
87
|
+
|
|
88
|
+
## 常用其他域命令
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# 把任务里的人员 open_id 解析为真实姓名,更多参数详见 lark-contact
|
|
92
|
+
lark-cli contact +search-user --user-ids <open_id>
|
|
93
|
+
```
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# task +get-my-tasks
|
|
2
|
+
|
|
3
|
+
If the user query only specifies a task name (e.g., "Complete task Lobster No. 1"), use this command to list and search for the task by its summary.
|
|
4
|
+
|
|
5
|
+
> **Output rendering note:**
|
|
6
|
+
> 1. If you need to present user fields (assignee, creator, etc.), do not only output the raw `id` (e.g. open_id). Also try to resolve and display the user's real name (e.g. via the contact skill) for readability.
|
|
7
|
+
> 2. When rendering timestamps (e.g. created time, due time), use the local timezone. Format is 2006-01-02 15:04:05
|
|
8
|
+
|
|
9
|
+
List tasks assigned to the current user, with support for filtering by completion status, creation time, and due date.
|
|
10
|
+
By default, the command will automatically paginate up to 20 times. Use `--page-all` to fetch more (up to 40 pages).
|
|
11
|
+
|
|
12
|
+
> **Pending vs all tasks:** When `--complete` is not provided, the result contains **both completed and incomplete tasks**.
|
|
13
|
+
> For standup / daily-summary / pending-todo scenarios, you **must** pass `--complete=false`; otherwise completed tasks will be surfaced as if they were still pending.
|
|
14
|
+
|
|
15
|
+
## Recommended Commands
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# Search for a specific task by name
|
|
19
|
+
lark-cli task +get-my-tasks --query "Lobster No. 1"
|
|
20
|
+
|
|
21
|
+
# Get all my tasks, both completed and incomplete (fetches up to 20 pages by default)
|
|
22
|
+
lark-cli task +get-my-tasks
|
|
23
|
+
|
|
24
|
+
# Pending-only: my incomplete tasks (use this for standup/daily-summary)
|
|
25
|
+
lark-cli task +get-my-tasks --complete=false
|
|
26
|
+
|
|
27
|
+
# Pending-only with a due-date upper bound (e.g. end of today / this week)
|
|
28
|
+
lark-cli task +get-my-tasks --complete=false --due-end "2026-03-27T23:59:59+08:00"
|
|
29
|
+
|
|
30
|
+
# Fetch all my tasks (up to 40 pages)
|
|
31
|
+
lark-cli task +get-my-tasks --page-all
|
|
32
|
+
|
|
33
|
+
# Fetch up to 10 pages
|
|
34
|
+
lark-cli task +get-my-tasks --page-limit 10
|
|
35
|
+
|
|
36
|
+
# Resume from a known page token
|
|
37
|
+
lark-cli task +get-my-tasks --page-token "pt_xxx"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Parameters
|
|
41
|
+
|
|
42
|
+
| Parameter | Required | Description |
|
|
43
|
+
|-----------|----------|-------------|
|
|
44
|
+
| `--query <string>` | No | Search for tasks by summary. Returns exact matches if any; otherwise returns partial matches. |
|
|
45
|
+
| `--complete=<bool>` | No | Optional. If not provided, it fetches all tasks (both incomplete and completed). Set to `true` to fetch only completed tasks, or `false` for incomplete tasks. |
|
|
46
|
+
| `--created_at <string>` | No | Query tasks created after this time. Supports date: `YYYY-MM-DD`, relative: `-2d`, or ms timestamp. |
|
|
47
|
+
| `--due-start <string>` | No | Query tasks with a due date after this time. Supports date: `YYYY-MM-DD`, relative: `-2d`, or ms timestamp. |
|
|
48
|
+
| `--due-end <string>` | No | Query tasks with a due date before this time. Supports date: `YYYY-MM-DD`, relative: `-2d`, or ms timestamp. |
|
|
49
|
+
| `--page-all` | No | Automatically paginate through all pages (max 40). |
|
|
50
|
+
| `--page-limit <int>` | No | Max page limit (default 20). |
|
|
51
|
+
| `--page-token <string>` | No | Start from the specified page token (useful for resuming a previous query). |
|
|
52
|
+
|
|
53
|
+
## Workflow
|
|
54
|
+
|
|
55
|
+
1. Determine the filters based on the user's request.
|
|
56
|
+
2. Execute the command. The CLI will automatically loop up to the specified limit (default 20, or 40 with `--page-all`) to fetch records.
|
|
57
|
+
3. Show the results (ID, summary, due time, and created date).
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# task +get-related-tasks
|
|
2
|
+
|
|
3
|
+
> **Pagination / Time Cursor Rule:**
|
|
4
|
+
> In `+get-related-tasks`, `page_token` is the task `updated_at` cursor in microseconds.
|
|
5
|
+
>
|
|
6
|
+
> **Execution Priority:**
|
|
7
|
+
> 1. If the request contains a start/end time boundary (for example, "今年以来", "最近一个月", "从 3 月 1 日开始"), first convert the **start time** boundary to a microsecond `page_token` and query from that token.
|
|
8
|
+
> 2. Continue pagination using returned `page_token` until `has_more=false`, but never exceed 40 total page fetches.
|
|
9
|
+
> 3. Do NOT default to `--page-all` for time-bounded queries.
|
|
10
|
+
>
|
|
11
|
+
> Only use `--page-all` from the beginning when:
|
|
12
|
+
> 1. the user explicitly asks for a full scan of all related tasks, or
|
|
13
|
+
> 2. no time boundary can be inferred from the request.
|
|
14
|
+
|
|
15
|
+
List tasks related to the current user.
|
|
16
|
+
|
|
17
|
+
## Recommended Commands
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# List all related tasks
|
|
21
|
+
lark-cli task +get-related-tasks
|
|
22
|
+
|
|
23
|
+
# List incomplete related tasks starting from a page token
|
|
24
|
+
lark-cli task +get-related-tasks --include-complete=false --page-token "1752730590582902"
|
|
25
|
+
|
|
26
|
+
# Show only tasks created by me
|
|
27
|
+
lark-cli task +get-related-tasks --created-by-me
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Parameters
|
|
31
|
+
|
|
32
|
+
| Parameter | Required | Description |
|
|
33
|
+
|-----------|----------|-------------|
|
|
34
|
+
| `--include-complete=<bool>` | No | Default behavior includes completed tasks. Set to `false` to keep only incomplete tasks. |
|
|
35
|
+
| `--page-all` | No | Automatically paginate through all pages (max 40). |
|
|
36
|
+
| `--page-limit <int>` | No | Max page limit (default 20). |
|
|
37
|
+
| `--page-token <string>` | No | Start from the specified page token. This token is the task's last update time cursor in microseconds. |
|
|
38
|
+
| `--created-by-me` | No | Keep only tasks whose creator is the current user. This is a client-side filter applied after fetching related-task pages. |
|
|
39
|
+
| `--followed-by-me` | No | Keep only tasks followed by the current user. This is a client-side filter applied after fetching related-task pages. |
|
|
40
|
+
|
|
41
|
+
> **Page Token Note:** In `+get-related-tasks`, the `page_token` is a microsecond-level cursor representing the task's last update time. For example, `1752730590582902` should be treated as an updated-at cursor, not a task ID.
|
|
42
|
+
>
|
|
43
|
+
> **Pagination Note for Client-side Filters:** When `--created-by-me` or `--followed-by-me` is used, filtering happens locally after each upstream related-task page is fetched. The returned `has_more` and `page_token` still describe the upstream cursor, so later pages may contain more matching tasks, or may contain none.
|
|
44
|
+
|
|
45
|
+
## Workflow
|
|
46
|
+
|
|
47
|
+
1. Determine whether the user needs all related tasks or a filtered subset.
|
|
48
|
+
2. Execute `lark-cli task +get-related-tasks ...`
|
|
49
|
+
3. Report the matching tasks and, if present, the next `page_token`.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# task +search
|
|
2
|
+
|
|
3
|
+
Search tasks by keyword and optional filters.
|
|
4
|
+
|
|
5
|
+
## Recommended Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# Search by keyword
|
|
9
|
+
lark-cli task +search --query "test"
|
|
10
|
+
|
|
11
|
+
# Search incomplete tasks assigned to specific users
|
|
12
|
+
lark-cli task +search --assignee "ou_xxx,ou_yyy" --completed=false
|
|
13
|
+
|
|
14
|
+
# Search by due time range
|
|
15
|
+
lark-cli task +search --query "release" --due "-1d,+7d"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
|
|
20
|
+
| Parameter | Required | Description |
|
|
21
|
+
|-----------|----------|-------------|
|
|
22
|
+
| `--query <string>` | No | Search keyword. If omitted, at least one filter must be provided. |
|
|
23
|
+
| `--creator <ids>` | No | Creator open_ids, comma-separated. |
|
|
24
|
+
| `--assignee <ids>` | No | Assignee open_ids, comma-separated. |
|
|
25
|
+
| `--follower <ids>` | No | Follower open_ids, comma-separated. |
|
|
26
|
+
| `--completed=<bool>` | No | Filter by completion state. |
|
|
27
|
+
| `--due <range>` | No | Due time range in `start,end` form. Each side supports ISO/date/relative/ms input. |
|
|
28
|
+
| `--page-token <string>` | No | Page token for pagination. |
|
|
29
|
+
| `--page-all` | No | Automatically paginate through all pages (max 40). |
|
|
30
|
+
| `--page-limit <int>` | No | Max page limit (default 20). |
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
1. Build the keyword and filters from the user's request.
|
|
35
|
+
2. Execute `lark-cli task +search ...`
|
|
36
|
+
3. Report the matched tasks and include the next `page_token` if more results exist.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# task +tasklist-search
|
|
2
|
+
|
|
3
|
+
> **Note:** This shortcut uses tasklist search followed by tasklist detail queries to render the final output.
|
|
4
|
+
|
|
5
|
+
Search tasklists by keyword and optional filters.
|
|
6
|
+
|
|
7
|
+
## Recommended Commands
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Search by keyword
|
|
11
|
+
lark-cli task +tasklist-search --query "测试"
|
|
12
|
+
|
|
13
|
+
# Search tasklists created by specific users
|
|
14
|
+
lark-cli task +tasklist-search --creator "ou_xxx,ou_yyy"
|
|
15
|
+
|
|
16
|
+
# Search by creation time range
|
|
17
|
+
lark-cli task +tasklist-search --query "Q2" --create-time "-30d,+0d"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Parameters
|
|
21
|
+
|
|
22
|
+
| Parameter | Required | Description |
|
|
23
|
+
|-----------|----------|-------------|
|
|
24
|
+
| `--query <string>` | No | Search keyword. If omitted, at least one filter must be provided. |
|
|
25
|
+
| `--creator <ids>` | No | Creator open_ids, comma-separated. |
|
|
26
|
+
| `--create-time <range>` | No | Creation time range in `start,end` form. Each side supports ISO/date/relative/ms input. |
|
|
27
|
+
| `--page-token <string>` | No | Page token for pagination. |
|
|
28
|
+
| `--page-all` | No | Automatically paginate through all pages (max 40). |
|
|
29
|
+
| `--page-limit <int>` | No | Max page limit (default 20). |
|
|
30
|
+
|
|
31
|
+
## Workflow
|
|
32
|
+
|
|
33
|
+
1. Build the search keyword and filters from the user's request.
|
|
34
|
+
2. Execute `lark-cli task +tasklist-search ...`
|
|
35
|
+
3. Report the matched tasklists and the next `page_token` if more results exist.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# vc (v1)
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> - 运行 `lark-cli --version`,确认可用,无需询问用户。
|
|
5
|
+
|
|
6
|
+
## 身份
|
|
7
|
+
|
|
8
|
+
vc 域命令默认使用 `--as user`。
|
|
9
|
+
|
|
10
|
+
## Shortcuts
|
|
11
|
+
|
|
12
|
+
| Shortcut | 说明 |
|
|
13
|
+
|----------|------|
|
|
14
|
+
| [`+recording`](references/lark-vc-recording.md) | 查会议录制信息:回看链接、时长、关联妙记 token |
|
|
15
|
+
|
|
16
|
+
- 使用 Shortcut 前,必须先读 [references/lark-vc-recording.md](references/lark-vc-recording.md)。
|
|
17
|
+
|
|
18
|
+
## 输入要求 —— 必须直接给 ID
|
|
19
|
+
|
|
20
|
+
`+recording` 只接受 `meeting_id` 或日程实例 ID。本域没有按会议链接、会议号或自然语言描述
|
|
21
|
+
定位会议的命令,所以拿到这些形式时**先向用户索取 ID**,不要试其它域的命令绕。
|
|
22
|
+
|
|
23
|
+
| 用户给了什么 | 怎么做 |
|
|
24
|
+
|---|---|
|
|
25
|
+
| `meeting_id` | `+recording --meeting-ids <id>` |
|
|
26
|
+
| 日程实例 ID | `+recording --calendar-event-ids <id>` |
|
|
27
|
+
| 会议链接 / 会议号 / 「上周三那个会」 | 告知用户需要提供会议 ID 或日程实例 ID |
|
|
28
|
+
|
|
29
|
+
## 意图路由
|
|
30
|
+
|
|
31
|
+
| 用户需求 | 命令 |
|
|
32
|
+
|---|---|
|
|
33
|
+
| 这个会有没有录制、能不能回看 | `+recording --meeting-ids <meeting_id>` |
|
|
34
|
+
| 这个会录了多长 | 同上,读返回的 `duration` |
|
|
35
|
+
| 从日程查对应会议的录制 | `+recording --calendar-event-ids <日程实例 ID>` |
|
|
36
|
+
|
|
37
|
+
## 拿到 minute_token 之后
|
|
38
|
+
|
|
39
|
+
`+recording` 返回体含 `minute_token`。需要下载录制的音视频文件时,切到
|
|
40
|
+
[lark-minutes](../lark-minutes/README.md) 用 `minutes +download`——那是本 skill 内可用的下载入口。
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# vc +recording
|
|
2
|
+
|
|
3
|
+
命令事实以 `lark-cli vc +recording --help` 为准。
|
|
4
|
+
|
|
5
|
+
## 命令骨架
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
lark-cli vc +recording --meeting-ids <meeting_id> --as user
|
|
9
|
+
lark-cli vc +recording --calendar-event-ids <日程实例 ID> --as user
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
- `--meeting-ids` 与 `--calendar-event-ids` 二选一,都支持逗号分隔批量。
|
|
13
|
+
- 没有其它定位方式:本域只有 `+recording` 一个入口,只有会议链接或会议号时无法换到
|
|
14
|
+
`meeting_id`,需向用户索取。
|
|
15
|
+
|
|
16
|
+
## 输出契约
|
|
17
|
+
|
|
18
|
+
关键字段:
|
|
19
|
+
|
|
20
|
+
| 字段 | 含义 |
|
|
21
|
+
|---|---|
|
|
22
|
+
| `recording_url` | 回看入口链接 |
|
|
23
|
+
| `duration` | 录制时长 |
|
|
24
|
+
| `minute_token` | 关联妙记 token,可交给 [lark-minutes](../lark-minutes/README.md) 的 `minutes +download` 下载音视频 |
|
|
25
|
+
|
|
26
|
+
## Agent 规则
|
|
27
|
+
|
|
28
|
+
- 用户问「能不能回看」「录了多久」时,直接转述 `recording_url` 与 `duration`,不必展开整个响应体。
|
|
29
|
+
- 批量查多个会议时用一次调用传逗号分隔的 ID,不要循环单查。
|
|
30
|
+
- 命令失败时把 `error.hint` 转述给用户;录制读取依赖高级权限,权限类报错要说明是权限问题,
|
|
31
|
+
不要改用其它命令重试。
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# whiteboard (v1)
|
|
2
|
+
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> - 运行 `lark-cli --version`,确认可用,无需询问用户。
|
|
5
|
+
|
|
6
|
+
## 身份
|
|
7
|
+
|
|
8
|
+
画板导出默认使用 `--as user`。
|
|
9
|
+
|
|
10
|
+
## Shortcuts
|
|
11
|
+
|
|
12
|
+
| Shortcut | 说明 |
|
|
13
|
+
|----------|------|
|
|
14
|
+
| [`+export`](references/lark-whiteboard-export.md) | 导出画板为预览图片、SVG 矢量图、代码或原始节点结构。 |
|
|
15
|
+
|
|
16
|
+
- 使用 Shortcut 前,必须先读其对应 reference 文档。
|
|
17
|
+
|
|
18
|
+
## 意图路由
|
|
19
|
+
|
|
20
|
+
| 用户需求 | 命令 |
|
|
21
|
+
|---|---|
|
|
22
|
+
| 查看画板内容 / 导出图片 | [`+export --output-type preview`](references/lark-whiteboard-export.md) |
|
|
23
|
+
| 导出 SVG 矢量图 | [`+export --output-type svg`](references/lark-whiteboard-export.md) |
|
|
24
|
+
| 获取画板的 Mermaid/PlantUML 代码 | [`+export --output-type source`](references/lark-whiteboard-export.md) |
|
|
25
|
+
| 检查画板是否由代码绘制 | [`+export --output-type source`](references/lark-whiteboard-export.md) |
|
|
26
|
+
| 导出画板原始节点结构(OpenAPI 原生格式) | [`+export --output-type raw`](references/lark-whiteboard-export.md) |
|
|
27
|
+
|
|
28
|
+
## 获取画板 token
|
|
29
|
+
|
|
30
|
+
导出需要画板 token(形如 `wbcnXXX`):
|
|
31
|
+
|
|
32
|
+
| 用户给了什么 | 怎么获取 |
|
|
33
|
+
|---|---|
|
|
34
|
+
| 直接给了 whiteboard token(`wbcnXXX`)| 直接使用 |
|
|
35
|
+
| 文档 URL 或 doc_id,文档中已有画板 | `lark-cli docs +fetch --doc <URL> --as user`,从返回的 `<whiteboard token="xxx"/>` 提取(参数详见 [lark-doc](../lark-doc/README.md))|
|