@zentodo/cli 0.1.13 → 0.1.14

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.
@@ -119,7 +119,13 @@
119
119
 
120
120
  | 参数 | 类型 | 必填 | 说明 |
121
121
  | --- | --- | --- | --- |
122
- | `attachment_key` | integer | 否 | 已存在的 attachmentKey。 |
122
+ | `attachment_key` | integer | 否 | 已存在的 athKey(映射到 Attachment.athKey)。 |
123
+ | `match_key` | integer | 否 | 关联对象 key(映射到 Attachment.matchKey)。 |
124
+ | `file_url` | string | 否 | 客户端本地文件 URL(映射到 Attachment.fileUrl)。 |
125
+ | `service_file_url` | string | 否 | 服务端文件 URL(映射到 Attachment.serviceFileUrl)。 |
126
+ | `file_type` | string | 否 | 文件类型(映射到 Attachment.fileType)。 |
127
+ | `file_desc` | string | 否 | 文件描述(映射到 Attachment.fileDesc)。 |
128
+ | `remark` | string | 否 | 备注(映射到 Attachment.remark)。 |
123
129
  | `sync_flag` | string | 否 | 同步标记。 |
124
130
 
125
131
  ## `zentodo auth`
@@ -334,9 +340,16 @@ zentodo auth login-email --email a@b.com
334
340
 
335
341
  | 参数 | 类型 | 必填 | 说明 |
336
342
  | --- | --- | --- | --- |
337
- | `record_key` | integer | 否 | 已存在的记录 key。 |
338
- | `title` | string | 否 | 标题。 |
339
- | `duration_sec` | integer | 否 | 时长()。 |
343
+ | `record_key` | integer | 否 | 已存在的 ftKey(映射到 FastTimeRecord.ftKey)。 |
344
+ | `title` | string | 否 | 事件名称(映射到 FastTimeRecord.qtEvent)。 |
345
+ | `description` | string | 否 | 描述(映射到 FastTimeRecord.qtDescription)。 |
346
+ | `duration_sec` | string | 否 | 时长字符串(映射到 FastTimeRecord.qtTimeValue)。 |
347
+ | `time_priority` | integer | 否 | 时间优先级(映射到 FastTimeRecord.qtTimePriority)。 |
348
+ | `top_label` | integer | 否 | 顶级标签 key(映射到 FastTimeRecord.topLabel)。 |
349
+ | `second_label` | integer | 否 | 二级标签 key(映射到 FastTimeRecord.secondLabel)。 |
350
+ | `project_key` | integer | 否 | 关联项目 projectKey。 |
351
+ | `scene_key` | integer | 否 | 关联场景 sceneKey。 |
352
+ | `delete_able` | boolean | 否 | 是否可删除(映射到 FastTimeRecord.deleteAble)。 |
340
353
  | `sync_flag` | string | 否 | 同步标记。 |
341
354
 
342
355
  ### `zentodo fasttime list` _(只读 / 幂等)_
@@ -382,8 +395,12 @@ zentodo auth login-email --email a@b.com
382
395
  | 参数 | 类型 | 必填 | 说明 |
383
396
  | --- | --- | --- | --- |
384
397
  | `label_key` | integer | 否 | 已存在的标签 key。 |
385
- | `name` | string | 否 | 标签名。 |
386
- | `color` | string | 否 | 十六进制颜色。 |
398
+ | `name` | string | 否 | 标签名(映射到 Label.labelName)。 |
399
+ | `desc` | string | 否 | 标签描述(映射到 Label.labelDesc)。 |
400
+ | `color` | string | 否 | 图标/标签颜色十六进制(映射到 Label.iconColor)。 |
401
+ | `icon_index` | integer | 否 | 图标索引(映射到 Label.iconIndex)。 |
402
+ | `label_type` | integer | 否 | 标签类型:0 子任务 / 1 任务 / 2 项目 / 3 目标(映射到 Label.labelType)。 |
403
+ | `bk_url` | string | 否 | 背景图 URL(映射到 Label.labelBKUrl)。 |
387
404
  | `sync_flag` | string | 否 | 同步标记。 |
