@bytebase/dbhub 0.11.5 → 0.11.7

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebase/dbhub",
3
- "version": "0.11.5",
3
+ "version": "0.11.7",
4
4
  "description": "Universal Database MCP Server",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,6 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@azure/identity": "^4.8.0",
24
+ "@iarna/toml": "^2.2.5",
24
25
  "@modelcontextprotocol/sdk": "^1.12.1",
25
26
  "better-sqlite3": "^11.9.0",
26
27
  "dotenv": "^16.4.7",
@@ -44,16 +45,16 @@
44
45
  "@types/node": "^22.13.10",
45
46
  "@types/pg": "^8.11.11",
46
47
  "@types/ssh2": "^1.15.5",
48
+ "concurrently": "^9.2.1",
47
49
  "cross-env": "^7.0.3",
48
- "husky": "^9.0.11",
49
- "lint-staged": "^15.2.2",
50
+ "openapi-typescript": "^7.10.1",
50
51
  "prettier": "^3.5.3",
51
52
  "testcontainers": "^11.0.3",
52
53
  "ts-node": "^10.9.2",
53
54
  "tsup": "^8.4.0",
54
55
  "tsx": "^4.19.3",
55
56
  "typescript": "^5.8.2",
56
- "vitest": "^1.6.1"
57
+ "vitest": "^4.0.6"
57
58
  },
58
59
  "compilerOptions": {
59
60
  "target": "ES2020",
@@ -67,17 +68,19 @@
67
68
  "include": [
68
69
  "src/**/*"
69
70
  ],
70
- "lint-staged": {
71
- "*.{js,ts}": "vitest related --run"
72
- },
73
71
  "scripts": {
74
- "build": "tsup",
72
+ "build": "pnpm run generate:api-types && tsup && cd frontend && pnpm run build",
73
+ "build:backend": "pnpm run generate:api-types && tsup",
74
+ "build:frontend": "cd frontend && pnpm run build",
75
75
  "start": "node dist/index.js",
76
- "dev": "NODE_ENV=development tsx src/index.ts",
76
+ "dev": "concurrently --kill-others \"pnpm run dev:backend\" \"pnpm run dev:frontend\"",
77
+ "dev:backend": "NODE_ENV=development tsx src/index.ts --demo --transport=http",
78
+ "dev:frontend": "cd frontend && pnpm run dev",
77
79
  "crossdev": "cross-env NODE_ENV=development tsx src/index.ts",
80
+ "generate:api-types": "openapi-typescript src/api/openapi.yaml -o src/api/openapi.d.ts",
78
81
  "test": "vitest run",
82
+ "test:unit": "vitest run --project unit",
79
83
  "test:watch": "vitest",
80
- "test:integration": "vitest run --testNamePattern='Integration Tests'",
81
- "pre-commit": "lint-staged"
84
+ "test:integration": "vitest run --project integration"
82
85
  }
83
86
  }