AlexKucera 53c314d4e1
CI / ci (push) Canceled after 0s
feat(library): search by title and body (#144)
The library offered only project/pass-state browsing — no way to find a
piece by content ("which piece was it that talked about X", FEAT-004).
The library column gains a plain-text search field under the Posts
header: a 250 ms-debounced title+body filter over the non-archived
pieces, flat results with title matches first (both halves keep the
scan's Finder order), a mono match count, and the full row context menu
(Rename/Convert/Move/Archive/Trash) on result rows — extracted into one
postRow helper shared with the sections. Body matches go through
PostStore.readBody, so frontmatter never matches (machinery, not
prose). Clearing returns the project sections; state is view-local, so
both render sites (unfocused layout + focus-mode reveal) get the field.

The scan runs as a nonisolated static async helper awaited from
.task(id: trimmedQuery): off MainActor (a nonisolated async function
doesn't inherit the caller's actor) while staying INSIDE the structured
task, so a superseding keystroke or clear actually cancels the sweep
between pieces — the spec's Task.detached shape never received
cancellation (two-reviewer convergence in the finish-audit caught it,
plus the code comment claiming it did), and trimming the task id stops
whitespace-only edits from re-running identical scans.

Deliberately deferred: re-filter on a watcher rescan while a query sits
unchanged (any keystroke refreshes), and a PostScanCache-style body
memo (full-body re-read per sweep — same unbounded-read ceiling as
Post.scan; upgrade path noted in the helper's ponytail comment).

Known pre-existing (unchanged by this diff, proven by stash control):
repo-wide swiftlint exits 2 with 289 violations / 72 serious at HEAD;
this diff adds zero error-severity violations.

Suite 574/574 (xcresult executed count).

Closes #144
2026-11-03 12:04:09 +01:00
2026-10-23 11:13:49 +02:00

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.

License: GPL v3

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.

License

GPL-3.0-or-later — see LICENSE.

S
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
Museion 0.1.2
Latest
2026-12-03 16:47:20 +01:00
Languages
Swift 86%
HTML 10.2%
Shell 2.6%
Python 1%
CSS 0.2%