@hcmai/cli 0.4.8 → 0.4.10
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/dist/index.js +282 -110
- package/dist/index.js.map +1 -1
- package/dist/skills/hcm-delivery-seed/SKILL.md +18 -0
- package/dist/skills/manifest.json +24 -4
- package/package.json +2 -2
|
@@ -26,6 +26,24 @@ hcm delivery seed verify --work <工作目录> --ledger-only
|
|
|
26
26
|
`fde-data-seeding` 里,两边不重复。现场拿不到源码,一个码 grep 不回来就等于不存在
|
|
27
27
|
——所以下面每一张表都由守卫钉着与引擎的登记表**逐条相等**。
|
|
28
28
|
|
|
29
|
+
## 先分叉:源文件是什么,就决定走哪条命令族
|
|
30
|
+
|
|
31
|
+
`hcm delivery seed` 与顶层的 `hcm import` **不是一件事的两种写法**,走错要多花一整个来回。
|
|
32
|
+
|
|
33
|
+
| 源文件 | 走哪条 | 为什么 |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| 客户交来的表格(`.xlsx` / `.csv`) | `hcm delivery seed` 的 `plan` / `apply` / `verify` | 要映射工件、漂移门、单写租约、台账、逐行回读 |
|
|
36
|
+
| 我们自己写的 DataPackage YAML | `hcm import <路径>` | `import` 只认 `.yml` / `.yaml` |
|
|
37
|
+
|
|
38
|
+
🔴 **别把客户表格喂给 `hcm import`。** 它只收 `.yml` / `.yaml`,一目录 `.xlsx` 收出来是
|
|
39
|
+
**零个文件** —— 那一趟「成功」了,可它一个字都没读。
|
|
40
|
+
|
|
41
|
+
两条命令族的闸也不同:非 `--dry-run` 的 `hcm import` 判 R2,必须走
|
|
42
|
+
`hcm delivery prepare` + `hcm delivery execute`;`seed` 有自己那三道闸,**不走** prepare / execute。
|
|
43
|
+
共同的一条是:`--dry-run` / 不给 `--execute` 都只读,
|
|
44
|
+
**它跑绿了不代表写通道存在** —— 2026-09-01 演示环境租户 15 就是 dry-run 全绿 531 条、
|
|
45
|
+
正式导入在 prepare 上当场拦死,一个写请求都没发出去。
|
|
46
|
+
|
|
29
47
|
## 退出码
|
|
30
48
|
|
|
31
49
|
| rc | 含义 | 你该做什么 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"cliVersion": "0.4.
|
|
3
|
+
"cliVersion": "0.4.10",
|
|
4
4
|
"commands": [
|
|
5
5
|
{
|
|
6
6
|
"path": "action",
|
|
@@ -121,6 +121,26 @@
|
|
|
121
121
|
"--profile"
|
|
122
122
|
]
|
|
123
123
|
},
|
|
124
|
+
{
|
|
125
|
+
"path": "datapackage",
|
|
126
|
+
"options": []
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "datapackage install",
|
|
130
|
+
"options": [
|
|
131
|
+
"--as",
|
|
132
|
+
"--category",
|
|
133
|
+
"--env",
|
|
134
|
+
"--output"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"path": "datapackage pack",
|
|
139
|
+
"options": [
|
|
140
|
+
"--out",
|
|
141
|
+
"--output"
|
|
142
|
+
]
|
|
143
|
+
},
|
|
124
144
|
{
|
|
125
145
|
"path": "delete",
|
|
126
146
|
"options": [
|
|
@@ -903,12 +923,12 @@
|
|
|
903
923
|
"requires": [
|
|
904
924
|
"hcm-delivery-doctor"
|
|
905
925
|
],
|
|
906
|
-
"bytes":
|
|
926
|
+
"bytes": 14338,
|
|
907
927
|
"files": [
|
|
908
928
|
{
|
|
909
929
|
"path": "SKILL.md",
|
|
910
|
-
"bytes":
|
|
911
|
-
"sha256": "
|
|
930
|
+
"bytes": 14338,
|
|
931
|
+
"sha256": "3ed4f613ef368f7344c8bb2235c2fd91c1ac0a8198238b0dd51816477e2881b5"
|
|
912
932
|
}
|
|
913
933
|
]
|
|
914
934
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcmai/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "Official HCM Next CLI for business APIs, tenant delivery, workspaces, and AI agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"test": "vitest run"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@hcmai/sdk": "0.4.
|
|
40
|
+
"@hcmai/sdk": "0.4.10",
|
|
41
41
|
"axios": "^1.6.0",
|
|
42
42
|
"commander": "^12.0.0",
|
|
43
43
|
"ink": "^7.0.5",
|