feat(macos): add clawdis://agent deep link

This commit is contained in:
Peter Steinberger
2025-12-12 23:22:40 +00:00
parent 35b7c0f558
commit 3b72ed6e1a
8 changed files with 260 additions and 0 deletions

View File

@@ -157,6 +157,14 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
private let socketServer = ControlSocketServer()
let updaterController: UpdaterProviding = makeUpdaterController()
func application(_: NSApplication, open urls: [URL]) {
Task { @MainActor in
for url in urls {
await DeepLinkHandler.shared.handle(url: url)
}
}
}
@MainActor
func applicationDidFinishLaunching(_ notification: Notification) {
if self.isDuplicateInstance() {