updates for sdk

This commit is contained in:
Ashwin Bhat 2024-10-18 10:00:13 -07:00
commit 7680d5272a
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ import {
import { useState, useRef } from "react";
import {
Send,
Bell,
Terminal,
Files,
MessageSquare,
@ -120,7 +119,7 @@ const App = () => {
setNextResourceCursor(response.nextCursor);
};
const readResource = async (uri: URL) => {
const readResource = async (uri: string) => {
const response = await makeRequest(
{
method: "resources/read" as const,

View file

@ -17,7 +17,7 @@ const ResourcesTab = ({
}: {
resources: Resource[];
listResources: () => void;
readResource: (uri: URL) => void;
readResource: (uri: string) => void;
selectedResource: Resource | null;
setSelectedResource: (resource: Resource) => void;
resourceContent: string;