560efb9554
- AppFeature: SageTheme tokens, AppModel (@MainActor @Observable store), RootView (DEVONthink NavigationSplitView), Dashboard/Documents(MD-first+pending fallback+?token= download)/Search/Ask/Memos/Digest pages
- AI seam: AIService actor + AIResult, AppAIComposition (MockAIProvider x4 tiers), AICompletionView (numbered citations + always-visible routing badge), backend picker with visible explicit-unavailable error
- MarkdownView: block-aware renderer (GFM table separator-row skip, AttributedString inline-only)
- DSApp: thin @main, injects FixtureDSClient + mock AIRouter (zero backend / zero LLM)
swift build (full app) + swift test (19) green under Swift 6 strict concurrency. Sources/AI untouched (isolation vs freeze 17f8830 = clean).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
25 lines
676 B
Swift
25 lines
676 B
Swift
import SwiftUI
|
|
import AppFeature
|
|
|
|
/// Thin @main entry: window + DI only. Injects AppModel (FixtureDSClient + AIRouter(MockAIProvider))
|
|
/// so the whole pipeline renders with zero real backend / zero real LLM. Feature logic lives in
|
|
/// AppFeature, keeping the seam to a future Xcode/iPhone target trivial.
|
|
@main
|
|
struct DSApp: App {
|
|
@State private var model: AppModel
|
|
|
|
@MainActor
|
|
init() {
|
|
_model = State(initialValue: AppModel.preview)
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
.environment(model)
|
|
.frame(minWidth: 980, minHeight: 640)
|
|
}
|
|
.windowStyle(.automatic)
|
|
}
|
|
}
|