@webmcp-bridge/core 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 holon-run
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This module exposes the public exports of the core package.
3
+ * It depends on install/runtime/types modules to present the supported bridge API surface.
4
+ */
5
+ export * from "./types.js";
6
+ export * from "./runtime.js";
7
+ export * from "./install.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This module exposes the public exports of the core package.
3
+ * It depends on install/runtime/types modules to present the supported bridge API surface.
4
+ */
5
+ export * from "./types.js";
6
+ export * from "./runtime.js";
7
+ export * from "./install.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This module installs the modelContext shim on a target environment.
3
+ * It depends on runtime creation and exposes a stable install handle for callers.
4
+ */
5
+ import type { BridgeHandle, BridgeInstallTarget, BridgeToolDefinition, BridgeTransport } from "./types.js";
6
+ export type InstallBridgeOptions = {
7
+ preferNative?: boolean;
8
+ transport?: BridgeTransport;
9
+ };
10
+ export declare function isNativeModelContext(target: BridgeInstallTarget): boolean;
11
+ export declare function installModelContextBridge(target: BridgeInstallTarget, options?: InstallBridgeOptions): BridgeHandle;
12
+ export declare function defineLocalTool(name: string, execute: BridgeToolDefinition["execute"], description?: string): BridgeToolDefinition;
13
+ //# sourceMappingURL=install.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EAGhB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CASzE;AAED,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,YAAY,CAiDd;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,EACxC,WAAW,CAAC,EAAE,MAAM,GACnB,oBAAoB,CAStB"}
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This module installs the modelContext shim on a target environment.
3
+ * It depends on runtime creation and exposes a stable install handle for callers.
4
+ */
5
+ import { createBridgeRuntime } from "./runtime.js";
6
+ export function isNativeModelContext(target) {
7
+ const modelContext = target.navigator.modelContext;
8
+ if (!modelContext) {
9
+ return false;
10
+ }
11
+ return (typeof modelContext.registerTool === "function" &&
12
+ typeof modelContext.unregisterTool === "function");
13
+ }
14
+ export function installModelContextBridge(target, options) {
15
+ const preferNative = options?.preferNative ?? true;
16
+ const native = target.navigator.modelContext;
17
+ if (preferNative && isNativeModelContext(target) && native) {
18
+ return {
19
+ mode: "native",
20
+ listTools: () => [],
21
+ invokeTool: async (name, input) => {
22
+ const nativeAny = native;
23
+ if (typeof nativeAny.callTool !== "function") {
24
+ throw new Error("native modelContext callTool is not available");
25
+ }
26
+ return await nativeAny.callTool(name, input);
27
+ },
28
+ uninstall: () => {
29
+ // no-op for native mode
30
+ },
31
+ };
32
+ }
33
+ const runtime = createBridgeRuntime(options?.transport);
34
+ const previous = target.navigator.modelContext;
35
+ Object.defineProperty(target.navigator, "modelContext", {
36
+ configurable: true,
37
+ enumerable: false,
38
+ writable: false,
39
+ value: runtime.modelContext,
40
+ });
41
+ return {
42
+ mode: "shim",
43
+ listTools: () => runtime.listTools(),
44
+ invokeTool: (name, input) => runtime.invokeTool(name, input),
45
+ uninstall: () => {
46
+ runtime.clear();
47
+ if (previous) {
48
+ Object.defineProperty(target.navigator, "modelContext", {
49
+ configurable: true,
50
+ enumerable: false,
51
+ writable: false,
52
+ value: previous,
53
+ });
54
+ return;
55
+ }
56
+ delete target.navigator.modelContext;
57
+ },
58
+ };
59
+ }
60
+ export function defineLocalTool(name, execute, description) {
61
+ const tool = {
62
+ name,
63
+ execute,
64
+ };
65
+ if (description !== undefined) {
66
+ tool.description = description;
67
+ }
68
+ return tool;
69
+ }
70
+ //# sourceMappingURL=install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.js","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAenD,MAAM,UAAU,oBAAoB,CAAC,MAA2B;IAC9D,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC;IACnD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CACL,OAAO,YAAY,CAAC,YAAY,KAAK,UAAU;QAC/C,OAAO,YAAY,CAAC,cAAc,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,MAA2B,EAC3B,OAA8B;IAE9B,MAAM,YAAY,GAAG,OAAO,EAAE,YAAY,IAAI,IAAI,CAAC;IACnD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC;IAE7C,IAAI,YAAY,IAAI,oBAAoB,CAAC,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;QAC3D,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,GAAG,EAAE,CAAC,EAAE;YACnB,UAAU,EAAE,KAAK,EAAE,IAAY,EAAE,KAAgB,EAAE,EAAE;gBACnD,MAAM,SAAS,GAAG,MAAgG,CAAC;gBACnH,IAAI,OAAO,SAAS,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;oBAC7C,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;gBACnE,CAAC;gBACD,OAAO,MAAM,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAC/C,CAAC;YACD,SAAS,EAAE,GAAG,EAAE;gBACd,wBAAwB;YAC1B,CAAC;SACF,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,mBAAmB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IACxD,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC;IAE/C,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,EAAE;QACtD,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,KAAK;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,OAAO,CAAC,YAAY;KAC5B,CAAC,CAAC;IAEH,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE;QACpC,UAAU,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC;QAC5D,SAAS,EAAE,GAAG,EAAE;YACd,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,QAAQ,EAAE,CAAC;gBACb,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,EAAE;oBACtD,YAAY,EAAE,IAAI;oBAClB,UAAU,EAAE,KAAK;oBACjB,QAAQ,EAAE,KAAK;oBACf,KAAK,EAAE,QAA4B;iBACpC,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YACD,OAAO,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC;QACvC,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,IAAY,EACZ,OAAwC,EACxC,WAAoB;IAEpB,MAAM,IAAI,GAAyB;QACjC,IAAI;QACJ,OAAO;KACR,CAAC;IACF,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This module builds the in-memory modelContext shim runtime.
3
+ * It depends on shared type contracts and is used by install logic to expose tool registration and invocation behavior.
4
+ */
5
+ import type { BridgeToolDefinition, BridgeTransport, JsonValue, ModelContextLike } from "./types.js";
6
+ export type BridgeRuntime = {
7
+ modelContext: ModelContextLike;
8
+ listTools: () => ReadonlyArray<BridgeToolDefinition>;
9
+ invokeTool: (name: string, input: JsonValue) => Promise<JsonValue>;
10
+ clear: () => void;
11
+ };
12
+ export declare function createBridgeRuntime(transport?: BridgeTransport): BridgeRuntime;
13
+ //# sourceMappingURL=runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,SAAS,EACT,gBAAgB,EACjB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,SAAS,EAAE,MAAM,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACrD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACnE,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,SAAS,CAAC,EAAE,eAAe,GAAG,aAAa,CA8C9E"}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * This module builds the in-memory modelContext shim runtime.
3
+ * It depends on shared type contracts and is used by install logic to expose tool registration and invocation behavior.
4
+ */
5
+ export function createBridgeRuntime(transport) {
6
+ const contexts = [];
7
+ const tools = new Map();
8
+ const invokeTool = async (name, input) => {
9
+ const localTool = tools.get(name);
10
+ if (localTool) {
11
+ return await localTool.execute(input);
12
+ }
13
+ if (transport) {
14
+ return await transport.call(name, input);
15
+ }
16
+ throw new Error(`tool not found: ${name}`);
17
+ };
18
+ const modelContext = {
19
+ provideContext: async (context) => {
20
+ contexts.push(context);
21
+ },
22
+ clearContext: async () => {
23
+ contexts.splice(0, contexts.length);
24
+ tools.clear();
25
+ },
26
+ registerTool: async (tool) => {
27
+ if (!tool.name.trim()) {
28
+ throw new Error("tool.name is required");
29
+ }
30
+ if (tools.has(tool.name)) {
31
+ throw new Error(`tool already registered: ${tool.name}`);
32
+ }
33
+ tools.set(tool.name, tool);
34
+ },
35
+ unregisterTool: async (name) => {
36
+ tools.delete(name);
37
+ },
38
+ };
39
+ return {
40
+ modelContext,
41
+ listTools: () => Array.from(tools.values()),
42
+ invokeTool,
43
+ clear: () => {
44
+ contexts.splice(0, contexts.length);
45
+ tools.clear();
46
+ },
47
+ };
48
+ }
49
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAgBH,MAAM,UAAU,mBAAmB,CAAC,SAA2B;IAC7D,MAAM,QAAQ,GAAgB,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAgC,CAAC;IAEtD,MAAM,UAAU,GAAG,KAAK,EAAE,IAAY,EAAE,KAAgB,EAAsB,EAAE;QAC9E,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAClC,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,MAAM,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,SAAS,EAAE,CAAC;YACd,OAAO,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAC3C,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC,CAAC;IAEF,MAAM,YAAY,GAAqB;QACrC,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAChC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,KAAK,IAAI,EAAE;YACvB,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YACpC,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC;QACD,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC3B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC;gBACtB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;YAC3C,CAAC;YACD,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzB,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;YAC3D,CAAC;YACD,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7B,CAAC;QACD,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC7B,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,SAAS,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC3C,UAAU;QACV,KAAK,EAAE,GAAG,EAAE;YACV,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YACpC,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This module defines the shared WebMCP bridge contracts.
3
+ * It is depended on by runtime/install modules and downstream integrations like playwright and adapters.
4
+ */
5
+ export type JsonValue = string | number | boolean | null | {
6
+ [key: string]: JsonValue;
7
+ } | JsonValue[];
8
+ export type BridgeToolDefinition = {
9
+ name: string;
10
+ description?: string;
11
+ inputSchema?: JsonValue;
12
+ execute: (input: JsonValue) => Promise<JsonValue>;
13
+ };
14
+ export type BridgeTransport = {
15
+ call: (name: string, input: JsonValue) => Promise<JsonValue>;
16
+ };
17
+ export type ModelContextLike = {
18
+ provideContext: (context: JsonValue) => Promise<void>;
19
+ clearContext: () => Promise<void>;
20
+ registerTool: (tool: BridgeToolDefinition) => Promise<void>;
21
+ unregisterTool: (name: string) => Promise<void>;
22
+ };
23
+ export type BridgeInstallTarget = {
24
+ navigator: {
25
+ modelContext?: ModelContextLike;
26
+ [key: string]: unknown;
27
+ };
28
+ [key: string]: unknown;
29
+ };
30
+ export type BridgeHandle = {
31
+ mode: "native" | "shim";
32
+ listTools: () => ReadonlyArray<BridgeToolDefinition>;
33
+ invokeTool: (name: string, input: JsonValue) => Promise<JsonValue>;
34
+ uninstall: () => void;
35
+ };
36
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC5B,SAAS,EAAE,CAAC;AAEhB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,CAAC,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,YAAY,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE;QACT,YAAY,CAAC,EAAE,gBAAgB,CAAC;QAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,QAAQ,GAAG,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACrD,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACnE,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC"}
package/dist/types.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This module defines the shared WebMCP bridge contracts.
3
+ * It is depended on by runtime/install modules and downstream integrations like playwright and adapters.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@webmcp-bridge/core",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "license": "MIT",
17
+ "scripts": {
18
+ "build": "tsc -p tsconfig.build.json",
19
+ "typecheck": "tsc --noEmit -p tsconfig.json"
20
+ }
21
+ }