@hcmai/cli 0.4.30 → 0.5.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.
@@ -14,7 +14,7 @@ requires: []
14
14
  到一个陌生环境,先回答四个问题,**一条锚点一个**:
15
15
 
16
16
  ```
17
- hcm delivery doctor --env <环境别名> --output table
17
+ hcm chiron doctor --env <环境别名> --output table
18
18
  ```
19
19
 
20
20
  | 锚点 | 它回答什么 | 红了先看哪 |
@@ -19,8 +19,8 @@ requires:
19
19
  hcm delivery gate0 --skills <技能目录> --recon <基线产物目录> --mapping <映射工件> --output table
20
20
  ```
21
21
 
22
- `--recon` 指的是**产物目录本身**(`hcm delivery recon` 打出来的那一层,与
23
- `hcm delivery recon round --dir` 收的是同一个),不是它的上级。
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 delivery recon round` 看是哪几份,或回到连得上的地方重跑一次 `hcm delivery recon`。
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 delivery seed plan --out <产物根> --work <工作目录> --mapping <导入映射工件> --source-dir <源表目录>
17
- hcm delivery seed apply --work <工作目录> --execute --sample 20 --resume
18
- hcm delivery seed verify --work <工作目录> --ledger-only
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 delivery seed` 与顶层的 `hcm import` **不是一件事的两种写法**,走错要多花一整个来回。
31
+ `hcm chiron seed` 与顶层的 `hcm import` **不是一件事的两种写法**,走错要多花一整个来回。
32
32
 
33
33
  | 源文件 | 走哪条 | 为什么 |
34
34
  |---|---|---|
35
- | 客户交来的表格(`.xlsx` / `.csv`) | `hcm delivery seed` 的 `plan` / `apply` / `verify` | 要映射工件、漂移门、单写租约、台账、逐行回读 |
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 delivery triage --requests <需求清单.json> --recon <基线产物目录> --out <产物根>
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 delivery recon` 拿基线,再跑这条。
112
- `--recon` 指的是**产物目录本身**(`hcm delivery recon` 打出来的那一层),不是它的上级;
111
+ **客户提完需求、你准备回话之前。** 先跑一次 `hcm chiron recon` 拿基线,再跑这条。
112
+ `--recon` 指的是**产物目录本身**(`hcm chiron recon` 打出来的那一层),不是它的上级;
113
113
  不给它时命令会按爬取身份现算一份,但那要多打一发请求。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "cliVersion": "0.4.30",