388
405
 
389
406
  ### `zentodo label list` _(只读 / 幂等)_
@@ -419,9 +436,17 @@ zentodo auth login-email --email a@b.com
419
436
 
420
437
  | 参数 | 类型 | 必填 | 说明 |
421
438
  | --- | --- | --- | --- |
422
- | `gd_meta_key` | integer | 否 | 已存在的 gdMetaKey。 |
423
- | `parent_key` | integer | 否 | 父节点 key。 |
424
- | `content` | string | 否 | 节点内容。 |
439
+ | `gd_meta_key` | integer | 否 | 已存在的 meKey(映射到 GDMeta.meKey)。 |
440
+ | `parent_key` | integer | 否 | 父/关联节点 key(映射到 GDMeta.matchKey)。 |
441
+ | `title` | string | 否 | 节点标题(映射到 GDMeta.title)。 |
442
+ | `content` | string | 否 | 节点内容(映射到 GDMeta.content)。 |
443
+ | `desc` | string | 否 | 节点描述(映射到 GDMeta.metaDesc)。 |
444
+ | `icon_url` | string | 否 | 图标 URL(映射到 GDMeta.iconUrl)。 |
445
+ | `bk_url` | string | 否 | 背景图(映射到 GDMeta.bkUrl)。 |
446
+ | `templete_name` | string | 否 | 模板名称(映射到 GDMeta.templeteName)。 |
447
+ | `is_templete` | integer | 否 | 是否模板(映射到 GDMeta.isTemplete)。 |
448
+ | `templete_key` | integer | 否 | 模板 key(映射到 GDMeta.templeteKey)。 |
449
+ | `state` | integer | 否 | 状态(映射到 GDMeta.state)。 |
425
450
  | `sync_flag` | string | 否 | 同步标记。 |
426
451
 
427
452
  ### `zentodo mindmap list` _(只读 / 幂等)_
@@ -566,8 +591,11 @@ zentodo auth login-email --email a@b.com
566
591
 
567
592
  | 参数 | 类型 | 必填 | 说明 |
568
593
  | --- | --- | --- | --- |
569
- | `tomato_key` | integer | 否 | 已存在的 tomatoKey。 |
570
- | `task_key` | integer | 否 | 任务 taskKey。 |
594
+ | `tomato_key` | integer | 否 | 已存在的 twKey(映射到 TomatoWorker.twKey)。 |
595
+ | `task_key` | integer | 否 | 关联任务的 taskKey(TomatoWorker 用 matchKey 关联)。 |
596
+ | `is_tomato` | boolean | 否 | 是否番茄钟记录(映射到 TomatoWorker.isTomato)。 |
597
+ | `start_time` | datetime | 否 | 开始时间(映射到 TomatoWorker.tomatoStartTime)。 |
598
+ | `execute_time` | string | 否 | 实际执行时长(映射到 TomatoWorker.tomatoExecuteTime)。 |
571
599
  | `sync_flag` | string | 否 | 同步标记。 |
572
600
 
573
601
  ### `zentodo pomo config-get` _(只读 / 幂等)_
@@ -588,11 +616,12 @@ zentodo auth login-email --email a@b.com
588
616
 
589
617
  | 参数 | 类型 | 必填 | 说明 |
590
618
  | --- | --- | --- | --- |
591
- | `config_key` | integer | 否 | 已存在的 configKey。 |
592
- | `focus_duration_sec` | integer | 否 | 专注秒数。 |
593
- | `break_duration_sec` | integer | 否 | 短休秒数。 |
594
- | `long_break_duration_sec` | integer | 否 | 长休秒数。 |
595
- | `long_break_every` | integer | 否 | 每多少轮后长休。 |
619
+ | `config_key` | integer | 否 | 已存在的 tcKey(映射到 TomatoConfig.tcKey)。 |
620
+ | `focus_duration_sec` | integer | 否 | 专注秒数(映射到 TomatoConfig.workTime)。 |
621
+ | `break_duration_sec` | integer | 否 | 短休秒数(映射到 TomatoConfig.shortRestTime)。 |
622
+ | `long_break_duration_sec` | integer | 否 | 长休秒数(映射到 TomatoConfig.longRestTime)。 |
623
+ | `long_break_every` | integer | 否 | 每多少轮后长休(映射到 TomatoConfig.tomatoCircle)。 |
624
+ | `wireless_mode` | boolean | 否 | 是否无线模式(映射到 TomatoConfig.wirelessMode)。 |
596
625
  | `sync_flag` | string | 否 | 同步标记。 |
