CxWebApp/swift-app
cx-git-agent b55680ffbf
Some checks are pending
build-and-push / image (push) Waiting to run
feat(swift-app): rebuild share/cxai-mac as native CxAI ADE 1.2.0
- Package.swift: add CxARA (via CxLLM-SDK) and CxDrive (via new CxLLM-Drive
  package dep) so the native shell links every mac-app-shaped module
  exported by the CxLLM-SDK and CxLLM-Drive families.
- Sidebar: surface .repair (CxARA) and .drive (CxDrive) alongside the
  existing Web/Chat/Agent/MCP/Models/Code/AWS/Git/LangBridge/Telemetry
  tabs, with matching SF Symbols.
- scripts/build-mac-bundle.sh: end-to-end pipeline (release build, .app
  bundle with rebranded Info.plist studio.cxai.ade 1.2.0, ad-hoc codesign,
  tar.gz, hdiutil UDZO dmg, publish to share/cxai-mac, write
  build-info.json with sha256/sizes/modules/git sha).
- Makefile targets: swift-app 'make rebuild-mac', CxWebApp root
  'make rebuild-mac'.
- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- dge- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Tauri 0- share/AR- share/cxai-mac: replace Tauri 0- share/cxai-mac: replace Ter refere- share/cxai-mac: replace Tauri 0- origin main 2>&1 | tail -5
2026-05-17 16:26:39 -05:00
..
scripts feat(swift-app): rebuild share/cxai-mac as native CxAI ADE 1.2.0 2026-05-17 16:26:39 -05:00
Sources/CxWebAppMac feat(swift-app): rebuild share/cxai-mac as native CxAI ADE 1.2.0 2026-05-17 16:26:39 -05:00
Tests/CxWebAppMacTests feat: initial CxWebApp (macOS shell + swift-app wired to CxLLM-SDK) 2026-05-16 14:32:01 -05:00
.gitignore feat: initial CxWebApp (macOS shell + swift-app wired to CxLLM-SDK) 2026-05-16 14:32:01 -05:00
Makefile feat(swift-app): rebuild share/cxai-mac as native CxAI ADE 1.2.0 2026-05-17 16:26:39 -05:00
Package.swift feat(swift-app): rebuild share/cxai-mac as native CxAI ADE 1.2.0 2026-05-17 16:26:39 -05:00
README.md feat: initial CxWebApp (macOS shell + swift-app wired to CxLLM-SDK) 2026-05-16 14:32:01 -05:00

CxWebAppMac

Native macOS SwiftUI shell that wraps the CxWebApp C++/Crow backend in a WKWebView with proper window chrome, menu commands, health monitoring, and configurable backend URL.

Build & run

cd swift-app
make build         # swift build -c release
make run           # launches a SwiftUI window
make test          # runs AppSettingsTests
make app           # produces build/CxWebAppMac.app

Override the backend at launch:

CXWEBAPP_URL=https://cxwebapp.76-13-126-127.nip.io swift run -c release CxWebAppMac

Layout

swift-app/
├── Package.swift
├── Makefile
├── README.md
├── scripts/
│   └── build-app.sh                  # SPM bin → .app bundle
├── Sources/CxWebAppMac/
│   ├── CxWebAppMacApp.swift          # @main, WindowGroup + Settings scene
│   ├── ContentView.swift             # toolbar + WebView + status bar
│   ├── WebView.swift                 # WKWebView NSViewRepresentable
│   ├── SettingsView.swift            # backend URL, presets, devtools toggle
│   ├── AppSettings.swift             # persisted preferences
│   └── HealthMonitor.swift           # polls /api/health
└── Tests/CxWebAppMacTests/
    └── AppSettingsTests.swift

Commands (⌘ shortcuts)

  • ⌘R — reload
  • ⌘[ / ⌘] — back / forward
  • ⇧⌘H — home
  • ⇧⌘C — copy URL
  • ⇧⌘O — open in default browser
  • ⌘, — Settings (backend URL, presets, developer extras)