feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish

Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
Rocky
2026-08-13 01:00:51 +08:00
parent fd6e0d3e7e
commit 9f308fadd2
202 changed files with 10897 additions and 5962 deletions
@@ -70,6 +70,12 @@ public struct AnthropicMessagesClient: LLMClient {
throw LLMError.transport("non-HTTP response")
}
if !(200..<300).contains(http.statusCode) {
LLMHTTPDiagnostics.logFailure(
providerId: "anthropic",
statusCode: http.statusCode,
responseByteCount: data.count,
response: http
)
if http.statusCode == 429 { throw LLMError.rateLimited }
throw LLMError.http(status: http.statusCode)
}
@@ -123,6 +129,7 @@ public struct AnthropicMessagesClient: LLMClient {
for try await event in LLMStreamingSession.mapSSE(
session: session,
request: request,
providerId: "anthropic",
parse: LLMStreamDeltaParser.anthropicTextDelta(from:)
) {
continuation.yield(event)