diff cosmetics

This commit is contained in:
Alain Brenzikofer
2026-09-29 08:13:30 +02:00
parent 38b79929ca
commit 7cb651d207
6 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1452,9 +1452,9 @@ struct ConnectionPlanResult {
// APIConnectPlan resolution scope; .never is local-store-only (no network), used for per-keystroke name search
enum PlanResolveMode: String {
case all
case unknown
case never
case all
}
enum ConnectionPlan: Decodable, Hashable {
@@ -7430,11 +7430,11 @@ data class ConnectionPlanResult(
// APIConnectPlan resolution scope; PRMNever is local-store-only (no network), used for per-keystroke name search
enum class PlanResolveMode {
PRMUnknown, PRMNever, PRMAll;
PRMAll, PRMUnknown, PRMNever;
val cmdString: String get() = when (this) {
PRMAll -> "all"
PRMUnknown -> "unknown"
PRMNever -> "never"
PRMAll -> "all"
}
}
+1 -1
View File
@@ -3277,9 +3277,9 @@ count=<count>
## PlanResolveMode
**Enum type**:
- "all"
- "unknown"
- "never"
- "all"
---
@@ -3587,9 +3587,9 @@ export interface PendingContactConnection {
}
export enum PlanResolveMode {
All = "all",
Unknown = "unknown",
Never = "never",
All = "all",
}
export interface PrefEnabled {
@@ -2503,7 +2503,7 @@ class PendingContactConnection(TypedDict):
createdAt: str # ISO-8601 timestamp
updatedAt: str # ISO-8601 timestamp
PlanResolveMode = Literal["unknown", "never", "all"]
PlanResolveMode = Literal["all", "unknown", "never"]
class PrefEnabled(TypedDict):
forUser: bool
+4 -3
View File
@@ -709,18 +709,19 @@ data ChatCommand
deriving (Show)
data PlanResolveMode
= PRMUnknown -- only resolve if chat is unknown (default)
= PRMAll -- always resolve, also known chats
| PRMUnknown -- only resolve if chat is unknown (default)
| PRMNever -- do not resolve links and names, only do local search
| PRMAll -- always resolve, also known chats
deriving (Eq, Show)
planResolveModeP :: A.Parser PlanResolveMode
planResolveModeP =
A.takeTill (== ' ') >>= \case
"all" -> pure PRMAll
"on" -> pure PRMAll
"unknown" -> pure PRMUnknown
"off" -> pure PRMUnknown
"never" -> pure PRMNever
"all" -> pure PRMAll
_ -> fail "bad PlanResolveMode"
data CommandSource