@lovable.dev/mcp-js 3.3.1 → 3.5.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/README.internal.md +38 -12
- package/README.md +140 -12
- package/dist/THIRD_PARTY_NOTICES +75 -0
- package/dist/apps-CWG3rGhB.js +132 -0
- package/dist/apps-DyoDrwfi.cjs +185 -0
- package/dist/{authorize-CoaAw6wg.d.cts → authorize--W1XtwdB.d.cts} +1 -1
- package/dist/{authorize-BV62MDan.d.ts → authorize-DpNYioXM.d.ts} +1 -1
- package/dist/{base-Cx0spfMk.d.ts → base-Ce9JYirF.d.ts} +1 -1
- package/dist/{base-CzWe8AD1.d.cts → base-qEX8YVcD.d.cts} +1 -1
- package/dist/cli/check-server.cjs +1 -1
- package/dist/cli/check-server.js +1 -1
- package/dist/cli/extract-manifest.cjs +1 -1
- package/dist/cli/extract-manifest.js +1 -1
- package/dist/{cors-3HjrsmEW.cjs → cors-B_Oui5La.cjs} +1 -1
- package/dist/{cors-CNNmKKIg.js → cors-D83r8WUF.js} +1 -1
- package/dist/dist-CIu-UFye.js +6738 -0
- package/dist/dist-CqY2qXpc.cjs +6738 -0
- package/dist/{errors-CIpFAb6i.js → errors-CfaxXr2T.js} +15 -2
- package/dist/{errors-C97I7VOC.cjs → errors-xJ_7Su1K.cjs} +20 -1
- package/dist/index.cjs +2 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +2 -2
- package/dist/{io-D7cpdBJO.d.ts → io-BEpyfk4G.d.ts} +1 -1
- package/dist/{io-CaBSlPwS.cjs → io-CUnV4kTL.cjs} +12 -2
- package/dist/{io-DC-Y6R61.d.cts → io-Di5ljvZY.d.cts} +1 -1
- package/dist/{io-CahnhUhA.js → io-STpVLkbi.js} +13 -3
- package/dist/{mcp-DC8AoD18.js → mcp-BgIFUoo1.js} +110 -49
- package/dist/{mcp-DlWLIwX9.cjs → mcp-DpI0wwnW.cjs} +110 -49
- package/dist/mcp-app.d.ts +4 -0
- package/dist/{package-B488glmj.cjs → package-CuCho6-k.cjs} +1 -1
- package/dist/{package-CukfP_vq.js → package-Cz6Z5F_X.js} +1 -1
- package/dist/protocols/mcp/index.cjs +1 -1
- package/dist/protocols/mcp/index.d.cts +3 -3
- package/dist/protocols/mcp/index.d.ts +3 -3
- package/dist/protocols/mcp/index.js +1 -1
- package/dist/protocols/oauth-metadata.cjs +1 -1
- package/dist/protocols/oauth-metadata.d.cts +3 -3
- package/dist/protocols/oauth-metadata.d.ts +3 -3
- package/dist/protocols/oauth-metadata.js +1 -1
- package/dist/src-D7RtXSV0.cjs +311 -0
- package/dist/src-sWQwyLwS.js +310 -0
- package/dist/stacks/supabase/index.cjs +2 -2
- package/dist/stacks/supabase/index.d.cts +1 -1
- package/dist/stacks/supabase/index.d.ts +1 -1
- package/dist/stacks/supabase/index.js +2 -2
- package/dist/stacks/supabase/vite.cjs +10 -1
- package/dist/stacks/supabase/vite.d.cts +1 -1
- package/dist/stacks/supabase/vite.d.ts +1 -1
- package/dist/stacks/supabase/vite.js +21 -12
- package/dist/stacks/tanstack/index.cjs +33 -2
- package/dist/stacks/tanstack/index.d.cts +7 -4
- package/dist/stacks/tanstack/index.d.ts +7 -4
- package/dist/stacks/tanstack/index.js +33 -2
- package/dist/stacks/tanstack/vite.cjs +995 -15
- package/dist/stacks/tanstack/vite.d.cts +1 -1
- package/dist/stacks/tanstack/vite.d.ts +1 -1
- package/dist/stacks/tanstack/vite.js +1001 -21
- package/dist/testing/browser/LICENSE.ext-apps +218 -0
- package/dist/testing/browser/host.ts +151 -0
- package/dist/testing/browser/sandbox.ts +137 -0
- package/dist/testing/browser.cjs +382 -0
- package/dist/testing/browser.d.cts +46 -0
- package/dist/testing/browser.d.ts +46 -0
- package/dist/testing/browser.js +381 -0
- package/dist/testing/index.cjs +2 -1
- package/dist/testing/index.d.cts +2 -1
- package/dist/testing/index.d.ts +2 -1
- package/dist/testing/index.js +2 -1
- package/dist/testing/server.cjs +36 -0
- package/dist/testing/server.d.cts +6 -2
- package/dist/testing/server.d.ts +6 -2
- package/dist/testing/server.js +36 -1
- package/dist/{tool-result-DcNioyiI.js → tool-result-BG-HsSQu.js} +8 -1
- package/dist/{tool-result-rU-PpNNi.cjs → tool-result-BQcr7VV-.cjs} +8 -1
- package/dist/{types-z7T5bBIU.d.cts → types-B_dVw-zM.d.cts} +55 -1
- package/dist/{types-z7T5bBIU.d.ts → types-B_dVw-zM.d.ts} +55 -1
- package/package.json +66 -25
|
@@ -318,6 +318,8 @@ interface ToolHandlerResult {
|
|
|
318
318
|
content?: ToolContent;
|
|
319
319
|
structuredContent?: JsonValueInput;
|
|
320
320
|
isError?: boolean;
|
|
321
|
+
/** JSON-serializable metadata sent to the client; not a place for secrets. */
|
|
322
|
+
_meta?: Record<string, unknown>;
|
|
321
323
|
}
|
|
322
324
|
/** Inputs available while creating app context for one MCP request. */
|
|
323
325
|
interface CreateAppContextInput {
|
|
@@ -333,6 +335,56 @@ interface ConditionalSkill<TAppContext> {
|
|
|
333
335
|
readonly skill: Skill;
|
|
334
336
|
readonly enabled: (ctx: ToolVisibilityContext<TAppContext>) => boolean;
|
|
335
337
|
}
|
|
338
|
+
/** Origins the host adds to the view's Content-Security-Policy. */
|
|
339
|
+
interface AppCsp {
|
|
340
|
+
/** Origins the view may `fetch`/WebSocket to. */
|
|
341
|
+
connectDomains?: readonly string[];
|
|
342
|
+
/** Origins the view may load images, styles, fonts, and scripts from. */
|
|
343
|
+
resourceDomains?: readonly string[];
|
|
344
|
+
/** Origins the view may embed in nested iframes. */
|
|
345
|
+
frameDomains?: readonly string[];
|
|
346
|
+
/** Allowed `<base href>` origins. */
|
|
347
|
+
baseUriDomains?: readonly string[];
|
|
348
|
+
}
|
|
349
|
+
/** Browser permissions the host should delegate to the view's iframe. Each
|
|
350
|
+
* key is present-or-absent; the value is always an empty object. */
|
|
351
|
+
interface AppPermissions {
|
|
352
|
+
camera?: Record<string, never>;
|
|
353
|
+
microphone?: Record<string, never>;
|
|
354
|
+
geolocation?: Record<string, never>;
|
|
355
|
+
clipboardWrite?: Record<string, never>;
|
|
356
|
+
}
|
|
357
|
+
interface AppDefinitionInput {
|
|
358
|
+
/** Resource id: the view is served at `ui://apps/<name>`. URL-safe token. */
|
|
359
|
+
readonly name: string;
|
|
360
|
+
/** Human-readable display name shown by MCP hosts. Required. */
|
|
361
|
+
readonly title: string;
|
|
362
|
+
readonly description?: string;
|
|
363
|
+
readonly html: string;
|
|
364
|
+
readonly csp?: AppCsp;
|
|
365
|
+
readonly permissions?: AppPermissions;
|
|
366
|
+
/** Dedicated sandbox domain for the view. SEP-1865 leaves the format to each
|
|
367
|
+
* host (its examples are bare hostnames), so the value is passed through as-is. */
|
|
368
|
+
readonly domain?: string;
|
|
369
|
+
/** Whether the host should draw a visible border and background around the view. */
|
|
370
|
+
readonly prefersBorder?: boolean;
|
|
371
|
+
}
|
|
372
|
+
declare const AppDefinitionBrand: unique symbol;
|
|
373
|
+
/** Result of `defineApp(...)` — validated and frozen. */
|
|
374
|
+
type AppDefinition = AppDefinitionInput & {
|
|
375
|
+
readonly [AppDefinitionBrand]: never;
|
|
376
|
+
};
|
|
377
|
+
/** Host discovery/routing hint, not authorization. Omitted means both model and view. */
|
|
378
|
+
type ToolUiVisibility = "model" | "app";
|
|
379
|
+
/** MCP Apps is beta with normal semver guarantees.
|
|
380
|
+
* See {@link https://www.npmjs.com/package/@lovable.dev/mcp-js?activeTab=readme | beta policy in the package README}. */
|
|
381
|
+
type ToolUiOptions = {
|
|
382
|
+
readonly app: AppDefinition;
|
|
383
|
+
readonly visibility?: readonly ToolUiVisibility[];
|
|
384
|
+
} | {
|
|
385
|
+
readonly app?: never;
|
|
386
|
+
readonly visibility: readonly [ToolUiVisibility, ...ToolUiVisibility[]];
|
|
387
|
+
};
|
|
336
388
|
interface ToolDefinitionBase<TInput extends ZodRawShape$1 | undefined = ZodRawShape$1 | undefined, TOutput extends ZodOutputSchema | undefined = ZodOutputSchema | undefined> {
|
|
337
389
|
readonly name: string;
|
|
338
390
|
/** Human-readable display name shown to the user in MCP clients. Required. */
|
|
@@ -344,6 +396,7 @@ interface ToolDefinitionBase<TInput extends ZodRawShape$1 | undefined = ZodRawSh
|
|
|
344
396
|
readonly strict?: boolean;
|
|
345
397
|
readonly outputSchema?: TOutput;
|
|
346
398
|
readonly annotations?: ToolAnnotations;
|
|
399
|
+
readonly ui?: ToolUiOptions;
|
|
347
400
|
}
|
|
348
401
|
type ToolHandler<TInput extends ZodRawShape$1 | undefined, TAppContext> = TInput extends ZodRawShape$1 ? (args: ShapeOutput<TInput>, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult> : (args: Record<string, never> | undefined, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult>;
|
|
349
402
|
/** A tool that exists for every caller. Its handler receives the plain `ToolContext`. */
|
|
@@ -370,6 +423,7 @@ interface AnyToolDefinition<TAppContext = never> {
|
|
|
370
423
|
readonly outputSchema?: ZodOutputSchema | undefined;
|
|
371
424
|
readonly annotations?: ToolAnnotations;
|
|
372
425
|
readonly enabled?: (ctx: ToolVisibilityContext<TAppContext>) => boolean;
|
|
426
|
+
readonly ui?: ToolUiOptions;
|
|
373
427
|
readonly handler: (args: any, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult>;
|
|
374
428
|
}
|
|
375
429
|
type StaticToolDefinition = Omit<AnyToolDefinition<undefined>, "enabled"> & {
|
|
@@ -426,4 +480,4 @@ type McpDefinition<TAppContext = unknown> = Omit<McpDefinitionInput<TAppContext>
|
|
|
426
480
|
readonly [McpDefinitionBrand]: never;
|
|
427
481
|
};
|
|
428
482
|
//#endregion
|
|
429
|
-
export {
|
|
483
|
+
export { ToolVisibilityContext as A, ProgressUpdate as B, TextContent as C, ToolHandlerResult as D, ToolDefinition as E, MetricsConfig as F, JwtClaims as H, MetricsOptions as I, AuthContext as L, ZodRawShape$1 as M, ZodSchema as N, ToolUiOptions as O, Skill as P, McpClientInfo as R, ResourceLinkIcon as S, ToolContent as T, McpAuthConfig as U, ToolContext as V, JsonValueInput as _, AppDefinitionInput as a, McpDefinitionInput as b, ConditionalSkill as c, CreateAppContextInput as d, EmbeddedBlobResource as f, JsonValue as g, ImageContent as h, AppDefinition as i, ZodOutputSchema as j, ToolUiVisibility as k, ContentAnnotations as l, EmbeddedTextResource as m, AppContextToolDefinitionInput as n, AppPermissions as o, EmbeddedResource as p, AppCsp as r, AudioContent as s, AppContextToolDefinition as t, ContentBlock as u, McpAllowedOrigins as v, ToolAnnotations as w, ResourceLink as x, McpDefinition as y, McpProtocolEra as z };
|
|
@@ -318,6 +318,8 @@ interface ToolHandlerResult {
|
|
|
318
318
|
content?: ToolContent;
|
|
319
319
|
structuredContent?: JsonValueInput;
|
|
320
320
|
isError?: boolean;
|
|
321
|
+
/** JSON-serializable metadata sent to the client; not a place for secrets. */
|
|
322
|
+
_meta?: Record<string, unknown>;
|
|
321
323
|
}
|
|
322
324
|
/** Inputs available while creating app context for one MCP request. */
|
|
323
325
|
interface CreateAppContextInput {
|
|
@@ -333,6 +335,56 @@ interface ConditionalSkill<TAppContext> {
|
|
|
333
335
|
readonly skill: Skill;
|
|
334
336
|
readonly enabled: (ctx: ToolVisibilityContext<TAppContext>) => boolean;
|
|
335
337
|
}
|
|
338
|
+
/** Origins the host adds to the view's Content-Security-Policy. */
|
|
339
|
+
interface AppCsp {
|
|
340
|
+
/** Origins the view may `fetch`/WebSocket to. */
|
|
341
|
+
connectDomains?: readonly string[];
|
|
342
|
+
/** Origins the view may load images, styles, fonts, and scripts from. */
|
|
343
|
+
resourceDomains?: readonly string[];
|
|
344
|
+
/** Origins the view may embed in nested iframes. */
|
|
345
|
+
frameDomains?: readonly string[];
|
|
346
|
+
/** Allowed `<base href>` origins. */
|
|
347
|
+
baseUriDomains?: readonly string[];
|
|
348
|
+
}
|
|
349
|
+
/** Browser permissions the host should delegate to the view's iframe. Each
|
|
350
|
+
* key is present-or-absent; the value is always an empty object. */
|
|
351
|
+
interface AppPermissions {
|
|
352
|
+
camera?: Record<string, never>;
|
|
353
|
+
microphone?: Record<string, never>;
|
|
354
|
+
geolocation?: Record<string, never>;
|
|
355
|
+
clipboardWrite?: Record<string, never>;
|
|
356
|
+
}
|
|
357
|
+
interface AppDefinitionInput {
|
|
358
|
+
/** Resource id: the view is served at `ui://apps/<name>`. URL-safe token. */
|
|
359
|
+
readonly name: string;
|
|
360
|
+
/** Human-readable display name shown by MCP hosts. Required. */
|
|
361
|
+
readonly title: string;
|
|
362
|
+
readonly description?: string;
|
|
363
|
+
readonly html: string;
|
|
364
|
+
readonly csp?: AppCsp;
|
|
365
|
+
readonly permissions?: AppPermissions;
|
|
366
|
+
/** Dedicated sandbox domain for the view. SEP-1865 leaves the format to each
|
|
367
|
+
* host (its examples are bare hostnames), so the value is passed through as-is. */
|
|
368
|
+
readonly domain?: string;
|
|
369
|
+
/** Whether the host should draw a visible border and background around the view. */
|
|
370
|
+
readonly prefersBorder?: boolean;
|
|
371
|
+
}
|
|
372
|
+
declare const AppDefinitionBrand: unique symbol;
|
|
373
|
+
/** Result of `defineApp(...)` — validated and frozen. */
|
|
374
|
+
type AppDefinition = AppDefinitionInput & {
|
|
375
|
+
readonly [AppDefinitionBrand]: never;
|
|
376
|
+
};
|
|
377
|
+
/** Host discovery/routing hint, not authorization. Omitted means both model and view. */
|
|
378
|
+
type ToolUiVisibility = "model" | "app";
|
|
379
|
+
/** MCP Apps is beta with normal semver guarantees.
|
|
380
|
+
* See {@link https://www.npmjs.com/package/@lovable.dev/mcp-js?activeTab=readme | beta policy in the package README}. */
|
|
381
|
+
type ToolUiOptions = {
|
|
382
|
+
readonly app: AppDefinition;
|
|
383
|
+
readonly visibility?: readonly ToolUiVisibility[];
|
|
384
|
+
} | {
|
|
385
|
+
readonly app?: never;
|
|
386
|
+
readonly visibility: readonly [ToolUiVisibility, ...ToolUiVisibility[]];
|
|
387
|
+
};
|
|
336
388
|
interface ToolDefinitionBase<TInput extends ZodRawShape$1 | undefined = ZodRawShape$1 | undefined, TOutput extends ZodOutputSchema | undefined = ZodOutputSchema | undefined> {
|
|
337
389
|
readonly name: string;
|
|
338
390
|
/** Human-readable display name shown to the user in MCP clients. Required. */
|
|
@@ -344,6 +396,7 @@ interface ToolDefinitionBase<TInput extends ZodRawShape$1 | undefined = ZodRawSh
|
|
|
344
396
|
readonly strict?: boolean;
|
|
345
397
|
readonly outputSchema?: TOutput;
|
|
346
398
|
readonly annotations?: ToolAnnotations;
|
|
399
|
+
readonly ui?: ToolUiOptions;
|
|
347
400
|
}
|
|
348
401
|
type ToolHandler<TInput extends ZodRawShape$1 | undefined, TAppContext> = TInput extends ZodRawShape$1 ? (args: ShapeOutput<TInput>, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult> : (args: Record<string, never> | undefined, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult>;
|
|
349
402
|
/** A tool that exists for every caller. Its handler receives the plain `ToolContext`. */
|
|
@@ -370,6 +423,7 @@ interface AnyToolDefinition<TAppContext = never> {
|
|
|
370
423
|
readonly outputSchema?: ZodOutputSchema | undefined;
|
|
371
424
|
readonly annotations?: ToolAnnotations;
|
|
372
425
|
readonly enabled?: (ctx: ToolVisibilityContext<TAppContext>) => boolean;
|
|
426
|
+
readonly ui?: ToolUiOptions;
|
|
373
427
|
readonly handler: (args: any, ctx: ToolContext<TAppContext>) => ToolHandlerResult | Promise<ToolHandlerResult>;
|
|
374
428
|
}
|
|
375
429
|
type StaticToolDefinition = Omit<AnyToolDefinition<undefined>, "enabled"> & {
|
|
@@ -426,4 +480,4 @@ type McpDefinition<TAppContext = unknown> = Omit<McpDefinitionInput<TAppContext>
|
|
|
426
480
|
readonly [McpDefinitionBrand]: never;
|
|
427
481
|
};
|
|
428
482
|
//#endregion
|
|
429
|
-
export {
|
|
483
|
+
export { ToolVisibilityContext as A, ProgressUpdate as B, TextContent as C, ToolHandlerResult as D, ToolDefinition as E, MetricsConfig as F, JwtClaims as H, MetricsOptions as I, AuthContext as L, ZodRawShape$1 as M, ZodSchema as N, ToolUiOptions as O, Skill as P, McpClientInfo as R, ResourceLinkIcon as S, ToolContent as T, McpAuthConfig as U, ToolContext as V, JsonValueInput as _, AppDefinitionInput as a, McpDefinitionInput as b, ConditionalSkill as c, CreateAppContextInput as d, EmbeddedBlobResource as f, JsonValue as g, ImageContent as h, AppDefinition as i, ZodOutputSchema as j, ToolUiVisibility as k, ContentAnnotations as l, EmbeddedTextResource as m, AppContextToolDefinitionInput as n, AppPermissions as o, EmbeddedResource as p, AppCsp as r, AudioContent as s, AppContextToolDefinition as t, ContentBlock as u, McpAllowedOrigins as v, ToolAnnotations as w, ResourceLink as x, McpDefinition as y, McpProtocolEra as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovable.dev/mcp-js",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=20"
|
|
6
6
|
},
|
|
@@ -40,6 +40,36 @@
|
|
|
40
40
|
"default": "./dist/index.cjs"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
+
"./testing": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/testing/index.d.ts",
|
|
46
|
+
"default": "./dist/testing/index.js"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/testing/index.d.cts",
|
|
50
|
+
"default": "./dist/testing/index.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"./testing/server": {
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/testing/server.d.ts",
|
|
56
|
+
"default": "./dist/testing/server.js"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/testing/server.d.cts",
|
|
60
|
+
"default": "./dist/testing/server.cjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./testing/browser": {
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/testing/browser.d.ts",
|
|
66
|
+
"default": "./dist/testing/browser.js"
|
|
67
|
+
},
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/testing/browser.d.cts",
|
|
70
|
+
"default": "./dist/testing/browser.cjs"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
43
73
|
"./protocols/mcp": {
|
|
44
74
|
"import": {
|
|
45
75
|
"types": "./dist/protocols/mcp/index.d.ts",
|
|
@@ -90,26 +120,6 @@
|
|
|
90
120
|
"default": "./dist/stacks/supabase/index.cjs"
|
|
91
121
|
}
|
|
92
122
|
},
|
|
93
|
-
"./testing": {
|
|
94
|
-
"import": {
|
|
95
|
-
"types": "./dist/testing/index.d.ts",
|
|
96
|
-
"default": "./dist/testing/index.js"
|
|
97
|
-
},
|
|
98
|
-
"require": {
|
|
99
|
-
"types": "./dist/testing/index.d.cts",
|
|
100
|
-
"default": "./dist/testing/index.cjs"
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"./testing/server": {
|
|
104
|
-
"import": {
|
|
105
|
-
"types": "./dist/testing/server.d.ts",
|
|
106
|
-
"default": "./dist/testing/server.js"
|
|
107
|
-
},
|
|
108
|
-
"require": {
|
|
109
|
-
"types": "./dist/testing/server.d.cts",
|
|
110
|
-
"default": "./dist/testing/server.cjs"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
123
|
"./stacks/supabase/vite": {
|
|
114
124
|
"import": {
|
|
115
125
|
"types": "./dist/stacks/supabase/vite.d.ts",
|
|
@@ -122,8 +132,8 @@
|
|
|
122
132
|
}
|
|
123
133
|
},
|
|
124
134
|
"bin": {
|
|
125
|
-
"lovable-mcp-
|
|
126
|
-
"lovable-mcp-
|
|
135
|
+
"lovable-mcp-extract-manifest": "./dist/cli/extract-manifest.cjs",
|
|
136
|
+
"lovable-mcp-check": "./dist/cli/check-server.cjs"
|
|
127
137
|
},
|
|
128
138
|
"files": [
|
|
129
139
|
"dist",
|
|
@@ -148,17 +158,44 @@
|
|
|
148
158
|
"js-yaml": "^4.3.2"
|
|
149
159
|
},
|
|
150
160
|
"peerDependencies": {
|
|
161
|
+
"@modelcontextprotocol/ext-apps": "^1.7.3",
|
|
162
|
+
"lightningcss": "^1.33.0",
|
|
163
|
+
"playwright": "^1.62.0",
|
|
151
164
|
"vite": ">=5.0.0 <9.0.0",
|
|
152
165
|
"zod": "^3.25 || ^4.0"
|
|
153
166
|
},
|
|
154
167
|
"peerDependenciesMeta": {
|
|
168
|
+
"@modelcontextprotocol/ext-apps": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"lightningcss": {
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"playwright": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
155
177
|
"vite": {
|
|
156
178
|
"optional": true
|
|
157
179
|
}
|
|
158
180
|
},
|
|
159
181
|
"devDependencies": {
|
|
182
|
+
"@modelcontextprotocol/ext-apps": "^1.7.3",
|
|
183
|
+
"@tailwindcss/node": "4.3.0",
|
|
184
|
+
"@tailwindcss/oxide": "4.3.3",
|
|
185
|
+
"@tailwindcss/vite": "4.3.0",
|
|
186
|
+
"@types/estree": "^1.0.8",
|
|
160
187
|
"@types/node": "22.13.13",
|
|
188
|
+
"@types/react": "19.3.0",
|
|
189
|
+
"@types/react-dom": "19.3.0",
|
|
190
|
+
"estree-walker": "^3.0.3",
|
|
191
|
+
"lightningcss": "^1.33.0",
|
|
192
|
+
"mrmime": "^2.0.1",
|
|
193
|
+
"parse5": "^7.3.0",
|
|
194
|
+
"playwright": "1.62.0",
|
|
195
|
+
"react": "19.3.0",
|
|
196
|
+
"react-dom": "19.3.0",
|
|
161
197
|
"rimraf": "^5.0.0",
|
|
198
|
+
"tailwindcss": "^4.2.4",
|
|
162
199
|
"tsdown": "^0.22.5",
|
|
163
200
|
"typescript": "7.0.2",
|
|
164
201
|
"vite": "^7.3.1",
|
|
@@ -173,11 +210,15 @@
|
|
|
173
210
|
"typecheck": "tsc --noEmit",
|
|
174
211
|
"format": "oxfmt --write src/ tests/",
|
|
175
212
|
"format:check": "oxfmt --check src/ tests/",
|
|
176
|
-
"lint": "oxfmt --check src/ tests/ && oxlint -c ../../oxlint.config.ts src/ tests/",
|
|
177
|
-
"lint:fix": "oxfmt --write src/ tests/ && oxlint -c ../../oxlint.config.ts --fix src/ tests/",
|
|
213
|
+
"lint": "oxfmt --check src/ tests/ && ../../bin/oxlint -c ../../oxlint.config.ts src/ tests/",
|
|
214
|
+
"lint:fix": "oxfmt --write src/ tests/ && ../../bin/oxlint -c ../../oxlint.config.ts --fix src/ tests/",
|
|
178
215
|
"test": "vitest run --project unit && npm run test:package:zod && node tests/package/testing-kit.mjs",
|
|
179
216
|
"test:package:testing": "npm run build && node tests/package/testing-kit.mjs",
|
|
180
217
|
"test:package:zod": "npm run build && node tests/package/zod-compat.mjs",
|
|
218
|
+
"test:harness": "vitest run --project unit tests/harness/",
|
|
219
|
+
"test:browser": "vitest run --project browser",
|
|
220
|
+
"test:package:apps": "npm run build && node tests/package/apps-testing-kit.mjs",
|
|
221
|
+
"test:package:apps-compat": "npm run build && node tests/package/apps-compat.mjs",
|
|
181
222
|
"test:watch": "vitest --project unit",
|
|
182
223
|
"example:tanstack:install": "bun link && cd example/tanstack && bun install && bun link @lovable.dev/mcp-js",
|
|
183
224
|
"example:tanstack:dev": "cd example/tanstack && bun --bun run dev",
|