@foldkit/devtools-mcp 0.24.1-canary.a7ca632fc2d1 → 0.24.1-canary.b8373d1a0669

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 CHANGED
@@ -17513,6 +17513,37 @@ function decodeUnknownExit(schema, options) {
17513
17513
  };
17514
17514
  }
17515
17515
  /**
17516
+ * Decodes a typed input (the schema's `Encoded` type) against a schema
17517
+ * synchronously, returning an `Exit` that is either a `Success` with the decoded
17518
+ * value or a `Failure`.
17519
+ *
17520
+ * **When to use**
17521
+ *
17522
+ * Use when you need to decode already typed `Encoded` input into an `Exit` and
17523
+ * capture schema mismatches as `SchemaError`.
17524
+ *
17525
+ * **Details**
17526
+ *
17527
+ * Only usable with schemas that have no `DecodingServices` requirement. For
17528
+ * `unknown` input use {@link decodeUnknownExit}.
17529
+ * Options may be provided either when creating the decoder or when applying it;
17530
+ * application options override creation options.
17531
+ * Schema mismatches are represented by a `Failure` cause containing
17532
+ * `SchemaError`.
17533
+ *
17534
+ * **Gotchas**
17535
+ *
17536
+ * Schema issue fail reasons are wrapped as `SchemaError`. Defects,
17537
+ * interruptions, and other non-schema reasons remain in the returned `Cause`,
17538
+ * including when they are mixed with schema issues.
17539
+ *
17540
+ * @see {@link SchemaParser.decodeExit} for the adapter whose failure contains `SchemaIssue.Issue` directly
17541
+ *
17542
+ * @category decoding
17543
+ * @since 4.0.0
17544
+ */
17545
+ const decodeExit = decodeUnknownExit;
17546
+ /**
17516
17547
  * Decodes an `unknown` input against a schema, returning an `Option` that is
17517
17548
  * `Some` with the decoded value on success or `None` for schema mismatches.
17518
17549
  *
@@ -42476,7 +42507,7 @@ const connectWebSocketClient = (resolveUrl) => gen(function* () {
42476
42507
  };
42477
42508
  });
42478
42509
  const handleIncomingMessage = (raw, pendingResponsesRef) => {
42479
- const decoded = decodeUnknownExit(fromJsonString(ResponseFrame))(raw.toString());
42510
+ const decoded = decodeExit(fromJsonString(ResponseFrame))(raw.toString());
42480
42511
  return match(decoded, {
42481
42512
  onFailure: (error) => sync(() => console.error("[foldkit-devtools-mcp] failed to decode frame", error)),
42482
42513
  onSuccess: (responseFrame) => gen(function* () {
@@ -116,7 +116,7 @@ export const connectWebSocketClient = (resolveUrl) => Effect.gen(function* () {
116
116
  return { sendRequest, close };
117
117
  });
118
118
  const handleIncomingMessage = (raw, pendingResponsesRef) => {
119
- const decoded = Schema.decodeUnknownExit(Schema.fromJsonString(ResponseFrame))(raw.toString());
119
+ const decoded = Schema.decodeExit(Schema.fromJsonString(ResponseFrame))(raw.toString());
120
120
  return Exit.match(decoded, {
121
121
  onFailure: error => Effect.sync(() => console.error('[foldkit-devtools-mcp] failed to decode frame', error)),
122
122
  onSuccess: responseFrame => Effect.gen(function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/devtools-mcp",
3
- "version": "0.24.1-canary.a7ca632fc2d1",
3
+ "version": "0.24.1-canary.b8373d1a0669",
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",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "peerDependencies": {
19
19
  "effect": "4.0.0",
20
- "foldkit": "0.166.0-canary.a7ca632fc2d1"
20
+ "foldkit": "0.167.0-canary.b8373d1a0669"
21
21
  },
22
22
  "dependencies": {
23
23
  "@modelcontextprotocol/sdk": "1.29.0",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@effect/platform-node": "4.0.0",
28
+ "@foldkit/vite-plugin": "0.27.0-canary.b8373d1a0669",
28
29
  "@types/node": "26.4.0",
29
30
  "@types/ws": "^8.18.1",
30
31
  "effect": "4.0.0",
32
+ "foldkit": "0.167.0-canary.b8373d1a0669",
31
33
  "rimraf": "^6.1.3",
32
34
  "rolldown": "^1.2.11",
33
35
  "typescript": "^7.0.2",
34
36
  "vite": "^8.3.1",
35
- "vitest": "^4.1.11",
36
- "foldkit": "0.166.0-canary.a7ca632fc2d1",
37
- "@foldkit/vite-plugin": "0.26.1-canary.a7ca632fc2d1"
37
+ "vitest": "^4.1.11"
38
38
  },
39
39
  "files": [
40
40
  "dist"