@floomhq/floom-mcp-sync 1.0.29 → 1.0.31
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/auto-sync.js +3 -2
- package/dist/lib/manifest.js +10 -0
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/auto-sync.js
CHANGED
|
@@ -116,7 +116,7 @@ const GENERATED_PACKAGE_DIRS = new Set([
|
|
|
116
116
|
const GENERATED_PACKAGE_FILES = new Set([".DS_Store"]);
|
|
117
117
|
const GENERATED_PACKAGE_FILE_SUFFIXES = [".icns", ".log", ".mov", ".mp3", ".mp4", ".pyc", ".pyo", ".wav", ".webm"];
|
|
118
118
|
const FD_PATH_ROOT = "/proc/self/fd";
|
|
119
|
-
const PACKAGE_FILE_LIMIT =
|
|
119
|
+
const PACKAGE_FILE_LIMIT = 100;
|
|
120
120
|
const PACKAGE_TOTAL_BYTES_LIMIT = 8_000_000;
|
|
121
121
|
const PACKAGE_FILE_BYTES_LIMIT = 500_000;
|
|
122
122
|
const BASE64_RE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
|
|
@@ -536,7 +536,8 @@ async function loadSyncPayload(apiUrl, token, signal) {
|
|
|
536
536
|
const seenCursors = new Set();
|
|
537
537
|
for (let page = 0; page < 1000; page += 1) {
|
|
538
538
|
const url = new URL(`${apiUrl}/api/v1/me/skills`);
|
|
539
|
-
url.searchParams.set("limit", "
|
|
539
|
+
url.searchParams.set("limit", "10");
|
|
540
|
+
url.searchParams.set("packages", "1");
|
|
540
541
|
if (cursor)
|
|
541
542
|
url.searchParams.set("cursor", cursor);
|
|
542
543
|
const payload = await getJson(url.toString(), token, signal);
|
package/dist/lib/manifest.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { constants } from "node:fs";
|
|
2
2
|
import { lstat, mkdir, open, rename, rm, stat } from "node:fs/promises";
|
|
3
|
+
import { homedir } from "node:os";
|
|
3
4
|
import { dirname, join, relative, resolve, sep } from "node:path";
|
|
4
5
|
import { configPath } from "./paths.js";
|
|
5
6
|
const MANIFEST_VERSION = 1;
|
|
@@ -8,8 +9,17 @@ const FD_PATH_ROOT = "/proc/self/fd";
|
|
|
8
9
|
const LOCK_TIMEOUT_MS = 15_000;
|
|
9
10
|
const LOCK_STALE_MS = 5 * 60_000;
|
|
10
11
|
export function syncManifestPath() {
|
|
12
|
+
if (process.env.FLOOM_SYNC_MANIFEST_PATH)
|
|
13
|
+
return expandHome(process.env.FLOOM_SYNC_MANIFEST_PATH);
|
|
11
14
|
return join(dirname(configPath()), "sync-manifest.json");
|
|
12
15
|
}
|
|
16
|
+
function expandHome(path) {
|
|
17
|
+
if (path === "~")
|
|
18
|
+
return homedir();
|
|
19
|
+
if (path.startsWith("~/"))
|
|
20
|
+
return join(homedir(), path.slice(2));
|
|
21
|
+
return path;
|
|
22
|
+
}
|
|
13
23
|
function emptyManifest() {
|
|
14
24
|
return { version: MANIFEST_VERSION, files: {} };
|
|
15
25
|
}
|
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.30";
|
|
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"]);
|