@coderule/mcp 1.6.1 → 1.6.3
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 +100 -5
- package/dist/mcp-cli.cjs.map +1 -1
- package/dist/mcp-cli.js +100 -5
- package/dist/mcp-cli.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -834,6 +834,9 @@ var Hasher = class {
|
|
|
834
834
|
await this.worker.terminate();
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
+
async yieldToEventLoop() {
|
|
838
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
839
|
+
}
|
|
837
840
|
resolveAbsolutePath(record) {
|
|
838
841
|
if (path.isAbsolute(record.display_path)) {
|
|
839
842
|
return record.display_path;
|
|
@@ -904,6 +907,9 @@ var Hasher = class {
|
|
|
904
907
|
const absPath = this.resolveAbsolutePath(record);
|
|
905
908
|
const exists = await this.ensureExists(absPath, record);
|
|
906
909
|
if (!exists) {
|
|
910
|
+
if (this.inlineMode) {
|
|
911
|
+
await this.yieldToEventLoop();
|
|
912
|
+
}
|
|
907
913
|
continue;
|
|
908
914
|
}
|
|
909
915
|
try {
|
|
@@ -928,6 +934,9 @@ var Hasher = class {
|
|
|
928
934
|
failures.push(record.id);
|
|
929
935
|
}
|
|
930
936
|
}
|
|
937
|
+
if (this.inlineMode) {
|
|
938
|
+
await this.yieldToEventLoop();
|
|
939
|
+
}
|
|
931
940
|
}
|
|
932
941
|
if (successes.length) {
|
|
933
942
|
this.log.debug({ count: successes.length }, "Hashing succeeded");
|