feat: migrate to OpenCode SDK v2
Update all import statements to use @opencode-ai/sdk/v2 Modify Vite configurations to alias new SDK path Update API client method signatures for SDK v2 compatibility
This commit is contained in:
@@ -216,10 +216,8 @@ export const useFileStore = create<FileStore>()(
|
||||
const filename = lastSlashIndex > 0 ? path.substring(lastSlashIndex + 1) : path;
|
||||
|
||||
const response = await tempClient.file.read({
|
||||
query: {
|
||||
path: filename,
|
||||
directory: directory,
|
||||
},
|
||||
path: filename,
|
||||
directory: directory,
|
||||
});
|
||||
|
||||
if (response.data && "content" in response.data) {
|
||||
|
||||
Reference in New Issue
Block a user