cc-viewer 1.4.23 → 1.4.24
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 +1 -1
- package/server.js +4 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -1285,7 +1285,7 @@ async function setupTerminalWebSocket(httpServer) {
|
|
|
1285
1285
|
try {
|
|
1286
1286
|
const { WebSocketServer } = await import('ws');
|
|
1287
1287
|
const { writeToPty, resizePty, onPtyData, onPtyExit, getPtyState, getOutputBuffer, getCurrentWorkspace } = await import('./pty-manager.js');
|
|
1288
|
-
const { default: chokidar } = await import('chokidar');
|
|
1288
|
+
// const { default: chokidar } = await import('chokidar');
|
|
1289
1289
|
|
|
1290
1290
|
const wss = new WebSocketServer({ noServer: true });
|
|
1291
1291
|
|
|
@@ -1308,7 +1308,8 @@ async function setupTerminalWebSocket(httpServer) {
|
|
|
1308
1308
|
return null;
|
|
1309
1309
|
};
|
|
1310
1310
|
|
|
1311
|
-
//
|
|
1311
|
+
// 文件监控器:监控工作区目录变更(暂时禁用)
|
|
1312
|
+
/*
|
|
1312
1313
|
let fileWatcher = null;
|
|
1313
1314
|
let fileWatchDebounceTimer = null;
|
|
1314
1315
|
let currentWatchPath = null;
|
|
@@ -1439,6 +1440,7 @@ async function setupTerminalWebSocket(httpServer) {
|
|
|
1439
1440
|
stopFileWatcher();
|
|
1440
1441
|
return originalClose.call(this);
|
|
1441
1442
|
};
|
|
1443
|
+
*/
|
|
1442
1444
|
|
|
1443
1445
|
httpServer.on('upgrade', (req, socket, head) => {
|
|
1444
1446
|
const pathname = new URL(req.url, `http://${req.headers.host}`).pathname;
|