build: use workspaces for example subfolders (#23)

* use npm workspaces

* Update package.json
This commit is contained in:
Olivier Chafik 2025-11-25 03:14:14 +00:00 • committed by GitHub
commit 3e5ec1ae0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,7 @@ import {
getToolUiResourceUri,
readToolUiResourceHtml,
setupSandboxProxyIframe,
ToolUiResourceInfo,
} from "./app-host-utils";
/**
@ -249,7 +250,7 @@ export const AppRenderer = (props: AppRendererProps) => {
const fetchAndSendResource = async () => {
try {
// Get the resource URI (use prop if provided, otherwise fetch)
let resourceInfo: { uri: string };
let resourceInfo: ToolUiResourceInfo;
if (toolResourceUri) {
// When URI is provided directly, assume it's NOT OpenAI Apps SDK format