claude-code-inspector 0.1.2 → 0.1.4

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.
@@ -1,6 +1,5 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
4
3
  // 禁用 HMR 的自动刷新,防止 WebSocket 错误时页面重新加载
5
4
  reactStrictMode: false,
6
5
  // 开发服务器配置 - 防止页面被 unloaded
@@ -19,9 +18,9 @@ const nextConfig: NextConfig = {
19
18
  // webpack 配置
20
19
  webpack: (config, { dev, isServer }) => {
21
20
  if (dev) {
22
- // 禁用 HMR 插件
21
+ // 禁用 HMR 的自动刷新
23
22
  config.plugins = config.plugins.filter(
24
- (plugin: any) => plugin?.constructor?.name !== 'HotModuleReplacementPlugin'
23
+ (plugin) => plugin?.constructor?.name !== 'HotModuleReplacementPlugin'
25
24
  );
26
25
 
27
26
  // 禁用所有文件监听
@@ -39,7 +38,7 @@ const nextConfig: NextConfig = {
39
38
  '**/*.log',
40
39
  '**/dist/**',
41
40
  '**/build/**',
42
- '**/*.json', // 忽略 JSON 文件
41
+ '**/*.json',
43
42
  ],
44
43
  // 禁用轮询
45
44
  poll: false,
@@ -56,4 +55,4 @@ const nextConfig: NextConfig = {
56
55
  },
57
56
  };
58
57
 
59
- export default nextConfig;
58
+ module.exports = nextConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-inspector",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "cc-inspector": "./bin/cli.js"
@@ -14,7 +14,9 @@
14
14
  "components",
15
15
  "bin",
16
16
  "public",
17
- "next.config.ts",
17
+ "next.config.js",
18
+ "tsconfig.json",
19
+ "postcss.config.mjs",
18
20
  "server.ts"
19
21
  ],
20
22
  "scripts": {
@@ -27,16 +29,18 @@
27
29
  "test:watch": "vitest"
28
30
  },
29
31
  "dependencies": {
32
+ "@tailwindcss/postcss": "^4",
30
33
  "axios": "^1.13.6",
31
34
  "better-sqlite3": "^12.8.0",
32
35
  "next": "16.1.6",
33
36
  "react": "19.2.3",
34
37
  "react-dom": "19.2.3",
38
+ "tailwindcss": "^4",
39
+ "typescript": "^5",
35
40
  "uuid": "^13.0.0",
36
41
  "ws": "^8.19.0"
37
42
  },
38
43
  "devDependencies": {
39
- "@tailwindcss/postcss": "^4",
40
44
  "@types/better-sqlite3": "^7.6.13",
41
45
  "@types/node": "^20",
42
46
  "@types/react": "^19",
@@ -45,10 +49,8 @@
45
49
  "@types/ws": "^8.18.1",
46
50
  "eslint": "^9",
47
51
  "eslint-config-next": "16.1.6",
48
- "tailwindcss": "^4",
49
52
  "ts-node": "^10.9.2",
50
53
  "tsx": "^4.21.0",
51
- "typescript": "^5",
52
54
  "vitest": "^4.0.18"
53
55
  }
54
56
  }
@@ -0,0 +1,7 @@
1
+ const config = {
2
+ plugins: {
3
+ "@tailwindcss/postcss": {},
4
+ },
5
+ };
6
+
7
+ export default config;
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "noEmit": true,
9
+ "esModuleInterop": true,
10
+ "module": "esnext",
11
+ "moduleResolution": "bundler",
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "jsx": "react-jsx",
15
+ "incremental": true,
16
+ "plugins": [
17
+ {
18
+ "name": "next"
19
+ }
20
+ ],
21
+ "paths": {
22
+ "@/*": ["./*"]
23
+ }
24
+ },
25
+ "include": [
26
+ "next-env.d.ts",
27
+ "**/*.ts",
28
+ "**/*.tsx",
29
+ ".next/types/**/*.ts",
30
+ ".next/dev/types/**/*.ts",
31
+ "**/*.mts"
32
+ ],
33
+ "exclude": ["node_modules"]
34
+ }