@creature-ai/sdk 0.1.16 → 0.1.18

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.
@@ -449,6 +449,107 @@ declare class ChatGptAppHostClient extends Subscribable implements HostClient {
449
449
  */
450
450
  declare function detectEnvironment(): Environment;
451
451
 
452
+ /**
453
+ * Environment-Aware Default Styles
454
+ *
455
+ * This module provides default CSS variable values for MCP Apps and ChatGPT Apps.
456
+ * Import `initStyles` early in your app entry point to prevent flash of unstyled content.
457
+ *
458
+ * The MCP Apps spec defines CSS variable names (e.g., --color-background-primary).
459
+ * This module provides environment-specific VALUES for those variables as sensible
460
+ * defaults until the host injects its own values.
461
+ *
462
+ * Flow:
463
+ * 1. Detect environment (ChatGPT, MCP Apps, or Standalone)
464
+ * 2. Detect theme (light or dark)
465
+ * 3. Inject defaults immediately on document.documentElement
466
+ * 4. When host connects, host variables override these defaults
467
+ */
468
+
469
+ /**
470
+ * Theme mode for styling.
471
+ */
472
+ type Theme = "light" | "dark";
473
+ /**
474
+ * Options for initializing styles.
475
+ */
476
+ interface InitStylesOptions {
477
+ /** Whether to set up a MutationObserver for dynamic theme changes. Default: true */
478
+ observeThemeChanges?: boolean;
479
+ }
480
+ /**
481
+ * MCP Apps / Creature default values - LIGHT mode.
482
+ * Host will override these with actual values via hostContext.styles.variables.
483
+ */
484
+ declare const MCP_APPS_LIGHT_DEFAULTS: Record<string, string>;
485
+ /**
486
+ * MCP Apps / Creature default values - DARK mode.
487
+ */
488
+ declare const MCP_APPS_DARK_DEFAULTS: Record<string, string>;
489
+ /**
490
+ * Shared MCP Apps typography and layout tokens (same for light/dark).
491
+ */
492
+ declare const MCP_APPS_SHARED_DEFAULTS: Record<string, string>;
493
+ /**
494
+ * ChatGPT Apps default values - LIGHT mode.
495
+ * Ported from @openai/apps-sdk-ui design tokens.
496
+ */
497
+ declare const CHATGPT_LIGHT_DEFAULTS: Record<string, string>;
498
+ /**
499
+ * ChatGPT Apps default values - DARK mode.
500
+ */
501
+ declare const CHATGPT_DARK_DEFAULTS: Record<string, string>;
502
+ /**
503
+ * Shared ChatGPT typography and layout tokens (same for light/dark).
504
+ */
505
+ declare const CHATGPT_SHARED_DEFAULTS: Record<string, string>;
506
+ /**
507
+ * Get MCP Apps default styles for the specified theme.
508
+ * Returns CSS variable names with their default values.
509
+ *
510
+ * @param theme - The theme to get defaults for
511
+ * @returns Record of CSS variable names to their values
512
+ */
513
+ declare const getMcpAppDefaultStyles: ({ theme }: {
514
+ theme: Theme;
515
+ }) => Record<string, string>;
516
+ /**
517
+ * Get ChatGPT Apps default styles for the specified theme.
518
+ * Returns CSS variable names with their values matching the @openai/apps-sdk-ui design tokens.
519
+ *
520
+ * @param theme - The theme to get defaults for
521
+ * @returns Record of CSS variable names to their values
522
+ */
523
+ declare const getChatGptDefaultStyles: ({ theme }: {
524
+ theme: Theme;
525
+ }) => Record<string, string>;
526
+ /**
527
+ * Detect the current theme from the document.
528
+ * Checks data-theme attribute, dark class (Tailwind), and prefers-color-scheme.
529
+ *
530
+ * @returns The detected theme
531
+ */
532
+ declare const detectTheme: () => Theme;
533
+ /**
534
+ * Apply CSS variables to the document root.
535
+ *
536
+ * @param styles - Record of CSS variable names to their values
537
+ */
538
+ declare const applyStyles: ({ styles }: {
539
+ styles: Record<string, string>;
540
+ }) => void;
541
+ /**
542
+ * Initialize default styles based on detected environment and theme.
543
+ * This should be called early in your app entry point to prevent FOUC.
544
+ *
545
+ * @param environment - The detected environment (from detectEnvironment)
546
+ * @param options - Configuration options
547
+ */
548
+ declare const initStyles: ({ environment, options, }: {
549
+ environment: Environment;
550
+ options?: InitStylesOptions;
551
+ }) => void;
552
+
452
553
  /**
453
554
  * Create a WebSocket client with automatic reconnection.
454
555
  *
@@ -458,6 +559,13 @@ declare function detectEnvironment(): Environment;
458
559
  */
459
560
  declare function createWebSocket<TSend = unknown, TReceive = unknown>(url: string, config?: WebSocketClientConfig<TReceive>): WebSocketClient<TSend, TReceive>;
460
561
 
562
+ /**
563
+ * Create a host client for the detected environment.
564
+ * Automatically selects McpAppHostClient or ChatGptAppHostClient based on runtime detection.
565
+ *
566
+ * @param config - Configuration for the host client
567
+ * @returns The appropriate host client for the environment
568
+ */
461
569
  declare function createHost(config: HostClientConfig): HostClient;
462
570
 
463
- export { ChatGptAppHostClient, type DisplayMode, type Environment, type HostClient, type HostClientConfig, type HostClientEvents, type HostClientState, type HostContext, type LogLevel, McpAppHostClient, type StateListener, type StructuredWidgetState, type ToolResult, type WebSocketClient, type WebSocketClientConfig, type WebSocketStatus, type WidgetState, createHost, createWebSocket, detectEnvironment };
571
+ export { CHATGPT_DARK_DEFAULTS, CHATGPT_LIGHT_DEFAULTS, CHATGPT_SHARED_DEFAULTS, ChatGptAppHostClient, type DisplayMode, type Environment, type HostClient, type HostClientConfig, type HostClientEvents, type HostClientState, type HostContext, type InitStylesOptions, type LogLevel, MCP_APPS_DARK_DEFAULTS, MCP_APPS_LIGHT_DEFAULTS, MCP_APPS_SHARED_DEFAULTS, McpAppHostClient, type StateListener, type StructuredWidgetState, type Theme, type ToolResult, type WebSocketClient, type WebSocketClientConfig, type WebSocketStatus, type WidgetState, applyStyles, createHost, createWebSocket, detectEnvironment, detectTheme, getChatGptDefaultStyles, getMcpAppDefaultStyles, initStyles };
@@ -9795,6 +9795,318 @@ function detectEnvironment() {
9795
9795
  return "standalone";
9796
9796
  }
9797
9797
 
9798
+ // src/core/styles.ts
9799
+ var MCP_APPS_LIGHT_DEFAULTS = {
9800
+ "--color-background-primary": "#ffffff",
9801
+ "--color-background-secondary": "#f8f9fa",
9802
+ "--color-background-tertiary": "#f1f3f5",
9803
+ "--color-background-inverse": "#1a1a1a",
9804
+ "--color-background-ghost": "rgba(0, 0, 0, 0.04)",
9805
+ "--color-background-info": "#e7f5ff",
9806
+ "--color-background-danger": "#fff5f5",
9807
+ "--color-background-success": "#ebfbee",
9808
+ "--color-background-warning": "#fff9db",
9809
+ "--color-background-disabled": "#e9ecef",
9810
+ "--color-text-primary": "#212529",
9811
+ "--color-text-secondary": "#495057",
9812
+ "--color-text-tertiary": "#868e96",
9813
+ "--color-text-inverse": "#ffffff",
9814
+ "--color-text-ghost": "rgba(0, 0, 0, 0.4)",
9815
+ "--color-text-info": "#1971c2",
9816
+ "--color-text-danger": "#c92a2a",
9817
+ "--color-text-success": "#2f9e44",
9818
+ "--color-text-warning": "#e67700",
9819
+ "--color-text-disabled": "#adb5bd",
9820
+ "--color-border-primary": "#dee2e6",
9821
+ "--color-border-secondary": "#e9ecef",
9822
+ "--color-border-tertiary": "#f1f3f5",
9823
+ "--color-border-inverse": "#343a40",
9824
+ "--color-border-ghost": "rgba(0, 0, 0, 0.08)",
9825
+ "--color-border-info": "#74c0fc",
9826
+ "--color-border-danger": "#ffa8a8",
9827
+ "--color-border-success": "#8ce99a",
9828
+ "--color-border-warning": "#ffe066",
9829
+ "--color-border-disabled": "#ced4da",
9830
+ "--color-ring-primary": "#228be6",
9831
+ "--color-ring-secondary": "#495057",
9832
+ "--color-ring-inverse": "#ffffff",
9833
+ "--color-ring-info": "#228be6",
9834
+ "--color-ring-danger": "#fa5252",
9835
+ "--color-ring-success": "#40c057",
9836
+ "--color-ring-warning": "#fab005"
9837
+ };
9838
+ var MCP_APPS_DARK_DEFAULTS = {
9839
+ "--color-background-primary": "#1a1a1a",
9840
+ "--color-background-secondary": "#252525",
9841
+ "--color-background-tertiary": "#2f2f2f",
9842
+ "--color-background-inverse": "#ffffff",
9843
+ "--color-background-ghost": "rgba(255, 255, 255, 0.04)",
9844
+ "--color-background-info": "#1a3a4a",
9845
+ "--color-background-danger": "#4a1a1a",
9846
+ "--color-background-success": "#1a3a1a",
9847
+ "--color-background-warning": "#4a3a1a",
9848
+ "--color-background-disabled": "#2a2a2a",
9849
+ "--color-text-primary": "#e9ecef",
9850
+ "--color-text-secondary": "#adb5bd",
9851
+ "--color-text-tertiary": "#868e96",
9852
+ "--color-text-inverse": "#1a1a1a",
9853
+ "--color-text-ghost": "rgba(255, 255, 255, 0.4)",
9854
+ "--color-text-info": "#74c0fc",
9855
+ "--color-text-danger": "#ffa8a8",
9856
+ "--color-text-success": "#8ce99a",
9857
+ "--color-text-warning": "#ffe066",
9858
+ "--color-text-disabled": "#495057",
9859
+ "--color-border-primary": "#343a40",
9860
+ "--color-border-secondary": "#2f2f2f",
9861
+ "--color-border-tertiary": "#252525",
9862
+ "--color-border-inverse": "#dee2e6",
9863
+ "--color-border-ghost": "rgba(255, 255, 255, 0.08)",
9864
+ "--color-border-info": "#1971c2",
9865
+ "--color-border-danger": "#c92a2a",
9866
+ "--color-border-success": "#2f9e44",
9867
+ "--color-border-warning": "#e67700",
9868
+ "--color-border-disabled": "#3a3a3a",
9869
+ "--color-ring-primary": "#4dabf7",
9870
+ "--color-ring-secondary": "#adb5bd",
9871
+ "--color-ring-inverse": "#1a1a1a",
9872
+ "--color-ring-info": "#4dabf7",
9873
+ "--color-ring-danger": "#ff8787",
9874
+ "--color-ring-success": "#69db7c",
9875
+ "--color-ring-warning": "#ffd43b"
9876
+ };
9877
+ var MCP_APPS_SHARED_DEFAULTS = {
9878
+ "--font-sans": '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
9879
+ "--font-mono": 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',
9880
+ "--font-weight-normal": "400",
9881
+ "--font-weight-medium": "500",
9882
+ "--font-weight-semibold": "600",
9883
+ "--font-weight-bold": "700",
9884
+ "--font-text-xs-size": "0.75rem",
9885
+ "--font-text-xs-line-height": "1rem",
9886
+ "--font-text-sm-size": "0.875rem",
9887
+ "--font-text-sm-line-height": "1.25rem",
9888
+ "--font-text-md-size": "1rem",
9889
+ "--font-text-md-line-height": "1.5rem",
9890
+ "--font-text-lg-size": "1.125rem",
9891
+ "--font-text-lg-line-height": "1.75rem",
9892
+ "--font-heading-xs-size": "0.875rem",
9893
+ "--font-heading-xs-line-height": "1.25rem",
9894
+ "--font-heading-sm-size": "1rem",
9895
+ "--font-heading-sm-line-height": "1.5rem",
9896
+ "--font-heading-md-size": "1.125rem",
9897
+ "--font-heading-md-line-height": "1.75rem",
9898
+ "--font-heading-lg-size": "1.25rem",
9899
+ "--font-heading-lg-line-height": "1.75rem",
9900
+ "--font-heading-xl-size": "1.5rem",
9901
+ "--font-heading-xl-line-height": "2rem",
9902
+ "--font-heading-2xl-size": "1.875rem",
9903
+ "--font-heading-2xl-line-height": "2.25rem",
9904
+ "--font-heading-3xl-size": "2.25rem",
9905
+ "--font-heading-3xl-line-height": "2.5rem",
9906
+ "--border-radius-xs": "2px",
9907
+ "--border-radius-sm": "4px",
9908
+ "--border-radius-md": "6px",
9909
+ "--border-radius-lg": "8px",
9910
+ "--border-radius-xl": "12px",
9911
+ "--border-radius-full": "9999px",
9912
+ "--border-width-regular": "1px",
9913
+ "--shadow-hairline": "0 0 0 1px rgba(0, 0, 0, 0.05)",
9914
+ "--shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.05)",
9915
+ "--shadow-md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
9916
+ "--shadow-lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
9917
+ };
9918
+ var CHATGPT_LIGHT_DEFAULTS = {
9919
+ "--color-background-primary": "#ffffff",
9920
+ "--color-background-secondary": "#f7f7f8",
9921
+ "--color-background-tertiary": "#ececec",
9922
+ "--color-background-inverse": "#0d0d0d",
9923
+ "--color-background-ghost": "rgba(0, 0, 0, 0.04)",
9924
+ "--color-background-info": "#eef6fc",
9925
+ "--color-background-danger": "#fdecec",
9926
+ "--color-background-success": "#edf8ee",
9927
+ "--color-background-warning": "#fdf5e6",
9928
+ "--color-background-disabled": "#f4f4f4",
9929
+ "--color-text-primary": "#0d0d0d",
9930
+ "--color-text-secondary": "#6e6e80",
9931
+ "--color-text-tertiary": "#8e8ea0",
9932
+ "--color-text-inverse": "#ffffff",
9933
+ "--color-text-ghost": "rgba(0, 0, 0, 0.4)",
9934
+ "--color-text-info": "#0066da",
9935
+ "--color-text-danger": "#d93025",
9936
+ "--color-text-success": "#188038",
9937
+ "--color-text-warning": "#b36200",
9938
+ "--color-text-disabled": "#b4b4b4",
9939
+ "--color-border-primary": "#e5e5e5",
9940
+ "--color-border-secondary": "#ececec",
9941
+ "--color-border-tertiary": "#f4f4f4",
9942
+ "--color-border-inverse": "#3c3c3c",
9943
+ "--color-border-ghost": "rgba(0, 0, 0, 0.08)",
9944
+ "--color-border-info": "#a8d4fb",
9945
+ "--color-border-danger": "#f9b4ab",
9946
+ "--color-border-success": "#a8dab5",
9947
+ "--color-border-warning": "#f9dca8",
9948
+ "--color-border-disabled": "#d9d9d9",
9949
+ "--color-ring-primary": "#10a37f",
9950
+ "--color-ring-secondary": "#6e6e80",
9951
+ "--color-ring-inverse": "#ffffff",
9952
+ "--color-ring-info": "#0066da",
9953
+ "--color-ring-danger": "#d93025",
9954
+ "--color-ring-success": "#188038",
9955
+ "--color-ring-warning": "#b36200"
9956
+ };
9957
+ var CHATGPT_DARK_DEFAULTS = {
9958
+ "--color-background-primary": "#212121",
9959
+ "--color-background-secondary": "#2f2f2f",
9960
+ "--color-background-tertiary": "#424242",
9961
+ "--color-background-inverse": "#ffffff",
9962
+ "--color-background-ghost": "rgba(255, 255, 255, 0.04)",
9963
+ "--color-background-info": "#1a3a4a",
9964
+ "--color-background-danger": "#4a1a1a",
9965
+ "--color-background-success": "#1a3a1a",
9966
+ "--color-background-warning": "#4a3a1a",
9967
+ "--color-background-disabled": "#3a3a3a",
9968
+ "--color-text-primary": "#ececec",
9969
+ "--color-text-secondary": "#b4b4b4",
9970
+ "--color-text-tertiary": "#8e8e8e",
9971
+ "--color-text-inverse": "#0d0d0d",
9972
+ "--color-text-ghost": "rgba(255, 255, 255, 0.4)",
9973
+ "--color-text-info": "#6eb5ff",
9974
+ "--color-text-danger": "#ff6b6b",
9975
+ "--color-text-success": "#6bff6b",
9976
+ "--color-text-warning": "#ffb86b",
9977
+ "--color-text-disabled": "#666666",
9978
+ "--color-border-primary": "#424242",
9979
+ "--color-border-secondary": "#3a3a3a",
9980
+ "--color-border-tertiary": "#2f2f2f",
9981
+ "--color-border-inverse": "#e5e5e5",
9982
+ "--color-border-ghost": "rgba(255, 255, 255, 0.08)",
9983
+ "--color-border-info": "#3a5a7a",
9984
+ "--color-border-danger": "#7a3a3a",
9985
+ "--color-border-success": "#3a7a3a",
9986
+ "--color-border-warning": "#7a5a3a",
9987
+ "--color-border-disabled": "#4a4a4a",
9988
+ "--color-ring-primary": "#10a37f",
9989
+ "--color-ring-secondary": "#8e8e8e",
9990
+ "--color-ring-inverse": "#0d0d0d",
9991
+ "--color-ring-info": "#6eb5ff",
9992
+ "--color-ring-danger": "#ff6b6b",
9993
+ "--color-ring-success": "#6bff6b",
9994
+ "--color-ring-warning": "#ffb86b"
9995
+ };
9996
+ var CHATGPT_SHARED_DEFAULTS = {
9997
+ "--font-sans": '"S\xF6hne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
9998
+ "--font-mono": '"S\xF6hne Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace',
9999
+ "--font-weight-normal": "400",
10000
+ "--font-weight-medium": "500",
10001
+ "--font-weight-semibold": "600",
10002
+ "--font-weight-bold": "700",
10003
+ "--font-text-xs-size": "0.75rem",
10004
+ "--font-text-xs-line-height": "1rem",
10005
+ "--font-text-sm-size": "0.875rem",
10006
+ "--font-text-sm-line-height": "1.25rem",
10007
+ "--font-text-md-size": "1rem",
10008
+ "--font-text-md-line-height": "1.5rem",
10009
+ "--font-text-lg-size": "1.125rem",
10010
+ "--font-text-lg-line-height": "1.75rem",
10011
+ "--font-heading-xs-size": "0.875rem",
10012
+ "--font-heading-xs-line-height": "1.25rem",
10013
+ "--font-heading-sm-size": "1rem",
10014
+ "--font-heading-sm-line-height": "1.5rem",
10015
+ "--font-heading-md-size": "1.125rem",
10016
+ "--font-heading-md-line-height": "1.75rem",
10017
+ "--font-heading-lg-size": "1.25rem",
10018
+ "--font-heading-lg-line-height": "1.75rem",
10019
+ "--font-heading-xl-size": "1.5rem",
10020
+ "--font-heading-xl-line-height": "2rem",
10021
+ "--font-heading-2xl-size": "1.875rem",
10022
+ "--font-heading-2xl-line-height": "2.25rem",
10023
+ "--font-heading-3xl-size": "2.25rem",
10024
+ "--font-heading-3xl-line-height": "2.5rem",
10025
+ "--border-radius-xs": "4px",
10026
+ "--border-radius-sm": "6px",
10027
+ "--border-radius-md": "8px",
10028
+ "--border-radius-lg": "12px",
10029
+ "--border-radius-xl": "16px",
10030
+ "--border-radius-full": "9999px",
10031
+ "--border-width-regular": "1px",
10032
+ "--shadow-hairline": "0 0 0 1px rgba(0, 0, 0, 0.05)",
10033
+ "--shadow-sm": "0 1px 2px rgba(0, 0, 0, 0.04)",
10034
+ "--shadow-md": "0 2px 8px rgba(0, 0, 0, 0.08)",
10035
+ "--shadow-lg": "0 8px 24px rgba(0, 0, 0, 0.12)"
10036
+ };
10037
+ var getMcpAppDefaultStyles = ({ theme }) => {
10038
+ const colorDefaults = theme === "dark" ? MCP_APPS_DARK_DEFAULTS : MCP_APPS_LIGHT_DEFAULTS;
10039
+ return { ...colorDefaults, ...MCP_APPS_SHARED_DEFAULTS };
10040
+ };
10041
+ var getChatGptDefaultStyles = ({ theme }) => {
10042
+ const colorDefaults = theme === "dark" ? CHATGPT_DARK_DEFAULTS : CHATGPT_LIGHT_DEFAULTS;
10043
+ return { ...colorDefaults, ...CHATGPT_SHARED_DEFAULTS };
10044
+ };
10045
+ var detectTheme = () => {
10046
+ if (typeof document === "undefined") {
10047
+ return "light";
10048
+ }
10049
+ const root = document.documentElement;
10050
+ const dataTheme = root.getAttribute("data-theme");
10051
+ if (dataTheme === "dark" || dataTheme === "light") {
10052
+ return dataTheme;
10053
+ }
10054
+ if (root.classList.contains("dark")) {
10055
+ return "dark";
10056
+ }
10057
+ if (typeof window !== "undefined" && window.matchMedia?.("(prefers-color-scheme: dark)").matches) {
10058
+ return "dark";
10059
+ }
10060
+ return "light";
10061
+ };
10062
+ var applyStyles = ({ styles }) => {
10063
+ if (typeof document === "undefined") {
10064
+ return;
10065
+ }
10066
+ const root = document.documentElement;
10067
+ for (const [key, value] of Object.entries(styles)) {
10068
+ root.style.setProperty(key, value);
10069
+ }
10070
+ };
10071
+ var initStyles = ({
10072
+ environment,
10073
+ options = {}
10074
+ }) => {
10075
+ if (typeof document === "undefined") {
10076
+ return;
10077
+ }
10078
+ const { observeThemeChanges = true } = options;
10079
+ const theme = detectTheme();
10080
+ const defaults = environment === "chatgpt" ? getChatGptDefaultStyles({ theme }) : getMcpAppDefaultStyles({ theme });
10081
+ applyStyles({ styles: defaults });
10082
+ document.documentElement.setAttribute("data-env", environment);
10083
+ if (observeThemeChanges) {
10084
+ setupThemeObserver({ environment });
10085
+ }
10086
+ };
10087
+ var setupThemeObserver = ({ environment }) => {
10088
+ if (typeof document === "undefined" || typeof MutationObserver === "undefined") {
10089
+ return;
10090
+ }
10091
+ const root = document.documentElement;
10092
+ const observer = new MutationObserver((mutations) => {
10093
+ for (const mutation of mutations) {
10094
+ if (mutation.type === "attributes" && (mutation.attributeName === "data-theme" || mutation.attributeName === "class")) {
10095
+ const newTheme = detectTheme();
10096
+ const currentEnv = root.getAttribute("data-env") || environment;
10097
+ const defaults = currentEnv === "chatgpt" ? getChatGptDefaultStyles({ theme: newTheme }) : getMcpAppDefaultStyles({ theme: newTheme });
10098
+ applyStyles({ styles: defaults });
10099
+ }
10100
+ }
10101
+ });
10102
+ setTimeout(() => {
10103
+ observer.observe(root, {
10104
+ attributes: true,
10105
+ attributeFilter: ["data-theme", "class"]
10106
+ });
10107
+ }, 100);
10108
+ };
10109
+
9798
10110
  // src/core/websocket.ts
9799
10111
  function createWebSocket(url, config = {}) {
9800
10112
  const {
@@ -9908,14 +10220,25 @@ function createHost(config) {
9908
10220
  return new McpAppHostClient(config);
9909
10221
  }
9910
10222
  export {
10223
+ CHATGPT_DARK_DEFAULTS,
10224
+ CHATGPT_LIGHT_DEFAULTS,
10225
+ CHATGPT_SHARED_DEFAULTS,
9911
10226
  ChatGptAppHostClient,
10227
+ MCP_APPS_DARK_DEFAULTS,
10228
+ MCP_APPS_LIGHT_DEFAULTS,
10229
+ MCP_APPS_SHARED_DEFAULTS,
9912
10230
  McpAppHostClient,
9913
10231
  YU as applyDocumentTheme,
9914
10232
  qU as applyHostFonts,
9915
10233
  QU as applyHostStyleVariables,
10234
+ applyStyles,
9916
10235
  createHost,
9917
10236
  createWebSocket,
9918
10237
  detectEnvironment,
9919
- VU as getDocumentTheme
10238
+ detectTheme,
10239
+ getChatGptDefaultStyles,
10240
+ VU as getDocumentTheme,
10241
+ getMcpAppDefaultStyles,
10242
+ initStyles
9920
10243
  };
9921
10244
  //# sourceMappingURL=index.js.map