feat: implement dependency checker and external tool management (task 3)

Add comprehensive dependency checking system for external tools:

- Create DependencyChecker class with cross-platform executable detection
- Implement version validation for Pandoc (3.0.0+) and Typst (0.11.0+)
- Add timeout handling and robust error management for external processes
- Integrate dependency checking with plugin lifecycle and settings interface
- Create DependencyStatusModal with detailed status display and installation guides
- Add platform-specific installation instructions (Windows/Mac/Linux)
- Include user-friendly error messages and troubleshooting guidance
- Add dependency status section to settings with "Check Dependencies" button
- Style dependency modal with Obsidian theme-aware CSS
- Update TypeScript config to exclude reference files from compilation

The dependency checker provides non-blocking startup validation,
export workflow integration, and comprehensive user guidance for
missing or outdated external tools.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-08-29 17:41:42 +02:00
1 parent 06c48fda86
commit 7312575588
4 files changed
+903 -8

No files matched your search

+108 -4
View File
@@ -1,8 +1,112 @@
/*
* Typst PDF Export Plugin Styles
*/
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
/* Dependency status modal styles */
.dependency-overall-status {
margin-bottom: 1rem;
padding: 0.75rem;
border-radius: 6px;
font-weight: 500;
}
If your plugin does not need CSS, delete this file.
.dependency-success {
color: var(--text-success);
}
*/
.dependency-error {
color: var(--text-error);
}
.dependency-warning {
color: var(--text-warning);
}
.dependency-section {
margin-bottom: 2rem;
padding: 1rem;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
}
.dependency-section h3 {
margin-top: 0;
margin-bottom: 0.5rem;
color: var(--text-normal);
}
.dependency-status {
margin-bottom: 1rem;
}
.dependency-path {
margin-top: 0.25rem;
font-size: 0.9em;
color: var(--text-muted);
font-family: var(--font-monospace);
}
.dependency-error-detail {
margin-top: 0.25rem;
font-size: 0.9em;
color: var(--text-error);
font-style: italic;
}
.dependency-install-guide {
margin-top: 1rem;
padding: 1rem;
background-color: var(--background-secondary);
border-radius: 4px;
border-left: 3px solid var(--interactive-accent);
}
.dependency-install-guide h4 {
margin-top: 0;
margin-bottom: 0.75rem;
color: var(--text-normal);
}
.dependency-install-guide p {
margin-bottom: 1rem;
}
.dependency-install-guide ul {
margin-left: 1rem;
margin-bottom: 1rem;
}
.dependency-install-guide code {
background-color: var(--background-primary-alt);
padding: 0.125rem 0.25rem;
border-radius: 3px;
font-family: var(--font-monospace);
font-size: 0.9em;
}
.dependency-install-guide a {
color: var(--text-accent);
text-decoration: none;
}
.dependency-install-guide a:hover {
text-decoration: underline;
}
.dependency-button-container {
margin-top: 1.5rem;
text-align: center;
}
.dependency-button-container button {
padding: 0.5rem 1rem;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
border-radius: 4px;
cursor: pointer;
}
.dependency-button-container button:hover {
background-color: var(--interactive-accent-hover);
}