From 50170f75df83149a9926e703eeb06fef97024a34 Mon Sep 17 00:00:00 2001 From: tegwick Date: Sat, 25 Oct 2025 05:59:25 +0200 Subject: [PATCH] fix: resolve md-ingest Path object conversion error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix critical runtime error where md-ingest command failed with 'str' object has no attribute 'exists'. The DocumentManager.ingest_file() method expects a Path object but was receiving a string from the CLI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- markitect/plugins/builtin/markdown_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markitect/plugins/builtin/markdown_commands.py b/markitect/plugins/builtin/markdown_commands.py index 72a9acb6..456c8f38 100644 --- a/markitect/plugins/builtin/markdown_commands.py +++ b/markitect/plugins/builtin/markdown_commands.py @@ -1533,7 +1533,7 @@ def md_ingest_command(ctx, file_path): doc_manager = DocumentManager(config.get('db_manager')) # Process the file - result = doc_manager.ingest_file(file_path) + result = doc_manager.ingest_file(Path(file_path)) if config.get('verbose', False): click.echo(f"Processing results:")