597
626
 
598
627
  ### `zentodo pomo sync-pull-config` _(只读)_
@@ -620,12 +649,16 @@ zentodo auth login-email --email a@b.com
620
649
  | 参数 | 类型 | 必填 | 说明 |
621
650
  | --- | --- | --- | --- |
622
651
  | `project_key` | integer | 否 | 已存在的 projectKey(省略则新建)。 |
623
- | `name` | string | 否 | 项目名称。 |
624
- | `color` | string | 否 | 十六进制颜色。 |
625
- | `icon` | string | 否 | 图标标识。 |
626
- | `parent_key` | integer | 否 | 父项目 projectKey(用于子项目)。 |
627
- | `state` | integer | 否 | 0=未开始, 1=进行中, 2=已完成, 3=已暂停, 4=已取消。 |
628
- | `archived` | boolean | 否 | 归档标记。 |
652
+ | `name` | string | 否 | 项目名称(映射到 Project.projectName)。 |
653
+ | `desc` | string | 否 | 项目描述(映射到 Project.projectDesc)。 |
654
+ | `bk_url` | string | 否 | 项目背景图 URL(映射到 Project.projectBKUrl)。 |
655
+ | `header_url` | string | 否 | 项目头图 URL(映射到 Project.projectHeaderUrl)。 |
656
+ | `label_key` | integer | 否 | 关联标签 labelKey(映射到 Project.labelKey)。 |
657
+ | `target_key` | integer | 否 | 关联目标 targetKey(映射到 Project.targetKey)。 |
658
+ | `state` | integer | 否 | 项目状态(映射到 Project.projectState)。 |
659
+ | `star` | boolean | 否 | 是否标星(映射到 Project.isStar)。 |
660
+ | `is_templete` | boolean | 否 | 是否模板(映射到 Project.isTemplete)。 |
661
+ | `end_time` | datetime | 否 | 项目结束时间(ISO,映射到 Project.endTime)。 |
629
662
  | `sync_flag` | string | 否 | M=修改, D=删除, I=新增。 |
630
663
 
631
664
  ### `zentodo project list` _(只读 / 幂等)_
@@ -701,9 +734,16 @@ zentodo auth login-email --email a@b.com
701
734
 
702
735
  | 参数 | 类型 | 必填 | 说明 |
703
736
  | --- | --- | --- | --- |
704
- | `quadrant_key` | integer | 否 | 已存在的 quadrantKey。 |
705
- | `title` | string | 否 | 象限标题。 |
706
- | `index` | integer | 否 | 象限索引 0..3。 |
737
+ | `me_key` | integer | 否 | 已存在的 meKey(映射到 Quadrant.meKey,四象限配置以 meKey 唯一识别)。 |
738
+ | `time1` | string | 否 | 1 象限时间值(映射到 Quadrant.time1)。 |
739
+ | `time2` | string | 否 | 2 象限时间值。 |
740
+ | `time3` | string | 否 | 第 3 象限时间值。 |
741
+ | `time4` | string | 否 | 第 4 象限时间值。 |
742
+ | `color1` | string | 否 | 第 1 象限颜色。 |
743
+ | `color2` | string | 否 | 第 2 象限颜色。 |
744
+ | `color3` | string | 否 | 第 3 象限颜色。 |
745
+ | `color4` | string | 否 | 第 4 象限颜色。 |
746
+ | `rules` | string | 否 | 象限规则配置(JSON 字符串)。 |
707
747
  | `sync_flag` | string | 否 | 同步标记。 |
