./invect.config.json - The configuration file for the Invect framework
./.invect/modes.json - The modes configuration file
./llm - The directory containing the LLM prompts
./llm/**/*.pattern.md - The pattern prompts
./llm/**/*.workflow.md - The workflow prompts
./llm/**/*.issue.md - The issue prompts
Query system
The query system is a reversed query. Given a context, it will look up *.pattern.md, *.workflow.md, *.issue.md files with queries that match the context.
Base predicates
and: Array<Predicate> - Logical AND
or: Array<Predicate> - Logical OR
not: Predicate - Logical NOT
always: true - Always match
never: true - Never match
contains: string - Content contains a string
regex: string - Content matches a regex pattern, can be "/my-regex/g" or "my-regex"
Pattern + Workflow predicates
workspace: string - File is from a specific workspace declared in the config
glob: Array<string> - Glob patterns against the relative file path from workspace root, prefix with ! to negate
isEmpty: boolean - Should the content be empty or whitespace only