3
+ "cliVersion": "0.5.0",
4
4
  "commands": [
5
5
  {
6
6
  "path": "action",
@@ -89,6 +89,8 @@
89
89
  {
90
90
  "path": "chiron doctor",
91
91
  "options": [
92
+ "--as",
93
+ "--env",
92
94
  "--fix",
93
95
  "--output",
94
96
  "--project"
@@ -103,6 +105,100 @@
103
105
  "--skip-skills"
104
106
  ]
105
107
  },
108
+ {
109
+ "path": "chiron meta",
110
+ "options": [
111
+ "--as",
112
+ "--content-file",
113
+ "--env",
114
+ "--expect-field",
115
+ "--layer",
116
+ "--meta-path",
117
+ "--model",
118
+ "--out",
119
+ "--profile",
120
+ "--tenant",
121
+ "--verify-active",
122
+ "--work",
123
+ "--workspace"
124
+ ]
125
+ },
126
+ {
127
+ "path": "chiron recon",
128
+ "options": [
129
+ "--as",
130
+ "--capabilities",
131
+ "--env",
132
+ "--model",
133
+ "--out",
134
+ "--output",
135
+ "--state"
136
+ ]
137
+ },
138
+ {
139
+ "path": "chiron recon round",
140
+ "options": [
141
+ "--dir"
142
+ ]
143
+ },
144
+ {
145
+ "path": "chiron seed",
146
+ "options": []
147
+ },
148
+ {
149
+ "path": "chiron seed apply",
150
+ "options": [
151
+ "--as",
152
+ "--env",
153
+ "--execute",
154
+ "--force-stale",
155
+ "--mapping",
156
+ "--out",
157
+ "--profile",
158
+ "--resume",
159
+ "--sample",
160
+ "--work"
161
+ ]
162
+ },
163
+ {
164
+ "path": "chiron seed find",
165
+ "options": [
166
+ "--out",
167
+ "--tenant"
168
+ ]
169
+ },
170
+ {
171
+ "path": "chiron seed plan",
172
+ "options": [
173
+ "--as",
174
+ "--env",
175
+ "--exemptions",
176
+ "--mapping",
177
+ "--out",
178
+ "--profile",
179
+ "--source-dir",
180
+ "--work"
181
+ ]
182
+ },
183
+ {
184
+ "path": "chiron seed values",
185
+ "options": [
186
+ "--limit",
187
+ "--out",
188
+ "--tenant"
189
+ ]
190
+ },
191
+ {
192
+ "path": "chiron seed verify",
193
+ "options": [
194
+ "--as",
195
+ "--env",
196
+ "--ledger-only",
197
+ "--out",
198
+ "--profile",
199
+ "--work"
200
+ ]
201
+ },
106
202
  {
107
203
  "path": "chiron test",
108
204
  "options": [
@@ -112,6 +208,15 @@
112
208
  "--project"
113
209
  ]
114
210
  },
211
+ {
212
+ "path": "chiron triage",
213
+ "options": [
214
+ "--capabilities",
215
+ "--out",
216
+ "--recon",
217
+ "--requests"
218
+ ]
219
+ },
115
220
  {
116
221
  "path": "config",
117
222
  "options": []
@@ -202,15 +307,6 @@
202
307
  "--output"
203
308
  ]
204
309
  },
205
- {
206
- "path": "delivery doctor",
207
- "options": [
208
- "--as",
209
- "--capabilities",
210
- "--env",
211
- "--output"
212
- ]
213
- },
214
310
  {
215
311
  "path": "delivery execute",
216
312
  "options": [
@@ -227,36 +323,6 @@
227
323
  "--skills"
228
324
  ]
229
325
  },
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
326
  {
261
327
  "path": "delivery mode",
262
328
  "options": [
@@ -279,91 +345,6 @@
279
345
  "--ttl-seconds"
280
346
  ]
281
347
  },
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
348
  {
368
349
  "path": "describe",
369
350
  "options": [
@@ -1100,12 +1081,12 @@
1100
1081
  ],
1101
1082
  "actionSurface": "cli",
1102
1083
  "requires": [],
1103
- "bytes": 2169,
1084
+ "bytes": 2167,
1104
1085
  "files": [
1105
1086
  {
1106
1087
  "path": "SKILL.md",
1107
- "bytes": 2169,
1108
- "sha256": "6339629ad101b6391b657985f92b2e27f28d5df0b06669aa9e83dd56b42bcc3c"
1088
+ "bytes": 2167,
1089
+ "sha256": "a6e7dc1909a8413edb22e82c14ace2cfe383ee213e59a3608c46e4d104928599"
1109
1090
  }
1110
1091
  ]
1111
1092
  },
@@ -1121,12 +1102,12 @@
1121
1102
  "requires": [
1122
1103
  "hcm-delivery-doctor"
1123
1104
  ],
1124
- "bytes": 5529,
1105
+ "bytes": 5521,
1125
1106
  "files": [
1126
1107
  {
1127
1108
  "path": "SKILL.md",
1128
- "bytes": 5529,
1129
- "sha256": "6c0aeea0e703f128f2bb0b97c968236cf84812d83b9a3a9d8a6216764521b56d"
1109
+ "bytes": 5521,
1110
+ "sha256": "b544dc7cf1018eb36c64bab62a4e33ca001cdb59de61ef1fe3edec911e333a7f"
1130
1111
  }
1131
1112
  ]
1132
1113
  },
@@ -1142,12 +1123,12 @@
1142
1123
  "requires": [
1143
1124
  "hcm-delivery-doctor"
1144
1125
  ],
1145
- "bytes": 14338,
1126
+ "bytes": 14328,
1146
1127
  "files": [
1147
1128
  {
1148
1129
  "path": "SKILL.md",
1149
- "bytes": 14338,
1150
- "sha256": "3ed4f613ef368f7344c8bb2235c2fd91c1ac0a8198238b0dd51816477e2881b5"
1130
+ "bytes": 14328,
1131
+ "sha256": "a35a4463c7ea1c887c9cc9b1e7c28c4fdf050698f427d3929d1761918d693915"
1151
1132
  }
1152
1133
  ]
1153
1134
  },
@@ -1163,12 +1144,12 @@
1163
1144
  "requires": [
1164
1145
  "hcm-delivery-doctor"
1165
1146
  ],
1166
- "bytes": 5386,
1147
+ "bytes": 5380,
1167
1148
  "files": [
1168
1149
  {
1169
1150
  "path": "SKILL.md",
1170
- "bytes": 5386,
1171
- "sha256": "33587553dbb59773f57e1391cbc99037f76906b4ad24f10aa96dd8ed02a5099b"
1151
+ "bytes": 5380,
1152
+ "sha256": "4c359f5b75717dbb942889452b02fe84dad97f57d6aafadf8b96e4864cb3de0b"
1172
1153
  }
1173
1154
  ]
1174
1155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hcmai/cli",
3
- "version": "0.4.30",
3
+ "version": "0.5.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.4.30",
40
+ "@hcmai/sdk": "0.5.0",
41
41
  "axios": "^1.6.0",
42
42
  "commander": "^12.0.0",
43
43
  "ink": "^7.0.5",