Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/simple-host/src/AppRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
getToolUiResourceUri,
readToolUiResourceHtml,
setupSandboxProxyIframe,
ToolUiResourceInfo,
} from "./app-host-utils";

/**
Expand Down Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
"files": [
"dist"
],
"workspaces": [
"examples/*"
],
"scripts": {
"start:example-host": "cd examples/simple-host && npm --registry=https://registry.npmjs.org/ i && npm start",
"start:example-mcp-server": "cd examples//simple-server && npm --registry=https://registry.npmjs.org/ install && npm start",
"start:example-host": "cd examples/simple-host && npm start",
"start:example-mcp-server": "cd examples/simple-server && npm start",
"start": "NODE_ENV=development npm run build && concurrently 'npm run start:example-host' 'npm run start:example-mcp-server'",
"build": "bun build.bun.ts",
"prepare": "npm run build && husky",
Expand Down