Files
qinze a65d6f23ec fix: resolve real-machine QA findings across CLI, scripts and skill docs
Fix CLI command bugs surfaced by full real-machine QA:
- aitable: make chart/dashboard share update --enabled a string flag so
  "--enabled false" disables instead of silently enabling (bool flag +
  space-syntax help example inverted the action); clarify chart update
  requires --config; make form get filter by view-id client-side so it
  returns a single form; drop inline // comments from chart JSON examples
- chat: resolve conversation-info --user to openDingTalkId, register
  --id/--conversation-id/--chat aliases; cap list-all-conversations
  --limit at 100 and reject larger values instead of silent truncation;
  detect webhook errcode failures instead of wrapping them as success;
  remove duplicate group/members subcommand registration in help
- contact: register --dept/--depts as the primary dept flags to match
  the RunE parsing (were only registered as --id/--ids)
- sheet: emit clean JSON for media-upload and export under --format json,
  suppressing progress lines that leaked onto stdout
- wiki: correct node create --type enum (drop unsupported asheet, add
  axls/able/appt/adraw/amind)
- ding: default message list --type to ALL since the server rejects an
  empty type

Fix helper scripts (mono and multi):
- aitable import/export flag names and tableId length regex
- mail search --limit, contact dept response keys and userInfo nesting
- attendance_my_record whoami compatibility, calendar_schedule_meeting
  event id unwrapping, drive_tree_list recursion via fileId, report
  scripts migrated off deprecated report list/detail

Sync skill docs (mono and multi) to real-machine behavior across all
products: command indexes, flag names, enums, return-structure keys, and
cross-product intent routing; annotate genuinely server-side limitations
and the no-op global --jq/--fields flags.
2026-07-07 23:38:23 +08:00

2.6 KiB
Raw Permalink Blame History

任务管理

SKILL.md 中 #2 仅内联 lite:create-todo、list-todo、get-todo-detail、update-todo-status、query-todo-by-topic。其中 list-todo 统一覆盖 open/completed/all(--status false|true 或不传),update-todo-status 统一覆盖 complete/reopen(--status true|false)。下列 recipe 已迁出速查表,命中时读本文件对应行。重型 full 见下表「行动指南」。命令细节见 todo.md。

Recipe 速查(非 SKILL lite)

Recipe 步骤(命令均须 --format json,下略)
create-priority-todo 1. 确定执行者(同 SKILL.md 中 create-todo 步骤 1)
2. todo task create --title "<标题>" --executors <userId>[,<userId2>...] --priority <10/20/30/40>(可选 --due "<截止ISO>";10低/20普通/30较高/40紧急)→ 取 taskId
create-recurring-todo 1. 确定执行者(同 create-todo 步骤 1)
2. todo task create --title "<标题>" --executors <userId> --due "<首次截止ISO>" --recurrence "DTSTART:<UTC时间>\nRRULE:FREQ=DAILY;INTERVAL=1"(--due 必填;仅支持按天循环,见 todo.md)→ 取 taskId
reschedule-todo 1. todo task list --status false → 取 taskId
2. todo task update --task-id <taskId> --due "<新截止时间>"

Full / 组合(固定路线)

Recipe 行动指南(固定路线)
generate-progress-report 1. 按「多源并行采集」(见 dws-shared/references/best_practices/_common/conventions.md)执行
2. 交叉比对各源数据
3. doc create --name "<报告名>" --content "<报告内容>"
batch-create-todo 1. 按「多源并行采集」(见 dws-shared/references/best_practices/_common/conventions.md)执行 → 从结果提取任务条目
2. 每条:aisearch person --keyword "<姓名>" --dimension name → 取 userId
3. 优先:将待办写入 todos.json(格式见 todo_batch_create.py),执行 python scripts/todo_batch_create.py todos.json
备选:逐条 todo task create --title "<标题>" --executors <userId> → 汇总回显
单批超 30 条须用户确认
assign-and-notify 1. aisearch person --keyword "<姓名>" --dimension name → 取 userId
2. todo task create --title "<标题>" --executors <userId> → 取 taskId
3. chat search --query "<群名>" → 取 openConversationId → chat message send --group <openConversationId> --text "<通知内容>" 通知