@baishuyun/chat-backend 0.0.11 → 0.0.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @baishuyun/chat-backend
2
2
 
3
+ ## 0.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @baishuyun/coze-provider@0.0.13
9
+ - @baishuyun/types@1.0.13
10
+
11
+ ## 0.0.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+ - @baishuyun/coze-provider@0.0.12
17
+ - @baishuyun/types@1.0.12
18
+
3
19
  ## 0.0.11
4
20
 
5
21
  ### Patch Changes
@@ -7,6 +7,10 @@ module.exports = {
7
7
  autorestart: true, // 异常时自动重启(核心)
8
8
  watch: false, // 生产环境关闭文件监听(避免容器内文件变动触发重启)
9
9
  max_memory_restart: '2G', // 内存超过 1G 自动重启(防止内存泄漏)
10
+
11
+ listen_timeout: 10000,
12
+ kill_timeout: 5000,
13
+
10
14
  env: {
11
15
  // 开发环境变量
12
16
  NODE_ENV: 'development',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/chat-backend",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -22,8 +22,8 @@
22
22
  "parse-sse": "^0.1.0",
23
23
  "pino": "^10.1.0",
24
24
  "zod": "^4.1.13",
25
- "@baishuyun/coze-provider": "0.0.11",
26
- "@baishuyun/types": "1.0.11"
25
+ "@baishuyun/coze-provider": "0.0.13",
26
+ "@baishuyun/types": "1.0.13"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/config": "^3.3.5",
@@ -34,7 +34,7 @@
34
34
  "pm2": "^6.0.14",
35
35
  "tsx": "^4.7.1",
36
36
  "typescript": "^5.8.3",
37
- "@baishuyun/typescript-config": "0.0.11"
37
+ "@baishuyun/typescript-config": "0.0.13"
38
38
  },
39
39
  "scripts": {
40
40
  "dev": "cross-env NODE_ENV=development tsx watch src/index.ts",
package/src/app/main.ts CHANGED
@@ -13,7 +13,12 @@ import { createReportRouter } from '../routes/report/report.route.js';
13
13
  app.route('web/api/form', createFormRouter());
14
14
  app.route('web/api/report', createReportRouter());
15
15
 
16
- // add test route
17
- app.get('web/api/test', (c) => {
18
- return c.json({ message: 'Test route is working!' });
16
+ // 基础健康检查
17
+ app.get('/web/api/health', (c) => {
18
+ return c.json({
19
+ status: 'ok',
20
+ timestamp: new Date().toISOString(),
21
+ uptime: process.uptime(),
22
+ service: 'hono-app',
23
+ });
19
24
  });