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.cjs
CHANGED
|
@@ -8884,11 +8884,13 @@ var StreamableHTTPServerTransport = class {
|
|
|
8884
8884
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
8885
8885
|
throw Error("Dynamic require of \"" + Z + "\" is not supported");
|
|
8886
8886
|
});
|
|
8887
|
-
var v = require_protocol.union([require_protocol.literal("light"), require_protocol.literal("dark")]).describe("Color theme preference for the host environment.")
|
|
8887
|
+
var v = require_protocol.union([require_protocol.literal("light"), require_protocol.literal("dark")]).describe("Color theme preference for the host environment.");
|
|
8888
|
+
var K = require_protocol.union([
|
|
8888
8889
|
require_protocol.literal("inline"),
|
|
8889
8890
|
require_protocol.literal("fullscreen"),
|
|
8890
8891
|
require_protocol.literal("pip")
|
|
8891
|
-
]).describe("Display mode for UI presentation.")
|
|
8892
|
+
]).describe("Display mode for UI presentation.");
|
|
8893
|
+
var QQ = require_protocol.union([
|
|
8892
8894
|
require_protocol.literal("--color-background-primary"),
|
|
8893
8895
|
require_protocol.literal("--color-background-secondary"),
|
|
8894
8896
|
require_protocol.literal("--color-background-tertiary"),
|
|
@@ -8965,7 +8967,8 @@ var v = require_protocol.union([require_protocol.literal("light"), require_proto
|
|
|
8965
8967
|
require_protocol.literal("--shadow-sm"),
|
|
8966
8968
|
require_protocol.literal("--shadow-md"),
|
|
8967
8969
|
require_protocol.literal("--shadow-lg")
|
|
8968
|
-
]).describe("CSS variable keys available to MCP apps for theming.")
|
|
8970
|
+
]).describe("CSS variable keys available to MCP apps for theming.");
|
|
8971
|
+
var ZQ = require_protocol.record(QQ.describe(`Style variables for theming MCP apps.
|
|
8969
8972
|
|
|
8970
8973
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
8971
8974
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -9003,7 +9006,8 @@ var Y = require_protocol.object({
|
|
|
9003
9006
|
resourceDomains: require_protocol.array(require_protocol.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)"),
|
|
9004
9007
|
frameDomains: require_protocol.array(require_protocol.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'`)"),
|
|
9005
9008
|
baseUriDomains: require_protocol.array(require_protocol.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'`)")
|
|
9006
|
-
})
|
|
9009
|
+
});
|
|
9010
|
+
var j = require_protocol.object({
|
|
9007
9011
|
camera: require_protocol.object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),
|
|
9008
9012
|
microphone: require_protocol.object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
9009
9013
|
geolocation: require_protocol.object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
@@ -9028,7 +9032,8 @@ require_protocol.object({
|
|
|
9028
9032
|
method: require_protocol.literal("ui/notifications/tool-cancelled"),
|
|
9029
9033
|
params: require_protocol.object({ reason: require_protocol.string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
9030
9034
|
});
|
|
9031
|
-
var f = require_protocol.object({ fonts: require_protocol.string().optional() })
|
|
9035
|
+
var f = require_protocol.object({ fonts: require_protocol.string().optional() });
|
|
9036
|
+
var u = require_protocol.object({
|
|
9032
9037
|
variables: ZQ.optional().describe("CSS variables for theming the app."),
|
|
9033
9038
|
css: f.optional().describe("CSS blocks that apps can inject.")
|
|
9034
9039
|
});
|
|
@@ -9063,7 +9068,8 @@ var d = require_protocol.object({
|
|
|
9063
9068
|
updateModelContext: O.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
9064
9069
|
message: O.optional().describe("Host supports receiving content messages (ui/message) from the view."),
|
|
9065
9070
|
sampling: require_protocol.object({ tools: require_protocol.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.")
|
|
9066
|
-
})
|
|
9071
|
+
});
|
|
9072
|
+
var h = require_protocol.object({
|
|
9067
9073
|
experimental: require_protocol.object({}).optional().describe("Experimental features (structure TBD)."),
|
|
9068
9074
|
tools: require_protocol.object({ listChanged: require_protocol.boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
9069
9075
|
availableDisplayModes: require_protocol.array(K).optional().describe("Display modes the app supports.")
|
|
@@ -9186,7 +9192,8 @@ require_protocol.object({
|
|
|
9186
9192
|
hostCapabilities: d.describe("Features and capabilities provided by the host."),
|
|
9187
9193
|
hostContext: T.describe("Rich context about the host environment.")
|
|
9188
9194
|
}).passthrough();
|
|
9189
|
-
var C = "ui/resourceUri"
|
|
9195
|
+
var C = "ui/resourceUri";
|
|
9196
|
+
var p = "text/html;profile=mcp-app";
|
|
9190
9197
|
function K3(Z, $, J, X) {
|
|
9191
9198
|
let V = J._meta, D = V.ui, L = V[C], W = V;
|
|
9192
9199
|
if (D?.resourceUri && !L) W = {
|