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.
Files changed (67) hide show
  1. package/README.md +3 -0
  2. package/bin/commands/dev.mjs +88 -46
  3. package/bin/commands/inspect.mjs +8 -6
  4. package/bin/lib/inspect/inspect-config.mjs +6 -6
  5. package/bin/lib/live/chatgpt-page.mjs +40 -25
  6. package/bin/lib/live/global-setup.mjs +2 -2
  7. package/bin/lib/live/host-page.mjs +30 -24
  8. package/bin/lib/live/live-config.mjs +8 -6
  9. package/bin/lib/test/test-config.mjs +7 -10
  10. package/bin/lib/test/test-fixtures.mjs +12 -3
  11. package/dist/chatgpt/index.cjs +1 -1
  12. package/dist/chatgpt/index.js +1 -1
  13. package/dist/claude/index.cjs +1 -1
  14. package/dist/claude/index.js +1 -1
  15. package/dist/embed.css +2 -2
  16. package/dist/host/chatgpt/index.cjs +1 -1
  17. package/dist/host/chatgpt/index.js +1 -1
  18. package/dist/index.cjs +14 -8
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.js +12 -7
  21. package/dist/index.js.map +1 -1
  22. package/dist/inspector/index.cjs +1 -1
  23. package/dist/inspector/index.js +1 -1
  24. package/dist/{inspector-DPJeSQAd.js → inspector-BQx_pKAK.js} +31 -15
  25. package/dist/{inspector-DPJeSQAd.js.map → inspector-BQx_pKAK.js.map} +1 -1
  26. package/dist/{inspector-Cl5w_7yQ.cjs → inspector-wz-9eEPo.cjs} +33 -16
  27. package/dist/{inspector-Cl5w_7yQ.cjs.map → inspector-wz-9eEPo.cjs.map} +1 -1
  28. package/dist/mcp/index.cjs +14 -7
  29. package/dist/mcp/index.cjs.map +1 -1
  30. package/dist/mcp/index.js +12 -6
  31. package/dist/mcp/index.js.map +1 -1
  32. package/dist/style.css +7 -6
  33. package/dist/{use-app-D7-OtXBl.js → use-app-BUrAWLg8.js} +76 -28
  34. package/dist/{use-app-D7-OtXBl.js.map → use-app-BUrAWLg8.js.map} +1 -1
  35. package/dist/{use-app-BcSuulay.cjs → use-app-QDHDymli.cjs} +78 -29
  36. package/dist/{use-app-BcSuulay.cjs.map → use-app-QDHDymli.cjs.map} +1 -1
  37. package/package.json +16 -16
  38. package/template/README.md +12 -4
  39. package/template/dist/albums/albums.html +2 -2
  40. package/template/dist/albums/albums.json +1 -1
  41. package/template/dist/carousel/carousel.html +2 -2
  42. package/template/dist/carousel/carousel.json +1 -1
  43. package/template/dist/map/map.html +755 -750
  44. package/template/dist/map/map.json +1 -1
  45. package/template/dist/review/review.html +1 -1
  46. package/template/dist/review/review.json +1 -1
  47. package/template/node_modules/.bin/vite +2 -2
  48. package/template/node_modules/.bin/vitest +2 -2
  49. package/template/node_modules/.vite/deps/_metadata.json +4 -4
  50. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js +82 -30
  51. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps.js.map +1 -1
  52. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js +82 -30
  53. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_app-bridge.js.map +1 -1
  54. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js +82 -30
  55. package/template/node_modules/.vite-mcp/deps/@modelcontextprotocol_ext-apps_react.js.map +1 -1
  56. package/template/node_modules/.vite-mcp/deps/@testing-library_react.js.map +1 -1
  57. package/template/node_modules/.vite-mcp/deps/_metadata.json +24 -24
  58. package/template/node_modules/.vite-mcp/deps/{dist-CO4R4Zw4.js → dist-Bd8a6mlN.js} +17 -5
  59. package/template/node_modules/.vite-mcp/deps/{dist-CO4R4Zw4.js.map → dist-Bd8a6mlN.js.map} +1 -1
  60. package/template/node_modules/.vite-mcp/deps/embla-carousel-react.js.map +1 -1
  61. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js +14765 -13820
  62. package/template/node_modules/.vite-mcp/deps/mapbox-gl.js.map +1 -1
  63. package/template/node_modules/.vite-mcp/deps/vitest.js +57 -36
  64. package/template/node_modules/.vite-mcp/deps/vitest.js.map +1 -1
  65. package/template/package.json +6 -6
  66. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-chatgpt-linux.png +0 -0
  67. package/template/tests/e2e/visual.spec.ts-snapshots/albums-fullscreen-claude-darwin.png +0 -0
@@ -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
- }, j = "2026-01-26", r = union([literal("light"), literal("dark")]).describe("Color theme preference for the host environment."), B = union([
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."), RQ = record(union([
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.`), L = object({
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
- }), O = object({
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
- }), z = object({
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
- }), H = object({
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() }), s = object({
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()), F = object({
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
- }), q = object({
4801
+ });
4802
+ var q = object({
4792
4803
  method: literal("ui/notifications/request-teardown"),
4793
4804
  params: object({}).optional()
4794
- }), t = object({
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
- }), a = object({
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
- }), y = object({
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
- }), k = object({
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
- }), u = object({
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-DPJeSQAd.js.map
9669
+ //# sourceMappingURL=inspector-BQx_pKAK.js.map