feat: scaffold native SwiftUI app project
Establish the Agentic Writing Environment: an Xcode project (filesystem-synchronized groups) with a minimal SwiftUI app shell on macOS 26.5+, Swift 6, default MainActor isolation. Unit and UI smoke tests pass via xcodebuild. Repo tooling: SwiftFormat/SwiftLint configs, Gitea Actions CI (dormant until a macOS runner registers), GPL-3.0-or-later license, CITATION.cff, README, CHANGELOG, and a DOX AGENTS.md tree with ADRs 0001-0003 (stack, license, forge).
This commit is contained in:
1 parent
641cfc33a3
commit
96babe7c52
25 files changed
+1712
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# Museion (app target)
|
||||
|
||||
## Purpose
|
||||
|
||||
The Museion application target: the native SwiftUI macOS app shell of the Agentic Writing Environment. Everything user-visible lives here.
|
||||
|
||||
## Ownership
|
||||
|
||||
Owned by the root AGENTS.md contract. The `.xcodeproj` uses **filesystem-synchronized groups** — files on disk are the truth; add/move/delete sources here and Xcode follows. Never hand-edit project.pbxproj beyond plain build-setting values (bundle id, version, Swift version).
|
||||
|
||||
## Local Contracts
|
||||
|
||||
- Entry point: `MuseionApp.swift` (`@main`, single `WindowGroup` scene).
|
||||
- `AppMetadata` is the single source for the displayed app name and tagline; members are `nonisolated` (default-MainActor project).
|
||||
- Swift language mode 6, `SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor`; deployment target 26.5; bundle id `com.babylondreams.Museion`.
|
||||
- App Sandbox is ON (`ENABLE_USER_SELECTED_FILES = readonly`) — vault read/write will need that loosened when document storage lands.
|
||||
- No persistence layer yet — the SwiftData template was stripped; vault-vs-database gets an ADR when the need is real.
|
||||
- Tabs for indentation; SwiftFormat + SwiftLint must both stay clean.
|
||||
|
||||
## Work Guidance
|
||||
|
||||
- Native SwiftUI only — no web-editor embedding, no Electron-style components (ADR-0001).
|
||||
- Text editing gets built on TextKit 2 / SwiftUI directly; no CodeMirror/ProseMirror-class dependencies.
|
||||
|
||||
## Verification
|
||||
|
||||
- `xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' build`
|
||||
- `xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' test`
|
||||
|
||||
## Child DOX Index
|
||||
|
||||
- None yet — add child docs when subdirectories with distinct responsibilities appear (e.g. editor, library, agent integration).
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"colors" : [
|
||||
{
|
||||
"idiom" : "universal"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "16x16"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "32x32"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "128x128"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "256x256"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "1x",
|
||||
"size" : "512x512"
|
||||
},
|
||||
{
|
||||
"idiom" : "mac",
|
||||
"scale" : "2x",
|
||||
"size" : "512x512"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// ContentView.swift
|
||||
// Museion
|
||||
//
|
||||
// Created by Alexander Kucera on 26.08.26.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
enum AppMetadata {
|
||||
nonisolated static let name = "Museion"
|
||||
nonisolated static let tagline = "The Agentic Writing Environment"
|
||||
}
|
||||
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
VStack(spacing: 8) {
|
||||
Image(systemName: "books.vertical")
|
||||
.font(.largeTitle)
|
||||
Text(AppMetadata.name)
|
||||
.font(.title)
|
||||
.bold()
|
||||
Text(AppMetadata.tagline)
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.padding(32)
|
||||
.frame(minWidth: 480, minHeight: 320)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// MuseionApp.swift
|
||||
// Museion
|
||||
//
|
||||
// Created by Alexander Kucera on 26.08.26.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct MuseionApp: App {
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user