@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/index.cjs
CHANGED
|
@@ -848,6 +848,9 @@ var Hasher = class {
|
|
|
848
848
|
await this.worker.terminate();
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
+
async yieldToEventLoop() {
|
|
852
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
853
|
+
}
|
|
851
854
|
resolveAbsolutePath(record) {
|
|
852
855
|
if (path__default.default.isAbsolute(record.display_path)) {
|
|
853
856
|
return record.display_path;
|
|
@@ -918,6 +921,9 @@ var Hasher = class {
|
|
|
918
921
|
const absPath = this.resolveAbsolutePath(record);
|
|
919
922
|
const exists = await this.ensureExists(absPath, record);
|
|
920
923
|
if (!exists) {
|
|
924
|
+
if (this.inlineMode) {
|
|
925
|
+
await this.yieldToEventLoop();
|
|
926
|
+
}
|
|
921
927
|
continue;
|
|
922
928
|
}
|
|
923
929
|
try {
|
|
@@ -942,6 +948,9 @@ var Hasher = class {
|
|
|
942
948
|
failures.push(record.id);
|
|
943
949
|
}
|
|
944
950
|
}
|
|
951
|
+
if (this.inlineMode) {
|
|
952
|
+
await this.yieldToEventLoop();
|
|
953
|
+
}
|
|
945
954
|
}
|
|
946
955
|
if (successes.length) {
|
|
947
956
|
this.log.debug({ count: successes.length }, "Hashing succeeded");
|