From b4a0bc4063d88ccd8dcdffce3dd15dfbb6003c10 Mon Sep 17 00:00:00 2001 From: gyro Date: Thu, 10 Sep 2026 16:19:54 +0800 Subject: [PATCH] fix(plugins): correct the extraction cache import in extract and validate Both skills instruct the agent to clear the result cache via `from semantica.semantic_extract.cache import _result_cache`, but the module exports the `ExtractionCache` singleton as `extraction_cache`. The private name never existed, so the first step of both skills raises ImportError. `extraction_cache.clear()` is the equivalent call. Co-Authored-By: Claude Opus 5 --- plugins/skills/extract/SKILL.md | 4 ++-- plugins/skills/validate/SKILL.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/skills/extract/SKILL.md b/plugins/skills/extract/SKILL.md index 07864fd5..3bea414d 100644 --- a/plugins/skills/extract/SKILL.md +++ b/plugins/skills/extract/SKILL.md @@ -21,8 +21,8 @@ Run the full extraction pipeline. Usage: `/semantica:extract [file_path | "inlin **2. Clear the result cache** to prevent cross-invocation pollution: ```python -from semantica.semantic_extract.cache import _result_cache -_result_cache.clear() +from semantica.semantic_extract.cache import extraction_cache +extraction_cache.clear() ``` **3. Run the full pipeline:** diff --git a/plugins/skills/validate/SKILL.md b/plugins/skills/validate/SKILL.md index 4ac2797d..dafb3750 100644 --- a/plugins/skills/validate/SKILL.md +++ b/plugins/skills/validate/SKILL.md @@ -119,9 +119,9 @@ from semantica.semantic_extract import ( NamedEntityRecognizer, RelationExtractor, ) -from semantica.semantic_extract.cache import _result_cache +from semantica.semantic_extract.cache import extraction_cache -_result_cache.clear() # prevent cross-invocation cache pollution +extraction_cache.clear() # prevent cross-invocation cache pollution text = open(file_path).read()