feat(settings): sidebar + detail Settings page (#135)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Profiles S2 over the variant C verdict (#130): Settings becomes a sidebar + detail shell — Content (the #17 Home control, unchanged) · Pass 1 · Pass 2 · Chat ('· Sessions' rides it) · Provider Keys. Each surface page edits its model block in memory: provider menu, an NSComboBox sourcing hermes' registry cache with first-class free text (the #132 seed claude-sonnet-5-5 is NOT in the cache — custom is the default state, pinned), per-provider effort menus led by 'unset · provider default' (zai low/high/max; OpenAI + Anthropic the five-rung ladder), variant B's current-model headline, and a user-requested Restore Defaults back to the seed. Provider Keys carries endpoint, the z.ai key-type toggle swapping the endpoint family (paas/v4 ↔ coding/paas/v4 — a custom endpoint survives), and masked keys with reveal; no Keychain (#131). Persistence is S3's job: every change routes through an injectable SettingsWriting seam whose implementer contract is frozen now (MUST debounce — the key field fires per keystroke; secrets via stdin/env, never argv; error text redacted before it renders). Write failures surface in an orange strip, cleared by the next success. Dogfood fix, log-observed via os_log probes on the live app: comboBoxSelectionDidChange fires BEFORE stringValue updates — the pick is read from objectValueOfSelectedItem and the box re-synced by hand, or the model never learns a dropdown pick. Two blind fixes failed before the probe round settled it; pinned against the stale-string fixture and filed to the swift wiki. Finish-audit fanout (ponytail/security/general): Ship/SHIP/APPROVE — applied the SettingsWriting contract, an inlined one-caller wrapper, a corrected registry-leniency comment, and a seed-provider pin; declined deleting the hydration clamp (trust-boundary validation for S3's config.yaml reads); deferred endpoint scheme validation to S3's write boundary. Suite: 432 passed / 432 (xcresult-verified). DOX: Museion/AGENTS.md, MuseionTests/AGENTS.md, CHANGELOG, session log. Closes #135
This commit is contained in:
1 parent
610f8789bd
commit
42a27cc8a3
12 files changed
+1315
-32
No files matched your search
@@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
### Added
|
||||
|
||||
- **settings:** Profiles S2 — Settings page as sidebar + detail (#130 prototype variant C verdict) — destinations Content (the unchanged Home control) · Pass 1 · Pass 2 · Chat (annotated "· Sessions") · Provider Keys. Each surface page edits its model block over an in-memory model: provider menu, model combobox sourcing Hermes' own registry cache with first-class free text (the seed `claude-sonnet-5-5` reads as *custom (not in registry)* — the default state), per-provider reasoning-effort menu led by "unset · provider default", variant B's current-model headline, and Restore Defaults back to the #132 seed; the Provider Keys page carries endpoint, the z.ai key-type toggle swapping the endpoint family (`/api/paas/v4` ↔ `/api/coding/paas/v4`, custom endpoints survive), and masked keys with reveal. Persistence is S3's — every change routes through an injectable `SettingsWriting` seam whose contract (debounce, secrets never via argv, redacted error text) is frozen now; write failures surface in an orange strip. Dropdown picks commit through `comboBoxSelectionDidChange` reading the selection index — the notification fires before `stringValue` updates (log-observed dogfood fix). Suite 432 (issue #135)
|
||||
|
||||
- **profiles:** Profiles S1 — surface registry + provisioning ×3 (PRD #134, ADR-0014) — one gate pass now provisions ALL THREE Hermes profiles: `museion` is adopted in place (never re-created or reconfigured — its model stays the user's), `museion-pass1`/`museion-pass2` are created fresh with the #132 defaults (`claude-sonnet-5-5` on anthropic, reasoning effort unset, 24k output budget as a guardrail) written via the engine's own `hermes -p <profile> config set` rail — wire-verified, marker-gated so a re-pass is a no-op and Settings changes survive, and a failed provision names the profile on the #48 card. Writing skills move to ONE master copy at `~/Library/Application Support/Museion/skills/` symlinked into each profile per the #133 allocation (Pass 1: 9 · Pass 2: 8 · Chat: 10 — the persona pair never co-occurs); today's copy-era dirs migrate to symlinks only on byte-match, diverged dirs stay copies, user skills untouched. Daily backup widens to one stamp carrying all three profiles — any live engine skips the whole stamp; restore docs name the three folders (issue #134)
|
||||
|
||||
- **stats:** First-draft stats capture (PRD S5.1) — running Pass 1 or Pass 2 on an unaided draft (writer-origin, First Draft Pass State, post type) computes four style metrics natively in Swift at the invocation — before the mentor sees anything — and stamps `stats_captured` plus four `stats_*` values into the piece's frontmatter, so the coming trend view is a scan of `posts/`; a cancelled pass keeps its capture, re-runs while still First Draft overwrite (latest draft wins), and the frontmatter write paths (pass completion, editor save) now update their keys in place instead of rebuilding the block — captured stats and foreign YAML survive (issue #31)
|
||||
|
||||
Reference in new issue
Block a user