ReleaseContract.swift
sha256:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700
feat(companion): add production macOS distribution path
Human
minor
⚠ breaking
24 days ago
| 1 | import Foundation |
| 2 | |
| 3 | public enum KnowtationReleaseContract { |
| 4 | public static let version = "0.1.0" |
| 5 | public static let build = 100 |
| 6 | public static let minimumMacOS = "14.0" |
| 7 | public static let architecture = "arm64" |
| 8 | |
| 9 | public static let appIdentifier = "store.knowtation.companion" |
| 10 | public static let custodyIdentifier = "store.knowtation.companion.custody" |
| 11 | public static let cliIdentifier = "store.knowtation.cli" |
| 12 | public static let mcpIdentifier = "store.knowtation.mcp" |
| 13 | public static let nodeIdentifier = "store.knowtation.runtime.node" |
| 14 | public static let packageIdentifier = "store.knowtation.pkg" |
| 15 | public static let custodyMachService = "store.knowtation.companion.custody" |
| 16 | public static let custodyLaunchAgentPlist = "store.knowtation.companion.custody.plist" |
| 17 | public static let keychainService = "store.knowtation.companion" |
| 18 | public static let hostedOrigin = "https://mcp.knowtation.store" |
| 19 | public static let nativeOAuthIssuer = "https://mcp.knowtation.store/api/v1/auth/native" |
| 20 | |
| 21 | public static let allowedCallerIdentifiers: Set<String> = [ |
| 22 | appIdentifier, |
| 23 | cliIdentifier, |
| 24 | mcpIdentifier, |
| 25 | ] |
| 26 | } |
| 27 | |
| 28 | public enum KnowtationRuntimeMode: String, Codable, CaseIterable { |
| 29 | case app |
| 30 | case cli |
| 31 | case mcp |
| 32 | |
| 33 | public var requiredCallerIdentifier: String { |
| 34 | switch self { |
| 35 | case .app: return KnowtationReleaseContract.appIdentifier |
| 36 | case .cli: return KnowtationReleaseContract.cliIdentifier |
| 37 | case .mcp: return KnowtationReleaseContract.mcpIdentifier |
| 38 | } |
| 39 | } |
| 40 | } |
File History
1 commit
sha256:bd1eb24434d281fe65142038c1bf217493421f5a86880c22dff7e6037d2d4700
feat(companion): add production macOS distribution path
Human
minor
⚠
24 days ago