mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-28 02:34:21 +01:00
chore: fix type error
This commit is contained in:
@@ -283,8 +283,29 @@ const LayerImpl = Effect.gen(function* () {
|
||||
|
||||
try {
|
||||
for await (const message of messageIter) {
|
||||
if (
|
||||
message.type === "system" &&
|
||||
message.subtype === "hook_response"
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (
|
||||
message.type === "system" &&
|
||||
message.subtype === "compact_boundary"
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const result = await Runtime.runPromise(runtime)(
|
||||
handleMessage(message),
|
||||
handleMessage(
|
||||
message.type === "system"
|
||||
? {
|
||||
...message,
|
||||
plugins: [],
|
||||
}
|
||||
: message,
|
||||
),
|
||||
).catch((error) => {
|
||||
// iter 自体が落ちてなければ継続したいので握りつぶす
|
||||
Effect.runFork(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
SDKResultMessage,
|
||||
SDKSystemMessage,
|
||||
} from "@anthropic-ai/claude-code";
|
||||
} from "@anthropic-ai/claude-agent-sdk";
|
||||
import { Effect } from "effect";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { testPlatformLayer } from "../../../../testing/layers/testPlatformLayer";
|
||||
|
||||
Reference in New Issue
Block a user