-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor: rename sandbox_iframe directory to mcp_apps_inner_iframe #988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,6 @@ | |
| * limitations under the License. | ||
| */ | ||
|
|
||
| export const SANDBOX_BASE_PATH = "shared/sandbox_iframe/"; | ||
| export const SANDBOX_BASE_PATH = "shared/mcp_apps_inner_iframe/"; | ||
| export const SANDBOX_ENTRY_NAME = `${SANDBOX_BASE_PATH}sandbox`; | ||
| export const SANDBOX_IFRAME_PATH = `/${SANDBOX_ENTRY_NAME}.html`; | ||
|
Comment on lines
+17
to
19
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the directory has been renamed to |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,6 +58,7 @@ export default async () => { | |
| alias: { | ||
| "@a2ui/markdown-it": resolve(__dirname, "../../../../renderers/markdown/markdown-it/dist/src/markdown.js"), | ||
| "sandbox.js": resolve(__dirname, "../../" + SANDBOX_ENTRY_NAME + ".ts"), | ||
| "@modelcontextprotocol/ext-apps/app-bridge": resolve(__dirname, "../node_modules/@modelcontextprotocol/ext-apps/dist/src/app-bridge.js"), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This hardcoded relative path to |
||
| } | ||
| }, | ||
| optimizeDeps: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the URL construction more robust and readable, you could use the
URLandURLSearchParamsAPIs. This avoids manual string concatenation for query parameters and handles encoding correctly.