@hcmai/cli 0.3.4 → 0.3.5

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.
@@ -0,0 +1,692 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "cliVersion": "0.3.5",
4
+ "commands": [
5
+ {
6
+ "path": "action",
7
+ "options": [
8
+ "--as",
9
+ "--env",
10
+ "--id",
11
+ "--ids",
12
+ "--method",
13
+ "--output",
14
+ "--params",
15
+ "--params-file",
16
+ "--profile",
17
+ "--scope"
18
+ ]
19
+ },
20
+ {
21
+ "path": "cache",
22
+ "options": []
23
+ },
24
+ {
25
+ "path": "cache clear",
26
+ "options": [
27
+ "--as",
28
+ "--env",
29
+ "--id",
30
+ "--output"
31
+ ]
32
+ },
33
+ {
34
+ "path": "cache clear-meta",
35
+ "options": [
36
+ "--as",
37
+ "--env",
38
+ "--output",
39
+ "--state",
40
+ "--type"
41
+ ]
42
+ },
43
+ {
44
+ "path": "cache stats",
45
+ "options": [
46
+ "--as",
47
+ "--env",
48
+ "--output"
49
+ ]
50
+ },
51
+ {
52
+ "path": "chat",
53
+ "options": [
54
+ "--agent",
55
+ "--as",
56
+ "--attach",
57
+ "--auto-approve",
58
+ "--conversation",
59
+ "--env",
60
+ "--events",
61
+ "--inject-on",
62
+ "--limit",
63
+ "--list",
64
+ "--no-color",
65
+ "--no-markdown",
66
+ "--no-show-tool-calls",
67
+ "--no-spinner",
68
+ "--no-stream",
69
+ "--no-thinking",
70
+ "--on-ask",
71
+ "--on-confirm",
72
+ "--output",
73
+ "--profile",
74
+ "--prompt-file",
75
+ "--raw",
76
+ "--regenerate-from",
77
+ "--resume",
78
+ "--show-tool-calls",
79
+ "--stream",
80
+ "--timeout",
81
+ "--verbose-thinking",
82
+ "--verbose-tools"
83
+ ]
84
+ },
85
+ {
86
+ "path": "config",
87
+ "options": []
88
+ },
89
+ {
90
+ "path": "config delete",
91
+ "options": []
92
+ },
93
+ {
94
+ "path": "config get",
95
+ "options": []
96
+ },
97
+ {
98
+ "path": "config list",
99
+ "options": []
100
+ },
101
+ {
102
+ "path": "config set",
103
+ "options": []
104
+ },
105
+ {
106
+ "path": "config set-profile",
107
+ "options": []
108
+ },
109
+ {
110
+ "path": "config show",
111
+ "options": []
112
+ },
113
+ {
114
+ "path": "create",
115
+ "options": [
116
+ "--as",
117
+ "--data",
118
+ "--data-file",
119
+ "--env",
120
+ "--output",
121
+ "--profile"
122
+ ]
123
+ },
124
+ {
125
+ "path": "delete",
126
+ "options": [
127
+ "--as",
128
+ "--env",
129
+ "--id",
130
+ "--output",
131
+ "--profile"
132
+ ]
133
+ },
134
+ {
135
+ "path": "delivery",
136
+ "options": []
137
+ },
138
+ {
139
+ "path": "delivery assess",
140
+ "options": [
141
+ "--output"
142
+ ]
143
+ },
144
+ {
145
+ "path": "delivery doctor",
146
+ "options": [
147
+ "--as",
148
+ "--capabilities",
149
+ "--env",
150
+ "--output"
151
+ ]
152
+ },
153
+ {
154
+ "path": "delivery execute",
155
+ "options": [
156
+ "--output",
157
+ "--project"
158
+ ]
159
+ },
160
+ {
161
+ "path": "delivery prepare",
162
+ "options": [
163
+ "--change-ref",
164
+ "--evidence-dir",
165
+ "--output",
166
+ "--project",
167
+ "--rollback-ref",
168
+ "--ttl-seconds"
169
+ ]
170
+ },
171
+ {
172
+ "path": "describe",
173
+ "options": [
174
+ "--as",
175
+ "--env",
176
+ "--output",
177
+ "--profile",
178
+ "--verbose"
179
+ ]
180
+ },
181
+ {
182
+ "path": "download",
183
+ "options": [
184
+ "--as",
185
+ "--env",
186
+ "--output"
187
+ ]
188
+ },
189
+ {
190
+ "path": "env",
191
+ "options": []
192
+ },
193
+ {
194
+ "path": "env add",
195
+ "options": [
196
+ "--endpoint",
197
+ "--force",
198
+ "--frontend",
199
+ "--tenant"
200
+ ]
201
+ },
202
+ {
203
+ "path": "env current",
204
+ "options": []
205
+ },
206
+ {
207
+ "path": "env edit",
208
+ "options": [
209
+ "--env"
210
+ ]
211
+ },
212
+ {
213
+ "path": "env list",
214
+ "options": []
215
+ },
216
+ {
217
+ "path": "env remove",
218
+ "options": [
219
+ "--force"
220
+ ]
221
+ },
222
+ {
223
+ "path": "env show",
224
+ "options": []
225
+ },
226
+ {
227
+ "path": "env use",
228
+ "options": [
229
+ "--no-ping"
230
+ ]
231
+ },
232
+ {
233
+ "path": "identity",
234
+ "options": []
235
+ },
236
+ {
237
+ "path": "identity list",
238
+ "options": [
239
+ "--env"
240
+ ]
241
+ },
242
+ {
243
+ "path": "identity remove",
244
+ "options": []
245
+ },
246
+ {
247
+ "path": "identity use",
248
+ "options": []
249
+ },
250
+ {
251
+ "path": "import",
252
+ "options": [
253
+ "--as",
254
+ "--dry-run",
255
+ "--env",
256
+ "--on-error",
257
+ "--output",
258
+ "--profile",
259
+ "--report",
260
+ "--update-only"
261
+ ]
262
+ },
263
+ {
264
+ "path": "login",
265
+ "options": [
266
+ "--client-id",
267
+ "--client-secret",
268
+ "--code",
269
+ "--endpoint",
270
+ "--env",
271
+ "--name",
272
+ "--new-password",
273
+ "--new-password-stdin",
274
+ "--no-activate",
275
+ "--password",
276
+ "--pat",
277
+ "--pat-stdin",
278
+ "--profile",
279
+ "--tenant",
280
+ "--username"
281
+ ]
282
+ },
283
+ {
284
+ "path": "logout",
285
+ "options": [
286
+ "--env",
287
+ "--identity"
288
+ ]
289
+ },
290
+ {
291
+ "path": "meta",
292
+ "options": []
293
+ },
294
+ {
295
+ "path": "meta delete",
296
+ "options": [
297
+ "--as",
298
+ "--env",
299
+ "--output",
300
+ "--yes"
301
+ ]
302
+ },
303
+ {
304
+ "path": "meta get",
305
+ "options": [
306
+ "--as",
307
+ "--env"
308
+ ]
309
+ },
310
+ {
311
+ "path": "meta list",
312
+ "options": [
313
+ "--as",
314
+ "--env",
315
+ "--keyword",
316
+ "--output",
317
+ "--page",
318
+ "--page-size",
319
+ "--type"
320
+ ]
321
+ },
322
+ {
323
+ "path": "meta set",
324
+ "options": [
325
+ "--as",
326
+ "--dry-run",
327
+ "--env",
328
+ "--file",
329
+ "--output"
330
+ ]
331
+ },
332
+ {
333
+ "path": "mini",
334
+ "options": []
335
+ },
336
+ {
337
+ "path": "query",
338
+ "options": [
339
+ "--as",
340
+ "--env",
341
+ "--fields",
342
+ "--filter",
343
+ "--keyword",
344
+ "--limit",
345
+ "--offset",
346
+ "--output",
347
+ "--profile",
348
+ "--sort"
349
+ ]
350
+ },
351
+ {
352
+ "path": "setting",
353
+ "options": []
354
+ },
355
+ {
356
+ "path": "setting get",
357
+ "options": [
358
+ "--as",
359
+ "--env",
360
+ "--output"
361
+ ]
362
+ },
363
+ {
364
+ "path": "setting reset",
365
+ "options": [
366
+ "--as",
367
+ "--env",
368
+ "--output",
369
+ "--revision",
370
+ "--yes"
371
+ ]
372
+ },
373
+ {
374
+ "path": "setting set",
375
+ "options": [
376
+ "--as",
377
+ "--dry-run",
378
+ "--env",
379
+ "--output",
380
+ "--set"
381
+ ]
382
+ },
383
+ {
384
+ "path": "skills",
385
+ "options": []
386
+ },
387
+ {
388
+ "path": "skills install",
389
+ "options": [
390
+ "--all",
391
+ "--dir",
392
+ "--endpoint",
393
+ "--env",
394
+ "--force",
395
+ "--from",
396
+ "--global",
397
+ "--output",
398
+ "--source",
399
+ "--target"
400
+ ]
401
+ },
402
+ {
403
+ "path": "skills list",
404
+ "options": [
405
+ "--by-stage",
406
+ "--category",
407
+ "--dir",
408
+ "--endpoint",
409
+ "--env",
410
+ "--global",
411
+ "--installed",
412
+ "--output",
413
+ "--source",
414
+ "--stage",
415
+ "--target"
416
+ ]
417
+ },
418
+ {
419
+ "path": "skills manifest",
420
+ "options": [
421
+ "--output"
422
+ ]
423
+ },
424
+ {
425
+ "path": "skills show",
426
+ "options": [
427
+ "--endpoint",
428
+ "--env",
429
+ "--source"
430
+ ]
431
+ },
432
+ {
433
+ "path": "skills sync",
434
+ "options": [
435
+ "--cli",
436
+ "--endpoint",
437
+ "--env",
438
+ "--output",
439
+ "--project",
440
+ "--target"
441
+ ]
442
+ },
443
+ {
444
+ "path": "skills update",
445
+ "options": [
446
+ "--all",
447
+ "--check",
448
+ "--dir",
449
+ "--endpoint",
450
+ "--env",
451
+ "--force",
452
+ "--global",
453
+ "--output",
454
+ "--source",
455
+ "--target"
456
+ ]
457
+ },
458
+ {
459
+ "path": "tenant",
460
+ "options": []
461
+ },
462
+ {
463
+ "path": "tenant bootstrap",
464
+ "options": [
465
+ "--admin-password",
466
+ "--admin-password-stdin",
467
+ "--admin-username",
468
+ "--bootstrap-key",
469
+ "--bootstrap-key-stdin",
470
+ "--endpoint",
471
+ "--env",
472
+ "--output",
473
+ "--tenant-id",
474
+ "--tenant-name",
475
+ "--yes"
476
+ ]
477
+ },
478
+ {
479
+ "path": "trace",
480
+ "options": [
481
+ "--as",
482
+ "--conv",
483
+ "--env",
484
+ "--events",
485
+ "--limit",
486
+ "--llm-calls",
487
+ "--output",
488
+ "--profile",
489
+ "--raw",
490
+ "--span"
491
+ ]
492
+ },
493
+ {
494
+ "path": "update",
495
+ "options": [
496
+ "--as",
497
+ "--data",
498
+ "--data-file",
499
+ "--env",
500
+ "--id",
501
+ "--output"
502
+ ]
503
+ },
504
+ {
505
+ "path": "upload",
506
+ "options": [
507
+ "--as",
508
+ "--category",
509
+ "--env",
510
+ "--output"
511
+ ]
512
+ },
513
+ {
514
+ "path": "user",
515
+ "options": []
516
+ },
517
+ {
518
+ "path": "user reset-password",
519
+ "options": [
520
+ "--as",
521
+ "--env",
522
+ "--id",
523
+ "--no-force-change",
524
+ "--output",
525
+ "--password-stdin",
526
+ "--username"
527
+ ]
528
+ },
529
+ {
530
+ "path": "version",
531
+ "options": [
532
+ "--endpoint",
533
+ "--env",
534
+ "--output"
535
+ ]
536
+ },
537
+ {
538
+ "path": "workspace",
539
+ "options": []
540
+ },
541
+ {
542
+ "path": "workspace active",
543
+ "options": [
544
+ "--as",
545
+ "--dir",
546
+ "--env",
547
+ "--output",
548
+ "--profile"
549
+ ]
550
+ },
551
+ {
552
+ "path": "workspace add",
553
+ "options": []
554
+ },
555
+ {
556
+ "path": "workspace add mini",
557
+ "options": [
558
+ "--as",
559
+ "--defaults",
560
+ "--dir",
561
+ "--env",
562
+ "--fields",
563
+ "--force",
564
+ "--model",
565
+ "--name",
566
+ "--output",
567
+ "--profile",
568
+ "--scopes",
569
+ "--surface",
570
+ "--template",
571
+ "--tenant"
572
+ ]
573
+ },
574
+ {
575
+ "path": "workspace bind",
576
+ "options": [
577
+ "--as",
578
+ "--dir",
579
+ "--endpoint",
580
+ "--env",
581
+ "--force",
582
+ "--output",
583
+ "--profile",
584
+ "--tenant"
585
+ ]
586
+ },
587
+ {
588
+ "path": "workspace create",
589
+ "options": [
590
+ "--activate",
591
+ "--as",
592
+ "--description",
593
+ "--dir",
594
+ "--env",
595
+ "--force",
596
+ "--output",
597
+ "--profile"
598
+ ]
599
+ },
600
+ {
601
+ "path": "workspace list",
602
+ "options": [
603
+ "--as",
604
+ "--env",
605
+ "--keyword",
606
+ "--limit",
607
+ "--output",
608
+ "--profile"
609
+ ]
610
+ },
611
+ {
612
+ "path": "workspace preview",
613
+ "options": [
614
+ "--dir",
615
+ "--frontend",
616
+ "--output",
617
+ "--surface"
618
+ ]
619
+ },
620
+ {
621
+ "path": "workspace pull",
622
+ "options": [
623
+ "--as",
624
+ "--dir",
625
+ "--env",
626
+ "--force",
627
+ "--output",
628
+ "--profile",
629
+ "--workspace"
630
+ ]
631
+ },
632
+ {
633
+ "path": "workspace push",
634
+ "options": [
635
+ "--as",
636
+ "--dir",
637
+ "--dry-run",
638
+ "--env",
639
+ "--output",
640
+ "--profile"
641
+ ]
642
+ },
643
+ {
644
+ "path": "workspace status",
645
+ "options": [
646
+ "--dir",
647
+ "--output"
648
+ ]
649
+ },
650
+ {
651
+ "path": "workspace validate",
652
+ "options": [
653
+ "--dir",
654
+ "--output"
655
+ ]
656
+ },
657
+ {
658
+ "path": "workspace verify",
659
+ "options": [
660
+ "--as",
661
+ "--dir",
662
+ "--env",
663
+ "--frontend",
664
+ "--output",
665
+ "--profile",
666
+ "--smoke",
667
+ "--surface"
668
+ ]
669
+ }
670
+ ],
671
+ "skills": [
672
+ {
673
+ "id": "hcm-delivery-doctor",
674
+ "title": "现场探活:四条锚点",
675
+ "description": "到客户现场敲的第一条命令。连不上、身份不对、没权限、站错层——这四件事分开问,不要合成一句「环境有问题」。",
676
+ "category": "cli-operations",
677
+ "stages": [
678
+ "baseline"
679
+ ],
680
+ "actionSurface": "cli",
681
+ "requires": [],
682
+ "bytes": 2169,
683
+ "files": [
684
+ {
685
+ "path": "SKILL.md",
686
+ "bytes": 2169,
687
+ "sha256": "6339629ad101b6391b657985f92b2e27f28d5df0b06669aa9e83dd56b42bcc3c"
688
+ }
689
+ ]
690
+ }
691
+ ]
692
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hcmai/cli",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
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",
@@ -33,11 +33,11 @@
33
33
  "node": ">=22.0.0"
34
34
  },
35
35
  "scripts": {
36
- "build": "tsup",
36
+ "build": "tsup && node ../../scripts/release/copy-bundled-skills.mjs",
37
37
  "test": "vitest run"
38
38
  },
39
39
  "dependencies": {
40
- "@hcmai/sdk": "0.3.4",
40
+ "@hcmai/sdk": "0.3.5",
41
41
  "axios": "^1.6.0",
42
42
  "commander": "^12.0.0",
43
43
  "ink": "^7.0.5",