native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Apply swift-format formatting fixes

onevcat 75699651 906a7a1f

+21 -14
+15 -11
supacode/Clients/Repositories/RepositoryPersistenceClient.swift
··· 99 99 let payload = try await MainActor.run { 100 100 try decoder.decode(RepositorySnapshotCachePayload.self, from: data) 101 101 } 102 - guard let repositories = await MainActor.run( 103 - resultType: [Repository]?.self, 104 - body: { 105 - payload.restoreRepositories( 106 - pathExists: { FileManager.default.fileExists(atPath: $0) } 102 + guard 103 + let repositories = await MainActor.run( 104 + resultType: [Repository]?.self, 105 + body: { 106 + payload.restoreRepositories( 107 + pathExists: { FileManager.default.fileExists(atPath: $0) } 108 + ) 109 + } 107 110 ) 108 - } 109 - ) else { 111 + else { 110 112 discardRepositorySnapshot(at: snapshotURL) 111 113 return nil 112 114 } ··· 243 245 restoredWorktrees.reserveCapacity(worktrees.count) 244 246 245 247 for worktree in worktrees { 246 - guard let restoredWorktree = worktree.restore( 247 - repositoryRootURL: rootURL, 248 - pathExists: pathExists 249 - ) else { 248 + guard 249 + let restoredWorktree = worktree.restore( 250 + repositoryRootURL: rootURL, 251 + pathExists: pathExists 252 + ) 253 + else { 250 254 return nil 251 255 } 252 256 restoredWorktrees.append(restoredWorktree)
+6 -3
supacode/Features/Canvas/Views/CanvasView.swift
··· 168 168 let positionedCount = cardKeys.count - unpositioned.count 169 169 // For incremental adds, preserve the existing grid shape. 170 170 // For initial layout, use total count for a balanced grid. 171 - let columns = positionedCount > 0 171 + let columns = 172 + positionedCount > 0 172 173 ? gridColumns(for: positionedCount) 173 174 : gridColumns(for: cardKeys.count) 174 175 ··· 293 294 guard !keys.isEmpty else { return } 294 295 295 296 // Bounding box of all cards in canvas coordinates 296 - var minX = CGFloat.infinity, minY = CGFloat.infinity 297 - var maxX = -CGFloat.infinity, maxY = -CGFloat.infinity 297 + var minX = CGFloat.infinity 298 + var minY = CGFloat.infinity 299 + var maxX = -CGFloat.infinity 300 + var maxY = -CGFloat.infinity 298 301 299 302 for key in keys { 300 303 guard let layout = layoutStore.cardLayouts[key] else { continue }