{"agent":"claude","input":"Add unit tests to this Obsidian plugin. Read src/main.ts, src/settings.ts, package.json, tsconfig.json, esbuild.config.mjs, the ESLint config and the GitHub workflows first. Use Vitest with a jsdom environment and a hand-written mock of the obsidian module aliased in the Vitest config, covering Plugin, Notice, Modal, MarkdownView, PluginSettingTab and Setting, plus the activeDocument global. Test settings loading and merging with defaults, saving, the exact command ids registered in onload, the editor command's replaceSelection call, the checkCallback command in both checking modes and with and without an active markdown view, and the settings tab writing a changed value. Add a test script, a tsconfig for tests that keeps the build's tsc check limited to src, and an npm test step in the lint workflow. Do not change manifest.json, versions.json or the release workflow. Run build, lint and test and include the output. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}