sunpeak 0.20.62 → 0.20.67
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 +3 -0
- package/bin/commands/dev.mjs +88 -46
- package/bin/commands/inspect.mjs +8 -6
- package/bin/lib/inspect/inspect-config.mjs +6 -6
- package/bin/lib/live/chatgpt-page.mjs +40 -25
- package/bin/lib/live/global-setup.mjs +2 -2
- package/bin/lib/live/host-page.mjs +30 -24
- package/bin/lib/live/live-config.mjs +8 -6
- package/bin/lib/test/test-config.mjs +7 -10
- package/bin/lib/test/test-fixtures.mjs +12 -3
- 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 +14 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/inspector/index.cjs +1 -1
- package/dist/inspector/index.js +1 -1
- package/dist/{inspector-DPJeSQAd.js → inspector-BQx_pKAK.js} +31 -15
- package/dist/{inspector-DPJeSQAd.js.map → inspector-BQx_pKAK.js.map} +1 -1
- package/dist/{inspector-Cl5w_7yQ.cjs → inspector-wz-9eEPo.cjs} +33 -16
- package/dist/{inspector-Cl5w_7yQ.cjs.map → inspector-wz-9eEPo.cjs.map} +1 -1
- package/dist/mcp/index.cjs +14 -7
- package/dist/mcp/index.cjs.map +1 -1
- package/dist/mcp/index.js +12 -6
- package/dist/mcp/index.js.map +1 -1
- package/dist/style.css +7 -6
- package/dist/{use-app-D7-OtXBl.js → use-app-BUrAWLg8.js} +76 -28
- package/dist/{use-app-D7-OtXBl.js.map → use-app-BUrAWLg8.js.map} +1 -1
- package/dist/{use-app-BcSuulay.cjs → use-app-QDHDymli.cjs} +78 -29
- package/dist/{use-app-BcSuulay.cjs.map → use-app-QDHDymli.cjs.map} +1 -1
- package/package.json +16 -16
- package/template/README.md +12 -4
- package/template/dist/albums/albums.html +2 -2
- package/template/dist/albums/albums.json +1 -1
- package/template/dist/carousel/carousel.html +2 -2
- package/template/dist/carousel/carousel.json +1 -1
- package/template/dist/map/map.html +755 -750
- package/template/dist/map/map.json +1 -1
- package/template/dist/review/review.html +1 -1
- 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 +82 -30
- 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 +82 -30
- 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 +82 -30
- 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.map +1 -1
- package/template/node_modules/.vite-mcp/deps/_metadata.json +24 -24
- 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.map +1 -1
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +14765 -13820
- package/template/node_modules/.vite-mcp/deps/mapbox-gl.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 +6 -6
- 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/mcp/index.js
CHANGED
|
@@ -8879,11 +8879,13 @@ var StreamableHTTPServerTransport = class {
|
|
|
8879
8879
|
if (typeof __require < "u") return __require.apply(this, arguments);
|
|
8880
8880
|
throw Error("Dynamic require of \"" + Z + "\" is not supported");
|
|
8881
8881
|
});
|
|
8882
|
-
var v = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment.")
|
|
8882
|
+
var v = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment.");
|
|
8883
|
+
var K = union([
|
|
8883
8884
|
literal("inline"),
|
|
8884
8885
|
literal("fullscreen"),
|
|
8885
8886
|
literal("pip")
|
|
8886
|
-
]).describe("Display mode for UI presentation.")
|
|
8887
|
+
]).describe("Display mode for UI presentation.");
|
|
8888
|
+
var ZQ = record(union([
|
|
8887
8889
|
literal("--color-background-primary"),
|
|
8888
8890
|
literal("--color-background-secondary"),
|
|
8889
8891
|
literal("--color-background-tertiary"),
|
|
@@ -8998,7 +9000,8 @@ var Y = object({
|
|
|
8998
9000
|
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)"),
|
|
8999
9001
|
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'`)"),
|
|
9000
9002
|
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'`)")
|
|
9001
|
-
})
|
|
9003
|
+
});
|
|
9004
|
+
var j = object({
|
|
9002
9005
|
camera: object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),
|
|
9003
9006
|
microphone: object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
9004
9007
|
geolocation: object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
@@ -9023,7 +9026,8 @@ object({
|
|
|
9023
9026
|
method: literal("ui/notifications/tool-cancelled"),
|
|
9024
9027
|
params: object({ reason: string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
9025
9028
|
});
|
|
9026
|
-
var f = object({ fonts: string().optional() })
|
|
9029
|
+
var f = object({ fonts: string().optional() });
|
|
9030
|
+
var u = object({
|
|
9027
9031
|
variables: ZQ.optional().describe("CSS variables for theming the app."),
|
|
9028
9032
|
css: f.optional().describe("CSS blocks that apps can inject.")
|
|
9029
9033
|
});
|
|
@@ -9058,7 +9062,8 @@ var d = object({
|
|
|
9058
9062
|
updateModelContext: O.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
9059
9063
|
message: O.optional().describe("Host supports receiving content messages (ui/message) from the view."),
|
|
9060
9064
|
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.")
|
|
9061
|
-
})
|
|
9065
|
+
});
|
|
9066
|
+
var h = object({
|
|
9062
9067
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
9063
9068
|
tools: object({ listChanged: boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
9064
9069
|
availableDisplayModes: array(K).optional().describe("Display modes the app supports.")
|
|
@@ -9181,7 +9186,8 @@ object({
|
|
|
9181
9186
|
hostCapabilities: d.describe("Features and capabilities provided by the host."),
|
|
9182
9187
|
hostContext: T.describe("Rich context about the host environment.")
|
|
9183
9188
|
}).passthrough();
|
|
9184
|
-
var C = "ui/resourceUri"
|
|
9189
|
+
var C = "ui/resourceUri";
|
|
9190
|
+
var p = "text/html;profile=mcp-app";
|
|
9185
9191
|
function K3(Z, $, J, X) {
|
|
9186
9192
|
let V = J._meta, D = V.ui, L = V[C], W = V;
|
|
9187
9193
|
if (D?.resourceUri && !L) W = {
|