vps-work 1.1.0 → 2.0.0
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/.well-known/skills/index.json +15 -1
- package/README.md +9 -3
- package/USAGE.md +8 -2
- package/dist/vps-work.cjs +50745 -49271
- package/package.json +1 -2
- package/skills/README.md +3 -1
- package/skills/sale-performance-query/SKILL.md +2 -2
- package/skills/sale-performance-query/references/vps-sales-agent-five-suite.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-customer-mix.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-dept-breakdown.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-entities.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-invoice-status.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-order-logistics.md +1 -1
- package/skills/sale-performance-query/references/vps-sales-target-achievement.md +1 -1
- package/skills/vps-attendance/SKILL.md +25 -0
- package/skills/vps-current-user-identity/reference.md +2 -2
- package/skills/vps-daily-sales-report/SKILL.md +1 -1
- package/skills/vps-daily-sales-report/reference.md +2 -2
- package/skills/vps-device-abnormal-statistics/references/api.md +5 -5
- package/skills/vps-documents/SKILL.md +20 -2
- package/skills/vps-documents/references/api.md +28 -2
- package/skills/vps-hr/SKILL.md +10 -2
- package/skills/vps-hr-compensation-documents/SKILL.md +1 -1
- package/skills/vps-hr-compensation-documents/reference.md +2 -2
- package/skills/vps-hr-compensation-documents/references/+payslip.md +1 -1
- package/skills/vps-hr-compensation-documents/references/runtime-and-helpers.md +1 -1
- package/skills/vps-im/SKILL.md +2 -2
- package/skills/vps-im/references/vps-im-read.md +2 -2
- package/skills/vps-knowledge/SKILL.md +25 -0
- package/skills/vps-pending-approval-assistant/SKILL.md +1 -1
- package/skills/vps-pending-approval-assistant/reference.md +7 -7
- package/skills/vps-product/SKILL.md +3 -3
- package/skills/vps-sale-personnel-efficiency/SKILL.md +2 -2
- package/skills/vps-shared/SKILL.md +1 -2
- package/skills/vps-v-drive/SKILL.md +1 -1
- package/skills/vps-work/SKILL.md +1 -3
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"name": "vps-hr",
|
|
66
|
-
"description": "
|
|
66
|
+
"description": "VPS 原生人力资源:身份、组织、档案、合同、工资条,以及入职、转正、调岗、晋升、降级和离职办理。入口 `vps-work hr +…`。",
|
|
67
67
|
"files": [
|
|
68
68
|
"skills/vps-hr/SKILL.md"
|
|
69
69
|
]
|
|
@@ -241,6 +241,20 @@
|
|
|
241
241
|
"files": [
|
|
242
242
|
"skills/vps-work/SKILL.md"
|
|
243
243
|
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "vps-attendance",
|
|
247
|
+
"description": "VPS 原生考勤:日报、排班、请假、出差、外勤、加班、补卡、换班申请,假期策略与余额。入口 `vps-work attendance +…`。",
|
|
248
|
+
"files": [
|
|
249
|
+
"skills/vps-attendance/SKILL.md"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "vps-knowledge",
|
|
254
|
+
"description": "企业知识库:创建与管理知识库、从 V盘导入资料、检索、问答和生成知识图谱。入口 `vps-work knowledge +…`,旧版 CLI 可通过 `catalog` 与 `exec` 使用服务端新增能力。",
|
|
255
|
+
"files": [
|
|
256
|
+
"skills/vps-knowledge/SKILL.md"
|
|
257
|
+
]
|
|
244
258
|
}
|
|
245
259
|
]
|
|
246
260
|
}
|
package/README.md
CHANGED
|
@@ -28,7 +28,9 @@ Skill 为静态文件,**安装 skill 无需登录**;业务取数需登录 Ve
|
|
|
28
28
|
| **平台** | CLI 安装升级、`skill` 子命令、登录会话与 OSS 公共工具(**vps-work** / **vps-work-onboard** / **vps-tools**) |
|
|
29
29
|
| **身份** | 当前用户、部门、上级与组织上下文(**vps-current-user-identity**) |
|
|
30
30
|
| **销售与经营** | 公司总销日报、已对账销售收款、部门下钻、目标达成、OKR 达成、销售人效与 PK(**sale-performance-query** 等) |
|
|
31
|
-
| **人力资源** |
|
|
31
|
+
| **人力资源** | 组织架构、人员档案、上下级、岗位、工龄、合同、工资条、入职、转正、调岗与离职办理(**vps-hr**) |
|
|
32
|
+
| **考勤** | 日报、排班、假期余额及请假、出差、外勤、加班、补卡、换班申请(**vps-attendance**) |
|
|
33
|
+
| **知识库** | 知识库、V盘资料导入、检索、问答与知识图谱(**vps-knowledge**) |
|
|
32
34
|
| **产品与供应链** | 库存、商品价格、发货、齐套物料、机头库存、在库激活与异常 IMEI(**vps-product**、**vps-device-abnormal-statistics**) |
|
|
33
35
|
| **内容创作** | AI 生图、生视频、文字转语音与音乐生成,返回可下载附件链接(**vps-creative**) |
|
|
34
36
|
| **研发与 OKR** | 任务中心任务/待办、部门与个人 OKR(**vps-task-management-assistant**、**vps-okr**) |
|
|
@@ -164,7 +166,9 @@ npm run build
|
|
|
164
166
|
| `vps-work` | CLI 安装、skill 子命令、排错 |
|
|
165
167
|
| `vps-work-onboard` | 新机器:装 CLI、铺 skill、登录自检 |
|
|
166
168
|
| `sale-performance-query` | 销售日报、部门 KPI、OKR 达成、人效与 PK |
|
|
167
|
-
| `vps-hr` |
|
|
169
|
+
| `vps-hr` | 人员信息、薪酬、工资条与新人事办理 |
|
|
170
|
+
| `vps-attendance` | 考勤日报、排班、余额与业务申请 |
|
|
171
|
+
| `vps-knowledge` | 企业知识库、检索、问答与知识图谱 |
|
|
168
172
|
| `vps-product` | 库存、商品价格、发货、齐套、机头库存,并路由设备异常查询 |
|
|
169
173
|
| `vps-device-abnormal-statistics` | 仓位在库激活、异常 IMEI 与未处理异常原因下钻 |
|
|
170
174
|
| `vps-creative` | 内容创作画布:AI 生图、生视频、文字转语音、音乐生成与模型列表 |
|
|
@@ -221,7 +225,9 @@ CI / 自动化常用环境变量:`VERTU_BOT_INBOUND_KEY`(Bearer)、`VERTU_
|
|
|
221
225
|
| 域 | 示例 |
|
|
222
226
|
|----|------|
|
|
223
227
|
| `sales` | `vps-work sales +headline-kpi` · `+orders` · `+reconciled-receipts` · `+dept-breakdown` · `+customer-mix` · `+target-achievement` · `+per-person-kpi` |
|
|
224
|
-
| `hr` | `vps-work hr +me` · `+org-tree` · `+headcount` · `+profile` · `+
|
|
228
|
+
| `hr` | `vps-work hr +me` · `+org-tree` · `+headcount` · `+profile` · `+contracts` · `+payslip` · `+business-list` · `+onboarding` · `+transfer` · `+resignation` |
|
|
229
|
+
| `attendance` | `vps-work attendance +daily` · `+schedule-*` · `+applications` · `+application-preview` · `+application-submit` |
|
|
230
|
+
| `knowledge` | `vps-work knowledge +list` · `+documents` · `+import-vdrive` · `+search` · `+ask` · `+graph` |
|
|
225
231
|
| `product` | `vps-work product +inventory` · `+price` · `+delivery` · `+kit-materials` · `+phone-head-inventory` · `+abnormal-location` · `+abnormal-location-list` · `+abnormal-details` |
|
|
226
232
|
| `creative` | `vps-work creative +models` · `+image` · `+video` · `+video-status` · `+tts` · `+music` |
|
|
227
233
|
| `corporate` | `vps-work corporate +partner-list` · `+seal-list` · `+business-list` · `+regulation-list` · `+attachments` |
|
package/USAGE.md
CHANGED
|
@@ -76,7 +76,6 @@ vps-work auth tenants
|
|
|
76
76
|
vps-work auth use --tenant <uuid> # 仅人工/宿主;Agent 不得自行切换企业
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
> 遗留 Odoo 动态 CLI(`--legacy-odoo-cli`)仅供人工兼容排障。Agent / Bot / Hermes 禁止使用。
|
|
80
79
|
|
|
81
80
|
---
|
|
82
81
|
|
|
@@ -92,7 +91,6 @@ vps-work exec --skill vps-dealer-ops --script sales --param period=this_month
|
|
|
92
91
|
|
|
93
92
|
`transport=execute` 的条目用 `exec`;不要编造 catalog 里没有的 `script_key`。
|
|
94
93
|
|
|
95
|
-
条目的 `provider` 字段标明数据归属:`odoo` 表示来自第三方应用 Odoo ERP(销售 / 门店 / 商品 / 经销商运营 / 审批),为空表示 VPS 原生能力(HR 档案、工资条、IM、云文档等)。企业停用 Odoo ERP 后,响应中的 `disabled_third_party_apps` 会包含 `odoo`,相关条目被隐藏且 `exec` 返回 403。
|
|
96
94
|
|
|
97
95
|
---
|
|
98
96
|
|
|
@@ -119,6 +117,8 @@ vps-work hr +manager
|
|
|
119
117
|
vps-work hr +job-details --department-l1 "线下事业部" --job "销售"
|
|
120
118
|
vps-work hr +contracts --contract-status open
|
|
121
119
|
vps-work hr +payslip --name "张三" --salary-month 2026-04
|
|
120
|
+
vps-work hr +business-list
|
|
121
|
+
vps-work hr +transfer --params-file ./hr-transfer.json
|
|
122
122
|
|
|
123
123
|
vps-work corporate +partner-list --search "深圳"
|
|
124
124
|
vps-work corporate +seal-list --kind contract --status finished
|
|
@@ -144,6 +144,12 @@ vps-work attendance +schedule-members --rule-id <rule-id> --from-date 2026-08-26
|
|
|
144
144
|
vps-work attendance +schedules --rule-id <rule-id> --from-date 2026-08-26 --to-date 2026-08-31 --employee-id 123
|
|
145
145
|
vps-work attendance +schedule-preview --rule-id <rule-id> --employee-ids 123,456 --from-date 2026-08-26 --to-date 2026-08-31 --shift-template-id <shift-id>
|
|
146
146
|
vps-work attendance +schedule-apply --rule-id <rule-id> --items-file ./schedule-plan.json --mode fill_missing --preview-token <token> --client-request-id <uuid>
|
|
147
|
+
vps-work attendance +applications --params '{"status":"pending"}'
|
|
148
|
+
vps-work attendance +application-preview --params-file ./attendance-request.json
|
|
149
|
+
vps-work attendance +application-submit --params-file ./attendance-request.json
|
|
150
|
+
vps-work knowledge +list
|
|
151
|
+
vps-work knowledge +import-vdrive --base-id <uuid> --v-drive-item-id <uuid>
|
|
152
|
+
vps-work knowledge +ask --base-id <uuid> --question "公司的差旅制度是什么?"
|
|
147
153
|
vps-work creative +models --type image
|
|
148
154
|
vps-work creative +image --model openai/gpt-image-2.5-sunburst --prompt "一只金丝猴在雪山上" --aspect-ratio 16:9
|
|
149
155
|
vps-work creative +video --model <id> --prompt "..." --ratio 16:9 --duration 5 --wait
|