chore: phase 5 cleanup — split main.ts 2594→950, one MemoryVault, dead exports, tests 265→286 (+2390/−1975) #24
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/ops-ivo-obsidian-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 5 cleanup. Five items, one commit each for items 2–5; item 1 needed no commit. Behaviour is unchanged.
1. Branch hygiene (done via the API, no commit)
feat/partner-in-crimeandfeat/mcp-serverwere 0 commits ahead of main.build/504f507c(ae8db3d) andbuild/765b7a64(9bebab9) were each 1 commit ahead. Both were earlier attempts at the state-aware panel. They were superseded by9505813, which merged as #4.archive/<branch>. All four branches are deleted (HTTP 204), so onlymainremains. No open PRs referenced them.2. Shared test fakes:
test/stubs/vault.ts(+154/−219)Vault,TinyVaultandFixtureVault(twice), plus 5 copies ofAT. These are replaced by a singleMemoryVaultand a singleAT.MemoryVaultcovers everything the old fakes did:reads,writesandbinaryWritescounters, and arefusesetput()andraw()ATis now 2026-09-04T12:00Z. Two regexes in the render and knap tests spelled out the old date, so they now spell this one. They check the same thing as before.AT→ 1MemoryVault+ 2 thin subclasses (DroppingVault, plus authorship'sjoelTypes) + 1AT.3. Dead exports (+3/−19)
knockAcceptableandparentFolderhad no references outside their own tests: no import, no string or dynamic lookup, nothing in the README or build scripts. They are deleted along with their assertions.knockProblemandflagFolder, so the test count does not drop.4. Split main.ts: 2594 → 1045 lines (+2206/−1591)
New modules:
src/feed.tssrc/link.tssrc/modals.tssrc/view.tssrc/settings.tssrc/tools.tsobsidianVaultPortConnorPluginstays in main.ts.this.pluginre-homing.test/stubs:FakeElindom.tswindowwith localStorage inwindow.tsMemoryVault, inplugin.tsFakeEl, andSettingrecords its controls5. Comments: main.ts 1045 → 950 lines (+70/−189)
Acceptance
npm run gateis green: check, verify:build and test. Tests go from 265 → 286, 0 failures.main.jsbuilds.suiteshape.pyprinted nothing for this TS suite, so it does not support TS yet.After merging: Joel copies the built
main.jsinto his vault (npm ci && npm run build).🤖 Generated with Claude Code