Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/AgentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ const TOOL_ARG_FIELDS: Record<string, string> = {
const extractErrorMessage = (obj: any): string | undefined => {
const err = obj.error;
if (typeof err === "string") return err;
if (typeof err === "object" && err !== null && typeof err.message === "string") {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prettier doing it's thing 🧹

if (
typeof err === "object" &&
err !== null &&
typeof err.message === "string"
) {
return err.message;
}
if (typeof obj.message === "string") return obj.message;
Expand Down Expand Up @@ -343,7 +347,7 @@ export const opencode = (
// ---------------------------------------------------------------------------

export interface ClaudeCodeOptions {
readonly effort?: "low" | "medium" | "high" | "max";
readonly effort?: "low" | "medium" | "high" | "xhigh" | "max";
/** Environment variables injected by this agent provider. */
readonly env?: Record<string, string>;
/** When false, session capture is disabled. Default: true. */
Expand Down