@h-ai/cli 1.0.0-beta.21 → 1.0.0-beta.23
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.en.md +13 -12
- package/README.ja.md +13 -12
- package/README.md +13 -12
- package/dist/{chunk-2ZL5ORQ2.js → chunk-P2VZ3VV6.js} +2 -14
- package/dist/chunk-P2VZ3VV6.js.map +1 -0
- package/dist/{chunk-L53P43B2.js → chunk-V7WGSBX3.js} +41 -21
- package/dist/chunk-V7WGSBX3.js.map +1 -0
- package/dist/cli-config-templates-VLXJTHCQ.js +5 -0
- package/dist/{cli-config-templates-LWMD2I6V.js.map → cli-config-templates-VLXJTHCQ.js.map} +1 -1
- package/dist/{cli-skill-templates-D6S2OQ6X.js → cli-skill-templates-JKF6E3PI.js} +3 -3
- package/dist/{cli-skill-templates-D6S2OQ6X.js.map → cli-skill-templates-JKF6E3PI.js.map} +1 -1
- package/dist/index.js +161 -244
- package/dist/index.js.map +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +14 -14
- package/templates/apps/fullstack/docs/security-configuration.md.hbs +3 -3
- package/templates/apps/fullstack/images/web/nginx.conf.hbs +3 -1
- package/templates/apps/fullstack/packages/{{projectName}}-serv/README.md.hbs +1 -1
- package/templates/apps/fullstack/packages/{{projectName}}-shared/tests/api-client.test.ts.hbs +4 -1
- package/templates/base/images/web/nginx.conf.hbs +3 -1
- package/templates/base/package.json.hbs +1 -1
- package/templates/shared/download-error/http.conf +19 -0
- package/templates/shared/download-error/server.conf +52 -0
- package/templates/skills/hai-ai/acp.md +1 -1
- package/templates/skills/hai-ai/guide.md +1 -1
- package/templates/skills/hai-ai/reference.md +1 -1
- package/templates/skills/hai-api-client/SKILL.md +2 -2
- package/templates/skills/hai-app-create/SKILL.md +2 -0
- package/templates/skills/hai-app-create/development.md +3 -3
- package/templates/skills/hai-app-create/logging.md +32 -0
- package/templates/skills/hai-app-create/project.md +1 -0
- package/templates/skills/hai-app-create/reference.md +2 -4
- package/templates/skills/hai-app-review/SKILL.md +1 -1
- package/templates/skills/hai-audit/SKILL.md +1 -1
- package/templates/skills/hai-audit/reference.md +1 -1
- package/templates/skills/hai-build/SKILL.md +1 -1
- package/templates/skills/hai-build/paths.md +1 -1
- package/templates/skills/hai-core/reference.md +2 -11
- package/templates/skills/hai-crypto/SKILL.md +1 -1
- package/templates/skills/hai-crypto/reference.md +3 -3
- package/templates/skills/hai-deploy/SKILL.md +8 -8
- package/templates/skills/hai-deploy/middleware.md +2 -2
- package/templates/skills/hai-framework-sync/SKILL.md +4 -4
- package/templates/skills/hai-iam/SKILL.md +1 -1
- package/templates/skills/hai-iam/reference.md +1 -1
- package/templates/skills/hai-kit/SKILL.md +2 -2
- package/templates/skills/hai-kit/reference.md +3 -3
- package/templates/skills/hai-reach/SKILL.md +1 -1
- package/templates/skills/hai-reldb/SKILL.md +1 -1
- package/templates/skills/hai-reldb/reference.md +2 -3
- package/templates/skills/hai-scheduler/reference.md +1 -1
- package/templates/skills/hai-serv/SKILL.md +1 -1
- package/templates/skills/hai-serv/reference.md +2 -2
- package/templates/skills/hai-storage/SKILL.md +1 -0
- package/templates/skills/hai-storage/reference.md +14 -4
- package/templates/skills/hai-vecdb/reference.md +1 -1
- package/dist/chunk-2ZL5ORQ2.js.map +0 -1
- package/dist/chunk-L53P43B2.js.map +0 -1
- package/dist/cli-config-templates-LWMD2I6V.js +0 -5
- package/templates/skills/hai-deploy/credentials.md +0 -19
|
@@ -2279,7 +2279,7 @@ var cli_config_catalog_default = [
|
|
|
2279
2279
|
name: "HAI_AUDIT_USERIDCOLUMN",
|
|
2280
2280
|
module: "audit",
|
|
2281
2281
|
path: "audit.userIdColumn",
|
|
2282
|
-
description: "\u7528\u6237\u8868\u4E3B\u952E\u5217\u540D\
|
|
2282
|
+
description: "\u7528\u4E8E\u67E5\u627E\u4E8B\u4EF6\u64CD\u4F5C\u8005\u7684\u7528\u6237\u8868\u4E3B\u952E\u5217\u540D\u3002",
|
|
2283
2283
|
value: "id",
|
|
2284
2284
|
constraint: "\u5B57\u7B26\u4E32"
|
|
2285
2285
|
},
|
|
@@ -2287,7 +2287,7 @@ var cli_config_catalog_default = [
|
|
|
2287
2287
|
name: "HAI_AUDIT_USERNAMECOLUMN",
|
|
2288
2288
|
module: "audit",
|
|
2289
2289
|
path: "audit.userNameColumn",
|
|
2290
|
-
description: "\u7528\
|
|
2290
|
+
description: "\u7528\u4E8E\u5199\u5165\u8EAB\u4EFD\u5FEB\u7167\u7684\u7528\u6237\u540D\u5217\u540D\u3002",
|
|
2291
2291
|
value: "username",
|
|
2292
2292
|
constraint: "\u5B57\u7B26\u4E32"
|
|
2293
2293
|
},
|
|
@@ -2295,7 +2295,7 @@ var cli_config_catalog_default = [
|
|
|
2295
2295
|
name: "HAI_AUDIT_USERTABLE",
|
|
2296
2296
|
module: "audit",
|
|
2297
2297
|
path: "audit.userTable",
|
|
2298
|
-
description: "\
|
|
2298
|
+
description: "\u4E8B\u4EF6\u5199\u5165\u65F6\u7528\u4E8E\u6355\u83B7\u7528\u6237\u540D\u7684\u7528\u6237\u8868\u540D\u3002",
|
|
2299
2299
|
value: "hai_iam_users",
|
|
2300
2300
|
constraint: "\u5B57\u7B26\u4E32"
|
|
2301
2301
|
},
|
|
@@ -7020,26 +7020,42 @@ var cli_config_catalog_default = [
|
|
|
7020
7020
|
constraint: "true | false"
|
|
7021
7021
|
},
|
|
7022
7022
|
{
|
|
7023
|
-
name: "
|
|
7023
|
+
name: "HAI_STORAGE_MULTIPART",
|
|
7024
7024
|
module: "storage",
|
|
7025
|
-
path: "storage.
|
|
7026
|
-
description: "
|
|
7027
|
-
value: "",
|
|
7025
|
+
path: "storage.multipart",
|
|
7026
|
+
description: "S3 \u670D\u52A1\u7AEF\u6D41\u5F0F\u4E0A\u4F20\u7684\u5206\u7247\u8BBE\u7F6E\u3002",
|
|
7027
|
+
value: "{}",
|
|
7028
7028
|
constraint: "JSON \u5BF9\u8C61\uFF1B\u6574\u4F53\u8986\u76D6\u65F6\u66FF\u6362\u8BE5\u8282\u70B9"
|
|
7029
7029
|
},
|
|
7030
7030
|
{
|
|
7031
|
-
name: "
|
|
7031
|
+
name: "HAI_STORAGE_MULTIPART_PARTSIZEBYTES",
|
|
7032
7032
|
module: "storage",
|
|
7033
|
-
path: "storage.
|
|
7034
|
-
description: "\
|
|
7035
|
-
value: "
|
|
7036
|
-
constraint: "\
|
|
7033
|
+
path: "storage.multipart.partSizeBytes",
|
|
7034
|
+
description: "\u6BCF\u7247\u5B57\u8282\u6570\uFF0C\u9ED8\u8BA4 5 MiB\uFF0C\u8303\u56F4 5 MiB \u81F3 5 GiB\u3002",
|
|
7035
|
+
value: "5242880",
|
|
7036
|
+
constraint: "\u6574\u6570\uFF1B>= 5242880\uFF1B<= 5368709120"
|
|
7037
|
+
},
|
|
7038
|
+
{
|
|
7039
|
+
name: "HAI_STORAGE_MULTIPART_QUEUESIZE",
|
|
7040
|
+
module: "storage",
|
|
7041
|
+
path: "storage.multipart.queueSize",
|
|
7042
|
+
description: "\u5355\u6B21\u4E0A\u4F20\u7684\u6700\u5927\u5E76\u53D1\u7247\u6570\uFF0C\u9ED8\u8BA4 2\u3002",
|
|
7043
|
+
value: "2",
|
|
7044
|
+
constraint: "\u6574\u6570\uFF1B>= 1\uFF1B<= 9007199254740991"
|
|
7045
|
+
},
|
|
7046
|
+
{
|
|
7047
|
+
name: "HAI_STORAGE_OPERATIONLOG",
|
|
7048
|
+
module: "storage",
|
|
7049
|
+
path: "storage.operationLog",
|
|
7050
|
+
description: "\u6587\u4EF6\u3001\u76EE\u5F55\u548C\u7B7E\u540D\u64CD\u4F5C\u7684 debug \u65E5\u5FD7\u5F00\u5173\u4E0E\u5B89\u5168\u6458\u8981\u957F\u5EA6\u3002",
|
|
7051
|
+
value: "{}",
|
|
7052
|
+
constraint: "JSON \u5BF9\u8C61\uFF1B\u6574\u4F53\u8986\u76D6\u65F6\u66FF\u6362\u8BE5\u8282\u70B9"
|
|
7037
7053
|
},
|
|
7038
7054
|
{
|
|
7039
7055
|
name: "HAI_STORAGE_OPERATIONLOG_MAXLENGTH",
|
|
7040
7056
|
module: "storage",
|
|
7041
7057
|
path: "storage.operationLog.maxLength",
|
|
7042
|
-
description: "\
|
|
7058
|
+
description: "\u8BCA\u65AD\u6458\u8981\u7684\u5B57\u7B26\u4E0A\u9650\uFF0C0 \u7701\u7565\u6458\u8981\u3002",
|
|
7043
7059
|
value: "1000",
|
|
7044
7060
|
constraint: "\u6574\u6570\uFF1B>= 0\uFF1B<= 9007199254740991"
|
|
7045
7061
|
},
|
|
@@ -7047,7 +7063,7 @@ var cli_config_catalog_default = [
|
|
|
7047
7063
|
name: "HAI_STORAGE_OPERATIONLOG_READ",
|
|
7048
7064
|
module: "storage",
|
|
7049
7065
|
path: "storage.operationLog.read",
|
|
7050
|
-
description: "\
|
|
7066
|
+
description: "\u4EE5 debug \u8BB0\u5F55\u8BFB\u53D6\u64CD\u4F5C\uFF0C\u9ED8\u8BA4\u5173\u95ED\u3002",
|
|
7051
7067
|
value: "false",
|
|
7052
7068
|
constraint: "true | false"
|
|
7053
7069
|
},
|
|
@@ -7055,8 +7071,8 @@ var cli_config_catalog_default = [
|
|
|
7055
7071
|
name: "HAI_STORAGE_OPERATIONLOG_WRITE",
|
|
7056
7072
|
module: "storage",
|
|
7057
7073
|
path: "storage.operationLog.write",
|
|
7058
|
-
description: "\
|
|
7059
|
-
value: "
|
|
7074
|
+
description: "\u4EE5 debug \u8BB0\u5F55\u5199\u5165\u64CD\u4F5C\uFF0C\u9ED8\u8BA4\u5F00\u542F\u3002",
|
|
7075
|
+
value: "true",
|
|
7060
7076
|
constraint: "true | false"
|
|
7061
7077
|
},
|
|
7062
7078
|
{
|
|
@@ -7199,7 +7215,7 @@ var cli_config_catalog_default = [
|
|
|
7199
7215
|
name: "HAI_VECDB_OPERATIONLOG_MAXLENGTH",
|
|
7200
7216
|
module: "vecdb",
|
|
7201
7217
|
path: "vecdb.operationLog.maxLength",
|
|
7202
|
-
description: "\
|
|
7218
|
+
description: "\u5B89\u5168\u6458\u8981\u7684\u6700\u5927\u5B57\u7B26\u6570\uFF0C0 \u7701\u7565\u6458\u8981\u3002",
|
|
7203
7219
|
value: "1000",
|
|
7204
7220
|
constraint: "\u6574\u6570\uFF1B>= 0\uFF1B<= 9007199254740991"
|
|
7205
7221
|
},
|
|
@@ -8049,6 +8065,10 @@ accessKeyId: ''
|
|
|
8049
8065
|
secretAccessKey: ''
|
|
8050
8066
|
endpoint: \${HAI_STORAGE_ENDPOINT:https://s3.amazonaws.com}
|
|
8051
8067
|
forcePathStyle: false
|
|
8068
|
+
# S3 \u670D\u52A1\u7AEF\u6D41\u5F0F\u4E0A\u4F20\u5206\u7247\u5927\u5C0F\uFF08\u5B57\u8282\uFF09\u548C\u5355\u6B21\u4E0A\u4F20\u5E76\u53D1\u6570\u3002
|
|
8069
|
+
multipart:
|
|
8070
|
+
partSizeBytes: \${HAI_STORAGE_MULTIPART_PARTSIZEBYTES:5242880}
|
|
8071
|
+
queueSize: \${HAI_STORAGE_MULTIPART_QUEUESIZE:2}
|
|
8052
8072
|
# \u53EF\u76F4\u63A5\u8BBE\u7F6E HAI_STORAGE_PREFIX=my-app/uploads/\uFF1B\u4FDD\u5B58 report.pdf \u540E\u7684\u952E\u540D\u4E3A my-app/uploads/report.pdf\u3002
|
|
8053
8073
|
# prefix: "\${HAI_STORAGE_PREFIX:}"
|
|
8054
8074
|
# publicEndpoint: https://app.example.com # \u6D4F\u89C8\u5668\u4E0B\u8F7D\u5165\u53E3\uFF0C\u53EF\u5E26 /files \u7B49\u4EE3\u7406\u76EE\u5F55\uFF1B\u4E0D\u542B\u6876\u540D
|
|
@@ -8061,11 +8081,11 @@ ${s3}
|
|
|
8061
8081
|
# type \u9009\u62E9 Provider\uFF1B\u672A\u9009\u5206\u652F\u5B57\u6BB5\u7531\u6A21\u5757 Schema \u5FFD\u7565\u3002
|
|
8062
8082
|
# S3 \u517C\u5BB9\u670D\u52A1\u7531\u73AF\u5883\u6CE8\u5165 endpoint / forcePathStyle\uFF1B\u9ED8\u8BA4\u7AEF\u70B9\u7528\u4E8E us-east-1\u3002
|
|
8063
8083
|
|
|
8084
|
+
# \u6B63\u5E38\u64CD\u4F5C\u8BB0\u5F55\u4E3A debug\uFF0C\u4E1A\u52A1\u64CD\u4F5C\u5931\u8D25\u8BB0\u5F55\u4E3A warn\uFF0C\u521D\u59CB\u5316\u548C\u8FDE\u63A5\u5931\u8D25\u8BB0\u5F55\u4E3A error\u3002
|
|
8064
8085
|
# operationLog:
|
|
8065
8086
|
# read: false
|
|
8066
|
-
# write:
|
|
8087
|
+
# write: true
|
|
8067
8088
|
# maxLength: 1000
|
|
8068
|
-
# level: debug # trace | debug | info
|
|
8069
8089
|
`;
|
|
8070
8090
|
}
|
|
8071
8091
|
function generateAiConfig(cfg) {
|
|
@@ -8702,5 +8722,5 @@ envAllowlist:
|
|
|
8702
8722
|
}
|
|
8703
8723
|
|
|
8704
8724
|
export { documentConfig, generateConfigFile, generateEnvExample, generateProductionEnvironment, moduleEnvironmentVariables, parameterizeConfig, renderEnvironment, runtimeEnvironmentVariables };
|
|
8705
|
-
//# sourceMappingURL=chunk-
|
|
8706
|
-
//# sourceMappingURL=chunk-
|
|
8725
|
+
//# sourceMappingURL=chunk-V7WGSBX3.js.map
|
|
8726
|
+
//# sourceMappingURL=chunk-V7WGSBX3.js.map
|