chore: 清理残余文件

This commit is contained in:
2026-03-21 20:26:20 +08:00
parent c265de6a84
commit fd70c1ad41
957 changed files with 117441 additions and 0 deletions

22
node_modules/node-pty/src/worker/conoutSocketWorker.ts generated vendored Normal file
View File

@@ -0,0 +1,22 @@
/**
* Copyright (c) 2020, Microsoft Corporation (MIT License).
*/
import { parentPort, workerData } from 'worker_threads';
import { Socket, createServer } from 'net';
import { ConoutWorkerMessage, IWorkerData, getWorkerPipeName } from '../shared/conout';
const { conoutPipeName } = (workerData as IWorkerData);
const conoutSocket = new Socket();
conoutSocket.setEncoding('utf8');
conoutSocket.connect(conoutPipeName, () => {
const server = createServer(workerSocket => {
conoutSocket.pipe(workerSocket);
});
server.listen(getWorkerPipeName(conoutPipeName));
if (!parentPort) {
throw new Error('worker_threads parentPort is null');
}
parentPort.postMessage(ConoutWorkerMessage.READY);
});