Expand onboarding and adaptive keyboard intelligence
Add resilient usage analytics, OOBE gateway flows, clipboard semantic ranking, purchase recovery, style learning, and managed current-information search.
This commit is contained in:
@@ -42,7 +42,8 @@ public protocol ConfigurationStore: Sendable {
|
||||
|
||||
func makeClient(
|
||||
taskKind: ManagedGatewayTaskKind?,
|
||||
requestPurpose: ManagedGatewayRequestPurpose?
|
||||
requestPurpose: ManagedGatewayRequestPurpose?,
|
||||
oobeFeature: ManagedGatewayOOBEFeature?
|
||||
) -> LLMClient
|
||||
}
|
||||
|
||||
@@ -51,10 +52,21 @@ public extension ConfigurationStore {
|
||||
var credentialSource: CredentialSource { .byok }
|
||||
|
||||
func makeClient() -> LLMClient {
|
||||
makeClient(taskKind: nil, requestPurpose: nil)
|
||||
makeClient(taskKind: nil, requestPurpose: nil, oobeFeature: nil)
|
||||
}
|
||||
|
||||
func makeClient(taskKind: ManagedGatewayTaskKind?) -> LLMClient {
|
||||
makeClient(taskKind: taskKind, requestPurpose: nil)
|
||||
makeClient(taskKind: taskKind, requestPurpose: nil, oobeFeature: nil)
|
||||
}
|
||||
|
||||
func makeClient(
|
||||
taskKind: ManagedGatewayTaskKind?,
|
||||
requestPurpose: ManagedGatewayRequestPurpose?
|
||||
) -> LLMClient {
|
||||
makeClient(
|
||||
taskKind: taskKind,
|
||||
requestPurpose: requestPurpose,
|
||||
oobeFeature: nil
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -126,13 +126,15 @@ public struct LiveConfigurationStore: ConfigurationStore, @unchecked Sendable {
|
||||
|
||||
public func makeClient(
|
||||
taskKind: ManagedGatewayTaskKind?,
|
||||
requestPurpose: ManagedGatewayRequestPurpose?
|
||||
requestPurpose: ManagedGatewayRequestPurpose?,
|
||||
oobeFeature: ManagedGatewayOOBEFeature?
|
||||
) -> LLMClient {
|
||||
if credentialSource == .managed {
|
||||
if credentialSource == .managed || requestPurpose == .oobe {
|
||||
return ManagedLLMClient(
|
||||
capability: .polish,
|
||||
taskKind: taskKind,
|
||||
requestPurpose: requestPurpose,
|
||||
oobeFeature: oobeFeature,
|
||||
grants: GatewayGrantCoordinator()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user