sunpeak 0.20.64 → 0.20.69
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/bin/commands/dev.mjs +88 -46
- package/bin/lib/inspect/inspect-config.mjs +6 -6
- package/bin/lib/live/live-config.mjs +8 -6
- package/bin/lib/test/test-config.mjs +7 -10
- 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/embed.css +2 -2
- package/dist/host/chatgpt/index.cjs +1 -1
- package/dist/host/chatgpt/index.js +1 -1
- package/dist/index.cjs +22 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +17 -12
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-Cl5w_7yQ.cjs → inspector-BSYXIDUe.cjs} +34 -17
- package/dist/{inspector-Cl5w_7yQ.cjs.map → inspector-BSYXIDUe.cjs.map} +1 -1
- package/dist/{inspector-DPJeSQAd.js → inspector-C5YJHT_c.js} +32 -16
- package/dist/{inspector-DPJeSQAd.js.map → inspector-C5YJHT_c.js.map} +1 -1
- package/dist/mcp/index.cjs +517 -104
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +505 -92
- package/dist/mcp/index.js.map +1 -1
- package/dist/style.css +7 -6
- package/dist/{use-app-D7-OtXBl.js → use-app-D27K0Cjf.js} +82 -32
- package/dist/{use-app-D7-OtXBl.js.map → use-app-D27K0Cjf.js.map} +1 -1
- package/dist/{use-app-BcSuulay.cjs → use-app-LPg2jlv8.cjs} +107 -32
- package/dist/{use-app-BcSuulay.cjs.map → use-app-LPg2jlv8.cjs.map} +1 -1
- package/package.json +21 -21
- package/template/dist/albums/albums.html +3 -3
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +3 -3
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +887 -811
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +2 -2
- package/template/dist/review/review.json +1 -1
- package/template/node_modules/.bin/vite +2 -2
- package/template/node_modules/.bin/vitest +2 -2
- package/template/node_modules/.vite/deps/_metadata.json +4 -4
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +83 -31
- 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 +83 -31
- 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 +83 -31
- package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/@testing-library_react.js +4 -4
- package/template/node_modules/.vite-mcp/deps/@testing-library_react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +36 -36
- package/template/node_modules/.vite-mcp/deps/{client-ClsaORxz.js → client-96teDLij.js} +6 -6
- package/template/node_modules/.vite-mcp/deps/{client-ClsaORxz.js.map → client-96teDLij.js.map} +1 -1
- package/template/node_modules/.vite-mcp/deps/{dist-CO4R4Zw4.js → dist-Bd8a6mlN.js} +17 -5
- package/template/node_modules/.vite-mcp/deps/{dist-CO4R4Zw4.js.map → dist-Bd8a6mlN.js.map} +1 -1
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js +1 -1
- package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +15062 -13925
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/react-dom.js +3 -3
- package/template/node_modules/.vite-mcp/deps/react-dom.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/react-dom_client.js +1 -1
- package/template/node_modules/.vite-mcp/deps/react.js +3 -3
- package/template/node_modules/.vite-mcp/deps/react.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/react_jsx-dev-runtime.js +2 -2
- package/template/node_modules/.vite-mcp/deps/react_jsx-dev-runtime.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/react_jsx-runtime.js +2 -2
- package/template/node_modules/.vite-mcp/deps/react_jsx-runtime.js.map +1 -1
- package/template/node_modules/.vite-mcp/deps/vitest.js +57 -36
- package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
- package/template/package.json +11 -11
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-linux.png +0 -0
- package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
package/dist/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { $ as _undefined, B as ResourceLinkSchema, G as ToolSchema, a as CallToolResultSchema, at as object, ct as union, et as array, it as number, lt as unknown, m as EmbeddedResourceSchema, nt as literal, ot as record, rt as never, s as ContentBlockSchema, st as string, tt as boolean, v as ImplementationSchema, wt as __require, z as RequestIdSchema } from "./protocol-fGgeFIiL.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { O as cn, k as DEFAULT_STYLE_VARIABLES } from "./inspector-
|
|
2
|
+
import { $ as o, A as T, B as a, C as P, D as R, E as QY, F as XQ, G as f, H as d, I as YQ, J as i, K as g, L as ZQ, M as U, N as UQ, O as RQ, P as W, Q as n, R as _, S as OQ, T as QQ, U as e, V as bQ, W as eX, X as kQ, Y as j, Z as l, _ as IQ, a as AQ, at as u, b as M, c as CQ, ct as wQ, d as EQ, et as q, f as F, g as I, h as HQ, i as A, it as t, j as TQ, k as SQ, l as DQ, lt as z, m as H, n as AppProvider, nt as r, o as B, ot as v, p as FQ, q as h, r as $Q, rt as s, s as C, st as w, t as useApp, tt as qQ, u as E, ut as zQ, v as JQ, w as PQ, x as O, y as L, z as _Q } from "./use-app-D27K0Cjf.js";
|
|
3
|
+
import { O as cn, k as DEFAULT_STYLE_VARIABLES } from "./inspector-C5YJHT_c.js";
|
|
4
4
|
import { detectHost, isChatGPT, isClaude } from "./host/index.js";
|
|
5
5
|
import { t as inspector_exports } from "./inspector/index.js";
|
|
6
6
|
import { t as chatgpt_exports } from "./chatgpt/index.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { forwardRef, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.4_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-
|
|
10
|
+
//#region ../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.4_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-_b5c68214f1621bc5f24903738e19c6a8/node_modules/@modelcontextprotocol/ext-apps/dist/src/react/index.js
|
|
11
11
|
((K) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(K, { get: (Q, X) => (typeof __require < "u" ? __require : Q)[X] }) : K)(function(K) {
|
|
12
12
|
if (typeof __require < "u") return __require.apply(this, arguments);
|
|
13
13
|
throw Error("Dynamic require of \"" + K + "\" is not supported");
|
|
14
14
|
});
|
|
15
|
-
var i$1 = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment.")
|
|
15
|
+
var i$1 = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment.");
|
|
16
|
+
var V = union([
|
|
16
17
|
literal("inline"),
|
|
17
18
|
literal("fullscreen"),
|
|
18
19
|
literal("pip")
|
|
19
|
-
]).describe("Display mode for UI presentation.")
|
|
20
|
+
]).describe("Display mode for UI presentation.");
|
|
21
|
+
var MJ = record(union([
|
|
20
22
|
literal("--color-background-primary"),
|
|
21
23
|
literal("--color-background-secondary"),
|
|
22
24
|
literal("--color-background-tertiary"),
|
|
@@ -131,7 +133,8 @@ var P$1 = object({
|
|
|
131
133
|
resourceDomains: array(string()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),
|
|
132
134
|
frameDomains: array(string()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),
|
|
133
135
|
baseUriDomains: array(string()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")
|
|
134
|
-
})
|
|
136
|
+
});
|
|
137
|
+
var D = object({
|
|
135
138
|
camera: object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),
|
|
136
139
|
microphone: object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
137
140
|
geolocation: object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
@@ -156,7 +159,8 @@ object({
|
|
|
156
159
|
method: literal("ui/notifications/tool-cancelled"),
|
|
157
160
|
params: object({ reason: string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
158
161
|
});
|
|
159
|
-
var p = object({ fonts: string().optional() })
|
|
162
|
+
var p = object({ fonts: string().optional() });
|
|
163
|
+
var n$1 = object({
|
|
160
164
|
variables: MJ.optional().describe("CSS variables for theming the app."),
|
|
161
165
|
css: p.optional().describe("CSS blocks that apps can inject.")
|
|
162
166
|
});
|
|
@@ -177,7 +181,7 @@ object({
|
|
|
177
181
|
method: literal("ui/notifications/request-teardown"),
|
|
178
182
|
params: object({}).optional()
|
|
179
183
|
});
|
|
180
|
-
var o = object({
|
|
184
|
+
var o$1 = object({
|
|
181
185
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
182
186
|
openLinks: object({}).optional().describe("Host supports opening external URLs."),
|
|
183
187
|
downloadFile: object({}).optional().describe("Host supports file downloads via ui/download-file."),
|
|
@@ -191,7 +195,8 @@ var o = object({
|
|
|
191
195
|
updateModelContext: T$1.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
192
196
|
message: T$1.optional().describe("Host supports receiving content messages (ui/message) from the view."),
|
|
193
197
|
sampling: object({ tools: object({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.") }).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")
|
|
194
|
-
})
|
|
198
|
+
});
|
|
199
|
+
var a$1 = object({
|
|
195
200
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
196
201
|
tools: object({ listChanged: boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
197
202
|
availableDisplayModes: array(V).optional().describe("Display modes the app supports.")
|
|
@@ -304,14 +309,14 @@ object({
|
|
|
304
309
|
method: literal("ui/initialize"),
|
|
305
310
|
params: object({
|
|
306
311
|
appInfo: ImplementationSchema.describe("App identification (name and version)."),
|
|
307
|
-
appCapabilities: a.describe("Features and capabilities this app provides."),
|
|
312
|
+
appCapabilities: a$1.describe("Features and capabilities this app provides."),
|
|
308
313
|
protocolVersion: string().describe("Protocol version this app supports.")
|
|
309
314
|
})
|
|
310
315
|
});
|
|
311
316
|
object({
|
|
312
317
|
protocolVersion: string().describe("Negotiated protocol version string (e.g., \"2025-11-21\")."),
|
|
313
318
|
hostInfo: ImplementationSchema.describe("Host application identification and version."),
|
|
314
|
-
hostCapabilities: o.describe("Features and capabilities provided by the host."),
|
|
319
|
+
hostCapabilities: o$1.describe("Features and capabilities provided by the host."),
|
|
315
320
|
hostContext: f$1.describe("Rich context about the host environment.")
|
|
316
321
|
}).passthrough();
|
|
317
322
|
function F$1() {
|
|
@@ -1290,6 +1295,6 @@ var prefersReducedMotion = createMediaQueryFn("(prefers-reduced-motion: reduce)"
|
|
|
1290
1295
|
var isPrimarilyTouchDevice = createMediaQueryFn("(pointer: coarse)");
|
|
1291
1296
|
var isHoverAvailable = createMediaQueryFn("(hover: hover)");
|
|
1292
1297
|
//#endregion
|
|
1293
|
-
export { i as App, AppProvider, r as DOWNLOAD_FILE_METHOD, XQ as HOST_CONTEXT_CHANGED_METHOD, DQ as INITIALIZED_METHOD, $Q as INITIALIZE_METHOD, E as LATEST_PROTOCOL_VERSION, n as MESSAGE_METHOD, d as McpUiAppCapabilitiesSchema, W as McpUiDisplayModeSchema, AQ as McpUiDownloadFileRequestSchema, F as McpUiDownloadFileResultSchema, u as McpUiHostCapabilitiesSchema, M as McpUiHostContextChangedNotificationSchema, T as McpUiHostContextSchema, v as McpUiHostCssSchema, f as McpUiHostStylesSchema, TQ as McpUiInitializeRequestSchema, C as McpUiInitializeResultSchema, FQ as McpUiInitializedNotificationSchema, RQ as McpUiMessageRequestSchema, q as McpUiMessageResultSchema, _Q as McpUiOpenLinkRequestSchema, I as McpUiOpenLinkResultSchema, PQ as McpUiRequestDisplayModeRequestSchema, U as McpUiRequestDisplayModeResultSchema, IQ as McpUiRequestTeardownNotificationSchema, L as McpUiResourceCspSchema, qQ as McpUiResourceMetaSchema, B as McpUiResourcePermissionsSchema, R as McpUiResourceTeardownRequestSchema, zQ as McpUiResourceTeardownResultSchema, OQ as McpUiSizeChangedNotificationSchema, z as McpUiSupportedContentBlockModalitiesSchema, g as McpUiThemeSchema, A as McpUiToolCancelledNotificationSchema, P as McpUiToolInputNotificationSchema, w as McpUiToolInputPartialNotificationSchema, wQ as McpUiToolMetaSchema, H as McpUiToolResultNotificationSchema, h as McpUiToolVisibilitySchema, HQ as McpUiUpdateModelContextRequestSchema, l as OPEN_LINK_METHOD, j as PostMessageTransport, _ as ProtocolWithEvents, JQ as REQUEST_DISPLAY_MODE_METHOD, YQ as REQUEST_TEARDOWN_METHOD, QY as RESOURCE_MIME_TYPE, ZQ as RESOURCE_TEARDOWN_METHOD, eX as RESOURCE_URI_META_KEY, s as SIZE_CHANGED_METHOD, SafeArea, QQ as TOOL_CANCELLED_METHOD, t as TOOL_INPUT_METHOD, O as TOOL_INPUT_PARTIAL_METHOD, e as TOOL_RESULT_METHOD, kQ as applyDocumentTheme, SQ as applyHostFonts, bQ as applyHostStyleVariables, chatgpt_exports as chatgpt, cn, detectHost, CQ as getDocumentTheme, inspector_exports as inspector, isChatGPT, isClaude, isHoverAvailable, isPrimarilyTouchDevice, prefersReducedMotion, useApp, useAppState, useAppTools, wQ$1 as useAutoResize, useCallServerTool, useCreateSamplingMessage, useDeviceCapabilities, useDisplayMode, kQ$1 as useDocumentTheme, useDownloadFile, useHostContext, QK as useHostFonts, useHostInfo, KK as useHostStyleVariables, xQ as useHostStyles, useIsMobile, useListServerResources, useLocale, useOpenLink, usePlatform, useReadServerResource, useRegisterTool, useRequestDisplayMode, useRequestTeardown, useSafeArea, useSendLog, useSendMessage, useSendToolListChanged, useStyles, useTeardown, useTheme, useTimeZone, useToolData, useToolInfo, useUpdateModelContext, useUserAgent, useViewport };
|
|
1298
|
+
export { i as App, AppProvider, r as DOWNLOAD_FILE_METHOD, XQ as HOST_CONTEXT_CHANGED_METHOD, DQ as INITIALIZED_METHOD, $Q as INITIALIZE_METHOD, E as LATEST_PROTOCOL_VERSION, n as MESSAGE_METHOD, d as McpUiAppCapabilitiesSchema, W as McpUiDisplayModeSchema, AQ as McpUiDownloadFileRequestSchema, F as McpUiDownloadFileResultSchema, u as McpUiHostCapabilitiesSchema, M as McpUiHostContextChangedNotificationSchema, T as McpUiHostContextSchema, v as McpUiHostCssSchema, f as McpUiHostStylesSchema, TQ as McpUiInitializeRequestSchema, C as McpUiInitializeResultSchema, FQ as McpUiInitializedNotificationSchema, RQ as McpUiMessageRequestSchema, q as McpUiMessageResultSchema, _Q as McpUiOpenLinkRequestSchema, I as McpUiOpenLinkResultSchema, PQ as McpUiRequestDisplayModeRequestSchema, U as McpUiRequestDisplayModeResultSchema, IQ as McpUiRequestTeardownNotificationSchema, L as McpUiResourceCspSchema, qQ as McpUiResourceMetaSchema, B as McpUiResourcePermissionsSchema, R as McpUiResourceTeardownRequestSchema, zQ as McpUiResourceTeardownResultSchema, EQ as McpUiSandboxProxyReadyNotificationSchema, UQ as McpUiSandboxResourceReadyNotificationSchema, OQ as McpUiSizeChangedNotificationSchema, z as McpUiSupportedContentBlockModalitiesSchema, g as McpUiThemeSchema, A as McpUiToolCancelledNotificationSchema, P as McpUiToolInputNotificationSchema, w as McpUiToolInputPartialNotificationSchema, wQ as McpUiToolMetaSchema, H as McpUiToolResultNotificationSchema, h as McpUiToolVisibilitySchema, HQ as McpUiUpdateModelContextRequestSchema, l as OPEN_LINK_METHOD, j as PostMessageTransport, _ as ProtocolWithEvents, JQ as REQUEST_DISPLAY_MODE_METHOD, YQ as REQUEST_TEARDOWN_METHOD, QY as RESOURCE_MIME_TYPE, ZQ as RESOURCE_TEARDOWN_METHOD, eX as RESOURCE_URI_META_KEY, a as SANDBOX_PROXY_READY_METHOD, o as SANDBOX_RESOURCE_READY_METHOD, s as SIZE_CHANGED_METHOD, SafeArea, QQ as TOOL_CANCELLED_METHOD, t as TOOL_INPUT_METHOD, O as TOOL_INPUT_PARTIAL_METHOD, e as TOOL_RESULT_METHOD, kQ as applyDocumentTheme, SQ as applyHostFonts, bQ as applyHostStyleVariables, chatgpt_exports as chatgpt, cn, detectHost, CQ as getDocumentTheme, inspector_exports as inspector, isChatGPT, isClaude, isHoverAvailable, isPrimarilyTouchDevice, prefersReducedMotion, useApp, useAppState, useAppTools, wQ$1 as useAutoResize, useCallServerTool, useCreateSamplingMessage, useDeviceCapabilities, useDisplayMode, kQ$1 as useDocumentTheme, useDownloadFile, useHostContext, QK as useHostFonts, useHostInfo, KK as useHostStyleVariables, xQ as useHostStyles, useIsMobile, useListServerResources, useLocale, useOpenLink, usePlatform, useReadServerResource, useRegisterTool, useRequestDisplayMode, useRequestTeardown, useSafeArea, useSendLog, useSendMessage, useSendToolListChanged, useStyles, useTeardown, useTheme, useTimeZone, useToolData, useToolInfo, useUpdateModelContext, useUserAgent, useViewport };
|
|
1294
1299
|
|
|
1295
1300
|
//# sourceMappingURL=index.js.map
|