xmcp 0.0.12 → 0.0.14
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/auth/api-key.d.ts +0 -1
- package/dist/auth/jwt.d.ts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.LICENSE.txt +0 -2
- package/dist/compile.d.ts +8 -0
- package/dist/declarations.d.ts +3 -0
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -22
- package/dist/index.js.LICENSE.txt +0 -46
- package/dist/platforms/build-vercel-output.d.ts +0 -1
- package/dist/runtime/headers.d.ts +1 -0
- package/dist/runtime/headers.js +1 -0
- package/dist/runtime/http-context.d.ts +9 -0
- package/dist/runtime/shared.js +2 -0
- package/dist/runtime/sse.js +1 -2
- package/dist/runtime/stdio.js +1 -1
- package/dist/runtime/streamable-http.js +1 -2
- package/dist/types/middleware.d.ts +0 -1
- package/dist/utils/constants.d.ts +1 -1
- package/dist/utils/fs-utils.d.ts +0 -1
- package/dist/utils/generate-env-code.d.ts +1 -0
- package/dist/utils/generate-import-code.d.ts +0 -1
- package/dist/utils/get-webpack-config.d.ts +1 -2
- package/dist/utils/parse-config.d.ts +12 -13
- package/dist/utils/spawn-process.d.ts +0 -1
- package/package.json +2 -2
- package/dist/auth/api-key.d.ts.map +0 -1
- package/dist/auth/jwt.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/platforms/build-vercel-output.d.ts.map +0 -1
- package/dist/runtime/base-streamable-http.d.ts +0 -26
- package/dist/runtime/base-streamable-http.d.ts.map +0 -1
- package/dist/runtime/server.d.ts +0 -3
- package/dist/runtime/server.d.ts.map +0 -1
- package/dist/runtime/sse.d.ts +0 -2
- package/dist/runtime/sse.d.ts.map +0 -1
- package/dist/runtime/stateless-streamable-http.d.ts +0 -32
- package/dist/runtime/stateless-streamable-http.d.ts.map +0 -1
- package/dist/runtime/stdio.d.ts +0 -2
- package/dist/runtime/stdio.d.ts.map +0 -1
- package/dist/runtime/streamable-http.d.ts +0 -2
- package/dist/runtime/streamable-http.d.ts.map +0 -1
- package/dist/runtime/streamable-http.js.LICENSE.txt +0 -250
- package/dist/templates/home.d.ts +0 -3
- package/dist/templates/home.d.ts.map +0 -1
- package/dist/types/middleware.d.ts.map +0 -1
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/fs-utils.d.ts.map +0 -1
- package/dist/utils/generate-import-code.d.ts.map +0 -1
- package/dist/utils/get-webpack-config.d.ts.map +0 -1
- package/dist/utils/parse-config.d.ts.map +0 -1
- package/dist/utils/spawn-process.d.ts.map +0 -1
- /package/dist/runtime/{sse.js.LICENSE.txt → shared.js.LICENSE.txt} +0 -0
|
@@ -1,47 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
3
|
-
*
|
|
4
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*!
|
|
9
|
-
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
12
|
-
* Licensed under the MIT License.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/*!
|
|
16
|
-
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
17
|
-
*
|
|
18
|
-
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
19
|
-
* Released under the MIT License.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/*!
|
|
23
|
-
* is-number <https://github.com/jonschlinkert/is-number>
|
|
24
|
-
*
|
|
25
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
26
|
-
* Released under the MIT License.
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
/*!
|
|
30
|
-
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
33
|
-
* Released under the MIT License.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/*!
|
|
37
|
-
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
38
|
-
*
|
|
39
|
-
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
40
|
-
* Released under the MIT License.
|
|
41
|
-
*/
|
|
42
|
-
|
|
43
|
-
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
44
|
-
|
|
45
|
-
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
46
|
-
|
|
47
1
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const headers: () => import("http").IncomingHttpHeaders;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(this,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var r in o)e.o(o,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:o[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{headers:()=>i});const o=require("async_hooks"),r=Symbol.for("http-context");globalThis[r]=globalThis[r]??new o.AsyncLocalStorage;const n=globalThis[r],i=()=>{if(!n.getStore())throw new Error("headres() can only be used within the http transport.");const e=(()=>{const e=n.getStore();if(!e)throw new Error("getHttpContext() can only be used within the http transport.");return e.headers})();if(!e)throw new Error("Error: headers not initialized. This is probably a bug. Please report it.");return e};return t})()));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
2
|
+
import { IncomingHttpHeaders } from "http";
|
|
3
|
+
export interface HttpContext {
|
|
4
|
+
id: string;
|
|
5
|
+
headers?: IncomingHttpHeaders;
|
|
6
|
+
}
|
|
7
|
+
export declare const httpContext: AsyncLocalStorage<HttpContext>;
|
|
8
|
+
export declare const setHttpContext: <K extends keyof HttpContext>(key: K, value: HttpContext[K]) => void;
|
|
9
|
+
export declare const getHttpContext: <K extends keyof HttpContext>(key: K) => HttpContext[K];
|