@velvetmonkey/flywheel-mcp 1.27.11 → 1.27.13
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 +32 -0
- package/package.json +1 -1
- package/dist/CLAUDE.md +0 -11
package/dist/index.js
CHANGED
|
@@ -4954,6 +4954,23 @@ function shouldWatch(filePath, vaultPath2) {
|
|
|
4954
4954
|
}
|
|
4955
4955
|
function createIgnoreFunction(vaultPath2) {
|
|
4956
4956
|
return (filePath) => {
|
|
4957
|
+
const relativePath = getRelativePath(vaultPath2, filePath);
|
|
4958
|
+
const segments = relativePath.split("/").filter((s) => s.length > 0);
|
|
4959
|
+
if (segments.length === 0) {
|
|
4960
|
+
return false;
|
|
4961
|
+
}
|
|
4962
|
+
for (const segment of segments) {
|
|
4963
|
+
if (isIgnoredDirectory(segment)) {
|
|
4964
|
+
return true;
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
const lastSegment = segments[segments.length - 1];
|
|
4968
|
+
if (!lastSegment.toLowerCase().endsWith(".md")) {
|
|
4969
|
+
if (lastSegment.startsWith(".")) {
|
|
4970
|
+
return true;
|
|
4971
|
+
}
|
|
4972
|
+
return false;
|
|
4973
|
+
}
|
|
4957
4974
|
return !shouldWatch(filePath, vaultPath2);
|
|
4958
4975
|
};
|
|
4959
4976
|
}
|
|
@@ -5007,6 +5024,7 @@ var EventQueue = class {
|
|
|
5007
5024
|
}
|
|
5008
5025
|
pending.events.push(event);
|
|
5009
5026
|
pending.lastEvent = now;
|
|
5027
|
+
console.error(`[flywheel] QUEUE: pushed ${type} for ${path12}, pending=${this.pending.size}`);
|
|
5010
5028
|
if (pending.timer) {
|
|
5011
5029
|
clearTimeout(pending.timer);
|
|
5012
5030
|
}
|
|
@@ -5035,6 +5053,7 @@ var EventQueue = class {
|
|
|
5035
5053
|
flushPath(path12) {
|
|
5036
5054
|
const pending = this.pending.get(path12);
|
|
5037
5055
|
if (!pending || pending.events.length === 0) return;
|
|
5056
|
+
console.error(`[flywheel] QUEUE: flushing ${path12}, events=${pending.events.length}`);
|
|
5038
5057
|
if (pending.timer) {
|
|
5039
5058
|
clearTimeout(pending.timer);
|
|
5040
5059
|
pending.timer = null;
|
|
@@ -5208,6 +5227,7 @@ function createVaultWatcher(options) {
|
|
|
5208
5227
|
return;
|
|
5209
5228
|
}
|
|
5210
5229
|
console.error(`[flywheel] Starting file watcher (debounce: ${config.debounceMs}ms, flush: ${config.flushMs}ms)`);
|
|
5230
|
+
console.error(`[flywheel] Chokidar options: usePolling=${config.usePolling}, interval=${config.pollInterval}, vaultPath=${vaultPath2}`);
|
|
5211
5231
|
watcher = chokidar.watch(vaultPath2, {
|
|
5212
5232
|
ignored: createIgnoreFunction(vaultPath2),
|
|
5213
5233
|
persistent: true,
|
|
@@ -5220,18 +5240,30 @@ function createVaultWatcher(options) {
|
|
|
5220
5240
|
interval: config.usePolling ? config.pollInterval : void 0
|
|
5221
5241
|
});
|
|
5222
5242
|
watcher.on("add", (path12) => {
|
|
5243
|
+
console.error(`[flywheel] RAW EVENT: add ${path12}`);
|
|
5223
5244
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5245
|
+
console.error(`[flywheel] ACCEPTED: add ${path12}`);
|
|
5224
5246
|
eventQueue.push("add", path12);
|
|
5247
|
+
} else {
|
|
5248
|
+
console.error(`[flywheel] FILTERED: add ${path12}`);
|
|
5225
5249
|
}
|
|
5226
5250
|
});
|
|
5227
5251
|
watcher.on("change", (path12) => {
|
|
5252
|
+
console.error(`[flywheel] RAW EVENT: change ${path12}`);
|
|
5228
5253
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5254
|
+
console.error(`[flywheel] ACCEPTED: change ${path12}`);
|
|
5229
5255
|
eventQueue.push("change", path12);
|
|
5256
|
+
} else {
|
|
5257
|
+
console.error(`[flywheel] FILTERED: change ${path12}`);
|
|
5230
5258
|
}
|
|
5231
5259
|
});
|
|
5232
5260
|
watcher.on("unlink", (path12) => {
|
|
5261
|
+
console.error(`[flywheel] RAW EVENT: unlink ${path12}`);
|
|
5233
5262
|
if (shouldWatch(path12, vaultPath2)) {
|
|
5263
|
+
console.error(`[flywheel] ACCEPTED: unlink ${path12}`);
|
|
5234
5264
|
eventQueue.push("unlink", path12);
|
|
5265
|
+
} else {
|
|
5266
|
+
console.error(`[flywheel] FILTERED: unlink ${path12}`);
|
|
5235
5267
|
}
|
|
5236
5268
|
});
|
|
5237
5269
|
watcher.on("ready", () => {
|
package/package.json
CHANGED
package/dist/CLAUDE.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<claude-mem-context>
|
|
2
|
-
# Recent Activity
|
|
3
|
-
|
|
4
|
-
<!-- This section is auto-generated by claude-mem. Edit content outside the tags. -->
|
|
5
|
-
|
|
6
|
-
### Jan 29, 2026
|
|
7
|
-
|
|
8
|
-
| ID | Time | T | Title | Read |
|
|
9
|
-
|----|------|---|-------|------|
|
|
10
|
-
| #842 | 9:04 PM | ✅ | Flywheel build verification successful after license change | ~317 |
|
|
11
|
-
</claude-mem-context>
|