@velvetmonkey/flywheel-mcp 1.27.11 → 1.27.12
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/index.js +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5007,6 +5007,7 @@ var EventQueue = class {
|
|
|
5007
5007
|
}
|
|
5008
5008
|
pending.events.push(event);
|
|
5009
5009
|
pending.lastEvent = now;
|
|
5010
|
+
console.error(`[flywheel] QUEUE: pushed ${type} for ${path12}, pending=${this.pending.size}`);
|
|
5010
5011
|
if (pending.timer) {
|
|
5011
5012
|
clearTimeout(pending.timer);
|
|
5012
5013
|
}
|
|
@@ -5035,6 +5036,7 @@ var EventQueue = class {
|
|
|
5035
5036
|
flushPath(path12) {
|
|
5036
5037
|
const pending = this.pending.get(path12);
|
|
5037
5038
|
if (!pending || pending.events.length === 0) return;
|
|
5039
|
+
console.error(`[flywheel] QUEUE: flushing ${path12}, events=${pending.events.length}`);
|
|
5038
5040
|
if (pending.timer) {
|
|
5039
5041
|
clearTimeout(pending.timer);
|
|
5040
5042
|
pending.timer = null;
|
|
@@ -5208,6 +5210,7 @@ function createVaultWatcher(options) {
|
|
|
5208
5210
|
return;
|
|
5209
5211
|
}
|
|
5210
5212
|
console.error(`[flywheel] Starting file watcher (debounce: ${config.debounceMs}ms, flush: ${config.flushMs}ms)`);
|
|
5213
|
+
console.error(`[flywheel] Chokidar options: usePolling=${config.usePolling}, interval=${config.pollInterval}, vaultPath=${vaultPath2}`);
|
|
5211
5214
|
watcher = chokidar.watch(vaultPath2, {
|
|
5212
5215
|
ignored: createIgnoreFunction(vaultPath2),
|
|
5213
5216
|
persistent: true,
|
|
@@ -5220,18 +5223,30 @@ function createVaultWatcher(options) {
|
|
|
5220
5223
|
interval: config.usePolling ? config.pollInterval : void 0
|
|
5221
5224
|
});
|
|
5222
5225
|
watcher.on("add", (path12) => {
|
|
5226
|
+
console.error(`[flywheel] RAW EVENT: add ${path12}`);
|
|
5223
5227
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5228
|
+
console.error(`[flywheel] ACCEPTED: add ${path12}`);
|
|
5224
5229
|
eventQueue.push("add", path12);
|
|
5230
|
+
} else {
|
|
5231
|
+
console.error(`[flywheel] FILTERED: add ${path12}`);
|
|
5225
5232
|
}
|
|
5226
5233
|
});
|
|
5227
5234
|
watcher.on("change", (path12) => {
|
|
5235
|
+
console.error(`[flywheel] RAW EVENT: change ${path12}`);
|
|
5228
5236
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5237
|
+
console.error(`[flywheel] ACCEPTED: change ${path12}`);
|
|
5229
5238
|
eventQueue.push("change", path12);
|
|
5239
|
+
} else {
|
|
5240
|
+
console.error(`[flywheel] FILTERED: change ${path12}`);
|
|
5230
5241
|
}
|
|
5231
5242
|
});
|
|
5232
5243
|
watcher.on("unlink", (path12) => {
|
|
5244
|
+
console.error(`[flywheel] RAW EVENT: unlink ${path12}`);
|
|
5233
5245
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5246
|
+
console.error(`[flywheel] ACCEPTED: unlink ${path12}`);
|
|
5234
5247
|
eventQueue.push("unlink", path12);
|
|
5248
|
+
} else {
|
|
5249
|
+
console.error(`[flywheel] FILTERED: unlink ${path12}`);
|
|
5235
5250
|
}
|
|
5236
5251
|
});
|
|
5237
5252
|
watcher.on("ready", () => {
|