Files
ruflo/v3/@claude-flow
rUvandReuven ced2abc200 feat(memory): excludeFilePatterns/excludeFiles for memory_import_claude (#1937) (#1996)
`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>
2026-05-14 20:36:37 -04:00
..