708
748
 
709
749
  ### `zentodo quadrant list` _(只读 / 幂等)_
@@ -738,9 +778,13 @@ zentodo auth login-email --email a@b.com
738
778
 
739
779
  | 参数 | 类型 | 必填 | 说明 |
740
780
  | --- | --- | --- | --- |
741
- | `reward_key` | integer | 否 | 已存在的 rewardKey。 |
742
- | `name` | string | 否 | 奖励名称。 |
743
- | `cost` | integer | 否 | 兑换所需奖励币。 |
781
+ | `reward_key` | integer | 否 | 已存在的 rsKey(映射到 RewardStore.rsKey)。 |
782
+ | `name` | string | 否 | 奖励名称(映射到 RewardStore.rsName)。 |
783
+ | `cost` | integer | 否 | 兑换所需奖励币(映射到 RewardStore.rsPrice)。 |
784
+ | `desc` | string | 否 | 奖励描述(映射到 RewardStore.rsDesc)。 |
785
+ | `image_url` | string | 否 | 奖励图片 URL(映射到 RewardStore.rsImageUrl)。 |
786
+ | `state` | integer | 否 | 奖励状态(映射到 RewardStore.rsState)。 |
787
+ | `repeat_limit` | string | 否 | 兑换次数限制(映射到 RewardStore.repeatLimit)。 |
744
788
  | `sync_flag` | string | 否 | 同步标记。 |
745
789
 
746
790
  ### `zentodo reward store-list` _(只读 / 幂等)_
@@ -786,9 +830,12 @@ zentodo auth login-email --email a@b.com
786
830
 
787
831
  | 参数 | 类型 | 必填 | 说明 |
788
832
  | --- | --- | --- | --- |
789
- | `record_key` | integer | | 已存在的记录 key。 |
790
- | `reward_key` | integer | 否 | 关联的奖励 key。 |
791
- | `cost` | integer | 否 | 消耗的奖励币。 |
833
+ | `reward_key` | integer | | 关联的奖励 rsKey(RewardRecord 通过 rsKey 识别对应商品)。 |
834
+ | `name` | string | 否 | 奖励名称快照(映射到 RewardRecord.rrName)。 |
835
+ | `cost` | integer | 否 | 消耗的奖励币(映射到 RewardRecord.rrPrice)。 |
836
+ | `desc` | string | 否 | 备注(映射到 RewardRecord.rrDesc)。 |
837
+ | `image_url` | string | 否 | 图片(映射到 RewardRecord.rrImageUrl)。 |
838
+ | `record_time` | datetime | 否 | 兑换时间(映射到 RewardRecord.recordTime)。 |
792
839
  | `sync_flag` | string | 否 | 同步标记。 |
793
840
 
794
841
  ### `zentodo reward record-list` _(只读 / 幂等)_
@@ -824,9 +871,8 @@ zentodo auth login-email --email a@b.com
824
871
  | 参数 | 类型 | 必填 | 说明 |
825
872
  | --- | --- | --- | --- |
826
873
  | `scene_key` | integer | 否 | 已存在的场景 key。 |
827
- | `name` | string | 否 | 场景名称。 |
828
- | `icon` | string | 否 | 图标标识。 |
829
- | `desc` | string | 否 | 场景描述。 |
874
+ | `name` | string | 否 | 场景名称(映射到 Scene.sceneName)。 |
875
+ | `state` | boolean | 否 | 场景启用状态(Scene.sceneState 为 Boolean)。 |
830
876
  | `sync_flag` | string | 否 | 同步标记。 |
831
877
 
832
878
  ### `zentodo scene list` _(只读 / 幂等)_
@@ -861,9 +907,12 @@ zentodo auth login-email --email a@b.com
861
907
 
862
908
  | 参数 | 类型 | 必填 | 说明 |
863
909
  | --- | --- | --- | --- |
864
- | `sub_project_key` | integer | 否 | 已存在的子项目 key。 |
910
+ | `sub_project_key` | integer | 否 | 已存在的子项目 key(映射到 SubProject.spKey)。 |
865
911
  | `project_key` | integer | 是 | 父项目 projectKey。 |
