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:
@@ -1,4 +1,4 @@
|
||||
import type { Agent } from "@opencode-ai/sdk";
|
||||
import type { Agent } from "@opencode-ai/sdk/v2";
|
||||
|
||||
export interface AgentMentionSource {
|
||||
value: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Part } from '@opencode-ai/sdk';
|
||||
import type { Part } from '@opencode-ai/sdk/v2';
|
||||
|
||||
type TextLikePart = Part & { text?: string; content?: string };
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Part } from "@opencode-ai/sdk";
|
||||
import type { Part } from "@opencode-ai/sdk/v2";
|
||||
|
||||
export const isSyntheticPart = (part: Part | undefined): boolean => {
|
||||
if (!part || typeof part !== "object") {
|
||||
|
||||
Reference in New Issue
Block a user