5bf09552f6e924958e7c31baa57b4a0759ac9b4e
CI / ci (push) Canceled after 0s
#179: every library-reflecting store write (draft save, session-born post, rename, move to project, archive/restore, trash, convert, project creation, import batch, pass advance) now rides one internal seam — performWrite pairs the write with exactly one rescan and owns the error strip (cleared BEFORE the write so importFiles' per-file failure messages survive the success tail; a nil-Home refusal writes nothing). The model owns the Home: watchedHome is private(set), set only by bind (construction + the Settings repoint); no public method takes a Home parameter — 14 view call sites and ~115 test call sites swept, dead home plumbing cut. The editor's debounced flush, the card closes, the pass substrate and the micropub publish stay off the rail by design (own error semantics, no library regroup). A converged review finding is closed with a guard: the pass advance re-resolves watchedHome after the engine's minutes-long turn, so a mid-pass Settings repoint now refuses the advance with an honest strip message instead of silently stamping pass state into the repointed library (wrong-piece write on a slug collision). createProject failures now surface in the sheet AND the strip — the rail-owns-the- strip posture supersedes the #108 sheet-only rule. Five rail pins (PostsModelWriteRailTests, suite members): write → one library refresh + strip cleared, failed write owns the strip, nil-Home refusal, import batch keeps per-file messages, mid-pass repoint refuses the advance — the last two flip-verified against their guards. ScriptedEngine gains endHeldPrompt (release a held turn as ended). Verification: suite 657/657 the evening this landed; the next-morning re-run could not start — both test runners hung before establishing connection (#134 testmanagerd wedge; an untouched control suite hangs identically — machine state, not this diff; reboot pending). Rail pins 5/5 isolated after the last test-only edit; swiftlint at baseline parity; swiftformat clean. Closes #179 [Generated by AI]
Museion
The Agentic Writing Environment (AWE): where scholars, texts, and AI minds work under a single roof — named for the Mouseion of Alexandria, the one place in history where they already did.
An Obsidian-and-Copilot-class tool for long-form AI-assisted writing, with Ulysses/Scrivener depth and Paper elegance. Native macOS, built in SwiftUI.
Requirements
- macOS 26.5+ — developed against the latest Xcode (26.x) and Swift (6.3.x); no backward compatibility
- SwiftFormat and SwiftLint for linting (
brew install swiftformat swiftlint)
Getting started
git clone https://git.babylondreams.de/AlexKucera/museion.git
cd museion
open Museion.xcodeproj # develop in Xcode
xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' build # build
xcodebuild -project Museion.xcodeproj -scheme Museion -destination 'platform=macOS' test # test (unit + UI)
swiftformat . && swiftlint . # lint
Full Xcode project at the repo root — open Museion.xcodeproj and run.
Your Museion Home
Everything you write lives in one folder — the Museion Home — as plain markdown you can reach from anywhere.
- Default for new Homes:
iCloud Drive/Museion—~/Library/Mobile Documents/com~apple~CloudDocs/Museion, resolved dynamically. When iCloud Drive is unavailable at first run, Museion silently falls back to~/Documents/Museion— no dialog; the Settings Home field shows the resolved path. An existing~/Documents/MuseionHome is never silently moved — it stays your Home until you migrate it yourself (#169). - Migrating an existing Home: Museion is repoint-only — it never moves content. Move the
Museionfolder in Finder (e.g.~/Documents/Museion→iCloud Drive/Museion), then repoint via Settings ▸ Content ▸ Museion Home ▸ Choose… (Museion/SettingsPaneView.swift:199). - Avoid eviction stalls: right-click the
Museionfolder in Finder and choose Keep Downloaded. Pinning keeps files local, so opening a piece never waits on a download (#168). - iCloud quirks are substrate, not bugs: editing the same file on two devices yields numbered duplicate siblings — iCloud keeps both, it never merges. An evicted file keeps its real name and size, but its first read blocks while the data downloads (#168).
- Companions: Textastic-class editors open and edit pieces in place on iPhone/iPad via the Files app / document picker; iCloud.com and iCloud for Windows reach the Home too (#168, #169).
License
GPL-3.0-or-later — see LICENSE.
Description
Museion — the Agentic Writing Environment: the Mouseion of Alexandria was the one place in history where scholars, texts,
and minds worked under a single roof — this tool is the second.
Readme
GPL-3.0
Cite this repository
55 MiB
0 Stars
1 Watchers
0 Forks
Releases
3
Museion 0.1.2
Latest
Languages
Swift
86%
HTML
10.2%
Shell
2.6%
Python
1%
CSS
0.2%