陈大猫
8181fe71cf
fix(ai): make SDK deps optional, degrade gracefully when missing ( #1242 )
...
* 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.
2026-06-04 19:53:29 +08:00
..
2026-06-04 17:11:02 +08:00
2026-06-04 19:53:29 +08:00
2026-06-04 17:11:02 +08:00
2026-06-04 17:11:02 +08:00
2026-06-04 18:12:54 +08:00
2026-06-04 18:12:54 +08:00
2026-06-04 17:20:44 +08:00
2026-06-04 17:11:02 +08:00
2026-06-04 17:11:02 +08:00
2026-06-04 00:05:09 +08:00
2026-06-04 00:05:09 +08:00
2026-05-21 12:51:50 +08:00
2026-05-21 12:51:50 +08:00
2026-05-22 22:41:25 +08:00
2026-05-22 22:41:25 +08:00
2026-05-10 21:37:52 +08:00
2026-03-26 14:14:37 +08:00
2026-03-23 15:41:45 +08:00
2026-02-13 22:33:52 +08:00
2026-06-04 00:05:09 +08:00
2026-06-04 00:05:09 +08:00
2026-03-26 14:14:37 +08:00
2026-04-23 17:24:28 +08:00
2026-04-23 13:54:31 +08:00
2026-04-22 13:45:16 +08:00
2026-04-23 01:41:26 +08:00
2026-05-13 11:41:36 +08:00
2026-05-13 11:41:36 +08:00
2026-03-26 14:14:37 +08:00
2026-04-23 01:41:26 +08:00
2026-05-12 17:58:07 +08:00
2026-05-09 17:47:45 +08:00
2026-04-19 16:31:00 +08:00
2026-06-04 17:11:02 +08:00
2026-06-04 17:11:02 +08:00
2026-04-30 08:25:57 +08:00
2026-04-30 08:25:57 +08:00
2026-03-03 19:43:50 +08:00
2026-04-23 14:51:50 +08:00
2026-04-23 14:51:50 +08:00
2026-06-03 16:26:33 +08:00
2026-06-03 16:26:33 +08:00
2026-05-09 16:16:17 +08:00
2026-05-09 16:16:17 +08:00
2026-05-27 15:12:42 +08:00
2026-05-29 15:45:56 +08:00
2026-05-29 15:45:56 +08:00
2026-04-19 16:31:00 +08:00
2026-05-26 15:31:14 +08:00
2026-05-25 13:42:49 +08:00
2026-05-25 13:42:49 +08:00
2026-04-16 17:30:11 +08:00
2026-04-16 17:30:11 +08:00
2026-05-18 11:42:43 +08:00
2026-05-18 11:42:43 +08:00
2026-05-18 11:42:43 +08:00
2026-05-18 11:42:43 +08:00
2026-05-28 15:12:19 +08:00
2026-05-09 16:16:17 +08:00
2026-04-23 01:41:26 +08:00
2026-05-27 15:12:42 +08:00
2026-05-27 15:12:42 +08:00
2026-05-29 15:45:56 +08:00
2026-05-09 16:16:17 +08:00
2026-05-13 13:36:07 +08:00
2026-05-29 15:45:56 +08:00
2026-06-04 18:12:54 +08:00
2026-06-03 11:07:58 +08:00
2026-05-23 12:20:20 +08:00
2026-06-04 18:09:53 +08:00
2026-06-02 12:01:40 +08:00
2026-06-03 11:07:58 +08:00
2026-06-03 11:07:58 +08:00
2026-04-16 10:34:51 +08:00
2026-05-26 15:31:14 +08:00
2026-05-07 12:57:54 +08:00
2026-05-07 12:57:54 +08:00
2026-05-12 21:07:51 +08:00
2026-05-12 21:07:51 +08:00
2026-01-09 17:42:39 +08:00
2026-05-04 11:09:12 +08:00
2026-06-03 01:45:28 +08:00
2026-04-30 08:25:57 +08:00
2026-06-04 18:12:54 +08:00
2026-06-03 10:43:49 +08:00
2026-06-03 19:08:21 +08:00
2026-06-03 16:26:27 +08:00
2026-05-07 12:57:54 +08:00
2026-06-03 19:08:21 +08:00
2026-06-03 19:08:21 +08:00
2026-05-04 17:27:04 +08:00
2026-05-04 17:27:04 +08:00
2026-03-29 13:25:36 +08:00
2026-04-16 22:43:19 +08:00
2026-04-16 22:43:19 +08:00
2026-06-04 17:20:44 +08:00
2026-06-04 00:05:09 +08:00
2026-06-04 17:20:44 +08:00
2026-04-28 07:54:26 +08:00
2026-04-28 07:54:26 +08:00
2026-05-24 23:44:41 +08:00
2026-05-24 23:44:41 +08:00