866
- | `name` | string | 否 | 子项目名称。 |
912
+ | `name` | string | 否 | 子项目名称(映射到 SubProject.spName)。 |
913
+ | `desc` | string | 否 | 子项目描述(映射到 SubProject.spDesc)。 |
914
+ | `bk_url` | string | 否 | 子项目背景图(映射到 SubProject.spBKUrl)。 |
915
+ | `state` | integer | 否 | 子项目状态(映射到 SubProject.spState)。 |
867
916
  | `sync_flag` | string | 否 | 同步标记。 |
868
917
 
869
918
  ### `zentodo subproject list` _(只读 / 幂等)_
@@ -900,8 +949,8 @@ zentodo auth login-email --email a@b.com
900
949
  | --- | --- | --- | --- |
901
950
  | `sub_task_key` | integer | 否 | 已存在的子任务 key(省略则新建)。 |
902
951
  | `task_key` | integer | 是 | 父任务 taskKey。 |
903
- | `title` | string | 否 | 子任务标题。 |
904
- | `state` | integer | 否 | 状态(0=完成, 1=未完成)。 |
952
+ | `title` | string | 否 | 子任务标题(映射到 SubTask.subTaskName)。 |
953
+ | `state` | boolean | 否 | 状态(SubTask.subTaskState 为 Boolean;true=完成)。 |
905
954
  | `sync_flag` | string | 否 | M=修改, D=删除, I=新增。 |
906
955
 
907
956
  ### `zentodo subtask list` _(只读 / 幂等)_
@@ -959,9 +1008,15 @@ zentodo auth login-email --email a@b.com
959
1008
  | 参数 | 类型 | 必填 | 说明 |
960
1009
  | --- | --- | --- | --- |
961
1010
  | `target_key` | integer | 否 | 已存在的目标 key。 |
962
- | `title` | string | 否 | 目标标题。 |
963
- | `desc` | string | 否 | 目标描述。 |
964
- | `deadline` | date | 否 | 截止日期(ISO)。 |
1011
+ | `title` | string | 否 | 目标标题(映射到 Target.ttName)。 |
1012
+ | `desc` | string | 否 | 目标描述(映射到 Target.ttDesc)。 |
1013
+ | `bk_url` | string | 否 | 背景图(映射到 Target.bkUrl)。 |
1014
+ | `state` | integer | 否 | 状态(映射到 Target.ttState)。 |
1015
+ | `label_key` | integer | 否 | 关联标签 labelKey。 |
1016
+ | `label_name` | string | 否 | 标签名快照(映射到 Target.labelName)。 |
1017
+ | `deadline` | datetime | 否 | 截止日期(ISO,映射到 Target.endTime)。 |
1018
+ | `start_time` | datetime | 否 | 开始日期(ISO,映射到 Target.startTime)。 |
1019
+ | `reward_value` | integer | 否 | 完成奖励(映射到 Target.rewardValue)。 |
965
1020
  | `sync_flag` | string | 否 | 同步标记。 |
966
1021
 
967
1022
  ### `zentodo target list` _(只读 / 幂等)_
@@ -996,17 +1051,17 @@ zentodo auth login-email --email a@b.com
996
1051
 
997
1052
  | 参数 | 类型 | 必填 | 说明 |
998
1053
  | --- | --- | --- | --- |
