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