@howaboua/opencode-roadmap-plugin 0.2.0 → 0.2.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.
@@ -11,12 +11,20 @@ export const readRoadmapFile = async (base) => {
11
11
  return await fs.readFile(roadmapPath(base), "utf-8");
12
12
  };
13
13
  const fsyncDir = async (dir) => {
14
- const handle = await fs.open(dir, "r");
14
+ // Directory fsync is often not supported or needed on Windows and causes EPERM
15
+ if (process.platform === "win32")
16
+ return;
15
17
  try {
16
- await handle.sync();
18
+ const handle = await fs.open(dir, "r");
19
+ try {
20
+ await handle.sync();
21
+ }
22
+ finally {
23
+ await handle.close().catch(() => { });
24
+ }
17
25
  }
18
- finally {
19
- await handle.close().catch(() => { });
26
+ catch {
27
+ // Best effort: ignore errors if we can't open/sync the directory
20
28
  }
21
29
  };
22
30
  export const writeRoadmapFile = async (base, data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@howaboua/opencode-roadmap-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Strategic roadmap planning and multi-agent coordination for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",