vps-work 2.0.0 → 2.1.2
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/USAGE.md +2 -0
- package/dist/vps-work.cjs +1225 -2637
- package/package.json +1 -1
- package/skills/vps-attendance/SKILL.md +0 -1
- package/skills/vps-hr/SKILL.md +3 -2
- package/skills/vps-shared/SKILL.md +1 -1
package/package.json
CHANGED
|
@@ -22,4 +22,3 @@ description: VPS 原生考勤:日报、排班、请假、出差、外勤、加
|
|
|
22
22
|
| `attendance +application-cancel --request-id <id>` | 取消本人待审批申请 |
|
|
23
23
|
|
|
24
24
|
申请体始终使用 `vps-work catalog --domain attendance --json` 当前返回的 `params_schema`。旧版 CLI 使用 `vps-work exec --skill vps-attendance-applications --script <script_key>`,无需升级 npm。
|
|
25
|
-
|
package/skills/vps-hr/SKILL.md
CHANGED
|
@@ -11,7 +11,7 @@ description: |
|
|
|
11
11
|
| Shortcut | 说明 | 契约 |
|
|
12
12
|
|----------|------|------|
|
|
13
13
|
| [`+me`](../vps-current-user-identity/SKILL.md) | 当前用户身份 | 内建 `vps-work hr +me` |
|
|
14
|
-
| `+org-tree` |
|
|
14
|
+
| `+org-tree` | 组织部门树;`--department` 限定子树,`--include-users` 同时返回员工;`--max-depth 0` 查看全量 | Vertu 通讯录 |
|
|
15
15
|
| `+headcount` | 授权范围内的通讯录口径人数统计;返回人数与在职拆分 | 普通员工为本人,部门负责人为负责部门;全公司需要 `hr.profile.all:read` |
|
|
16
16
|
| `+profile` | 本人人事档案;含部门、岗位、上级、入职/转正/离职、工龄、最新合同 | `hr-personnel-directory` data-view |
|
|
17
17
|
| `+tenure` | 本人工龄与入职/转正/离职信息 | `hr-personnel-directory` data-view |
|
|
@@ -34,6 +34,7 @@ description: |
|
|
|
34
34
|
| 用户问法 | 命令 |
|
|
35
35
|
|----------|------|
|
|
36
36
|
| 查组织架构 | `vps-work hr +org-tree` |
|
|
37
|
+
| 查部门组织架构和员工名单 | `vps-work hr +org-tree --department "<完整路径或唯一部门名>" --include-users --max-depth 0` |
|
|
37
38
|
| 查授权范围人数 / 在职多少人 | `vps-work hr +headcount` |
|
|
38
39
|
| 查内部在职员工名单 | `vps-work hr +personnel-info --status "在职" --limit 1000` |
|
|
39
40
|
| 查岗位明细 | `vps-work hr +job-details --job "<岗位关键词>"` |
|
|
@@ -45,7 +46,7 @@ description: |
|
|
|
45
46
|
|
|
46
47
|
## 字段与口径
|
|
47
48
|
|
|
48
|
-
- `+org-tree` 走 Vertu 通讯录部门树,默认显示一级/二级;需要全量时用 `--max-depth 0
|
|
49
|
+
- `+org-tree` 走 Vertu 通讯录部门树,默认显示一级/二级;需要全量时用 `--max-depth 0`。`--include-users` 会调用同口径的通讯录人员接口并自动拉完分页;配合 `--department` 时只返回该部门及全部下级部门的在职员工。员工输出不包含手机号等无关个人资料。
|
|
49
50
|
- HR 人员范围由服务端计算:普通员工只能查本人;部门负责人默认查直接负责部门;显式部门管理员映射可通过 `include_children` 纳入下级部门;`hr.profile.all:read` 才能查看全公司。
|
|
50
51
|
- 部门负责人默认字段包为 `basic`(姓名、工号、部门、岗位、上级、在职状态)。任职详情、合同和历史人员分别需要 `hr.profile.employment:read`、`hr.profile.contract:read`、`hr.profile.history:read`;`admin:*` 不自动获得这些人事敏感权限。
|
|
51
52
|
- `+headcount` 是授权范围人数统计入口;不要用 `+personnel-info` 拉明细后本地统计人数。
|
|
@@ -41,7 +41,7 @@ Agent 不得读取、输出、复制或修改 `~/.vps-work/vps-service.json` 及
|
|
|
41
41
|
2. Domain DSL 宏 `@me`、`@my_department` 等(见 `skills/vps-current-user-identity/SKILL.md`);
|
|
42
42
|
3. `vps-work auth status`。
|
|
43
43
|
|
|
44
|
-
需要查看组织层级关系时用 `vps-work hr +org-tree`(默认一级/二级部门;全量加 `--max-depth 0
|
|
44
|
+
需要查看组织层级关系时用 `vps-work hr +org-tree`(默认一级/二级部门;全量加 `--max-depth 0`)。需要同时查看某个部门子树及通讯录员工时,加 `--department "<完整路径或唯一部门名>" --include-users`。
|
|
45
45
|
|
|
46
46
|
细则见 `skills/vps-current-user-identity/SKILL.md`。
|
|
47
47
|
|