This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { calculateCost, createAssistantMessageEventStream, getModels, type AssistantMessage, type AssistantMessageEventStream, type Context, type ImageContent, type Model, type SimpleStreamOptions, type Tool } from "@mariozechner/pi-ai"; | |
| import { AuthStorage, type ExtensionAPI } from "@mariozechner/pi-coding-agent"; | |
| import { createSdkMcpServer, query, type SDKMessage, type SDKUserMessage, type SettingSource } from "@anthropic-ai/claude-agent-sdk"; | |
| import type { Base64ImageSource, CacheControlEphemeral, ContentBlockParam, ImageBlockParam, MessageParam, TextBlockParam } from "@anthropic-ai/sdk/resources"; | |
| import { pascalCase } from "change-case"; | |
| import { existsSync, readFileSync } from "fs"; | |
| import { homedir } from "os"; | |
| import { dirname, join, relative, resolve } from "path"; | |
| const PROVIDER_ID = "claude-agent-sdk"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; | |
| const PI_TO_SDK_TOOL_NAME: Record<string, string> = { | |
| read: "Read", | |
| write: "Write", | |
| edit: "Edit", | |
| bash: "Bash", | |
| grep: "Grep", | |
| find: "Glob", | |
| glob: "Glob", |