Repository navigation
Fixes
The duplicate-panel cleanup no longer reads a deprecated API. The command that closes redundant CogniTree tabs identified the panel you are looking at through Workspace.activeLeaf, which Obsidian discourages and which can only be read after a null check. It now asks for the focused view directly with Workspace.getActiveViewOfType — the replacement the deprecation notice names — and keeps its own fallback to the first panel when nothing CogniTree-related is focused. Behaviour is unchanged; the lookup is just API-clean and still finds the panel wherever it happens to be docked.
A redundant assertion in the response parser was dropped. extractJSON asserted non-null on its truncated-payload branch, but the assertion could not change the type: takeTail is a const alias for an expression containing !!tail, so TypeScript already narrows tail to string inside the branch. No behaviour change, and the truncation-recovery fix from 1.2.0 is untouched.
Verification
Release assets are built and attested by GitHub Actions. The suite runs 810 assertions across the smoke and store suites — the panel-cleanup case included, whose fixture now models getActiveViewOfType the way Obsidian resolves it (view instanceof type) — and the production build type-checks and bundles clean.