@hcmai/sdk 0.32.0 → 0.33.1
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/README.md +4 -2
- package/dist/index.d.ts +11 -1
- package/dist/index.js +685 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -13,8 +13,10 @@ npm install @hcmai/sdk
|
|
|
13
13
|
import { HcmClient } from '@hcmai/sdk';
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
Node.js 22 or newer is required. Source and
|
|
17
|
-
[
|
|
16
|
+
Node.js 22 or newer is required. Source, merge requests, CI, and version tags are
|
|
17
|
+
maintained in [GitLab](https://git.hcmcloud.io/hcm/hcm_nx_cli). Public npm
|
|
18
|
+
installation does not require GitLab access. The team GitLab NPM registry receives
|
|
19
|
+
the same release tarballs.
|
|
18
20
|
|
|
19
21
|
## 安装包数据 fixture v1
|
|
20
22
|
|
package/dist/index.d.ts
CHANGED
|
@@ -871,6 +871,11 @@ declare enum CliErrorCode {
|
|
|
871
871
|
INVALID_ARGUMENT = "INVALID_ARGUMENT",
|
|
872
872
|
INVALID_JSON = "INVALID_JSON",
|
|
873
873
|
MISSING_FLAG = "MISSING_FLAG",
|
|
874
|
+
/**
|
|
875
|
+
* 离线安装包(`~/.config/hcm/offline.json` 标记 enabled)里,这条命令要连公司网络(Jira、CNB、npm),
|
|
876
|
+
* 不去连、直接报——免得在客户内网卡在等超时,也不返回看起来像成功的空结果。`context.nextStep` 写回外网后跑什么。
|
|
877
|
+
*/
|
|
878
|
+
OFFLINE_UNAVAILABLE = "OFFLINE_UNAVAILABLE",
|
|
874
879
|
AUTH_FAILED = "AUTH_FAILED",
|
|
875
880
|
AUTH_EXPIRED = "AUTH_EXPIRED",
|
|
876
881
|
AUTH_REFRESH_FAILED = "AUTH_REFRESH_FAILED",
|
|
@@ -906,6 +911,11 @@ declare enum CliErrorCode {
|
|
|
906
911
|
PROTOCOL_UNSUPPORTED = "PROTOCOL_UNSUPPORTED",
|
|
907
912
|
PROFILE_NOT_FOUND = "PROFILE_NOT_FOUND",
|
|
908
913
|
CONFIG_PARSE_ERROR = "CONFIG_PARSE_ERROR",
|
|
914
|
+
/**
|
|
915
|
+
* 离线安装包出包 / 安装时本机条件不满足或包本身不对:缺解压工具、组件发行包结构变了、SHA256 对不上、
|
|
916
|
+
* hcm 依赖里混进原生模块、包里的文件缺失或被改过。`context.reasonCode` 细分,`nextStep` 写怎么办。
|
|
917
|
+
*/
|
|
918
|
+
OFFLINE_KIT_ERROR = "OFFLINE_KIT_ERROR",
|
|
909
919
|
KEYCHAIN_UNAVAILABLE = "KEYCHAIN_UNAVAILABLE",
|
|
910
920
|
ENV_NOT_FOUND = "ENV_NOT_FOUND",
|
|
911
921
|
ENV_ALREADY_EXISTS = "ENV_ALREADY_EXISTS",
|
|
@@ -3896,7 +3906,7 @@ interface StorageSlotsView {
|
|
|
3896
3906
|
*/
|
|
3897
3907
|
declare function getStorageSlots(http: AxiosInstance): Promise<StorageSlotsView>;
|
|
3898
3908
|
|
|
3899
|
-
declare const META_SCHEMA_SOURCE_COMMIT = "
|
|
3909
|
+
declare const META_SCHEMA_SOURCE_COMMIT = "82a5db755a7295f2adaaa8d79f755eda22d0b278";
|
|
3900
3910
|
|
|
3901
3911
|
type MetaIssueSeverity = 'error' | 'warn';
|
|
3902
3912
|
interface MetaIssue {
|