999
- | `title` | string | 是 | 任务标题。 |
1000
- | `desc` | string | 否 | 任务描述。 |
1001
- | `due` | datetime | 否 | 计划时间 / 截止时间(ISO)。 |
1002
- | `priority` | integer | 否 | 优先级 0-4。 |
1003
- | `project_key` | integer | 否 | 所属项目 projectKey。 |
1004
- | `scene_key` | integer | 否 | 所属场景 sceneKey。 |
1005
- | `labels` | array | 否 | 标签(自动拼接为 CSV)。 |
1006
- | `mit` | boolean | 否 | 是否标记为 MIT(今日最重要)。 |
1007
- | `reminder` | datetime | 否 | 提醒时间(ISO)。 |
1008
- | `sub_of` | integer | 否 | 父任务 taskKey(子任务用)。 |
1009
- | `quadrant` | integer | 否 | 时间四象限 0-3。 |
1054
+ | `title` | string | 是 | 任务标题(映射到 Tasks.taskName)。 |
1055
+ | `desc` | string | 否 | 任务描述(映射到 Tasks.taskDesc)。 |
1056
+ | `due` | datetime | 否 | 计划时间 / 截止时间(ISO,映射到 Tasks.taskCreateTime)。 |
1057
+ | `priority` | string | 否 | 优先级 0-4(Tasks.taskPriority 存为字符串)。 |
1058
+ | `project_key` | integer | 否 | 所属项目 projectKey(映射到 Tasks.projectKey)。 |
1059
+ | `scene_key` | integer | 否 | 所属场景 sceneKey(映射到 Tasks.sceneKey)。 |
1060
+ | `labels` | array | 否 | 标签 CSV(Tasks 实体只存单个 labelKey,此参数当前为 no-op,供前端兼容)。 |
1061
+ | `mit` | boolean | 否 | 是否标记为 MIT(今日最重要,映射到 Tasks.isMIT)。 |
1062
+ | `reminder` | datetime | 否 | 提醒时间(ISO,映射到 Tasks.taskReminderDate)。 |
1063
+ | `sub_of` | integer | 否 | Tasks 实体无 taskParentKey 字段,此参数为 no-op;子任务请使用 subtask.sync-push。 |
1064
+ | `quadrant` | integer | 否 | 时间四象限 0-3(映射到 Tasks.task4time)。 |
1010
1065
 
1011
1066
  **示例:**
1012
1067
 
@@ -1025,15 +1080,15 @@ zentodo task add --title "写周报" --due 2025-09-05T14:00 --priority 3
1025
1080
  | 参数 | 类型 | 必填 | 说明 |
1026
1081
  | --- | --- | --- | --- |
1027
1082
  | `task_key` | integer | 是 | 任务 taskKey。 |
1028
- | `title` | string | 否 | 新标题。 |
1029
- | `desc` | string | 否 | 新描述。 |
1030
- | `due` | datetime | 否 | 新计划时间(ISO)。 |
1031
- | `priority` | integer | 否 | 新优先级。 |
1032
- | `project_key` | integer | 否 | 迁移到的 projectKey。 |
1033
- | `scene_key` | integer | 否 | 迁移到的 sceneKey。 |
1034
- | `labels` | array | 否 | 标签(CSV)。 |
1035
- | `reminder` | datetime | 否 | 新提醒时间(ISO)。 |
1036
- | `quadrant` | integer | 否 | 时间四象限。 |
1083
+ | `title` | string | 否 | 新标题(映射到 Tasks.taskName)。 |
1084
+ | `desc` | string | 否 | 新描述(映射到 Tasks.taskDesc)。 |
1085
+ | `due` | datetime | 否 | 新计划时间(ISO,映射到 Tasks.taskCreateTime)。 |
1086
+ | `priority` | string | 否 | 新优先级(Tasks.taskPriority 存为字符串)。 |
1087
+ | `project_key` | integer | 否 | 迁移到的 projectKey(映射到 Tasks.projectKey)。 |
1088
+ | `scene_key` | integer | 否 | 迁移到的 sceneKey(映射到 Tasks.sceneKey)。 |
1089
+ | `labels` | array | 否 | 标签 CSV(Tasks 实体只存单个 labelKey,此参数当前为 no-op)。 |
1090
+ | `reminder` | datetime | 否 | 新提醒时间(ISO,映射到 Tasks.taskReminderDate)。 |
1091
+ | `quadrant` | integer | 否 | 时间四象限(映射到 Tasks.task4time)。 |
1037
1092
  | `sync_flag` | string | 否 | 同步标记,默认 M。 |
1038
1093
 
1039
1094
  ### `zentodo task delete` _(破坏性)_
