refactor: use SDK-exported SDKAssistantMessageError instead of local type definition

This commit is contained in:
ajmallesh
2026-02-20 07:49:53 -08:00
parent e8e830c9f8
commit 839686c23c
3 changed files with 5 additions and 10 deletions
+2 -1
View File
@@ -18,7 +18,8 @@
*/
import fs from 'fs/promises';
import { query, type SDKAssistantMessageError } from '@anthropic-ai/claude-agent-sdk';
import { query } from '@anthropic-ai/claude-agent-sdk';
import type { SDKAssistantMessageError } from '@anthropic-ai/claude-agent-sdk';
import { PentestError, isRetryableError } from './error-handling.js';
import { ErrorCode } from '../types/errors.js';
import { type Result, ok, err } from '../types/result.js';