Files
caveman/caveman-compress/scripts/__init__.py
T
Test UserandClaude Opus 4.6 d37c921f29 Fix path regex and prevent backup file overwriting
- Fix PATH_REGEX in validate.py: The regex was incorrectly matching
  relative paths like 'src/file.js' as 'rc/' instead of the full path.
  Changed to use non-capturing group with optional prefix.

- Add safety check in compress.py: Prevent silent overwriting of
  existing .original.md backup files. Now aborts with a warning
  instead of overwriting potentially important backup content.

- Add proper module initialization in __init__.py: Previously empty,
  now includes __all__ exports and __version__ for proper imports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-08 16:32:37 +08:00

10 lines
224 B
Python

"""Caveman compress scripts.
This package provides tools to compress natural language markdown files
into caveman format to save input tokens.
"""
__all__ = ["cli", "compress", "detect", "validate"]
__version__ = "1.0.0"