Files
museion/CHANGELOG.md
T
AlexKucera f2953ee07e
CI / ci (push) Canceled after 0s
feat(editor): land editor core — open, edit, autosave (S1.2)
Posts open into the TextKit2 surface (ADR-0010 mode B) lifted from
the proven spike: styled source, scaled headings, dimmed syntax,
native undo/IME. One EditorSession per open post drives a ~1 s
debounced autosave (flush on selection change, window close, app
quit; ⌘S immediate), the Saved/Saving/Failed dot, and the per-post
.museion-state.json cursor sidecar that dies with the folder.
External edits raise an explicit Reload/Keep-Local alert — the
debounce never answers it for the writer, and drafts keep the
lazy-folder first-⌘S rule (#62).

Reviewer fanout fixes folded in: session teardown at every lifecycle
exit (rename flushes before the folder move; trash cancels the
debounce), draft ⌘S continues in place, conflict holds the debounce,
rescan's disk read off-main, ~35 lines of dead code out.

Closes #19
2026-10-05 10:56:33 +02:00

6.0 KiB
Raw Blame History

Changelog

All notable changes to this project will be documented in this file. The format is based on Common Changelog and this project adheres to Semantic Versioning.

[Unreleased]

Added

  • editor: M1 editor core (PRD S1.2) — posts open into a native TextKit2 editing surface (ADR-0010 mode B): styled source with scaled headings, paragraph spacing, and dimmed markdown syntax lifted from the proven spike; ~1 s debounced autosave with flush on selection change, window close, and app quit (⌘S stays immediate); a Saved → Saving… → Saved dot that turns accent on failure; cursor position and scroll restored across restarts via a per-post .museion-state.json sidecar that dies with the folder on Trash; and an explicit "File on Disk changed — Reload / Keep Local" alert on external edits, never a silent clobber (issue #19)

  • workspace: M1 Post lifecycle (PRD S1.1) — Posts are now writable end to end: New Post holds an in-memory draft (no folder until first save), ⌘S lazily materializes posts/<slug>/post.md stamped with flat frontmatter (pass_state: First Draft, origin: writer), the slug is the Title's (lowercased, diacritic-folded, CJK-keeping) form with case-insensitive -2/-3 collision suffixes, Explicit Rename retitles the # Title line and moves the folder (file stays post.md), and Delete moves the folder to the Trash; a recursive FSEvents watcher keeps the list mirroring posts/ (external Finder edits included), and a plain-TextEditor stub stands in for the S1.2 editor (issue #18)

  • workspace: M1 Home & Posts list (PRD S1.1) — the post-gate main surface is now the workspace shell from the design contract: nav rail (Posts, Sessions, Learnings, Settings), a Posts pane that mirrors the Museion Home's posts/ folder on disk (Pass State groups, origin meta, empty state, lazy folders skipped), a Settings pane where the Home can be repointed (repoint-only — Museion never moves content; NSOpenPanel picker, UserDefaults persistence, default ~/Documents/Museion), and placeholder panes for Sessions/Learnings until their milestones; the M0 mentor pane becomes the workspace's fourth column (issue #17)

  • backup: S2.6 daily profile backup — on launch, once per 24 h and only while the engine is idle (gateway.pid liveness + ps scan), Museion snapshots ~/.hermes/profiles/museion/ into a timestamped folder under ~/Library/Application Support/Museion/Backups/ (credentials included, logs/caches/locks excluded, last 7 kept); restore is manual Finder copy-back — Help → Open Backup Folder, RESTORE.md beside the snapshots (issue #50)

  • acp: M0 ACP bridge (PRD S2.2) — the app spawns the Hermes engine (hermes acp -p museion) as a child process via a hand-rolled NDJSON JSON-RPC stdio client, opens a Session, streams mentor replies live in a debug pane, renders fix-card tool calls as structured cards, cancels turns via Stop, tears the child down on quit, and surfaces an in-pane restart prompt on engine crash — never data loss (issue #14)

  • provisioning: S2.1 profile provisioning — idempotent per-gate pass creates the museion Hermes profile (hermes profile create --no-alias --no-skills) and additively seeds the bundled writing skills via seed-manifest.txt; existing skills are never overwritten (issue #47)

  • provisioning: Failure alert & retry UX — provisioning failures show a separate phase-named alert (never re-raising the gate) with the error excerpt behind Technical details; Retry re-runs the whole pass, Not Now defers to the next launch's silent retry (issue #48)

  • gate: Engine gate (launch gate, PRD S2.1) — discovers the user-installed Hermes engine via the documented six-path probe, health-checks it (hermes acp --check), and blocks app launch behind a sheet on every launch: checking/pass/fail cards with install instructions and re-check on fail, engine version in the pass card, About window, and a state.json record of every completed check (issue #42)

  • Initial project scaffold: Xcode project (SwiftUI, macOS 26.5+, Swift 6), unit + UI smoke tests, GPL-3.0-or-later license, Gitea Actions CI (dormant until a macOS runner registers), DOX agent documentation tree, ADRs 0001–0003 (stack, license, forge).

  • skills: Pass and Session container persona skills — mentor manner by blend arithmetic (constant Knife floor, silent Learnings, voice anchor)

  • skills: Demonstrator doctrine skill — master-study demonstrations as named-master variants on the writer's own bounded span, annotated and desloped before display; the picked variant feeds Learnings (issue #3)

  • skills: Micro-drill prompt-pack skill — two-minute single-shelf drill offers riding the Pass finding that motivates them; declined drills vanish, drill output never touches the draft (issue #8)

  • skills: Craft canon distilled from the #4 shortlist — rhetoric (Heinrichs: argument and rhetoric, ten cards plus the fallacy index), reader-psychology (Williams: the reader-processing diagnosis sequence), prose-craft (Clark: fifteen generative tools across better-words, structure, humor, revision); a sample Pass demonstrates all three firing as fix cards (issue #7)

  • skills: Titles-and-hooks craft skill distilled from web sources per the #4 research — the title surface (takeaway over label, bounded numbers, the worn tease, mode fit, person over committee voice) and the hook's curiosity gap (open it, foot it, honor the title–hook contract), every rule data-backed; the sample Pass gains a ninth fix card demonstrating the shelf (issue #11)

Fixed

  • acp: mentor pane against adapter 0.21.5 — session/new now sends the newly required mcpServers list (empty: Museion ships none); its absence was rejected as invalid params and wrongly surfaced as "the mentor engine stopped" when the engine was fine. The advisory version-drift note now compares base versions, so build metadata (0.21.5+2177.g735e426 recorded vs 0.21.5 reported) no longer fabricates a mismatch on every launch; real drift still fires.