refactor(cli): purge short hose alias and standardize on hose-use across docs, scripts, and prompts

This commit is contained in:
gitea committed 2026-09-06 22:26:04 +08:00
1 parent 304a8c0d98
commit 2f8bcb90c9
31 files changed
+190 -191

No files matched your search

+1 -1
View File
@@ -36,4 +36,4 @@ src/domains/bill/
- `commentBill` 调用 `POST /api/flow/v1/flows/comment/$<flowId>`,使用 `freeflow.comment`,保留参与人和私密评论参数;
- 动作执行前从审批详情解析 backlog ID、流程 ID、当前节点 ID,并可依据 `flow.actions` 校验当前身份是否具备该动作权限。
CLI 入口为 `hose bill approve|reject|transfer|add-node|comment <单号|ID>`。所有会改变状态的动作都要求 `--yes`(交互终端未提供时会拒绝执行);转交和加签的 `--approver-id` 支持完整员工 ID、工号或唯一姓名匹配,驳回强制要求 `--comment`。
CLI 入口为 `hose-use bill approve|reject|transfer|add-node|comment <单号|ID>`。所有会改变状态的动作都要求 `--yes`(交互终端未提供时会拒绝执行);转交和加签的 `--approver-id` 支持完整员工 ID、工号或唯一姓名匹配,驳回强制要求 `--comment`。
+1 -1
View File
@@ -24,7 +24,7 @@ export async function listStaffsProtected(
limit,
hasMore,
hint: hasMore
? `企业员工共 ${total} 人,当前仅展示前 ${staffs.length} 条以防止上下文溢出。可使用 'hose contact search <姓名|工号>' 精准检索,或附加 '--limit <数量>' / '-o <文件路径>' / '--full'`
? `企业员工共 ${total} 人,当前仅展示前 ${staffs.length} 条以防止上下文溢出。可使用 'hose-use contact search <姓名|工号>' 精准检索,或附加 '--limit <数量>' / '-o <文件路径>' / '--full'`
: undefined,
staffs,
};
+1 -1
View File
@@ -4,4 +4,4 @@
- `GET /api/glue/v1/organization/permissions/query?model=ROLE&corpId=...`
CLI 入口为 `hose permission get`(也支持 `hose permissions get`)。写入权限仍需通过 Web 端明确操作,CLI 不提供写操作。
CLI 入口为 `hose-use permission get`(也支持 `hose-use permissions get`)。写入权限仍需通过 Web 端明确操作,CLI 不提供写操作。
+1 -1
View File
@@ -6,4 +6,4 @@
- `GET /api/v1/organization/roleGroups?corpId=...`:角色组及其角色定义
- `GET /api/v1/organization/staffs/byRole?roleDefId=...&corpId=...`:指定角色的员工成员
CLI 入口为 `hose role list`、`hose role groups` 和 `hose role members <角色 ID|编码|名称>`。
CLI 入口为 `hose-use role list`、`hose-use role groups` 和 `hose-use role members <角色 ID|编码|名称>`。