mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-26 17:54:23 +01:00
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:
@@ -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>;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user