skybridge 0.0.0-dev.b19e8c1 → 0.0.0-dev.b22ab8e

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 (202) hide show
  1. package/README.md +145 -0
  2. package/dist/cli/header.d.ts +4 -0
  3. package/dist/cli/header.js +6 -0
  4. package/dist/cli/header.js.map +1 -0
  5. package/dist/cli/run-command.d.ts +2 -0
  6. package/dist/cli/run-command.js +43 -0
  7. package/dist/cli/run-command.js.map +1 -0
  8. package/dist/cli/telemetry.d.ts +7 -0
  9. package/dist/cli/telemetry.js +123 -0
  10. package/dist/cli/telemetry.js.map +1 -0
  11. package/dist/cli/use-execute-steps.d.ts +11 -0
  12. package/dist/cli/use-execute-steps.js +36 -0
  13. package/dist/cli/use-execute-steps.js.map +1 -0
  14. package/dist/cli/use-nodemon.d.ts +6 -0
  15. package/dist/cli/use-nodemon.js +69 -0
  16. package/dist/cli/use-nodemon.js.map +1 -0
  17. package/dist/cli/use-typescript-check.d.ts +8 -0
  18. package/dist/cli/use-typescript-check.js +59 -0
  19. package/dist/cli/use-typescript-check.js.map +1 -0
  20. package/dist/commands/build.d.ts +9 -0
  21. package/dist/commands/build.js +46 -0
  22. package/dist/commands/build.js.map +1 -0
  23. package/dist/commands/dev.d.ts +9 -0
  24. package/dist/commands/dev.js +31 -0
  25. package/dist/commands/dev.js.map +1 -0
  26. package/dist/commands/start.d.ts +7 -0
  27. package/dist/commands/start.js +28 -0
  28. package/dist/commands/start.js.map +1 -0
  29. package/dist/commands/telemetry/disable.d.ts +5 -0
  30. package/dist/commands/telemetry/disable.js +14 -0
  31. package/dist/commands/telemetry/disable.js.map +1 -0
  32. package/dist/commands/telemetry/enable.d.ts +5 -0
  33. package/dist/commands/telemetry/enable.js +14 -0
  34. package/dist/commands/telemetry/enable.js.map +1 -0
  35. package/dist/commands/telemetry/status.d.ts +5 -0
  36. package/dist/commands/telemetry/status.js +14 -0
  37. package/dist/commands/telemetry/status.js.map +1 -0
  38. package/dist/server/asset-base-url-transform-plugin.d.ts +11 -0
  39. package/dist/server/asset-base-url-transform-plugin.js +34 -0
  40. package/dist/server/asset-base-url-transform-plugin.js.map +1 -0
  41. package/dist/server/asset-base-url-transform-plugin.test.js +56 -0
  42. package/dist/server/asset-base-url-transform-plugin.test.js.map +1 -0
  43. package/dist/server/express.d.ts +5 -0
  44. package/dist/server/express.js +61 -0
  45. package/dist/server/express.js.map +1 -0
  46. package/dist/server/server.d.ts +13 -5
  47. package/dist/server/server.js +130 -59
  48. package/dist/server/server.js.map +1 -1
  49. package/dist/server/templateHelper.d.ts +1 -0
  50. package/dist/server/templateHelper.js.map +1 -1
  51. package/dist/server/templates/development.hbs +3 -2
  52. package/dist/server/templates/production.hbs +1 -2
  53. package/dist/server/widgetsDevServer.js +11 -1
  54. package/dist/server/widgetsDevServer.js.map +1 -1
  55. package/dist/test/utils.d.ts +223 -3
  56. package/dist/test/widget.test.js +37 -26
  57. package/dist/test/widget.test.js.map +1 -1
  58. package/dist/web/bridges/apps-sdk/adaptor.d.ts +22 -0
  59. package/dist/web/bridges/apps-sdk/adaptor.js +80 -0
  60. package/dist/web/bridges/apps-sdk/adaptor.js.map +1 -0
  61. package/dist/web/bridges/apps-sdk/bridge.d.ts +10 -0
  62. package/dist/web/bridges/{apps-sdk-bridge.js → apps-sdk/bridge.js} +2 -2
  63. package/dist/web/bridges/apps-sdk/bridge.js.map +1 -0
  64. package/dist/web/bridges/apps-sdk/index.d.ts +5 -0
  65. package/dist/web/bridges/apps-sdk/index.js +5 -0
  66. package/dist/web/bridges/apps-sdk/index.js.map +1 -0
  67. package/dist/web/bridges/apps-sdk/types.d.ts +118 -0
  68. package/dist/web/bridges/apps-sdk/types.js +10 -0
  69. package/dist/web/bridges/apps-sdk/types.js.map +1 -0
  70. package/dist/web/bridges/apps-sdk/use-apps-sdk-context.d.ts +2 -0
  71. package/dist/web/bridges/{hooks/use-apps-sdk-bridge.js → apps-sdk/use-apps-sdk-context.js} +3 -3
  72. package/dist/web/bridges/apps-sdk/use-apps-sdk-context.js.map +1 -0
  73. package/dist/web/bridges/get-adaptor.d.ts +2 -0
  74. package/dist/web/bridges/get-adaptor.js +8 -0
  75. package/dist/web/bridges/get-adaptor.js.map +1 -0
  76. package/dist/web/bridges/index.d.ts +5 -4
  77. package/dist/web/bridges/index.js +5 -4
  78. package/dist/web/bridges/index.js.map +1 -1
  79. package/dist/web/bridges/mcp-app/adaptor.d.ts +36 -0
  80. package/dist/web/bridges/mcp-app/adaptor.js +188 -0
  81. package/dist/web/bridges/mcp-app/adaptor.js.map +1 -0
  82. package/dist/web/bridges/mcp-app/bridge.d.ts +43 -0
  83. package/dist/web/bridges/{mcp-app-bridge.js → mcp-app/bridge.js} +109 -16
  84. package/dist/web/bridges/mcp-app/bridge.js.map +1 -0
  85. package/dist/web/bridges/mcp-app/index.d.ts +4 -0
  86. package/dist/web/bridges/mcp-app/index.js +4 -0
  87. package/dist/web/bridges/mcp-app/index.js.map +1 -0
  88. package/dist/web/bridges/mcp-app/types.d.ts +8 -0
  89. package/dist/web/bridges/mcp-app/types.js +2 -0
  90. package/dist/web/bridges/mcp-app/types.js.map +1 -0
  91. package/dist/web/bridges/mcp-app/use-mcp-app-context.d.ts +5 -0
  92. package/dist/web/bridges/{hooks/use-mcp-app-bridge.js → mcp-app/use-mcp-app-context.js} +3 -3
  93. package/dist/web/bridges/mcp-app/use-mcp-app-context.js.map +1 -0
  94. package/dist/web/bridges/mcp-app/use-mcp-app-context.test.d.ts +1 -0
  95. package/dist/web/bridges/mcp-app/use-mcp-app-context.test.js +66 -0
  96. package/dist/web/bridges/mcp-app/use-mcp-app-context.test.js.map +1 -0
  97. package/dist/web/bridges/types.d.ts +65 -24
  98. package/dist/web/bridges/use-host-context.d.ts +2 -0
  99. package/dist/web/bridges/use-host-context.js +8 -0
  100. package/dist/web/bridges/use-host-context.js.map +1 -0
  101. package/dist/web/components/modal-provider.d.ts +4 -0
  102. package/dist/web/components/modal-provider.js +47 -0
  103. package/dist/web/components/modal-provider.js.map +1 -0
  104. package/dist/web/create-store.js +6 -7
  105. package/dist/web/create-store.js.map +1 -1
  106. package/dist/web/create-store.test.js +108 -52
  107. package/dist/web/create-store.test.js.map +1 -1
  108. package/dist/web/data-llm.js +5 -3
  109. package/dist/web/data-llm.js.map +1 -1
  110. package/dist/web/data-llm.test.js +130 -65
  111. package/dist/web/data-llm.test.js.map +1 -1
  112. package/dist/web/generate-helpers.d.ts +3 -2
  113. package/dist/web/generate-helpers.js +1 -1
  114. package/dist/web/generate-helpers.js.map +1 -1
  115. package/dist/web/helpers/state.js +13 -8
  116. package/dist/web/helpers/state.js.map +1 -1
  117. package/dist/web/hooks/index.d.ts +1 -1
  118. package/dist/web/hooks/index.js +1 -1
  119. package/dist/web/hooks/index.js.map +1 -1
  120. package/dist/web/hooks/test/utils.d.ts +8 -2
  121. package/dist/web/hooks/test/utils.js +33 -13
  122. package/dist/web/hooks/test/utils.js.map +1 -1
  123. package/dist/web/hooks/use-call-tool.d.ts +3 -2
  124. package/dist/web/hooks/use-call-tool.js +2 -2
  125. package/dist/web/hooks/use-call-tool.js.map +1 -1
  126. package/dist/web/hooks/use-call-tool.test-d.js +1 -1
  127. package/dist/web/hooks/use-call-tool.test-d.js.map +1 -1
  128. package/dist/web/hooks/use-call-tool.test.js +3 -3
  129. package/dist/web/hooks/use-call-tool.test.js.map +1 -1
  130. package/dist/web/hooks/use-display-mode.js +3 -4
  131. package/dist/web/hooks/use-display-mode.js.map +1 -1
  132. package/dist/web/hooks/use-files.d.ts +2 -6
  133. package/dist/web/hooks/use-files.js +4 -2
  134. package/dist/web/hooks/use-files.js.map +1 -1
  135. package/dist/web/hooks/use-files.test.js +10 -5
  136. package/dist/web/hooks/use-files.test.js.map +1 -1
  137. package/dist/web/hooks/use-layout.d.ts +2 -2
  138. package/dist/web/hooks/use-layout.js +4 -4
  139. package/dist/web/hooks/use-layout.js.map +1 -1
  140. package/dist/web/hooks/use-layout.test.js +6 -5
  141. package/dist/web/hooks/use-layout.test.js.map +1 -1
  142. package/dist/web/hooks/use-open-external.js +2 -2
  143. package/dist/web/hooks/use-open-external.test.js +1 -1
  144. package/dist/web/hooks/use-request-modal.d.ts +2 -2
  145. package/dist/web/hooks/use-request-modal.js +9 -7
  146. package/dist/web/hooks/use-request-modal.js.map +1 -1
  147. package/dist/web/hooks/use-send-follow-up-message.js +2 -2
  148. package/dist/web/hooks/use-set-open-in-app-url.d.ts +1 -0
  149. package/dist/web/hooks/use-set-open-in-app-url.js +8 -0
  150. package/dist/web/hooks/use-set-open-in-app-url.js.map +1 -0
  151. package/dist/web/hooks/use-set-open-in-app-url.test.d.ts +1 -0
  152. package/dist/web/hooks/use-set-open-in-app-url.test.js +49 -0
  153. package/dist/web/hooks/use-set-open-in-app-url.test.js.map +1 -0
  154. package/dist/web/hooks/use-tool-info.js +4 -4
  155. package/dist/web/hooks/use-tool-info.js.map +1 -1
  156. package/dist/web/hooks/use-tool-info.test.js +4 -4
  157. package/dist/web/hooks/use-tool-info.test.js.map +1 -1
  158. package/dist/web/hooks/use-user.d.ts +1 -1
  159. package/dist/web/hooks/use-user.js +3 -3
  160. package/dist/web/hooks/use-user.js.map +1 -1
  161. package/dist/web/hooks/use-user.test.js +4 -3
  162. package/dist/web/hooks/use-user.test.js.map +1 -1
  163. package/dist/web/hooks/use-widget-state.js +10 -10
  164. package/dist/web/hooks/use-widget-state.js.map +1 -1
  165. package/dist/web/hooks/use-widget-state.test.js +7 -6
  166. package/dist/web/hooks/use-widget-state.test.js.map +1 -1
  167. package/dist/web/mount-widget.js +9 -1
  168. package/dist/web/mount-widget.js.map +1 -1
  169. package/dist/web/plugin/plugin.js +16 -9
  170. package/dist/web/plugin/plugin.js.map +1 -1
  171. package/dist/web/proxy.js +0 -1
  172. package/dist/web/proxy.js.map +1 -1
  173. package/dist/web/types.d.ts +0 -133
  174. package/dist/web/types.js +0 -9
  175. package/dist/web/types.js.map +1 -1
  176. package/package.json +27 -18
  177. package/dist/web/bridges/adaptors/apps-sdk-adaptor.d.ts +0 -13
  178. package/dist/web/bridges/adaptors/apps-sdk-adaptor.js +0 -33
  179. package/dist/web/bridges/adaptors/apps-sdk-adaptor.js.map +0 -1
  180. package/dist/web/bridges/adaptors/mcp-app-adaptor.d.ts +0 -16
  181. package/dist/web/bridges/adaptors/mcp-app-adaptor.js +0 -115
  182. package/dist/web/bridges/adaptors/mcp-app-adaptor.js.map +0 -1
  183. package/dist/web/bridges/apps-sdk-bridge.d.ts +0 -10
  184. package/dist/web/bridges/apps-sdk-bridge.js.map +0 -1
  185. package/dist/web/bridges/hooks/use-adaptor.d.ts +0 -2
  186. package/dist/web/bridges/hooks/use-adaptor.js +0 -8
  187. package/dist/web/bridges/hooks/use-adaptor.js.map +0 -1
  188. package/dist/web/bridges/hooks/use-apps-sdk-bridge.d.ts +0 -2
  189. package/dist/web/bridges/hooks/use-apps-sdk-bridge.js.map +0 -1
  190. package/dist/web/bridges/hooks/use-bridge.d.ts +0 -2
  191. package/dist/web/bridges/hooks/use-bridge.js +0 -8
  192. package/dist/web/bridges/hooks/use-bridge.js.map +0 -1
  193. package/dist/web/bridges/hooks/use-mcp-app-bridge.d.ts +0 -5
  194. package/dist/web/bridges/hooks/use-mcp-app-bridge.js.map +0 -1
  195. package/dist/web/bridges/hooks/use-mcp-app-bridge.test.js +0 -41
  196. package/dist/web/bridges/hooks/use-mcp-app-bridge.test.js.map +0 -1
  197. package/dist/web/bridges/mcp-app-bridge.d.ts +0 -38
  198. package/dist/web/bridges/mcp-app-bridge.js.map +0 -1
  199. package/dist/web/hooks/use-openai-global.d.ts +0 -3
  200. package/dist/web/hooks/use-openai-global.js +0 -6
  201. package/dist/web/hooks/use-openai-global.js.map +0 -1
  202. /package/dist/{web/bridges/hooks/use-mcp-app-bridge.test.d.ts → server/asset-base-url-transform-plugin.test.d.ts} +0 -0
