refactor: update imports to use @anthropic-ai/claude-agent-sdk

- Changed import statements in multiple files to replace references from @anthropic-ai/claude-code to @anthropic-ai/claude-agent-sdk for consistency and to align with the latest SDK structure.
This commit is contained in:
d-kimsuon
2025-10-21 22:42:20 +09:00
parent ab102d2526
commit 4bad647b84
5 changed files with 11 additions and 5 deletions

View File

@@ -1,4 +1,7 @@
import type { SDKMessage, SDKUserMessage } from "@anthropic-ai/claude-code";
import type {
SDKMessage,
SDKUserMessage,
} from "@anthropic-ai/claude-agent-sdk";
import { controllablePromise } from "../../../../lib/controllablePromise";
export type OnMessage = (message: SDKMessage) => void | Promise<void>;

View File

@@ -1,4 +1,7 @@
import type { SDKMessage, SDKUserMessage } from "@anthropic-ai/claude-code";
import type {
SDKMessage,
SDKUserMessage,
} from "@anthropic-ai/claude-agent-sdk";
import type { FileSystem, Path } from "@effect/platform";
import type { CommandExecutor } from "@effect/platform/CommandExecutor";
import { Context, Effect, Layer, Runtime } from "effect";

View File

@@ -1,4 +1,4 @@
import type { CanUseTool } from "@anthropic-ai/claude-code";
import type { CanUseTool } from "@anthropic-ai/claude-agent-sdk";
import { Context, Effect, Layer, Ref } from "effect";
import { ulid } from "ulid";
import type {

View File

@@ -1,4 +1,4 @@
import type { SDKResultMessage } from "@anthropic-ai/claude-code";
import type { SDKResultMessage } from "@anthropic-ai/claude-agent-sdk";
import { Context, Data, Effect, Layer, Ref } from "effect";
import type { InferEffect } from "../../../lib/effect/types";
import { EventBus } from "../../events/services/EventBus";

View File

@@ -1,4 +1,4 @@
import type { SDKSystemMessage } from "@anthropic-ai/claude-code";
import type { SDKSystemMessage } from "@anthropic-ai/claude-agent-sdk";
export type InitMessageContext = {
initMessage: SDKSystemMessage;