@amaster.ai/pi-lark 0.1.2-beta.45 → 0.1.2-beta.47
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/references/lark-apps-file.md +1 -1
- package/skills/lark-base/SKILL.md +3 -4
- package/skills/lark-base/references/lark-base-form-submit.md +16 -7
- package/skills/lark-doc/references/lark-doc-xml.md +1 -1
- package/skills/lark-drive/references/lark-drive-search.md +1 -0
- package/skills/lark-im/references/card/card-2.0-schema.md +1 -1
- package/skills/lark-im/references/card/lark-im-card-style.md +4 -4
- package/skills/lark-im/references/card/resource/icons.md +14 -0
- package/skills/lark-slides/SKILL.md +2 -2
- package/skills/lark-slides/references/lark-slides-screenshot.md +4 -4
- package/skills/lark-slides/references/troubleshooting.md +1 -1
- package/skills/lark-slides/references/validation-checklist.md +24 -7
- package/skills/lark-slides/references/xml-schema-quick-ref.md +18 -0
- package/skills/lark-slides/scripts/xml_text_overlap_lint.py +831 -56
- package/skills/lark-slides/scripts/xml_text_overlap_lint_test.py +781 -33
- package/skills/lark-task/SKILL.md +7 -0
- package/skills/lark-task/references/lark-task-complete.md +6 -2
- package/skills/lark-task/references/lark-task-update.md +6 -2
|
@@ -38,6 +38,13 @@ metadata:
|
|
|
38
38
|
> Task OpenAPI 中用于更新/操作任务的 `guid` 是任务的全局唯一标识(GUID),不是客户端展示的任务编号(例如 `t104121` / `suite_entity_num`)。
|
|
39
39
|
> 对于 Feishu 的任务 applink(例如 `.../client/todo/task?guid=...`),必须使用 URL query 里的 `guid` 参数作为 task guid。
|
|
40
40
|
|
|
41
|
+
> **从任务清单定位并修改任务的最短路径**:
|
|
42
|
+
> 1. 已知任务清单 GUID 时直接使用,不要先搜索;已知任务清单 applink 时,取 URL query 中的 `guid` 作为 `tasklist_guid`。
|
|
43
|
+
> 2. 只有清单名称或关键词、没有 GUID/applink 时,才调用一次 `+tasklist-search` 解析目标清单。
|
|
44
|
+
> 3. 按原生 API 规则先执行 `lark-cli schema task.tasklists.tasks`,再执行 `lark-cli task tasklists tasks --params '{"tasklist_guid":"<tasklist_guid>"}' --as user`。
|
|
45
|
+
> 4. 从清单任务结果中取任务的 `guid`,直接传给 `+update` 或 `+complete`;禁止传客户端展示编号(例如 `t104121`)。这两个 shortcut 也可直接接收包含 `guid=` 的任务 applink。
|
|
46
|
+
> 5. `+update` 返回 `updated_fields` 和每个任务的服务端 `confirmed` 字段;`+complete` 返回 `status`、`completed_at`、`already_completed`。这些字段已确认目标状态时,不要例行追加 `tasks get`;仅在服务端未返回所需字段或用户明确要求完整复核时再查询详情。
|
|
47
|
+
|
|
41
48
|
| Shortcut | 说明 |
|
|
42
49
|
|----------|------|
|
|
43
50
|
| [`+create`](references/lark-task-create.md) | create a task |
|
|
@@ -9,19 +9,23 @@ Mark a task as completed.
|
|
|
9
9
|
```bash
|
|
10
10
|
# Complete a task
|
|
11
11
|
lark-cli task +complete --task-id "<task_guid>"
|
|
12
|
+
|
|
13
|
+
# A task applink is accepted directly; the CLI extracts its guid query value
|
|
14
|
+
lark-cli task +complete --task-id "https://applink.larksuite.com/client/todo/task?guid=<task_guid>"
|
|
12
15
|
```
|
|
13
16
|
|
|
14
17
|
## Parameters
|
|
15
18
|
|
|
16
19
|
| Parameter | Required | Description |
|
|
17
20
|
|-----------|----------|-------------|
|
|
18
|
-
| `--task-id <guid>` | Yes |
|
|
21
|
+
| `--task-id <guid-or-applink>` | Yes | Task OpenAPI GUID or a task applink containing `guid=`. Display task IDs such as `t104121` / `suite_entity_num` are rejected. |
|
|
19
22
|
|
|
20
23
|
## Workflow
|
|
21
24
|
|
|
22
25
|
1. Confirm the task to complete.
|
|
23
26
|
2. Execute the command.
|
|
24
|
-
3.
|
|
27
|
+
3. Read `data.status`, `data.completed_at`, and `data.already_completed` from the result. `already_completed: true` means the shortcut observed an already-completed task and skipped the PATCH.
|
|
28
|
+
4. Do not routinely call `task tasks get` when the result already reports `status: done` and a non-zero `completed_at`. Query details only if confirmation fields are absent or the user explicitly asks for a full verification.
|
|
25
29
|
|
|
26
30
|
> [!CAUTION]
|
|
27
31
|
> This is a **Write Operation** -- You must confirm the user's intent before executing.
|
|
@@ -13,6 +13,9 @@ lark-cli task +update --task-id "<task_guid>" --summary "New Summary"
|
|
|
13
13
|
# Update multiple tasks' due dates
|
|
14
14
|
lark-cli task +update --task-id "<task_guid>,<another_task_guid>" --due "+2d"
|
|
15
15
|
|
|
16
|
+
# A task applink is accepted directly; the CLI extracts its guid query value
|
|
17
|
+
lark-cli task +update --task-id "https://applink.larksuite.com/client/todo/task?guid=<task_guid>" --summary "New Summary"
|
|
18
|
+
|
|
16
19
|
# Update with JSON data
|
|
17
20
|
lark-cli task +update --task-id "<task_guid>" --data '{"description": "New description"}'
|
|
18
21
|
```
|
|
@@ -21,7 +24,7 @@ lark-cli task +update --task-id "<task_guid>" --data '{"description": "New descr
|
|
|
21
24
|
|
|
22
25
|
| Parameter | Required | Description |
|
|
23
26
|
|-----------|----------|-------------|
|
|
24
|
-
| `--task-id <guid>` | Yes |
|
|
27
|
+
| `--task-id <guid-or-applink>` | Yes | Task OpenAPI GUID or a task applink containing `guid=`. Comma-separated GUIDs/applinks are supported for multiple tasks. Display task IDs such as `t104121` / `suite_entity_num` are rejected. |
|
|
25
28
|
| `--summary <text>` | No | New summary/title for the task. |
|
|
26
29
|
| `--description <text>` | No | New description for the task. |
|
|
27
30
|
| `--due <time>` | No | New due date (supports relative time). |
|
|
@@ -31,7 +34,8 @@ lark-cli task +update --task-id "<task_guid>" --data '{"description": "New descr
|
|
|
31
34
|
|
|
32
35
|
1. Confirm with the user the tasks to update and the fields.
|
|
33
36
|
2. Execute `lark-cli task +update --task-id "..." ...`
|
|
34
|
-
3.
|
|
37
|
+
3. Read `data.updated_fields` and `data.tasks[].confirmed` from the result and report only the fields confirmed by the server.
|
|
38
|
+
4. Do not routinely call `task tasks get` after the update when `confirmed` already contains the required state. Query details only if a required field is absent or the user explicitly asks for a full verification.
|
|
35
39
|
|
|
36
40
|
> [!CAUTION]
|
|
37
41
|
> This is a **Write Operation** -- You must confirm the user's intent before executing.
|