xmcp 0.0.11 → 0.0.13

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.
Files changed (54) hide show
  1. package/dist/auth/api-key.d.ts +0 -1
  2. package/dist/auth/jwt.d.ts +0 -1
  3. package/dist/cli.d.ts +0 -1
  4. package/dist/cli.js +2 -2
  5. package/dist/cli.js.LICENSE.txt +0 -2
  6. package/dist/compile.d.ts +8 -0
  7. package/dist/declarations.d.ts +3 -0
  8. package/dist/index.d.ts +1 -8
  9. package/dist/index.js +1 -22
  10. package/dist/index.js.LICENSE.txt +0 -46
  11. package/dist/platforms/build-vercel-output.d.ts +0 -1
  12. package/dist/runtime/headers.d.ts +4 -0
  13. package/dist/runtime/headers.js +1 -0
  14. package/dist/runtime/shared.js +2 -0
  15. package/dist/runtime/sse.js +1 -2
  16. package/dist/runtime/stdio.js +1 -1
  17. package/dist/runtime/streamable-http.js +1 -2
  18. package/dist/types/middleware.d.ts +0 -1
  19. package/dist/utils/constants.d.ts +1 -1
  20. package/dist/utils/fs-utils.d.ts +0 -1
  21. package/dist/utils/generate-env-code.d.ts +1 -0
  22. package/dist/utils/generate-import-code.d.ts +0 -1
  23. package/dist/utils/get-webpack-config.d.ts +1 -2
  24. package/dist/utils/parse-config.d.ts +12 -13
  25. package/dist/utils/spawn-process.d.ts +0 -1
  26. package/package.json +2 -2
  27. package/dist/auth/api-key.d.ts.map +0 -1
  28. package/dist/auth/jwt.d.ts.map +0 -1
  29. package/dist/cli.d.ts.map +0 -1
  30. package/dist/index.d.ts.map +0 -1
  31. package/dist/platforms/build-vercel-output.d.ts.map +0 -1
  32. package/dist/runtime/base-streamable-http.d.ts +0 -26
  33. package/dist/runtime/base-streamable-http.d.ts.map +0 -1
  34. package/dist/runtime/server.d.ts +0 -3
  35. package/dist/runtime/server.d.ts.map +0 -1
  36. package/dist/runtime/sse.d.ts +0 -2
  37. package/dist/runtime/sse.d.ts.map +0 -1
  38. package/dist/runtime/stateless-streamable-http.d.ts +0 -32
  39. package/dist/runtime/stateless-streamable-http.d.ts.map +0 -1
  40. package/dist/runtime/stdio.d.ts +0 -2
  41. package/dist/runtime/stdio.d.ts.map +0 -1
  42. package/dist/runtime/streamable-http.d.ts +0 -2
  43. package/dist/runtime/streamable-http.d.ts.map +0 -1
  44. package/dist/runtime/streamable-http.js.LICENSE.txt +0 -250
  45. package/dist/templates/home.d.ts +0 -3
  46. package/dist/templates/home.d.ts.map +0 -1
  47. package/dist/types/middleware.d.ts.map +0 -1
  48. package/dist/utils/constants.d.ts.map +0 -1
  49. package/dist/utils/fs-utils.d.ts.map +0 -1
  50. package/dist/utils/generate-import-code.d.ts.map +0 -1
  51. package/dist/utils/get-webpack-config.d.ts.map +0 -1
  52. package/dist/utils/parse-config.d.ts.map +0 -1
  53. package/dist/utils/spawn-process.d.ts.map +0 -1
  54. /package/dist/runtime/{sse.js.LICENSE.txt → shared.js.LICENSE.txt} +0 -0
@@ -43,5 +43,3 @@
43
43
  /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
44
44
 
45
45
  /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
46
-
47
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
@@ -0,0 +1,8 @@
1
+ export { type Middleware } from "./types/middleware";
2
+ export type CompilerMode = "development" | "production";
3
+ export interface CompileOptions {
4
+ mode: CompilerMode;
5
+ onBuild?: () => void;
6
+ configFilePath?: string;
7
+ }
8
+ export declare function compile({ mode, onBuild, configFilePath, }: CompileOptions): void;
@@ -0,0 +1,3 @@
1
+ declare module "xmcp/headers" {
2
+ const headers: typeof import("./runtime/headers").headers;
3
+ }
package/dist/index.d.ts CHANGED
@@ -1,15 +1,8 @@
1
1
  import { type z } from "zod";
2
2
  export { type Middleware } from "./types/middleware";
3
- export type CompilerMode = "development" | "production";
4
- export interface CompileOptions {
5
- mode: CompilerMode;
6
- onBuild?: () => void;
7
- configFilePath?: string;
8
- }
9
- export declare function compile({ mode, onBuild, configFilePath, }: CompileOptions): void;
10
3
  export type InferSchema<T extends Record<string, z.ZodType>> = {
11
4
  [K in keyof T]: z.infer<T[K]>;
12
5
  };
13
6
  export { ApiKeyAuthMiddleware } from "./auth/api-key";
14
7
  export { JWTAuthMiddleware } from "./auth/jwt";
15
- //# sourceMappingURL=index.d.ts.map
8
+ import "./declarations.ts";