sunpeak 0.18.9 → 0.18.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.
- package/README.md +12 -0
- package/bin/commands/inspect.mjs +4 -1
- package/bin/commands/start.mjs +2 -1
- package/bin/lib/sandbox-server.mjs +12 -1
- package/dist/chatgpt/index.cjs +1 -1
- package/dist/chatgpt/index.js +1 -1
- package/dist/claude/index.cjs +1 -1
- package/dist/claude/index.js +1 -1
- package/dist/host/chatgpt/index.cjs +1 -1
- package/dist/host/chatgpt/index.js +1 -1
- package/dist/index.cjs +93 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +54 -54
- package/dist/index.js.map +1 -1
- package/dist/inspector/hosts.d.ts +12 -0
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-CTMccsz9.cjs → inspector-8nPV2A-z.cjs} +93 -51
- package/dist/inspector-8nPV2A-z.cjs.map +1 -0
- package/dist/{inspector-DkS75JCk.js → inspector-Cdo5BK2D.js} +92 -50
- package/dist/inspector-Cdo5BK2D.js.map +1 -0
- package/dist/mcp/index.cjs +69 -62
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +63 -56
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/production-server.d.ts +12 -0
- package/dist/{protocol-DJmRaBzO.js → protocol-BfAACnv0.js} +14 -9
- package/dist/{protocol-DJmRaBzO.js.map → protocol-BfAACnv0.js.map} +1 -1
- package/dist/{protocol-jbxhzcnS.cjs → protocol-C7kTcBr_.cjs} +14 -9
- package/dist/{protocol-jbxhzcnS.cjs.map → protocol-C7kTcBr_.cjs.map} +1 -1
- package/dist/style.css +36 -1
- package/dist/{use-app-BNbz1uzj.js → use-app-CfP9VypY.js} +107 -56
- package/dist/use-app-CfP9VypY.js.map +1 -0
- package/dist/{use-app-Dqh20JPP.cjs → use-app-CzcYw1Kz.cjs} +165 -114
- package/dist/use-app-CzcYw1Kz.cjs.map +1 -0
- package/package.json +3 -3
- package/template/README.md +12 -0
- package/template/dist/albums/albums.html +16 -15
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +20 -19
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +7 -6
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +6 -5
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +3 -3
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +49 -49
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +49 -49
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +89 -89
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +24 -24
- package/template/node_modules/.vite-mcp/deps/{protocol-CTflwIfG.js → protocol-B_qKkui_.js} +14 -9
- package/template/node_modules/.vite-mcp/deps/protocol-B_qKkui_.js.map +1 -0
- package/template/src/resources/carousel/carousel.test.tsx +16 -2
- package/template/src/resources/carousel/carousel.tsx +42 -14
- package/template/src/resources/carousel/components/carousel.tsx +20 -0
- package/template/src/resources/carousel/components/index.ts +1 -0
- package/template/src/resources/carousel/components/place-detail.tsx +153 -0
- package/template/tests/e2e/carousel.spec.ts +125 -0
- package/template/tests/live/carousel.spec.ts +2 -2
- package/template/tests/simulations/show-carousel.json +54 -5
- package/dist/inspector-CTMccsz9.cjs.map +0 -1
- package/dist/inspector-DkS75JCk.js.map +0 -1
- package/dist/use-app-BNbz1uzj.js.map +0 -1
- package/dist/use-app-Dqh20JPP.cjs.map +0 -1
- package/template/node_modules/.vite-mcp/deps/protocol-CTflwIfG.js.map +0 -1
|
@@ -77,6 +77,12 @@ export interface ProductionServerConfig {
|
|
|
77
77
|
* may trigger host warnings (e.g. ChatGPT's "Widget domain is not set").
|
|
78
78
|
*/
|
|
79
79
|
serverUrl?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Respond with JSON instead of SSE streams.
|
|
82
|
+
* Recommended for serverless environments (Lambda, Workers, Vercel Edge)
|
|
83
|
+
* where holding open SSE connections is unreliable. Defaults to `true`.
|
|
84
|
+
*/
|
|
85
|
+
enableJsonResponse?: boolean;
|
|
80
86
|
}
|
|
81
87
|
/**
|
|
82
88
|
* Configuration for creating a Web Standard MCP handler (serverless/edge).
|
|
@@ -101,6 +107,12 @@ export interface WebHandlerConfig {
|
|
|
101
107
|
* may trigger host warnings (e.g. ChatGPT's "Widget domain is not set").
|
|
102
108
|
*/
|
|
103
109
|
serverUrl?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Respond with JSON instead of SSE streams.
|
|
112
|
+
* Recommended for serverless environments (Lambda, Workers, Vercel Edge)
|
|
113
|
+
* where holding open SSE connections is unreliable. Defaults to `true`.
|
|
114
|
+
*/
|
|
115
|
+
enableJsonResponse?: boolean;
|
|
104
116
|
}
|
|
105
117
|
/**
|
|
106
118
|
* Create an MCP server with production tool handlers and pre-built resources.
|
|
@@ -7101,7 +7101,7 @@ function object$1(shape, params) {
|
|
|
7101
7101
|
});
|
|
7102
7102
|
}
|
|
7103
7103
|
//#endregion
|
|
7104
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
7104
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
7105
7105
|
function isZ4Schema(s) {
|
|
7106
7106
|
return !!s._zod;
|
|
7107
7107
|
}
|
|
@@ -7920,7 +7920,7 @@ function preprocess(fn, schema) {
|
|
|
7920
7920
|
return pipe(transform(fn), schema);
|
|
7921
7921
|
}
|
|
7922
7922
|
//#endregion
|
|
7923
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
7923
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
7924
7924
|
var LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
7925
7925
|
var DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
7926
7926
|
var SUPPORTED_PROTOCOL_VERSIONS = [
|
|
@@ -7946,7 +7946,7 @@ var ProgressTokenSchema = union([string(), number().int()]);
|
|
|
7946
7946
|
*/
|
|
7947
7947
|
var CursorSchema = string();
|
|
7948
7948
|
looseObject({
|
|
7949
|
-
ttl:
|
|
7949
|
+
ttl: number().optional(),
|
|
7950
7950
|
pollInterval: number().optional()
|
|
7951
7951
|
});
|
|
7952
7952
|
var TaskMetadataSchema = object({ ttl: number().optional() });
|
|
@@ -8147,7 +8147,8 @@ var ClientCapabilitiesSchema = object({
|
|
|
8147
8147
|
}).optional(),
|
|
8148
8148
|
elicitation: ElicitationCapabilitySchema.optional(),
|
|
8149
8149
|
roots: object({ listChanged: boolean().optional() }).optional(),
|
|
8150
|
-
tasks: ClientTasksCapabilitySchema.optional()
|
|
8150
|
+
tasks: ClientTasksCapabilitySchema.optional(),
|
|
8151
|
+
extensions: record(string(), AssertObjectSchema).optional()
|
|
8151
8152
|
});
|
|
8152
8153
|
var InitializeRequestParamsSchema = BaseRequestParamsSchema.extend({
|
|
8153
8154
|
protocolVersion: string(),
|
|
@@ -8175,7 +8176,8 @@ var ServerCapabilitiesSchema = object({
|
|
|
8175
8176
|
listChanged: boolean().optional()
|
|
8176
8177
|
}).optional(),
|
|
8177
8178
|
tools: object({ listChanged: boolean().optional() }).optional(),
|
|
8178
|
-
tasks: ServerTasksCapabilitySchema.optional()
|
|
8179
|
+
tasks: ServerTasksCapabilitySchema.optional(),
|
|
8180
|
+
extensions: record(string(), AssertObjectSchema).optional()
|
|
8179
8181
|
});
|
|
8180
8182
|
/**
|
|
8181
8183
|
* After receiving an initialize request from the client, the server sends this response.
|
|
@@ -8341,6 +8343,7 @@ var ResourceSchema = object({
|
|
|
8341
8343
|
uri: string(),
|
|
8342
8344
|
description: optional(string()),
|
|
8343
8345
|
mimeType: optional(string()),
|
|
8346
|
+
size: optional(number()),
|
|
8344
8347
|
annotations: AnnotationsSchema.optional(),
|
|
8345
8348
|
_meta: optional(looseObject({}))
|
|
8346
8349
|
});
|
|
@@ -9122,7 +9125,7 @@ var UrlElicitationRequiredError = class extends McpError {
|
|
|
9122
9125
|
}
|
|
9123
9126
|
};
|
|
9124
9127
|
//#endregion
|
|
9125
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
9128
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js
|
|
9126
9129
|
/**
|
|
9127
9130
|
* Experimental task interfaces for MCP SDK.
|
|
9128
9131
|
* WARNING: These APIs are experimental and may change without notice.
|
|
@@ -10201,7 +10204,7 @@ var zodToJsonSchema = (schema, options) => {
|
|
|
10201
10204
|
return combined;
|
|
10202
10205
|
};
|
|
10203
10206
|
//#endregion
|
|
10204
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.
|
|
10207
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js
|
|
10205
10208
|
function mapMiniTarget(t) {
|
|
10206
10209
|
if (!t) return "draft-7";
|
|
10207
10210
|
if (t === "jsonSchema7" || t === "draft-7") return "draft-7";
|
|
@@ -10411,6 +10414,8 @@ var Protocol = class {
|
|
|
10411
10414
|
this._progressHandlers.clear();
|
|
10412
10415
|
this._taskProgressTokens.clear();
|
|
10413
10416
|
this._pendingDebouncedNotifications.clear();
|
|
10417
|
+
for (const info of this._timeoutInfo.values()) clearTimeout(info.timeoutId);
|
|
10418
|
+
this._timeoutInfo.clear();
|
|
10414
10419
|
for (const controller of this._requestHandlerAbortControllers.values()) controller.abort();
|
|
10415
10420
|
this._requestHandlerAbortControllers.clear();
|
|
10416
10421
|
const error = McpError.fromError(ErrorCode.ConnectionClosed, "Connection closed");
|
|
@@ -10514,7 +10519,7 @@ var Protocol = class {
|
|
|
10514
10519
|
}, capturedTransport?.sessionId);
|
|
10515
10520
|
else await capturedTransport?.send(errorResponse);
|
|
10516
10521
|
}).catch((error) => this._onerror(/* @__PURE__ */ new Error(`Failed to send response: ${error}`))).finally(() => {
|
|
10517
|
-
this._requestHandlerAbortControllers.delete(request.id);
|
|
10522
|
+
if (this._requestHandlerAbortControllers.get(request.id) === abortController) this._requestHandlerAbortControllers.delete(request.id);
|
|
10518
10523
|
});
|
|
10519
10524
|
}
|
|
10520
10525
|
_onprogress(notification) {
|
|
@@ -11077,4 +11082,4 @@ function mergeCapabilities(base, additional) {
|
|
|
11077
11082
|
//#endregion
|
|
11078
11083
|
export { literal as $, LoggingLevelSchema as A, SUPPORTED_PROTOCOL_VERSIONS as B, ListPromptsResultSchema as C, ListResourcesResultSchema as D, ListResourcesRequestSchema as E, ReadResourceRequestSchema as F, assertCompleteRequestResourceTemplate as G, ToolListChangedNotificationSchema as H, ReadResourceResultSchema as I, isJSONRPCRequest as J, isInitializeRequest as K, RequestIdSchema as L, McpError as M, PingRequestSchema as N, ListRootsResultSchema as O, PromptListChangedNotificationSchema as P, boolean as Q, ResourceLinkSchema as R, ListPromptsRequestSchema as S, ListResourceTemplatesResultSchema as T, ToolSchema as U, SetLevelRequestSchema as V, assertCompleteRequestPrompt as W, _undefined as X, isJSONRPCResultResponse as Y, array as Z, ImplementationSchema as _, CallToolResultSchema as a, unknown as at, JSONRPCMessageSchema as b, CreateMessageResultSchema as c, getParseErrorMessage as ct, DEFAULT_NEGOTIATED_PROTOCOL_VERSION as d, isZ4Schema as dt, number as et, ElicitResultSchema as f, normalizeObjectSchema as ft, GetPromptRequestSchema as g, ErrorCode as h, safeParseAsync$1 as ht, CallToolRequestSchema as i, union as it, LoggingMessageNotificationSchema as j, ListToolsRequestSchema as k, CreateMessageResultWithToolsSchema as l, getSchemaDescription as lt, EmptyResultSchema as m, safeParse$1 as mt, mergeCapabilities as n, record as nt, CompleteRequestSchema as o, getLiteralValue as ot, EmbeddedResourceSchema as p, objectFromShape as pt, isJSONRPCErrorResponse as q, toJsonSchemaCompat as r, string as rt, ContentBlockSchema as s, getObjectShape as st, Protocol as t, object as tt, CreateTaskResultSchema as u, isSchemaOptional as ut, InitializeRequestSchema as v, ListResourceTemplatesRequestSchema as w, LATEST_PROTOCOL_VERSION as x, InitializedNotificationSchema as y, ResourceListChangedNotificationSchema as z };
|
|
11079
11084
|
|
|
11080
|
-
//# sourceMappingURL=protocol-
|
|
11085
|
+
//# sourceMappingURL=protocol-BfAACnv0.js.map
|