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
|
@@ -4571,7 +4571,7 @@ registerHostShell({
|
|
|
4571
4571
|
}`
|
|
4572
4572
|
});
|
|
4573
4573
|
//#endregion
|
|
4574
|
-
//#region ../../node_modules/.pnpm/@modelcontextprotocol+ext-apps@1.7.4_@modelcontextprotocol+sdk@1.29.0_zod@4.4.3__react-
|
|
4574
|
+
//#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/app-bridge.js
|
|
4575
4575
|
((X) => typeof __require < "u" ? __require : typeof Proxy < "u" ? new Proxy(X, { get: (Y, Z) => (typeof __require < "u" ? __require : Y)[Z] }) : X)(function(X) {
|
|
4576
4576
|
if (typeof __require < "u") return __require.apply(this, arguments);
|
|
4577
4577
|
throw Error("Dynamic require of \"" + X + "\" is not supported");
|
|
@@ -4632,11 +4632,15 @@ var _ = class extends Protocol {
|
|
|
4632
4632
|
if (this._registeredMethods.has(Z)) throw Error(`Handler for "${Z}" already registered (via ${Y}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);
|
|
4633
4633
|
this._registeredMethods.add(Z);
|
|
4634
4634
|
}
|
|
4635
|
-
}
|
|
4635
|
+
};
|
|
4636
|
+
var j = "2026-01-26";
|
|
4637
|
+
var r = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment.");
|
|
4638
|
+
var B = union([
|
|
4636
4639
|
literal("inline"),
|
|
4637
4640
|
literal("fullscreen"),
|
|
4638
4641
|
literal("pip")
|
|
4639
|
-
]).describe("Display mode for UI presentation.")
|
|
4642
|
+
]).describe("Display mode for UI presentation.");
|
|
4643
|
+
var RQ = record(union([
|
|
4640
4644
|
literal("--color-background-primary"),
|
|
4641
4645
|
literal("--color-background-secondary"),
|
|
4642
4646
|
literal("--color-background-tertiary"),
|
|
@@ -4731,7 +4735,8 @@ Individual style keys are optional - hosts may provide any subset of these value
|
|
|
4731
4735
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
4732
4736
|
|
|
4733
4737
|
Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
|
|
4734
|
-
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)
|
|
4738
|
+
for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);
|
|
4739
|
+
var L = object({
|
|
4735
4740
|
method: literal("ui/open-link"),
|
|
4736
4741
|
params: object({ url: string().describe("URL to open in the host's browser") })
|
|
4737
4742
|
});
|
|
@@ -4741,7 +4746,8 @@ object({ isError: boolean().optional().describe("True if the host rejected or fa
|
|
|
4741
4746
|
var w = object({
|
|
4742
4747
|
method: literal("ui/notifications/sandbox-proxy-ready"),
|
|
4743
4748
|
params: object({})
|
|
4744
|
-
})
|
|
4749
|
+
});
|
|
4750
|
+
var O = object({
|
|
4745
4751
|
connectDomains: array(string()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
|
|
4746
4752
|
|
|
4747
4753
|
- Maps to CSP \`connect-src\` directive
|
|
@@ -4749,12 +4755,14 @@ var w = object({
|
|
|
4749
4755
|
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)"),
|
|
4750
4756
|
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'`)"),
|
|
4751
4757
|
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'`)")
|
|
4752
|
-
})
|
|
4758
|
+
});
|
|
4759
|
+
var z = object({
|
|
4753
4760
|
camera: object({}).optional().describe("Request camera access.\n\nMaps to Permission Policy `camera` feature."),
|
|
4754
4761
|
microphone: object({}).optional().describe("Request microphone access.\n\nMaps to Permission Policy `microphone` feature."),
|
|
4755
4762
|
geolocation: object({}).optional().describe("Request geolocation access.\n\nMaps to Permission Policy `geolocation` feature."),
|
|
4756
4763
|
clipboardWrite: object({}).optional().describe("Request clipboard write access.\n\nMaps to Permission Policy `clipboard-write` feature.")
|
|
4757
|
-
})
|
|
4764
|
+
});
|
|
4765
|
+
var H = object({
|
|
4758
4766
|
method: literal("ui/notifications/size-changed"),
|
|
4759
4767
|
params: object({
|
|
4760
4768
|
width: number().optional().describe("New width in pixels."),
|
|
@@ -4773,7 +4781,8 @@ object({
|
|
|
4773
4781
|
method: literal("ui/notifications/tool-cancelled"),
|
|
4774
4782
|
params: object({ reason: string().optional().describe("Optional reason for the cancellation (e.g., \"user action\", \"timeout\").") })
|
|
4775
4783
|
});
|
|
4776
|
-
var o = object({ fonts: string().optional() })
|
|
4784
|
+
var o = object({ fonts: string().optional() });
|
|
4785
|
+
var s = object({
|
|
4777
4786
|
variables: RQ.optional().describe("CSS variables for theming the app."),
|
|
4778
4787
|
css: o.optional().describe("CSS blocks that apps can inject.")
|
|
4779
4788
|
});
|
|
@@ -4781,17 +4790,20 @@ object({
|
|
|
4781
4790
|
method: literal("ui/resource-teardown"),
|
|
4782
4791
|
params: object({})
|
|
4783
4792
|
});
|
|
4784
|
-
var S = record(string(), unknown())
|
|
4793
|
+
var S = record(string(), unknown());
|
|
4794
|
+
var F = object({
|
|
4785
4795
|
text: object({}).optional().describe("Host supports text content blocks."),
|
|
4786
4796
|
image: object({}).optional().describe("Host supports image content blocks."),
|
|
4787
4797
|
audio: object({}).optional().describe("Host supports audio content blocks."),
|
|
4788
4798
|
resource: object({}).optional().describe("Host supports resource content blocks."),
|
|
4789
4799
|
resourceLink: object({}).optional().describe("Host supports resource link content blocks."),
|
|
4790
4800
|
structuredContent: object({}).optional().describe("Host supports structured content.")
|
|
4791
|
-
})
|
|
4801
|
+
});
|
|
4802
|
+
var q = object({
|
|
4792
4803
|
method: literal("ui/notifications/request-teardown"),
|
|
4793
4804
|
params: object({}).optional()
|
|
4794
|
-
})
|
|
4805
|
+
});
|
|
4806
|
+
var t = object({
|
|
4795
4807
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
4796
4808
|
openLinks: object({}).optional().describe("Host supports opening external URLs."),
|
|
4797
4809
|
downloadFile: object({}).optional().describe("Host supports file downloads via ui/download-file."),
|
|
@@ -4805,11 +4817,13 @@ var S = record(string(), unknown()), F = object({
|
|
|
4805
4817
|
updateModelContext: F.optional().describe("Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns."),
|
|
4806
4818
|
message: F.optional().describe("Host supports receiving content messages (ui/message) from the view."),
|
|
4807
4819
|
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.")
|
|
4808
|
-
})
|
|
4820
|
+
});
|
|
4821
|
+
var a = object({
|
|
4809
4822
|
experimental: object({}).optional().describe("Experimental features (structure TBD)."),
|
|
4810
4823
|
tools: object({ listChanged: boolean().optional().describe("App supports tools/list_changed notifications.") }).optional().describe("App exposes MCP-style tools that the host can call."),
|
|
4811
4824
|
availableDisplayModes: array(B).optional().describe("Display modes the app supports.")
|
|
4812
|
-
})
|
|
4825
|
+
});
|
|
4826
|
+
var y = object({
|
|
4813
4827
|
method: literal("ui/notifications/initialized"),
|
|
4814
4828
|
params: object({}).optional()
|
|
4815
4829
|
});
|
|
@@ -4851,7 +4865,8 @@ object({ mimeTypes: array(string()).optional().describe("Array of supported MIME
|
|
|
4851
4865
|
var f = object({
|
|
4852
4866
|
method: literal("ui/download-file"),
|
|
4853
4867
|
params: object({ contents: array(union([EmbeddedResourceSchema, ResourceLinkSchema])).describe("Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.") })
|
|
4854
|
-
})
|
|
4868
|
+
});
|
|
4869
|
+
var k = object({
|
|
4855
4870
|
method: literal("ui/message"),
|
|
4856
4871
|
params: object({
|
|
4857
4872
|
role: literal("user").describe("Message role, currently only \"user\" is supported."),
|
|
@@ -4911,7 +4926,8 @@ var d = object({
|
|
|
4911
4926
|
content: array(ContentBlockSchema).optional().describe("Context content blocks (text, image, etc.)."),
|
|
4912
4927
|
structuredContent: record(string(), unknown().describe("Structured content for machine-readable context data.")).optional().describe("Structured content for machine-readable context data.")
|
|
4913
4928
|
})
|
|
4914
|
-
})
|
|
4929
|
+
});
|
|
4930
|
+
var u = object({
|
|
4915
4931
|
method: literal("ui/initialize"),
|
|
4916
4932
|
params: object({
|
|
4917
4933
|
appInfo: ImplementationSchema.describe("App identification (name and version)."),
|
|
@@ -9650,4 +9666,4 @@ function Inspector({ children, app, simulations: initialSimulationsProp = EMPTY_
|
|
|
9650
9666
|
//#endregion
|
|
9651
9667
|
export { McpAppHost as C, registerHostShell as D, getRegisteredHosts as E, cn as O, extractResourceCSP as S, getHostShell as T, DEVICE_PRESETS as _, SidebarCollapsibleControl as a, isDevicePresetSelection as b, SidebarSelect as c, SimpleSidebar as d, ThemeProvider as f, CUSTOM_DEVICE_PRESET as g, useInspectorState as h, SidebarCheckbox as i, DEFAULT_STYLE_VARIABLES as k, SidebarTextarea as l, useMcpConnection as m, flattenAppToSimulations as n, SidebarControl as o, useThemeContext as p, resolveServerToolResult as r, SidebarInput as s, Inspector as t, SidebarToggle as u, DEVICE_PRESET_BY_ID as v, SCREEN_WIDTHS as w, IframeResource as x, getDevicePreset as y };
|
|
9652
9668
|
|
|
9653
|
-
//# sourceMappingURL=inspector-
|
|
9669
|
+
//# sourceMappingURL=inspector-C5YJHT_c.js.map
|