feat(keyboard): add custom skills plus events and navigate Shortcuts

Ship user-defined Shortcut skills, companion Events/Navigate recipes, shared skill/style card chrome, and bump the build to 69.
This commit is contained in:
Rocky
2026-08-13 23:01:43 +08:00
parent 148ff807f2
commit 0a60006d2d
50 changed files with 11612 additions and 251 deletions
@@ -8,14 +8,15 @@
import Foundation
public enum AIModeLLMClientFactory {
/// Build an AI-mode client. Thinking is always forced on for this path.
/// When `allowWebSearch` is false, returns the plain polish-compatible client.
/// Build an AI-mode client. Thinking defaults on for spoken questions.
/// Clipboard skills pass `thinkingEnabled` from the skill (built-in: off).
public static func make(
providerId: String,
baseURL: String,
apiKey: String,
model: String,
allowWebSearch: Bool = true,
thinkingEnabled: Bool = true,
session: URLSession = .shared
) -> any LLMClient {
let plain = LLMClientFactory.make(
@@ -23,10 +24,10 @@ public enum AIModeLLMClientFactory {
baseURL: baseURL,
apiKey: apiKey,
model: model,
thinkingEnabled: true,
thinkingEnabled: thinkingEnabled,
session: session
)
guard allowWebSearch else { return plain }
guard thinkingEnabled, allowWebSearch else { return plain }
guard let searching = makeSearchingClient(
providerId: providerId,