@hcmai/cli 0.4.31 → 0.6.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/dist/index.js +881 -1075
- package/dist/index.js.map +1 -1
- package/dist/skills/hcm-delivery-doctor/SKILL.md +1 -1
- package/dist/skills/hcm-delivery-gate0/SKILL.md +3 -3
- package/dist/skills/hcm-delivery-seed/SKILL.md +5 -5
- package/dist/skills/hcm-delivery-triage/SKILL.md +3 -3
- package/dist/skills/manifest.json +120 -137
- package/package.json +2 -2
|
@@ -19,8 +19,8 @@ requires:
|
|
|
19
19
|
hcm delivery gate0 --skills <技能目录> --recon <基线产物目录> --mapping <映射工件> --output table
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
`--recon` 指的是**产物目录本身**(`hcm
|
|
23
|
-
`hcm
|
|
22
|
+
`--recon` 指的是**产物目录本身**(`hcm chiron recon` 打出来的那一层,与
|
|
23
|
+
`hcm chiron recon round --dir` 收的是同一个),不是它的上级。
|
|
24
24
|
|
|
25
25
|
## 退出码三档,不许合并
|
|
26
26
|
|
|
@@ -66,7 +66,7 @@ hcm delivery gate0 --skills <技能目录> --recon <基线产物目录> --mappin
|
|
|
66
66
|
|
|
67
67
|
**基线不是一轮完整跑出来的,也是 rc=2。** A 类事实是从这份基线**现算**的;
|
|
68
68
|
基线混着不同轮次,「判红 0 条」对哪一轮都不算数。先跑
|
|
69
|
-
`hcm
|
|
69
|
+
`hcm chiron recon round` 看是哪几份,或回到连得上的地方重跑一次 `hcm chiron recon`。
|
|
70
70
|
|
|
71
71
|
## 扫描面
|
|
72
72
|
|
|
@@ -13,9 +13,9 @@ requires:
|
|
|
13
13
|
# 受控灌数:三条命令、三个产物、一张码表
|
|
14
14
|
|
|
15
15
|
```
|
|
16
|
-
hcm
|
|
17
|
-
hcm
|
|
18
|
-
hcm
|
|
16
|
+
hcm chiron seed plan --out <产物根> --work <工作目录> --mapping <导入映射工件> --source-dir <源表目录>
|
|
17
|
+
hcm chiron seed apply --work <工作目录> --execute --sample 20 --resume
|
|
18
|
+
hcm chiron seed verify --work <工作目录> --ledger-only
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
`plan` 零写,`apply` **默认干跑**——不显式给 `--execute` 就一发写请求都不发。
|
|
@@ -28,11 +28,11 @@ hcm delivery seed verify --work <工作目录> --ledger-only
|
|
|
28
28
|
|
|
29
29
|
## 先分叉:源文件是什么,就决定走哪条命令族
|
|
30
30
|
|
|
31
|
-
`hcm
|
|
31
|
+
`hcm chiron seed` 与顶层的 `hcm import` **不是一件事的两种写法**,走错要多花一整个来回。
|
|
32
32
|
|
|
33
33
|
| 源文件 | 走哪条 | 为什么 |
|
|
34
34
|
|---|---|---|
|
|
35
|
-
| 客户交来的表格(`.xlsx` / `.csv`) | `hcm
|
|
35
|
+
| 客户交来的表格(`.xlsx` / `.csv`) | `hcm chiron seed` 的 `plan` / `apply` / `verify` | 要映射工件、漂移门、单写租约、台账、逐行回读 |
|
|
36
36
|
| 我们自己写的 DataPackage YAML | `hcm import <路径>` | `import` 只认 `.yml` / `.yaml` |
|
|
37
37
|
|
|
38
38
|
🔴 **别把客户表格喂给 `hcm import`。** 它只收 `.yml` / `.yaml`,一目录 `.xlsx` 收出来是
|
|
@@ -16,7 +16,7 @@ requires:
|
|
|
16
16
|
这条命令把穷举那一步机械化。
|
|
17
17
|
|
|
18
18
|
```
|
|
19
|
-
hcm
|
|
19
|
+
hcm chiron triage --requests <需求清单.json> --recon <基线产物目录> --out <产物根>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## 分工:机器干穷举,你干判断
|
|
@@ -108,6 +108,6 @@ hcm delivery triage --requests <需求清单.json> --recon <基线产物目录>
|
|
|
108
108
|
|
|
109
109
|
## 什么时候跑
|
|
110
110
|
|
|
111
|
-
**客户提完需求、你准备回话之前。** 先跑一次 `hcm
|
|
112
|
-
`--recon` 指的是**产物目录本身**(`hcm
|
|
111
|
+
**客户提完需求、你准备回话之前。** 先跑一次 `hcm chiron recon` 拿基线,再跑这条。
|
|
112
|
+
`--recon` 指的是**产物目录本身**(`hcm chiron recon` 打出来的那一层),不是它的上级;
|
|
113
113
|
不给它时命令会按爬取身份现算一份,但那要多打一发请求。
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"cliVersion": "0.
|
|
3
|
+
"cliVersion": "0.6.0",
|
|
4
4
|
"commands": [
|
|
5
5
|
{
|
|
6
6
|
"path": "action",
|
|
7
7
|
"options": [
|
|
8
|
+
"--artifact-force",
|
|
9
|
+
"--artifact-output",
|
|
8
10
|
"--as",
|
|
9
11
|
"--env",
|
|
10
12
|
"--id",
|
|
@@ -89,6 +91,8 @@
|
|
|
89
91
|
{
|
|
90
92
|
"path": "chiron doctor",
|
|
91
93
|
"options": [
|
|
94
|
+
"--as",
|
|
95
|
+
"--env",
|
|
92
96
|
"--fix",
|
|
93
97
|
"--output",
|
|
94
98
|
"--project"
|
|
@@ -103,6 +107,100 @@
|
|
|
103
107
|
"--skip-skills"
|
|
104
108
|
]
|
|
105
109
|
},
|
|
110
|
+
{
|
|
111
|
+
"path": "chiron meta",
|
|
112
|
+
"options": [
|
|
113
|
+
"--as",
|
|
114
|
+
"--content-file",
|
|
115
|
+
"--env",
|
|
116
|
+
"--expect-field",
|
|
117
|
+
"--layer",
|
|
118
|
+
"--meta-path",
|
|
119
|
+
"--model",
|
|
120
|
+
"--out",
|
|
121
|
+
"--profile",
|
|
122
|
+
"--tenant",
|
|
123
|
+
"--verify-active",
|
|
124
|
+
"--work",
|
|
125
|
+
"--workspace"
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"path": "chiron recon",
|
|
130
|
+
"options": [
|
|
131
|
+
"--as",
|
|
132
|
+
"--capabilities",
|
|
133
|
+
"--env",
|
|
134
|
+
"--model",
|
|
135
|
+
"--out",
|
|
136
|
+
"--output",
|
|
137
|
+
"--state"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"path": "chiron recon round",
|
|
142
|
+
"options": [
|
|
143
|
+
"--dir"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"path": "chiron seed",
|
|
148
|
+
"options": []
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"path": "chiron seed apply",
|
|
152
|
+
"options": [
|
|
153
|
+
"--as",
|
|
154
|
+
"--env",
|
|
155
|
+
"--execute",
|
|
156
|
+
"--force-stale",
|
|
157
|
+
"--mapping",
|
|
158
|
+
"--out",
|
|
159
|
+
"--profile",
|
|
160
|
+
"--resume",
|
|
161
|
+
"--sample",
|
|
162
|
+
"--work"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"path": "chiron seed find",
|
|
167
|
+
"options": [
|
|
168
|
+
"--out",
|
|
169
|
+
"--tenant"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"path": "chiron seed plan",
|
|
174
|
+
"options": [
|
|
175
|
+
"--as",
|
|
176
|
+
"--env",
|
|
177
|
+
"--exemptions",
|
|
178
|
+
"--mapping",
|
|
179
|
+
"--out",
|
|
180
|
+
"--profile",
|
|
181
|
+
"--source-dir",
|
|
182
|
+
"--work"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"path": "chiron seed values",
|
|
187
|
+
"options": [
|
|
188
|
+
"--limit",
|
|
189
|
+
"--out",
|
|
190
|
+
"--tenant"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"path": "chiron seed verify",
|
|
195
|
+
"options": [
|
|
196
|
+
"--as",
|
|
197
|
+
"--env",
|
|
198
|
+
"--ledger-only",
|
|
199
|
+
"--out",
|
|
200
|
+
"--profile",
|
|
201
|
+
"--work"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
106
204
|
{
|
|
107
205
|
"path": "chiron test",
|
|
108
206
|
"options": [
|
|
@@ -112,6 +210,15 @@
|
|
|
112
210
|
"--project"
|
|
113
211
|
]
|
|
114
212
|
},
|
|
213
|
+
{
|
|
214
|
+
"path": "chiron triage",
|
|
215
|
+
"options": [
|
|
216
|
+
"--capabilities",
|
|
217
|
+
"--out",
|
|
218
|
+
"--recon",
|
|
219
|
+
"--requests"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
115
222
|
{
|
|
116
223
|
"path": "config",
|
|
117
224
|
"options": []
|
|
@@ -202,15 +309,6 @@
|
|
|
202
309
|
"--output"
|
|
203
310
|
]
|
|
204
311
|
},
|
|
205
|
-
{
|
|
206
|
-
"path": "delivery doctor",
|
|
207
|
-
"options": [
|
|
208
|
-
"--as",
|
|
209
|
-
"--capabilities",
|
|
210
|
-
"--env",
|
|
211
|
-
"--output"
|
|
212
|
-
]
|
|
213
|
-
},
|
|
214
312
|
{
|
|
215
313
|
"path": "delivery execute",
|
|
216
314
|
"options": [
|
|
@@ -227,36 +325,6 @@
|
|
|
227
325
|
"--skills"
|
|
228
326
|
]
|
|
229
327
|
},
|
|
230
|
-
{
|
|
231
|
-
"path": "delivery init",
|
|
232
|
-
"options": [
|
|
233
|
-
"--approved-by",
|
|
234
|
-
"--env",
|
|
235
|
-
"--force",
|
|
236
|
-
"--mode",
|
|
237
|
-
"--output",
|
|
238
|
-
"--project",
|
|
239
|
-
"--reason"
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"path": "delivery meta",
|
|
244
|
-
"options": [
|
|
245
|
-
"--as",
|
|
246
|
-
"--content-file",
|
|
247
|
-
"--env",
|
|
248
|
-
"--expect-field",
|
|
249
|
-
"--layer",
|
|
250
|
-
"--meta-path",
|
|
251
|
-
"--model",
|
|
252
|
-
"--out",
|
|
253
|
-
"--profile",
|
|
254
|
-
"--tenant",
|
|
255
|
-
"--verify-active",
|
|
256
|
-
"--work",
|
|
257
|
-
"--workspace"
|
|
258
|
-
]
|
|
259
|
-
},
|
|
260
328
|
{
|
|
261
329
|
"path": "delivery mode",
|
|
262
330
|
"options": [
|
|
@@ -279,91 +347,6 @@
|
|
|
279
347
|
"--ttl-seconds"
|
|
280
348
|
]
|
|
281
349
|
},
|
|
282
|
-
{
|
|
283
|
-
"path": "delivery recon",
|
|
284
|
-
"options": [
|
|
285
|
-
"--as",
|
|
286
|
-
"--capabilities",
|
|
287
|
-
"--env",
|
|
288
|
-
"--model",
|
|
289
|
-
"--out",
|
|
290
|
-
"--output",
|
|
291
|
-
"--state"
|
|
292
|
-
]
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"path": "delivery recon round",
|
|
296
|
-
"options": [
|
|
297
|
-
"--dir"
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"path": "delivery seed",
|
|
302
|
-
"options": []
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
"path": "delivery seed apply",
|
|
306
|
-
"options": [
|
|
307
|
-
"--as",
|
|
308
|
-
"--env",
|
|
309
|
-
"--execute",
|
|
310
|
-
"--force-stale",
|
|
311
|
-
"--mapping",
|
|
312
|
-
"--out",
|
|
313
|
-
"--profile",
|
|
314
|
-
"--resume",
|
|
315
|
-
"--sample",
|
|
316
|
-
"--work"
|
|
317
|
-
]
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"path": "delivery seed find",
|
|
321
|
-
"options": [
|
|
322
|
-
"--out",
|
|
323
|
-
"--tenant"
|
|
324
|
-
]
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"path": "delivery seed plan",
|
|
328
|
-
"options": [
|
|
329
|
-
"--as",
|
|
330
|
-
"--env",
|
|
331
|
-
"--exemptions",
|
|
332
|
-
"--mapping",
|
|
333
|
-
"--out",
|
|
334
|
-
"--profile",
|
|
335
|
-
"--source-dir",
|
|
336
|
-
"--work"
|
|
337
|
-
]
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
"path": "delivery seed values",
|
|
341
|
-
"options": [
|
|
342
|
-
"--limit",
|
|
343
|
-
"--out",
|
|
344
|
-
"--tenant"
|
|
345
|
-
]
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"path": "delivery seed verify",
|
|
349
|
-
"options": [
|
|
350
|
-
"--as",
|
|
351
|
-
"--env",
|
|
352
|
-
"--ledger-only",
|
|
353
|
-
"--out",
|
|
354
|
-
"--profile",
|
|
355
|
-
"--work"
|
|
356
|
-
]
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
"path": "delivery triage",
|
|
360
|
-
"options": [
|
|
361
|
-
"--capabilities",
|
|
362
|
-
"--out",
|
|
363
|
-
"--recon",
|
|
364
|
-
"--requests"
|
|
365
|
-
]
|
|
366
|
-
},
|
|
367
350
|
{
|
|
368
351
|
"path": "describe",
|
|
369
352
|
"options": [
|
|
@@ -1100,12 +1083,12 @@
|
|
|
1100
1083
|
],
|
|
1101
1084
|
"actionSurface": "cli",
|
|
1102
1085
|
"requires": [],
|
|
1103
|
-
"bytes":
|
|
1086
|
+
"bytes": 2167,
|
|
1104
1087
|
"files": [
|
|
1105
1088
|
{
|
|
1106
1089
|
"path": "SKILL.md",
|
|
1107
|
-
"bytes":
|
|
1108
|
-
"sha256": "
|
|
1090
|
+
"bytes": 2167,
|
|
1091
|
+
"sha256": "a6e7dc1909a8413edb22e82c14ace2cfe383ee213e59a3608c46e4d104928599"
|
|
1109
1092
|
}
|
|
1110
1093
|
]
|
|
1111
1094
|
},
|
|
@@ -1121,12 +1104,12 @@
|
|
|
1121
1104
|
"requires": [
|
|
1122
1105
|
"hcm-delivery-doctor"
|
|
1123
1106
|
],
|
|
1124
|
-
"bytes":
|
|
1107
|
+
"bytes": 5521,
|
|
1125
1108
|
"files": [
|
|
1126
1109
|
{
|
|
1127
1110
|
"path": "SKILL.md",
|
|
1128
|
-
"bytes":
|
|
1129
|
-
"sha256": "
|
|
1111
|
+
"bytes": 5521,
|
|
1112
|
+
"sha256": "b544dc7cf1018eb36c64bab62a4e33ca001cdb59de61ef1fe3edec911e333a7f"
|
|
1130
1113
|
}
|
|
1131
1114
|
]
|
|
1132
1115
|
},
|
|
@@ -1142,12 +1125,12 @@
|
|
|
1142
1125
|
"requires": [
|
|
1143
1126
|
"hcm-delivery-doctor"
|
|
1144
1127
|
],
|
|
1145
|
-
"bytes":
|
|
1128
|
+
"bytes": 14328,
|
|
1146
1129
|
"files": [
|
|
1147
1130
|
{
|
|
1148
1131
|
"path": "SKILL.md",
|
|
1149
|
-
"bytes":
|
|
1150
|
-
"sha256": "
|
|
1132
|
+
"bytes": 14328,
|
|
1133
|
+
"sha256": "a35a4463c7ea1c887c9cc9b1e7c28c4fdf050698f427d3929d1761918d693915"
|
|
1151
1134
|
}
|
|
1152
1135
|
]
|
|
1153
1136
|
},
|
|
@@ -1163,12 +1146,12 @@
|
|
|
1163
1146
|
"requires": [
|
|
1164
1147
|
"hcm-delivery-doctor"
|
|
1165
1148
|
],
|
|
1166
|
-
"bytes":
|
|
1149
|
+
"bytes": 5380,
|
|
1167
1150
|
"files": [
|
|
1168
1151
|
{
|
|
1169
1152
|
"path": "SKILL.md",
|
|
1170
|
-
"bytes":
|
|
1171
|
-
"sha256": "
|
|
1153
|
+
"bytes": 5380,
|
|
1154
|
+
"sha256": "4c359f5b75717dbb942889452b02fe84dad97f57d6aafadf8b96e4864cb3de0b"
|
|
1172
1155
|
}
|
|
1173
1156
|
]
|
|
1174
1157
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hcmai/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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.
|
|
40
|
+
"@hcmai/sdk": "0.6.0",
|
|
41
41
|
"axios": "^1.6.0",
|
|
42
42
|
"commander": "^12.0.0",
|
|
43
43
|
"ink": "^7.0.5",
|