@@ -1233,10 +1288,17 @@ zentodo task add --title "写周报" --due 2025-09-05T14:00 --priority 3
1233
1288
 
1234
1289
  | 参数 | 类型 | 必填 | 说明 |
1235
1290
  | --- | --- | --- | --- |
1236
- | `time_line_key` | integer | 否 | 已存在的 timeLineKey。 |
1237
- | `title` | string | 否 | 标题。 |
1238
- | `content` | string | 否 | 正文。 |
1239
- | `time` | datetime | 否 | 时间戳(ISO)。 |
1291
+ | `time_line_key` | integer | 否 | 已存在的 tlKey(映射到 TimeLine.tlKey)。 |
1292
+ | `title` | string | 否 | 标题(映射到 TimeLine.tlName)。 |
1293
+ | `content` | string | 否 | 正文/描述(映射到 TimeLine.tlDesc)。 |
1294
+ | `type` | string | 否 | 类型(映射到 TimeLine.tlType)。 |
1295
+ | `image_url` | string | 否 | 配图(映射到 TimeLine.tlImageUrl)。 |
1296
+ | `start_time` | datetime | 否 | 开始时间(ISO,映射到 TimeLine.startTime)。 |
1297
+ | `end_time` | datetime | 否 | 结束时间(ISO,映射到 TimeLine.endTime)。 |
1298
+ | `match_key` | integer | 否 | 关联对象 key(task/project/target,根据 tlType 解释)。 |
1299
+ | `target_key` | integer | 否 | 关联目标 targetKey。 |
1300
+ | `project_key` | integer | 否 | 关联项目 projectKey。 |
1301
+ | `label_name` | string | 否 | 标签名快照(映射到 TimeLine.labelName)。 |
1240
1302
  | `sync_flag` | string | 否 | 同步标记。 |
1241
1303
 
1242
1304
  ### `zentodo timeline list` _(只读 / 幂等)_
@@ -1473,9 +1535,12 @@ zentodo task add --title "写周报" --due 2025-09-05T14:00 --priority 3
1473
1535
 
1474
1536
  | 参数 | 类型 | 必填 | 说明 |
1475
1537
  | --- | --- | --- | --- |
1476
- | `work_state_key` | string | 是 | 工作状态 key。 |
1477
- | `title` | string | 否 | 新标题。 |
1478
- | `note` | string | 否 | 备注。 |
1538
+ | `work_state_key` | integer | 是 | 工作状态 key(映射到 WorkState.wsKey)。 |
1539
+ | `start_time` | datetime | 否 | 开始时间(映射到 WorkState.startTime)。 |
1540
+ | `match_key` | integer | 否 | 关联对象 key(映射到 WorkState.matchKey)。 |
1541
+ | `work_type` | integer | 否 | 工作类型(映射到 WorkState.workType)。 |
1542
+ | `tomato_state` | integer | 否 | 番茄钟状态(映射到 WorkState.tomatoState)。 |
1543
+ | `tomato_round` | integer | 否 | 番茄钟轮次(映射到 WorkState.tomatoRound)。 |
1479
1544
 
1480
1545
  ### `zentodo workstate list` _(只读 / 幂等)_
1481
1546
 
@@ -1507,5 +1572,8 @@ zentodo task add --title "写周报" --due 2025-09-05T14:00 --priority 3
1507
1572
 
1508
1573
  | 参数 | 类型 | 必填 | 说明 |
1509
1574
  | --- | --- | --- | --- |
1510
- | `work_state_key` | string | 否 | 已存在的 key。 |
1575
+ | `work_state_key` | integer | 否 | 已存在的 wsKey(映射到 WorkState.wsKey)。 |
1576
+ | `start_time` | datetime | 否 | 开始时间(映射到 WorkState.startTime)。 |
1577
+ | `match_key` | integer | 否 | 关联对象 key(映射到 WorkState.matchKey)。 |
1578
+ | `work_type` | integer | 否 | 工作类型(映射到 WorkState.workType)。 |
1511
1579
  | `sync_flag` | string | 否 | 同步标记。 |