@floomhq/floom-mcp-sync 1.0.31 → 1.0.33
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/lib/manifest.js +4 -3
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/lib/manifest.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { constants } from "node:fs";
|
|
2
2
|
import { lstat, mkdir, open, rename, rm, stat } from "node:fs/promises";
|
|
3
3
|
import { homedir } from "node:os";
|
|
4
|
-
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
4
|
+
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
5
5
|
import { configPath } from "./paths.js";
|
|
6
6
|
const MANIFEST_VERSION = 1;
|
|
7
7
|
const SLUG_RE = /^[A-Za-z0-9_-]{1,128}$/;
|
|
@@ -84,8 +84,9 @@ export async function writeSyncManifest(manifest) {
|
|
|
84
84
|
await ensureSyncManifestDir();
|
|
85
85
|
const path = syncManifestPath();
|
|
86
86
|
const dirPath = dirname(path);
|
|
87
|
+
const targetName = basename(path);
|
|
87
88
|
const dir = await open(dirPath, constants.O_RDONLY | constants.O_DIRECTORY | constants.O_NOFOLLOW);
|
|
88
|
-
const tmpBase =
|
|
89
|
+
const tmpBase = `${targetName}.${process.pid}.${Date.now()}`;
|
|
89
90
|
const body = JSON.stringify(manifest, null, 2);
|
|
90
91
|
try {
|
|
91
92
|
for (let attempt = 0; attempt < 10; attempt += 1) {
|
|
@@ -97,7 +98,7 @@ export async function writeSyncManifest(manifest) {
|
|
|
97
98
|
await handle.writeFile(body, "utf8");
|
|
98
99
|
await handle.close();
|
|
99
100
|
handle = null;
|
|
100
|
-
await rename(tmpPath, childPath(dir, dirPath,
|
|
101
|
+
await rename(tmpPath, childPath(dir, dirPath, targetName));
|
|
101
102
|
return;
|
|
102
103
|
}
|
|
103
104
|
catch (err) {
|
package/dist/server.js
CHANGED
|
@@ -5,7 +5,7 @@ import { autoSync } from "./auto-sync.js";
|
|
|
5
5
|
import { getSkill } from "./tools/get.js";
|
|
6
6
|
import { searchSkills } from "./tools/search.js";
|
|
7
7
|
import { syncStatus } from "./tools/status.js";
|
|
8
|
-
const SERVER_VERSION = "1.0.
|
|
8
|
+
const SERVER_VERSION = "1.0.33";
|
|
9
9
|
const DEFAULT_INTERVAL_MS = 60_000;
|
|
10
10
|
const MIN_INTERVAL_MS = 10_000;
|
|
11
11
|
const SEARCH_TYPES = new Set(["knowledge", "instruction", "workflow", "skill"]);
|