@foldkit/devtools-mcp 0.13.0 → 0.13.2
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/server.js +55066 -58
- package/dist/webSocketClient.js +1 -1
- package/package.json +7 -5
package/dist/webSocketClient.js
CHANGED
|
@@ -6,7 +6,7 @@ const INITIAL_RECONNECT_DELAY = Duration.millis(500);
|
|
|
6
6
|
const MAX_RECONNECT_DELAY = Duration.seconds(30);
|
|
7
7
|
const encodeRequestFrameToJson = S.encodeUnknownSync(S.fromJsonString(RequestFrame));
|
|
8
8
|
const generateRequestId = () => `req-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
9
|
-
const reconnectSchedule = Schedule.exponential(INITIAL_RECONNECT_DELAY).pipe(Schedule.modifyDelay((
|
|
9
|
+
const reconnectSchedule = Schedule.exponential(INITIAL_RECONNECT_DELAY).pipe(Schedule.modifyDelay(({ duration }) => Effect.succeed(Duration.min(duration, MAX_RECONNECT_DELAY))));
|
|
10
10
|
const attemptOpen = (url) => Effect.callback(resume => {
|
|
11
11
|
const socket = new WebSocket(url);
|
|
12
12
|
let settled = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/devtools-mcp",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "MCP server exposing Foldkit DevTools to AI agents (Claude Code, Cursor, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/server.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"effect": "4.0.0-beta.
|
|
19
|
+
"effect": "4.0.0-beta.97",
|
|
20
20
|
"foldkit": "^0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
@@ -26,10 +26,11 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.9.3",
|
|
28
28
|
"@types/ws": "^8.18.1",
|
|
29
|
-
"effect": "4.0.0-beta.
|
|
29
|
+
"effect": "4.0.0-beta.97",
|
|
30
|
+
"esbuild": "^0.28.1",
|
|
30
31
|
"rimraf": "^6.1.3",
|
|
31
32
|
"typescript": "^6.0.3",
|
|
32
|
-
"foldkit": "0.
|
|
33
|
+
"foldkit": "0.128.1"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"dist"
|
|
@@ -56,7 +57,8 @@
|
|
|
56
57
|
},
|
|
57
58
|
"scripts": {
|
|
58
59
|
"clean": "rimraf dist *.tsbuildinfo",
|
|
59
|
-
"build": "pnpm run clean && tsc -b",
|
|
60
|
+
"build": "pnpm run clean && tsc -b && pnpm run bundle",
|
|
61
|
+
"bundle": "esbuild src/server.ts --bundle --platform=node --format=esm --outfile=dist/server.js --allow-overwrite --alias:foldkit/devtools-protocol=../foldkit/src/devTools/public.ts --external:bufferutil --external:utf-8-validate --banner:js=\"import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);\"",
|
|
60
62
|
"watch": "tsc -b --watch",
|
|
61
63
|
"typecheck": "tsc -b --noEmit"
|
|
62
64
|
}
|