mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 07:04:53 +00:00
* fix(ai): make SDK deps optional, degrade gracefully when missing - Move @anthropic-ai/claude-agent-sdk and @github/copilot-sdk from dependencies to optionalDependencies so npm install does not fail when they are unavailable - claudeDriver.listClaudeModels: catch import error, return [] silently - copilotDriver.listCopilotModels: catch import error, return [] silently - sdkStreamHandlers: downgrade log from console.error to console.debug The renderer already falls back to curated model presets when list-models returns [], so no functional change. * fixup: honor queryFn before SDK import; regenerate lockfile with optional markers * fixup: guard runTurn against missing SDK modules runClaudeTurn and runCopilotTurn now catch dynamic import errors and emit a user-friendly error message instead of crashing with a raw module-not-found error.