@coderule/mcp 1.6.0 → 1.6.1
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 +37 -15
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +37 -15
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +37 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +37 -15
- package/dist/index.js.map +1 -1
- package/dist/mcp-cli.cjs +19 -14
- package/dist/mcp-cli.cjs.map +1 -1
- package/dist/mcp-cli.js +19 -14
- package/dist/mcp-cli.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp-cli.js
CHANGED
|
@@ -1227,7 +1227,7 @@ async function publishSnapshot(rootPath, filesRepo, snapshotsRepo, syncClient, l
|
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
1229
|
// src/service/InitialSync.ts
|
|
1230
|
-
async function runInitialSyncPipeline(runtime) {
|
|
1230
|
+
async function runInitialSyncPipeline(runtime, options) {
|
|
1231
1231
|
const inventoryLogger = runtime.logger.child({ scope: "inventory" });
|
|
1232
1232
|
await runInventory({
|
|
1233
1233
|
rootPath: runtime.config.rootPath,
|
|
@@ -1243,19 +1243,22 @@ async function runInitialSyncPipeline(runtime) {
|
|
|
1243
1243
|
hashLogger.debug("Hasher processed batch");
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
{
|
|
1254
|
-
maxAttempts: runtime.config.maxSnapshotAttempts,
|
|
1255
|
-
uploadChunkSize: runtime.config.uploadChunkSize
|
|
1256
|
-
}
|
|
1246
|
+
const computation = computeSnapshot(runtime.filesRepo);
|
|
1247
|
+
const createdAt = Date.now();
|
|
1248
|
+
runtime.snapshotsRepo.insert(
|
|
1249
|
+
computation.snapshotHash,
|
|
1250
|
+
computation.filesCount,
|
|
1251
|
+
computation.totalSize,
|
|
1252
|
+
createdAt
|
|
1257
1253
|
);
|
|
1258
|
-
|
|
1254
|
+
runtime.outbox.enqueueSnapshot(runtime.config.rootId, 0);
|
|
1255
|
+
return {
|
|
1256
|
+
snapshotHash: computation.snapshotHash,
|
|
1257
|
+
filesCount: computation.filesCount,
|
|
1258
|
+
totalSize: computation.totalSize,
|
|
1259
|
+
status: "READY",
|
|
1260
|
+
createdAt
|
|
1261
|
+
};
|
|
1259
1262
|
}
|
|
1260
1263
|
async function createChokidarWatcher(options, usePolling) {
|
|
1261
1264
|
const log = options.logger.child({
|
|
@@ -2089,7 +2092,9 @@ async function main() {
|
|
|
2089
2092
|
runtime.logger.info("MCP server connected via stdio");
|
|
2090
2093
|
let initialCreatedAt;
|
|
2091
2094
|
try {
|
|
2092
|
-
const initial = await runInitialSyncPipeline(runtime
|
|
2095
|
+
const initial = await runInitialSyncPipeline(runtime, {
|
|
2096
|
+
blockUntilReady: false
|
|
2097
|
+
});
|
|
2093
2098
|
runtime.logger.info(
|
|
2094
2099
|
{
|
|
2095
2100
|
snapshotHash: initial.snapshotHash,
|