Repository Public
1// =============================================================================2// SP BOUCHER | SOFTWARE & RESEARCH3// ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4// =============================================================================5//6// PROJECT METADATA7// -----------------------------------------------------------------------------8// Project : ORIX Cosmos9// File : App/Sources/Main.swift10// Description : Process entry point. Dispatches the automated verification11// modes (--render-test, --benchmark, --screenshot), which12// need no interaction, or starts the SwiftUI application.13// Module : App14// Repository : https://git.spboucher.ai/orix-cosmos15// Project Website : https://www.orixlab.dev16// Created : 2026-11-2417// Last Modified : 2026-11-2418//19// =============================================================================20// AUTHOR & PROFESSIONAL AFFILIATION21// =============================================================================22//23// Author : Simon-Pierre Boucher24// Position : Professor of Finance25// Institution : Université du Québec en Outaouais (UQO)26// Department : Département des sciences administratives27// Organization : SP Boucher28//29// Website : https://spboucher.ai30// Git : https://git.spboucher.ai31//32// =============================================================================33// OFFICIAL CONTACT DIRECTORY34// =============================================================================35//36// General : info@spboucher.ai37// Professional : contact@spboucher.ai38// Direct : simon@spboucher.ai39// Research : research@spboucher.ai40// Development : dev@spboucher.ai41// Support : support@spboucher.ai42// Security/Admin : admin@spboucher.ai43// Notifications : notifications@spboucher.ai44//45// Preferred Contact: support@spboucher.ai46//47// =============================================================================48// COPYRIGHT & INTELLECTUAL PROPERTY49// =============================================================================50//51// Copyright (c) 202652// Simon-Pierre Boucher53//54// All rights reserved where applicable.55//56// This file is governed by the applicable project license,57// copyright notices, institutional agreements and relevant law.58//59// Unless expressly authorized by the applicable license or60// rights holder, copying, redistribution, sublicensing,61// publication and commercial exploitation are not permitted.62//63// Existing third-party rights and notices remain unaffected.64//65// =============================================================================66// CONFIDENTIALITY & SECURITY67// =============================================================================68//69// Classification : Public70// Distribution : Public repository; use is governed by the project license71// Security Contact : admin@spboucher.ai72//73// Access to this source does not independently grant permission74// to redistribute or disclose confidential materials.75//76// Do not embed credentials, private keys, access tokens,77// certificates or confidential personal information.78//79// =============================================================================80// LICENSE & MAINTENANCE81// =============================================================================82//83// License : None specified (no license file in this repository)84// Maintainer : Simon-Pierre Boucher85// Technical Contact: dev@spboucher.ai86//87// =============================================================================88// END OF SP BOUCHER SOURCE HEADER89// =============================================================================9091import CosmosUI92import Foundation93import SwiftUI9495@main96enum ORIXCosmosMain {97 static func main() {98 let arguments = Array(CommandLine.arguments.dropFirst())99 do {100 if let request = try CaptureRequest.parse(arguments) {101 MainActor.assumeIsolated { CaptureController.run(request) } // runs an AppKit event loop, then exits102 }103 if let command = try LaunchCommand.parse(arguments) {104 switch command {105 case .renderTest(let options): exit(RenderTestCommand.run(options))106 case .benchmark(let options): BenchmarkCommand.run(options) // runs an AppKit event loop, then exits107 }108 }109 } catch {110 FileHandle.standardError.write(Data("ORIX Cosmos: \(error)\n\(LaunchCommand.usage)\n".utf8))111 exit(2)112 }113 CosmosApp.main()114 }115}116