@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.cjs
CHANGED
|
@@ -1242,7 +1242,7 @@ async function publishSnapshot(rootPath, filesRepo, snapshotsRepo, syncClient, l
|
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
1244
|
// src/service/InitialSync.ts
|
|
1245
|
-
async function runInitialSyncPipeline(runtime) {
|
|
1245
|
+
async function runInitialSyncPipeline(runtime, options) {
|
|
1246
1246
|
const inventoryLogger = runtime.logger.child({ scope: "inventory" });
|
|
1247
1247
|
await runInventory({
|
|
1248
1248
|
rootPath: runtime.config.rootPath,
|
|
@@ -1258,19 +1258,22 @@ async function runInitialSyncPipeline(runtime) {
|
|
|
1258
1258
|
hashLogger.debug("Hasher processed batch");
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
const
|
|
1262
|
-
const
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
{
|
|
1269
|
-
maxAttempts: runtime.config.maxSnapshotAttempts,
|
|
1270
|
-
uploadChunkSize: runtime.config.uploadChunkSize
|
|
1271
|
-
}
|
|
1261
|
+
const computation = computeSnapshot(runtime.filesRepo);
|
|
1262
|
+
const createdAt = Date.now();
|
|
1263
|
+
runtime.snapshotsRepo.insert(
|
|
1264
|
+
computation.snapshotHash,
|
|
1265
|
+
computation.filesCount,
|
|
1266
|
+
computation.totalSize,
|
|
1267
|
+
createdAt
|
|
1272
1268
|
);
|
|
1273
|
-
|
|
1269
|
+
runtime.outbox.enqueueSnapshot(runtime.config.rootId, 0);
|
|
1270
|
+
return {
|
|
1271
|
+
snapshotHash: computation.snapshotHash,
|
|
1272
|
+
filesCount: computation.filesCount,
|
|
1273
|
+
totalSize: computation.totalSize,
|
|
1274
|
+
status: "READY",
|
|
1275
|
+
createdAt
|
|
1276
|
+
};
|
|
1274
1277
|
}
|
|
1275
1278
|
async function createChokidarWatcher(options, usePolling) {
|
|
1276
1279
|
const log = options.logger.child({
|
|
@@ -2104,7 +2107,9 @@ async function main() {
|
|
|
2104
2107
|
runtime.logger.info("MCP server connected via stdio");
|
|
2105
2108
|
let initialCreatedAt;
|
|
2106
2109
|
try {
|
|
2107
|
-
const initial = await runInitialSyncPipeline(runtime
|
|
2110
|
+
const initial = await runInitialSyncPipeline(runtime, {
|
|
2111
|
+
blockUntilReady: false
|
|
2112
|
+
});
|
|
2108
2113
|
runtime.logger.info(
|
|
2109
2114
|
{
|
|
2110
2115
|
snapshotHash: initial.snapshotHash,
|