claude-code-inspector 0.1.2 → 0.1.3
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 +2 -2
- package/next.config.ts +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-inspector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"cc-inspector": "./bin/cli.js"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"next": "16.1.6",
|
|
33
33
|
"react": "19.2.3",
|
|
34
34
|
"react-dom": "19.2.3",
|
|
35
|
+
"typescript": "^5",
|
|
35
36
|
"uuid": "^13.0.0",
|
|
36
37
|
"ws": "^8.19.0"
|
|
37
38
|
},
|
|
@@ -48,7 +49,6 @@
|
|
|
48
49
|
"tailwindcss": "^4",
|
|
49
50
|
"ts-node": "^10.9.2",
|
|
50
51
|
"tsx": "^4.21.0",
|
|
51
|
-
"typescript": "^5",
|
|
52
52
|
"vitest": "^4.0.18"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/next.config.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from "next";
|
|
2
|
-
|
|
3
|
-
const nextConfig: NextConfig = {
|
|
4
|
-
// 禁用 HMR 的自动刷新,防止 WebSocket 错误时页面重新加载
|
|
5
|
-
reactStrictMode: false,
|
|
6
|
-
// 开发服务器配置 - 防止页面被 unloaded
|
|
7
|
-
onDemandEntries: {
|
|
8
|
-
// 页面在不活动后保持活跃的毫秒数(设置为最大值)
|
|
9
|
-
maxInactiveAge: 24 * 60 * 60 * 1000, // 24 小时
|
|
10
|
-
// 保持多少个页面活跃
|
|
11
|
-
pagesBufferLength: 10,
|
|
12
|
-
},
|
|
13
|
-
// 完全禁用 Fast Refresh
|
|
14
|
-
compiler: {
|
|
15
|
-
reactRemoveProperties: true,
|
|
16
|
-
},
|
|
17
|
-
// 空的 turbopack 配置,避免警告
|
|
18
|
-
turbopack: {},
|
|
19
|
-
// webpack 配置
|
|
20
|
-
webpack: (config, { dev, isServer }) => {
|
|
21
|
-
if (dev) {
|
|
22
|
-
// 禁用 HMR 插件
|
|
23
|
-
config.plugins = config.plugins.filter(
|
|
24
|
-
(plugin: any) => plugin?.constructor?.name !== 'HotModuleReplacementPlugin'
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
// 禁用所有文件监听
|
|
28
|
-
config.watchOptions = {
|
|
29
|
-
// 超长聚合延迟,等效于禁用
|
|
30
|
-
aggregateTimeout: 300000, // 5 分钟
|
|
31
|
-
// 忽略所有非源代码文件
|
|
32
|
-
ignored: [
|
|
33
|
-
'**/db/**',
|
|
34
|
-
'**/*.sqlite',
|
|
35
|
-
'**/*.sqlite-wal',
|
|
36
|
-
'**/*.sqlite-shm',
|
|
37
|
-
'**/node_modules/**',
|
|
38
|
-
'**/.git/**',
|
|
39
|
-
'**/*.log',
|
|
40
|
-
'**/dist/**',
|
|
41
|
-
'**/build/**',
|
|
42
|
-
'**/*.json', // 忽略 JSON 文件
|
|
43
|
-
],
|
|
44
|
-
// 禁用轮询
|
|
45
|
-
poll: false,
|
|
46
|
-
// 完全禁用跟随符号链接
|
|
47
|
-
followSymlinks: false,
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// 禁用性能监听
|
|
51
|
-
config.performance = {
|
|
52
|
-
hints: false,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
return config;
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export default nextConfig;
|