@phake/mcp 0.0.3 → 0.0.4

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/index.js CHANGED
@@ -43,7 +43,6 @@ import {
43
43
  encrypt,
44
44
  ensureFreshToken,
45
45
  executeSharedTool,
46
- exports_external,
47
46
  fetchClientMetadata,
48
47
  generateKey,
49
48
  generateOpaqueToken,
@@ -83,7 +82,7 @@ import {
83
82
  withCancellation,
84
83
  withCors,
85
84
  workerDiscoveryStrategy
86
- } from "./index-1zv84kf7.js";
85
+ } from "./index-ctd3bknx.js";
87
86
  // src/shared/config/env.ts
88
87
  function parseBoolean(value) {
89
88
  return String(value || "false").toLowerCase() === "true";
@@ -445,12 +444,13 @@ function createHttpClient(options = {}) {
445
444
  };
446
445
  }
447
446
  // src/shared/utils/elicitation.ts
447
+ import { z } from "zod";
448
448
  function getLowLevelServer2(server) {
449
449
  return server.server;
450
450
  }
451
- var ElicitResultSchema = exports_external.object({
452
- action: exports_external.enum(["accept", "decline", "cancel"]),
453
- content: exports_external.record(exports_external.string(), exports_external.union([exports_external.string(), exports_external.number(), exports_external.boolean(), exports_external.array(exports_external.string())])).optional()
451
+ var ElicitResultSchema = z.object({
452
+ action: z.enum(["accept", "decline", "cancel"]),
453
+ content: z.record(z.string(), z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])).optional()
454
454
  });
455
455
  function validateElicitationSchema(schema) {
456
456
  if (schema.type !== "object") {
@@ -2,7 +2,7 @@ import {
2
2
  createWorkerRouter,
3
3
  initializeWorkerStorage,
4
4
  shimProcessEnv
5
- } from "../../index-1zv84kf7.js";
5
+ } from "../../index-ctd3bknx.js";
6
6
  export {
7
7
  shimProcessEnv,
8
8
  initializeWorkerStorage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phake/mcp",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fuongz/phake-mcp"
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "scripts": {
29
- "build": "bun build src/index.ts src/runtime/worker/index.ts --outdir dist --target browser --splitting && bun build src/runtime/node/index.ts --outdir dist/runtime/node --target bun && tsc -p tsconfig.build.json",
29
+ "build": "bun build src/index.ts src/runtime/worker/index.ts --outdir dist --target browser --splitting --packages external && bun build src/runtime/node/index.ts --outdir dist/runtime/node --target bun && tsc -p tsconfig.build.json",
30
30
  "typecheck": "tsc --noEmit",
31
31
  "version:major": "bun scripts/version.ts major",
32
32
  "version:minor": "bun scripts/version.ts minor",