功能诉求
目前 dws report entry submit(以及 deprecated alias dws report create)只能以当前登录用户身份提交日志,无法指定日志发送人。
在管理员、自动化 Agent 或代提交场景中,需要为指定员工提交日报/周报。现有 --to-user-ids 表示日志接收人/单聊通知对象,不能用于指定日志发送人。
当前行为
环境:dws v1.0.33
dws report entry submit --help
当前参数包含:
--template-id
--contents / --contents-file
--dd-from
--to-chat
--to-user-ids
没有用于指定日志发送人/提交人的参数,因此日志发送人始终是当前登录用户。
期望行为
支持在提交日志时指定发送人,例如:
dws report entry submit \
--sender-user-id <userId> \
--template-id <templateId> \
--contents-file ./report.json
建议:
- 增加明确的发送人参数,例如
--sender-user-id(具体命名可按底层 API 字段调整)。
--help 中明确区分发送人参数与现有 --to-user-ids 接收人参数。
- 当调用方无代提交权限或底层接口不支持时,返回清晰的权限/能力错误,而不是静默使用当前登录用户。
- 同步支持
dws report entry submit 和相关 skill/文档;如保留 dws report create alias,也应保持行为一致。
使用场景
企业内的自动化 Agent 汇总多位员工的工作内容后,需要分别以对应员工为发送人提交日志,而不是全部显示为执行 dws 的当前登录用户。
功能诉求
目前
dws report entry submit(以及 deprecated aliasdws report create)只能以当前登录用户身份提交日志,无法指定日志发送人。在管理员、自动化 Agent 或代提交场景中,需要为指定员工提交日报/周报。现有
--to-user-ids表示日志接收人/单聊通知对象,不能用于指定日志发送人。当前行为
环境:
dws v1.0.33当前参数包含:
--template-id--contents/--contents-file--dd-from--to-chat--to-user-ids没有用于指定日志发送人/提交人的参数,因此日志发送人始终是当前登录用户。
期望行为
支持在提交日志时指定发送人,例如:
建议:
--sender-user-id(具体命名可按底层 API 字段调整)。--help中明确区分发送人参数与现有--to-user-ids接收人参数。dws report entry submit和相关 skill/文档;如保留dws report createalias,也应保持行为一致。使用场景
企业内的自动化 Agent 汇总多位员工的工作内容后,需要分别以对应员工为发送人提交日志,而不是全部显示为执行
dws的当前登录用户。