mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
`memory_import_claude` only had `allProjects: true/false` granularity.
Voice-fidelity-aware operators (named-persona content, PII-aware
hygiene) couldn't bulk-import without contaminating the unified
`claude-memories` namespace with the subset of files they had to
exclude. The current workaround was to halt imports entirely.
Two new params:
excludeFilePatterns: string[]
Glob patterns matched against the absolute file path. Files
matching ANY pattern are skipped. Supports:
`**` any chars including path separators
`*` any chars except path separators
`?` exactly one char except a path separator
Example: ["**/voice-*.md", "**/persona-*.md"]
excludeFiles: string[]
Absolute file paths to skip verbatim. Faster than a pattern when
the operator already has a list captured.
Both apply to either branch (`allProjects: true` or single-project).
The response gains an `excludedByPattern` counter so callers can
verify the exclusion ran.
A minimal `globToRegex` helper is added (anchored, escapes regex
metas, handles `**` / `*` / `?`). Verified four representative
cases pass; the unrelated regex escapes the issue's voice-fidelity
patterns need.
Co-authored-by: Reuven <cohen@ruv-mac-mini.local>