@@ -1,71 +1,130 @@
1
+ import crypto from "node:crypto";
1
2
  import { readFileSync } from "node:fs";
3
+ import http from "node:http";
2
4
  import path from "node:path";
3
5
  import { McpServer as McpServerBase, } from "@modelcontextprotocol/sdk/server/mcp.js";
4
- import { toMerged } from "es-toolkit";
6
+ import { mergeWith, union } from "es-toolkit";
7
+ import { createServer } from "./express.js";
5
8
  import { templateHelper } from "./templateHelper.js";
9
+ const mergeWithUnion = (target, source) => {
10
+ return mergeWith(target, source, (targetVal, sourceVal) => {
11
+ if (Array.isArray(targetVal) && Array.isArray(sourceVal)) {
12
+ return union(targetVal, sourceVal);
13
+ }
14
+ });
15
+ };
6
16
  export class McpServer extends McpServerBase {
17
+ express;
18
+ customMiddleware = [];
19
+ use(pathOrHandler, ...handlers) {
20
+ if (typeof pathOrHandler === "string") {
21
+ this.customMiddleware.push({
22
+ path: pathOrHandler,
23
+ handlers,
24
+ });
25
+ }
26
+ else {
27
+ this.customMiddleware.push({
28
+ handlers: [pathOrHandler, ...handlers],
29
+ });
30
+ }
31
+ return this;
32
+ }
33
+ async run() {
34
+ if (!this.express) {
35
+ this.express = await createServer({
36
+ server: this,
37
+ });
38
+ for (const middleware of this.customMiddleware) {
39
+ if (middleware.path) {
40
+ this.express.use(middleware.path, ...middleware.handlers);
41
+ }
42
+ else {
43
+ this.express.use(...middleware.handlers);
44
+ }
45
+ }
46
+ }
47
+ const express = this.express;
48
+ return new Promise((resolve, reject) => {
49
+ const server = http.createServer(express);
50
+ server.on("error", (error) => {
51
+ console.error("Failed to start server:", error);
52
+ reject(error);
53
+ });
54
+ server.listen(3000, () => {
55
+ resolve();
56
+ });
57
+ });
58
+ }
7
59
  registerWidget(name, resourceConfig, toolConfig, toolCallback) {
8
60
  const userMeta = resourceConfig._meta;
9
- const appsSdkResourceConfig = {
10
- hostType: "apps-sdk",
11
- uri: `ui://widgets/apps-sdk/${name}.html`,
12
- mimeType: "text/html+skybridge",
13
- buildContentMeta: ({ resourceDomains, connectDomains, domain }) => {
14
- const userUi = userMeta?.ui;
15
- const userCsp = userUi?.csp;
16
- const defaults = {
17
- "openai/widgetCSP": {
18
- resource_domains: resourceDomains,
19
- connect_domains: connectDomains,
20
- },
21
- "openai/widgetDomain": domain,
22
- "openai/widgetDescription": toolConfig.description,
23
- };
24
- const fromUi = {
25
- "openai/widgetCSP": {
26
- resource_domains: userCsp?.resourceDomains,
27
- connect_domains: userCsp?.connectDomains,
28
- frame_domains: userCsp?.frameDomains,
29
- redirect_domains: userCsp?.redirectDomains,
30
- },
31
- "openai/widgetDomain": userUi?.domain,
32
- "openai/widgetPrefersBorder": userUi?.prefersBorder,
33
- };
34
- const directOpenaiKeys = Object.fromEntries(Object.entries(userMeta ?? {}).filter(([key]) => key.startsWith("openai/")));
35
- return toMerged(toMerged(defaults, fromUi), directOpenaiKeys);
36
- },
61
+ const toolMeta = {
62
+ ...toolConfig._meta,
37
63
  };
38
- const extAppsResourceConfig = {
39
- hostType: "mcp-app",
40
- uri: `ui://widgets/ext-apps/${name}.html`,
41
- mimeType: "text/html;profile=mcp-app",
42
- buildContentMeta: ({ resourceDomains, connectDomains, domain }) => {
43
- const defaults = {
44
- ui: {
45
- csp: {
46
- resourceDomains,
47
- connectDomains,
64
+ if (!resourceConfig.hosts || resourceConfig.hosts.includes("apps-sdk")) {
65
+ const widgetConfig = {
66
+ hostType: "apps-sdk",
67
+ uri: `ui://widgets/apps-sdk/${name}.html`,
68
+ mimeType: "text/html+skybridge",
69
+ buildContentMeta: ({ resourceDomains, connectDomains, domain }) => {
70
+ const userUi = userMeta?.ui;
71
+ const userCsp = userUi?.csp;
72
+ const defaults = {
73
+ "openai/widgetCSP": {
74
+ resource_domains: resourceDomains,
75
+ connect_domains: connectDomains,
48
76
  },
49
- domain,
50
- },
51
- };
52
- return toMerged(defaults, { ui: userMeta?.ui });
53
- },
54
- };
55
- [appsSdkResourceConfig, extAppsResourceConfig].forEach((widgetConfig) => {
77
+ "openai/widgetDomain": domain,
78
+ "openai/widgetDescription": toolConfig.description,
79
+ };
80
+ const fromUi = {
81
+ "openai/widgetCSP": {
82
+ resource_domains: userCsp?.resourceDomains,
83
+ connect_domains: userCsp?.connectDomains,
84
+ frame_domains: userCsp?.frameDomains,
85
+ redirect_domains: userCsp?.redirectDomains,
86
+ },
87
+ "openai/widgetDomain": userUi?.domain,
88
+ "openai/widgetPrefersBorder": userUi?.prefersBorder,
89
+ };
90
+ const directOpenaiKeys = Object.fromEntries(Object.entries(userMeta ?? {}).filter(([key]) => key.startsWith("openai/")));
91
+ return mergeWithUnion(mergeWithUnion(defaults, fromUi), directOpenaiKeys);
92
+ },
93
+ };
56
94
  this.registerWidgetResource({
57
95
  name,
58
96
  widgetConfig,
59
97
  resourceConfig,
60
98
  });
61
- });
62
- const toolMeta = {
63
- ...toolConfig._meta,
64
- "openai/outputTemplate": appsSdkResourceConfig.uri,
65
- ui: {
66
- resourceUri: extAppsResourceConfig.uri,
67
- },
68
- };
99
+ toolMeta["openai/outputTemplate"] = widgetConfig.uri;
100
+ }
101
+ if (!resourceConfig.hosts || resourceConfig.hosts.includes("mcp-app")) {
102
+ const widgetConfig = {
103
+ hostType: "mcp-app",
104
+ uri: `ui://widgets/ext-apps/${name}.html`,
105
+ mimeType: "text/html;profile=mcp-app",
106
+ buildContentMeta: ({ resourceDomains, connectDomains, domain }) => {
107
+ const defaults = {
108
+ ui: {
109
+ csp: {
110
+ resourceDomains,
111
+ connectDomains,
112
+ },
113
+ domain,
114
+ },
115
+ };
116
+ return mergeWithUnion(defaults, { ui: userMeta?.ui });
117
+ },
118
+ };
119
+ this.registerWidgetResource({
120
+ name,
121
+ widgetConfig,
122
+ resourceConfig,
123
+ });
124
+ // @ts-expect-error - For backwards compatibility with Claude current implementation of the specs
125
+ toolMeta["ui/resourceUri"] = widgetConfig.uri;
126
+ toolMeta.ui = { resourceUri: widgetConfig.uri };
127
+ }
69
128
  this.registerTool(name, {
70
129
  ...toolConfig,
71
130
  _meta: toolMeta,
@@ -80,10 +139,14 @@ export class McpServer extends McpServerBase {
80
139
  const { hostType, uri: widgetUri, mimeType, buildContentMeta, } = widgetConfig;
81
140
  this.registerResource(name, widgetUri, { ...resourceConfig, _meta: resourceConfig._meta }, async (uri, extra) => {
82
141
  const isProduction = process.env.NODE_ENV === "production";
83
- const serverUrl = isProduction
84
- ? `https://${extra?.requestInfo?.headers?.["x-forwarded-host"] ?? extra?.requestInfo?.headers?.host}`
142
+ const useForwardedHost = process.env.SKYBRIDGE_USE_FORWARDED_HOST === "true";
143
+ const isClaude = extra?.requestInfo?.headers?.["user-agent"] === "Claude-User";
144
+ const hostFromHeaders = extra?.requestInfo?.headers?.["x-forwarded-host"] ??
145
+ extra?.requestInfo?.headers?.host;
146
+ const useExternalHost = isProduction || useForwardedHost || isClaude;
147
+ const serverUrl = useExternalHost
148
+ ? `https://${hostFromHeaders}`
85
149
  : "http://localhost:3000";
86
- const wsServerUrl = serverUrl.replace(/^http/, "ws");
87
150
  const html = isProduction
88
151
  ? templateHelper.renderProduction({
89
152
  hostType,
@@ -94,9 +157,10 @@ export class McpServer extends McpServerBase {
94
157
  : templateHelper.renderDevelopment({
95
158
  hostType,
96
159
  serverUrl,
160
+ useLocalNetworkAccess: !useExternalHost,
97
161
  widgetName: name,
98
162
  });
99
- const connectDomains = [serverUrl, wsServerUrl];
163
+ const connectDomains = [serverUrl];
100
164
  if (!isProduction) {
101
165
  const VITE_HMR_WEBSOCKET_DEFAULT_URL = "ws://localhost:24678";
102
166
  connectDomains.push(VITE_HMR_WEBSOCKET_DEFAULT_URL);
@@ -104,7 +168,14 @@ export class McpServer extends McpServerBase {
104
168
  const contentMeta = buildContentMeta({
105
169
  resourceDomains: [serverUrl],
106
170
  connectDomains,
107
- domain: serverUrl,
171
+ domain: isClaude
172
+ ? `${crypto
173
+ .createHash("sha256")
174
+ .update(`https://${hostFromHeaders}/mcp`)
175
+ .digest("hex")
176
+ .slice(0, 32)}.claudemcpcontent.com`
177
+ : serverUrl,
178
+ baseUriDomains: [serverUrl],
108
179
  });
109
180
  return {
110
181
  contents: [
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sour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Q,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC;IACrE,CAAC;IAEO,YAAY;QAClB,OAAO,IAAI,CAAC,KAAK,CACf,YAAY,CACV,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,CAAC,EACpE,OAAO,CACR,CACF,CAAC;IACJ,CAAC;CACF"}
@@ -11,6 +11,7 @@ declare class TemplateHelper {
11
11
  renderDevelopment(data: {
12
12
  hostType: WidgetHostType;
13
13
  serverUrl: string;
14
+ useLocalNetworkAccess: boolean;
14
15
  widgetName: string;
15
16
  }): string;
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"templateHelper.js","sourceRoot":"","sources":["../../src/server/templateHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,UAAU,MAAM,YAAY,CAAC;AAGpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,MAAM,cAAc;IACV,aAAa,GAAG,IAAI,GAAG,EAAsC,CAAC;IAE9D,YAAY,CAAC,YAAoB;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACpD,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,YAAY,MAAM,CAAC,CAAC;QACzE,MAAM,cAAc,GAAG,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAC3D,MAAM,QAA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AAM,CAAC,CAAC;QACzE,MAAM,cAAc,GAAG,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAC3D,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAEpD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAC/C,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,gBAAgB,CAAC,IAKhB;QACC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;IAED,iBAAiB,CAAC,IAKjB;QACC,MAAM,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QAClD,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAC"}
@@ -1,5 +1,4 @@
1
- <base href="{{serverUrl}}" />
2
- <script type="module">window.skybridge = { hostType: "{{hostType}}" };</script>
1
+ <script type="module">window.skybridge = { hostType: "{{hostType}}", serverUrl: "{{serverUrl}}" };</script>
3
2
  <script type="module">
4
3
  import { injectIntoGlobalHook } from "{{serverUrl}}/assets/@react-refresh";
5
4
  injectIntoGlobalHook(window); window.$RefreshReg$ = () => {};
@@ -7,6 +6,7 @@
7
6
  window.__vite_plugin_react_preamble_installed__ = true;
8
7
  </script>
9
8
  <script type="module" src="{{serverUrl}}/@vite/client"></script>
9
+ {{#if useLocalNetworkAccess}}
10
10
  <script type="module">
11
11
  // Checks for browser support and shows error if local network access is denied
12
12
  (async () => {
@@ -60,6 +60,7 @@
60
60
  }
61
61
  })();
62
62
  </script>
63
+ {{/if}}
63
64
  <div id="root"></div>
64
65
  <script type="module" id="dev-widget-entry">
65
66
  import('{{serverUrl}}/src/widgets/{{widgetName}}');
@@ -1,5 +1,4 @@
1
- <base href="{{serverUrl}}" />
2
- <script type="module">window.skybridge = { hostType: "{{hostType}}" };</script>
1
+ <script type="module">window.skybridge = { hostType: "{{hostType}}", serverUrl: "{{serverUrl}}" };</script>
3
2
  <div id="root"></div>
4
3
  <script type="module">
5
4
  import('{{serverUrl}}/assets/{{widgetFile}}');
@@ -2,6 +2,7 @@ import { existsSync } from "node:fs";
2
2
  import path from "node:path";
3
3
  import cors from "cors";
4
4
  import express, {} from "express";
5
+ import { assetBaseUrlTransformPlugin } from "./asset-base-url-transform-plugin.js";
5
6
  /**
6
7
  * Install Vite dev server
7
8
  * This router MUST be installed at the application root, like so:
@@ -26,7 +27,7 @@ export const widgetsDevServer = async () => {
26
27
  webAppRoot = path.join(workspaceRoot, "web");
27
28
  }
28
29
  const configResult = await loadConfigFromFile({ command: "serve", mode: "development" }, path.join(webAppRoot, "vite.config.ts"), webAppRoot);
29
- const { build, preview, ...devConfig } = configResult?.config || {};
30
+ const { build, preview, plugins: userPlugins = [], ...devConfig } = configResult?.config || {};
30
31
  const vite = await createServer({
31
32
  ...devConfig,
32
33
  configFile: false, // Keep this to prevent vite from trying to resolve path in the target config file
@@ -34,11 +35,20 @@ export const widgetsDevServer = async () => {
34
35
  server: {
35
36
  allowedHosts: true,
36
37
  middlewareMode: true,
38
+ hmr: {
39
+ protocol: "ws",
40
+ host: "localhost",
41
+ port: 24678,
42
+ },
37
43
  },
38
44
  root: webAppRoot,
39
45
  optimizeDeps: {
40
46
  include: ["react", "react-dom/client"],
41
47
  },
48
+ plugins: [
49
+ ...userPlugins,
50
+ assetBaseUrlTransformPlugin({ devServerOrigin: "http://localhost:3000" }),
51
+ ],
42
52
  });
43
53
  router.use(cors());
44
54
  router.use("/", vite.middlewares);
@@ -1 +1 @@
1
- {"version":3,"file":"widgetsDevServer.js","sourceRoot":"","sources":["../../src/server/widgetsDevServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAA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C/C,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,kBAAkB,CAC3C,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,EACzC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,gBAAgB,CAAC,EACvC,UAAU,CACX,CAAC;IAEF,MAAM,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EAAE,WAAW,GAAG,EAAE,EACzB,GAAG,SAAS,EACb,GAAG,YAAY,EAAE,MAAM,IAAI,EAAE,CAAC;IAE/B,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC;QAC9B,GAAG,SAAS;QACZ,UAAU,EAAE,KAAK,EAAE,kFAAkF;QACrG,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE;YACN,YAAY,EAAE,IAAI;YAClB,cAAc,EAAE,IAAI;YACpB,GAAG,EAAE;gBACH,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,KAAK;aACZ;SACF;QACD,IAAI,EAAE,UAAU;QAChB,YAAY,EAAE;YACZ,OAAO,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC;SACvC;QACD,OAAO,EAAE;YACP,GAAG,WAAW;YACd,2BAA2B,CAAC,EAAE,eAAe,EAAE,uBAAuB,EAAE,CAAC;SAC1E;KACF,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnB,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAElC,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -94,7 +94,183 @@ export declare function createTestServer(): McpServer<Record<never, import("../s
94
94
  processedAt: number;
95
95
  region: string;
96
96
  }>;
97
- }>;
97
+ }> & {
98
+ use(...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
99
+ "search-voyage": import("../server/server.js").ToolDef<{
100
+ destination: string;
101
+ departureDate?: string | undefined;
102
+ maxPrice?: number | undefined;
103
+ }, {
104
+ results: {
105
+ id: string;
106
+ name: string;
107
+ price: number;
108
+ }[];
109
+ totalCount: number;
110
+ }, unknown>;
111
+ } & {
112
+ "get-trip-details": import("../server/server.js").ToolDef<{
113
+ tripId: string;
114
+ }, {
115
+ name: string;
116
+ description: string;
117
+ images: string[];
118
+ }, unknown>;
119
+ } & {
120
+ "no-input-widget": import("../server/server.js").ToolDef<{}, {}, unknown>;
121
+ } & {
122
+ "inferred-output-widget": import("../server/server.js").ToolDef<{
123
+ query: string;
124
+ }, {
125
+ inferredResults: {
126
+ id: string;
127
+ score: number;
128
+ }[];
129
+ inferredCount: number;
130
+ }, unknown>;
131
+ } & {
132
+ "calculate-price": import("../server/server.js").ToolDef<{
133
+ tripId: string;
134
+ passengers: number;
135
+ }, {
136
+ totalPrice: number;
137
+ currency: string;
138
+ }, unknown>;
139
+ } & {
140
+ "inferred-tool": import("../server/server.js").ToolDef<{
141
+ itemId: string;
142
+ }, {
143
+ itemDetails: {
144
+ name: string;
145
+ available: boolean;
146
+ };
147
+ fetchedAt: string;
148
+ }, unknown>;
149
+ } & {
150
+ "widget-with-metadata": import("../server/server.js").ToolDef<{
151
+ resourceId: string;
152
+ }, {
153
+ data: {
154
+ id: string;
155
+ loaded: boolean;
156
+ };
157
+ }, {
158
+ requestId: string;
159
+ timestamp: number;
160
+ cached: boolean;
161
+ }>;
162
+ } & {
163
+ "tool-with-metadata": import("../server/server.js").ToolDef<{
164
+ query: string;
165
+ }, {
166
+ results: string[];
167
+ }, {
168
+ executionTime: number;
169
+ source: string;
170
+ }>;
171
+ } & {
172
+ "widget-with-mixed-returns": import("../server/server.js").ToolDef<{
173
+ shouldSucceed: boolean;
174
+ }, {
175
+ error: string;
176
+ data?: undefined;
177
+ } | {
178
+ data: string;
179
+ error?: undefined;
180
+ }, {
181
+ processedAt: number;
182
+ region: string;
183
+ }>;
184
+ }> & /*elided*/ any;
185
+ use(path: string, ...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
186
+ "search-voyage": import("../server/server.js").ToolDef<{
187
+ destination: string;
188
+ departureDate?: string | undefined;
189
+ maxPrice?: number | undefined;
190
+ }, {
191
+ results: {
192
+ id: string;
193
+ name: string;
194
+ price: number;
195
+ }[];
196
+ totalCount: number;
197
+ }, unknown>;
198
+ } & {
199
+ "get-trip-details": import("../server/server.js").ToolDef<{
200
+ tripId: string;
201
+ }, {
202
+ name: string;
203
+ description: string;
204
+ images: string[];
205
+ }, unknown>;
206
+ } & {
207
+ "no-input-widget": import("../server/server.js").ToolDef<{}, {}, unknown>;
208
+ } & {
209
+ "inferred-output-widget": import("../server/server.js").ToolDef<{
210
+ query: string;
211
+ }, {
212
+ inferredResults: {
213
+ id: string;
214
+ score: number;
215
+ }[];
216
+ inferredCount: number;
217
+ }, unknown>;
218
+ } & {
219
+ "calculate-price": import("../server/server.js").ToolDef<{
220
+ tripId: string;
221
+ passengers: number;
222
+ }, {
223
+ totalPrice: number;
224
+ currency: string;
225
+ }, unknown>;
226
+ } & {
227
+ "inferred-tool": import("../server/server.js").ToolDef<{
228
+ itemId: string;
229
+ }, {
230
+ itemDetails: {
231
+ name: string;
232
+ available: boolean;
233
+ };
234
+ fetchedAt: string;
235
+ }, unknown>;
236
+ } & {
237
+ "widget-with-metadata": import("../server/server.js").ToolDef<{
238
+ resourceId: string;
239
+ }, {
240
+ data: {
241
+ id: string;
242
+ loaded: boolean;
243
+ };
244
+ }, {
245
+ requestId: string;
246
+ timestamp: number;
247
+ cached: boolean;
248
+ }>;
249
+ } & {
250
+ "tool-with-metadata": import("../server/server.js").ToolDef<{
251
+ query: string;
252
+ }, {
253
+ results: string[];
254
+ }, {
255
+ executionTime: number;
256
+ source: string;
257
+ }>;
258
+ } & {
259
+ "widget-with-mixed-returns": import("../server/server.js").ToolDef<{
260
+ shouldSucceed: boolean;
261
+ }, {
262
+ error: string;
263
+ data?: undefined;
264
+ } | {
265
+ data: string;
266
+ error?: undefined;
267
+ }, {
268
+ processedAt: number;
269
+ region: string;
270
+ }>;
271
+ }> & /*elided*/ any;
272
+ run(): Promise<void>;
273
+ };
98
274
  export declare function createMinimalTestServer(): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
99
275
  "search-voyage": import("../server/server.js").ToolDef<{
100
276
  destination: string;
@@ -103,7 +279,27 @@ export declare function createMinimalTestServer(): McpServer<Record<never, impor
103
279
  id: string;
104
280
  }[];
105
281
  }, unknown>;
106
- }>;
282
+ }> & {
283
+ use(...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
284
+ "search-voyage": import("../server/server.js").ToolDef<{
285
+ destination: string;
286
+ }, {
287
+ results: {
288
+ id: string;
289
+ }[];
290
+ }, unknown>;
291
+ }> & /*elided*/ any;
292
+ use(path: string, ...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
293
+ "search-voyage": import("../server/server.js").ToolDef<{
294
+ destination: string;
295
+ }, {
296
+ results: {
297
+ id: string;
298
+ }[];
299
+ }, unknown>;
300
+ }> & /*elided*/ any;
301
+ run(): Promise<void>;
302
+ };
107
303
  export declare function createInterfaceTestServer(): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
108
304
  "interface-widget": import("../server/server.js").ToolDef<{
109
305
  id: string;
@@ -114,7 +310,31 @@ export declare function createInterfaceTestServer(): McpServer<Record<never, imp
114
310
  processedBy: string;
115
311
  version: number;
116
312
  }>;
117
- }>;
313
+ }> & {
314
+ use(...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
315
+ "interface-widget": import("../server/server.js").ToolDef<{
316
+ id: string;
317
+ }, {
318
+ itemName: string;
319
+ quantity: number;
320
+ }, {
321
+ processedBy: string;
322
+ version: number;
323
+ }>;
324
+ }> & /*elided*/ any;
325
+ use(path: string, ...handlers: import("express").RequestHandler[]): McpServer<Record<never, import("../server/server.js").ToolDef<unknown, unknown, unknown>> & {
326
+ "interface-widget": import("../server/server.js").ToolDef<{
327
+ id: string;
328
+ }, {
329
+ itemName: string;
330
+ quantity: number;
331
+ }, {
332
+ processedBy: string;
333
+ version: number;
334
+ }>;
335
+ }> & /*elided*/ any;
336
+ run(): Promise<void>;
337
+ };
118
338
  /**
119
339
  * Mock extra parameter for resource callback
120
340
  */