// ABI Hash: f699d114d77cd79cfcf2bb1b87965b63afdc897e2d855ea8889ec1a03eb6fb00 import Foundation import StreamlineFoundation import CacheKit import OSLog import AppKit import Combine public struct FactoryComms { public static let agentDidBecomeActive: Notification.Name = Notification.Name("com.higginsoft.factory.agentDidBecomeActive") public static let requestIntegrityCheck: Notification.Name = Notification.Name("com.higginsoft.factory.requestIntegrityCheck") public static let integrityCheckComplete: Notification.Name = Notification.Name("com.higginsoft.factory.integrityCheckComplete") public static let hotelSyncDidComplete: Notification.Name = Notification.Name("com.higginsoft.factory.hotelSyncDidComplete") public static let requestQuotaStatus: Notification.Name = Notification.Name("com.higginsoft.factory.requestQuotaStatus") public static let quotaStatusReport: Notification.Name = Notification.Name("com.higginsoft.factory.quotaStatusReport") public static let requestBlankReplenishment: Notification.Name = Notification.Name("com.higginsoft.factory.requestBlankReplenishment") public static let blankReplenishmentComplete: Notification.Name = Notification.Name("com.higginsoft.factory.blankReplenishmentComplete") public static let registryDidUpdate: Notification.Name = Notification.Name("com.higginsoft.factory.registryDidUpdate") public static let cacheImageRequest: Notification.Name = Notification.Name("com.higginsoft.factory.cacheImageRequest") } public extension NotificationCenter { static func postDistributed(_ name: Notification.Name, object: String? = nil, userInfo: [AnyHashable: Any]? = nil) { fatalError() } static func addDistributedObserver(_ observer: Any, selector: Selector, name: Notification.Name, object: String? = nil) { fatalError() } } /// A centralized source of truth for Factory file system locations. public struct FactoryPaths { public static var root: URL { fatalError() } public static var externalStorage: URL { fatalError() } public static var apps: URL { fatalError() } public static var frameworks: URL { fatalError() } public static var comms: URL { fatalError() } public static var imageCache: URL { fatalError() } public static var chatBackups: URL { fatalError() } public static func databaseURL(for appName: String, storeName: String) -> URL { fatalError() } } public struct FactoryAuxiliaryWatch: Codable, Sendable { public var name: String = "" public var ownerApp: String = "" public var accountEmail: String = "" public var fileID: String = "" public var notifyChannel: String = "" public var enabled: Bool = false public init( name: String, ownerApp: String, accountEmail: String, fileID: String, notifyChannel: String, enabled: Bool = true ) { fatalError() } } public struct FactoryRegistry: Codable, Sendable { public var version: Int = 0 public var modified: Date? = nil public var volumes: [String: FactoryVolume] = [:] public var accounts: [String: FactoryAccount] = [:] public var agents: [String: FactoryAgent] = [:] public var projects: [String: FactoryProject] = [:] public var workspaces: [String: FactoryWorkspace]? = nil public var auxiliaryWatches: [String: FactoryAuxiliaryWatch]? = nil public var verboseAgentReporting: [String: Bool]? = nil public init( version: Int, volumes: [String: FactoryVolume], accounts: [String: FactoryAccount], agents: [String: FactoryAgent], projects: [String: FactoryProject], workspaces: [String: FactoryWorkspace]? = nil, auxiliaryWatches: [String: FactoryAuxiliaryWatch]? = nil, verboseAgentReporting: [String: Bool]? = nil, modified: Date? = nil ) { fatalError() } } public struct FactoryWorkspaceComponent: Codable, Sendable { public var type: String = "" public var platforms: [String] = [] public init(type: String, platforms: [String]) { fatalError() } } public struct FactoryWorkspace: Codable, Sendable { public var workspacePath: String = "" public var root: Root = Root() public var components: [String: FactoryWorkspaceComponent]? = nil public struct Root: Codable, Sendable { public var apps: [String] = [] public var frameworks: [String] = [] public init(apps: [String] = [], frameworks: [String] = []) { fatalError() } } public init(workspacePath: String, root: Root = Root(), components: [String: FactoryWorkspaceComponent]? = nil) { fatalError() } } public struct FactoryVolume: Codable, Sendable { public let smbURL: String = "" public let mountPath: String = "" public init(smbURL: String, mountPath: String) { fatalError() } } public struct FactoryAccount: Codable, Sendable { public let email: String = "" public let colorHex: String? = nil public let volumeID: String? = nil public let rootPath: String? = nil public var uIndex: Int? = nil public var chatImagesFolderID: String? = nil public init(email: String, colorHex: String? = nil, volumeID: String? = nil, rootPath: String? = nil, uIndex: Int? = nil, chatImagesFolderID: String? = nil) { fatalError() } } public struct FactoryProject: Codable, Identifiable, Sendable { public var id: String { fatalError() } public var name: String = "" public var storedProjectPath: String? = nil public var workspacePath: String? = nil public var workspaceUUID: String? = nil public var schemeName: String? = nil public var supportsAutoRelaunch: Bool? = nil public var type: String? = nil public var platforms: [String]? = nil public var frameworks: [String]? = nil public var description: String? = nil public var projectPath: String { fatalError() } public init( name: String, storedProjectPath: String? = nil, workspacePath: String? = nil, workspaceUUID: String? = nil, schemeName: String? = nil, supportsAutoRelaunch: Bool? = true, type: String? = "app", platforms: [String]? = ["macOS"], frameworks: [String]? = nil, description: String? = nil ) { fatalError() } public init(from decoder: Decoder) throws { fatalError() } public func encode(to encoder: Encoder) throws { fatalError() } } public struct FactoryAssignment: Codable, Sendable { public var capabilities: [String] = [] public init(capabilities: [String]) { fatalError() } } public struct FactoryAgent: Codable, Sendable { public var name: String = "" public var isVisible: Bool = false public var activeAccount: String? = nil public var chatIDs: [String: String] = [:] public var projects: [String: FactoryAssignment] = [:] public var model: String? = nil public var status: String? = nil public var wormholeVersion: Int? = nil public init( name: String, isVisible: Bool = true, activeAccount: String? = nil, model: String? = "gemini-3.1-pro-preview", status: String? = "active", chatIDs: [String: String], projects: [String: FactoryAssignment], wormholeVersion: Int? = nil ) { fatalError() } } public struct FactoryRegistryManager: Sendable { public static let shared = FactoryRegistryManager() private init() { fatalError() } public func loadRegistry() throws -> FactoryRegistry { fatalError() } public func saveRegistry(_ registry: FactoryRegistry, bumpModified: Bool = true) throws { fatalError() } public func registerWorkspace(uuid: UUID, path: String) throws { fatalError() } public func registerApp(_ appName: String, inWorkspace uuid: UUID) throws { fatalError() } public func registerFramework(_ frameworkName: String, inWorkspace uuid: UUID) throws { fatalError() } /// Finds a project by name or stored project path. /// - Parameter nameOrPath: The project name or stored project path to search for. /// - Returns: A tuple containing the registry key and the project, or nil if not found. public func findProject(nameOrPath: String) throws -> (key: String, project: FactoryProject)? { fatalError() } /// Inserts or updates a project in the registry using the provided key. /// - Parameters: /// - key: The dictionary key to use for the project. /// - project: The project to insert or update. public func upsertProject(key: String, project: FactoryProject) throws { fatalError() } /// Returns the computed project path for a web project by name, if it exists and is a web type. /// - Parameter forName: The name of the project to look up. /// - Returns: The computed project path if the project exists and is of type "web", otherwise nil. public func webProjectPath(forName: String) throws -> String? { fatalError() } public func resolvedPath(for project: FactoryProject) -> String? { fatalError() } public func workspace(forProject projectName: String) throws -> FactoryWorkspace? { fatalError() } public func apps(inWorkspace uuidString: String) -> [FactoryProject] { fatalError() } public func frameworks(inWorkspace uuidString: String) -> [FactoryProject] { fatalError() } public func projectName(for projectID: String) -> String? { fatalError() } public func xcodeProjectPaths() -> [String] { fatalError() } /// Resolves the full name of an active agent from a base name. /// - Parameter baseName: The base name to search for (e.g., "Frank", "Mike"). /// - Returns: The full name of the first matching visible agent (e.g., "Frank 2.0"), or nil if no match is found. public func resolveActiveAgent(baseName: String) -> String? { fatalError() } /// Returns all auxiliary watches from the registry. /// - Returns: A dictionary mapping keys to auxiliary watches, or an empty dictionary if none exist. public func auxiliaryWatches() throws -> [String: FactoryAuxiliaryWatch] { fatalError() } /// Retrieves a single auxiliary watch by key. /// - Parameter key: The dictionary key for the auxiliary watch. /// - Returns: The auxiliary watch matching the key, or nil if not found or if no watches exist. public func auxiliaryWatch(key: String) throws -> FactoryAuxiliaryWatch? { fatalError() } /// Returns auxiliary watches belonging to a specific owner app (case-insensitive). /// - Parameter appName: The owner app name to filter by. /// - Returns: A dictionary of matching auxiliary watches. public func auxiliaryWatches(forOwnerApp appName: String) throws -> [String: FactoryAuxiliaryWatch] { fatalError() } /// Inserts or updates an auxiliary watch in the registry using the provided key. /// - Parameters: /// - key: The dictionary key to use for the auxiliary watch. /// - watch: The auxiliary watch to insert or update. public func upsertAuxiliaryWatch(key: String, watch: FactoryAuxiliaryWatch) throws { fatalError() } /// Deletes an auxiliary watch from the registry if it exists. /// - Parameter key: The dictionary key of the auxiliary watch to delete. public func deleteAuxiliaryWatch(key: String) throws { fatalError() } /// Sets the enabled state of an auxiliary watch. /// - Parameters: /// - key: The dictionary key of the auxiliary watch. /// - enabled: The new enabled state. public func setAuxiliaryWatchEnabled(key: String, enabled: Bool) throws { fatalError() } /// Returns whether verbose reporting mode is enabled for the Groovy Monkey agent. /// - Returns: True if explicitly enabled for "groovy_monkey", false otherwise (including if dictionary is nil or key is absent). public func getGroovyReportingMode() throws -> Bool { fatalError() } /// Sets the verbose reporting mode for the Groovy Monkey agent. /// - Parameter enabled: The new enabled state for verbose reporting. public func setGroovyReportingMode(enabled: Bool) throws { fatalError() } /// Returns the chat images folder ID for a given account email. /// - Parameter accountEmail: The email of the account to look up. /// - Returns: The chat images folder ID if set, otherwise nil. public func chatImagesFolderID(for accountEmail: String) throws -> String? { fatalError() } /// Sets the chat images folder ID for a given account email. /// - Parameters: /// - folderID: The folder ID to set. /// - accountEmail: The email of the account to update. public func setChatImagesFolderID(_ folderID: String, for accountEmail: String) throws { fatalError() } /// Returns the wormhole protocol version for a given agent UUID. /// - Parameter agentUUID: The UUID of the agent to look up. /// - Returns: The wormhole version (defaults to 1 if not set). public func wormholeVersion(for agentUUID: String) throws -> Int { fatalError() } /// Sets the wormhole protocol version for a given agent UUID. /// - Parameters: /// - version: The wormhole version to set. /// - agentUUID: The UUID of the agent to update. public func setWormholeVersion(_ version: Int, for agentUUID: String) throws { fatalError() } } public struct FactoryResolver: Sendable { public static let shared = FactoryResolver() /// Resolves the physical root path for a specific Google Account, handling local vs mounted VM volumes. public func rootPath(forAccountEmail email: String) -> String { fatalError() } /// Resolves the exact physical file path for an Agent's JSON chat file on a specific account. public func jsonFilePath(forAgentName agentName: String, accountEmail: String) -> String { fatalError() } /// Looks up the Google Drive Chat ID for a specific Agent and Account. public func chatID(forAgentName agentName: String, accountEmail: String) -> String? { fatalError() } /// Reverse lookup: Finds the Agent Name associated with a specific Google Drive Chat ID. public func agentName(forChatID chatID: String) -> String? { fatalError() } /// Reverse lookup: Finds the Account Email associated with a specific Google Drive Chat ID. public func accountEmail(forChatID chatID: String) -> String? { fatalError() } } /// A utility for standardizing cross-app PDS handshake replies. public struct PDSRouter: Sendable { /// Sends a standardized reply notification for a PDS handshake. /// - Parameters: /// - notification: The incoming notification containing the request ID. /// - resultData: A dictionary of result data to include in the reply. public static func reply(to notification: Notification, with resultData: [String: Any]) { fatalError() } } public final class StubSynchronizer: Sendable { public static let shared = StubSynchronizer() public func syncStubs(for projectID: String) throws { fatalError() } } @MainActor public class VirtualMachineMonitor: ObservableObject { public static let shared = VirtualMachineMonitor() @Published public var isMounted: Bool = false public func checkStatus() { fatalError() } public func launchVM() { fatalError() } public func mountVolume() { fatalError() } } @MainActor public class VolumeManager: ObservableObject { public static let shared = VolumeManager() @Published public var mountStatus: [String: Bool] = [:] public var knownVolumes: [String: FactoryVolume] = [:] public func refreshKnownVolumes() { fatalError() } public func checkAllStatuses() { fatalError() } public func mount(volumeName: String) { fatalError() } public func isMounted(volumeName: String) -> Bool { fatalError() } }