@coderule/mcp 1.6.1 → 1.6.2
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/dist/cli.cjs +9 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +9 -0
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/mcp-cli.cjs +9 -0
- package/dist/mcp-cli.cjs.map +1 -1
- package/dist/mcp-cli.js +9 -0
- package/dist/mcp-cli.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp-cli.cjs
CHANGED
|
@@ -852,6 +852,9 @@ var Hasher = class {
|
|
|
852
852
|
await this.worker.terminate();
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
|
+
async yieldToEventLoop() {
|
|
856
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
857
|
+
}
|
|
855
858
|
resolveAbsolutePath(record) {
|
|
856
859
|
if (path__default.default.isAbsolute(record.display_path)) {
|
|
857
860
|
return record.display_path;
|
|
@@ -922,6 +925,9 @@ var Hasher = class {
|
|
|
922
925
|
const absPath = this.resolveAbsolutePath(record);
|
|
923
926
|
const exists = await this.ensureExists(absPath, record);
|
|
924
927
|
if (!exists) {
|
|
928
|
+
if (this.inlineMode) {
|
|
929
|
+
await this.yieldToEventLoop();
|
|
930
|
+
}
|
|
925
931
|
continue;
|
|
926
932
|
}
|
|
927
933
|
try {
|
|
@@ -946,6 +952,9 @@ var Hasher = class {
|
|
|
946
952
|
failures.push(record.id);
|
|
947
953
|
}
|
|
948
954
|
}
|
|
955
|
+
if (this.inlineMode) {
|
|
956
|
+
await this.yieldToEventLoop();
|
|
957
|
+
}
|
|
949
958
|
}
|
|
950
959
|
if (successes.length) {
|
|
951
960
|
this.log.debug({ count: successes.length }, "Hashing succeeded");
|