@h-ai/cli 0.1.0-alpha.27 → 0.1.0-alpha.29
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h-ai/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.29",
|
|
5
5
|
"description": "Hai Framework CLI for project scaffolding and code generation.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"ora": "^9.1.0",
|
|
35
35
|
"prompts": "^2.4.2",
|
|
36
36
|
"yaml": "^2.7.0",
|
|
37
|
-
"@h-ai/core": "0.1.0-alpha.
|
|
37
|
+
"@h-ai/core": "0.1.0-alpha.29"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "{{projectName}}",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.29",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "{{#if_eq appType 'admin'}}Enterprise management system built with hai Agent Framework{{/if_eq}}{{#if_eq appType 'website'}}Enterprise website built with hai Agent Framework{{/if_eq}}{{#if_eq appType 'h5'}}Mobile H5 app built with hai Agent Framework{{/if_eq}}{{#if_eq appType 'api'}}REST API service built with hai Agent Framework{{/if_eq}}{{#if_eq appType 'mobile-app'}}Mobile app built with hai Agent Framework{{/if_eq}}",
|
|
6
6
|
"keywords": ["hai", {{#unless isSvelteOnlyApp}}"sveltekit", {{/unless}}"svelte5", "{{appType}}"],
|
|
@@ -38,8 +38,15 @@ database: ${HAI_RELDB_DATABASE:./data/app.db}
|
|
|
38
38
|
# port: ${HAI_RELDB_PORT:5432}
|
|
39
39
|
# user: ${HAI_RELDB_USER:postgres}
|
|
40
40
|
# password: ${HAI_RELDB_PASSWORD:}
|
|
41
|
+
operationLog:
|
|
42
|
+
read: false # query / get / queryPage
|
|
43
|
+
write: false # DDL, execute / batch, tx.begin / tx.commit / tx.rollback
|
|
44
|
+
maxLength: 1000
|
|
45
|
+
level: debug # info | debug | trace
|
|
41
46
|
```
|
|
42
47
|
|
|
48
|
+
`operationLog` 在 reldb provider-base 的 DML 操作层统一输出日志,不要在 `reldb-main.ts`、各 raw provider 或调用方重复包装。`read` 覆盖 `query/get/queryPage`,`write` 覆盖 DDL、`execute/batch` 与 `tx.begin/commit/rollback`,`maxLength` 用于截断序列化后的 SQL 参数和批量语句,`level` 默认 `debug`。
|
|
49
|
+
|
|
43
50
|
### 2. 初始化与关闭
|
|
44
51
|
|
|
45
52
|
```typescript
|
|
@@ -43,8 +43,15 @@ root: ${HAI_STORAGE_PATH:./data/storage}
|
|
|
43
43
|
# forcePathStyle: false
|
|
44
44
|
# prefix: ''
|
|
45
45
|
# publicUrl: ''
|
|
46
|
+
operationLog:
|
|
47
|
+
read: false # file.get/head/exists, dir.list, presign.getUrl/publicUrl
|
|
48
|
+
write: false # file.put/delete/deleteMany/copy, dir.delete, presign.putUrl
|
|
49
|
+
maxLength: 1000
|
|
50
|
+
level: debug # info | debug | trace
|
|
46
51
|
```
|
|
47
52
|
|
|
53
|
+
`operationLog` 在 Local/S3 Provider 的真实 file/dir/presign 操作处输出日志,不要在 `storage-main.ts` 或调用方重复包装。文件内容不会写入日志,上传数据只记录字节长度;`maxLength` 用于截断序列化后的参数,`level` 默认 `debug`。
|
|
54
|
+
|
|
48
55
|
### 2. 初始化与关闭
|
|
49
56
|
|
|
50
57
|
```typescript
|
|
@@ -45,8 +45,15 @@ path: ./data/vecdb
|
|
|
45
45
|
# type: qdrant
|
|
46
46
|
# url: ${HAI_VECDB_QDRANT_URL:http://localhost:6333}
|
|
47
47
|
# apiKey: ${HAI_VECDB_QDRANT_API_KEY:}
|
|
48
|
+
operationLog:
|
|
49
|
+
read: false # collection.exists/info/list, vector.search/count
|
|
50
|
+
write: false # collection.create/drop, vector.insert/upsert/delete
|
|
51
|
+
maxLength: 1000
|
|
52
|
+
level: debug # info | debug | trace
|
|
48
53
|
```
|
|
49
54
|
|
|
55
|
+
`operationLog` 在集合/向量操作进入真实 Provider 前输出日志,不要在 `vecdb-main.ts` 或调用方重复包装。`maxLength` 用于截断序列化后的向量、文档和过滤条件,`level` 默认 `debug`。
|
|
56
|
+
|
|
50
57
|
### 2. 初始化与关闭
|
|
51
58
|
|
|
52
59
|
```typescript
|