feat(citation-manager): move session cache from bash hook to TypeScript tool#98
Merged
WesleyMFrederick merged 6 commits intomainfrom Feb 17, 2026
Merged
Conversation
Remove obsolete systems that are no longer actively maintained: - Observer and homunculus initialization and hook infrastructure - Instinct CLI and learning utilities (replaced by Modern Instincts) - Related evaluation and observation hook scripts - Deprecated skill definitions Modernize remaining systems: - Consolidate hooks.json to remove observer/evaluation hooks - Update agent definitions with refined scopes and tooling - Clean up workspace configuration and settings This reduces technical debt and clarifies the active codebase. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Add openspec CLI skills, commands, and schema for spec-driven change management. Update citation-manager component guides and add SessionCache documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests referenced instinct-cli.js and learning-utils.js which were removed in 0b529ac but their test files were not cleaned up. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… tool Move session-based caching logic from extractor.sh into citation-manager tool: - Add cache module with checkExtractCache() and writeExtractCache() functions - Implement --session flag in extract links CLI action - Update extractor hook to delegate caching to tool - Add comprehensive unit and integration tests (all 428 tests passing) This centralizes cache management in TypeScript where it's easier to test and maintain, while keeping the bash hook minimal and focused on orchestration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Guard cache write with `process.exitCode !== 1` so failed extractions (no eligible links) don't write a cache marker. This allows retry on the same session when links are added. Includes regression test for no-links file with --session flag. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… distinct log messages Resolve citation-manager from local dist/ build before falling back to global CLI. Capture CLI exit code to distinguish cache hit, no-links, and error conditions with clear debug log messages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
extractor.shbash hook intocitation-managerTypeScript tool via new--session <id>flagcheckExtractCachemodule (src/cache/checkExtractCache.ts) with content-hash-based cache key (sessionId_md5(content))--sessionto CLI; cache logic fully testable with Vitestdist/build over global CLI, with distinct log messages for cache hit / no-links / errorTest plan
Closes #92
🤖 Generated with Claude Code