Skip to content

Extract TraverseCore Swift package for iOS + macOS (#58)#140

Merged
enricopiovesan merged 1 commit into
mainfrom
cursor/issue-58-traverse-core-swift
Jul 12, 2026
Merged

Extract TraverseCore Swift package for iOS + macOS (#58)#140
enricopiovesan merged 1 commit into
mainfrom
cursor/issue-58-traverse-core-swift

Conversation

@enricopiovesan

Copy link
Copy Markdown
Contributor

Summary

Governing Spec

Project Item

Definition of Done

  • TraverseCore package with Swift 6 / iOS 17+ / macOS 14+
  • TraverseClient URLSession HTTP + SSE streaming
  • AppStateViewModel @MainActor ObservableObject with runtime-owned state/output
  • ServerDiscovery macOS-only .traverse/server.json reader
  • Package unit tests for client, SSE payload mapping, view model
  • ios-swift and macos-swift import local TraverseCore
  • No UIKit/AppKit in TraverseCore

Validation

  • cd apps/traverse-starter/TraverseCore && swift test (8 tests)
  • xcodebuild iOS Simulator (iPhone 17) BUILD SUCCEEDED
  • xcodebuild macOS BUILD SUCCEEDED

Architecture boundary

  • UI shells render runtime fields only; transitions owned by Traverse SSE events
  • Public HTTP/SSE surfaces only

Checklist

Made with Cursor

Share SSE + sendCommand client and AppStateViewModel between Apple
shells so both platforms follow the web-react runtime subscription pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>
@enricopiovesan enricopiovesan enabled auto-merge (squash) July 12, 2026 01:16
@enricopiovesan enricopiovesan merged commit 6e50572 into main Jul 12, 2026
6 checks passed
@enricopiovesan enricopiovesan deleted the cursor/issue-58-traverse-core-swift branch July 12, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract TraverseCore Swift package shared between ios-swift and macos-swift

1 participant