Commit graph

18 commits

Author SHA1 Message Date
Tomasz Stefaniak
e8ecedb36d improv: simplify 2025-06-11 15:09:08 -07:00
Tomasz Stefaniak
b553630f2a improv: constants 2025-06-11 15:04:13 -07:00
Tomasz Stefaniak
f1026c6a2c fix: uri utils 2025-06-11 14:39:40 -07:00
Tomasz Stefaniak
5f63bcbd06 improv: remove unused code 2025-06-09 15:54:27 -07:00
Tomasz Stefaniak
ab0222d1cf improv: remove logs 2025-06-09 15:54:01 -07:00
Tomasz Stefaniak
e1d227cbc3 fix: colocation 2025-06-09 15:49:18 -07:00
Tomasz Stefaniak
9e57412fe1 fix: rules 2025-06-09 13:51:04 -07:00
Tomasz Stefaniak
5d51f729ff improv: rules 2025-06-09 13:43:43 -07:00
Tomasz Stefaniak
f29110f98b fix: rules 2025-06-09 13:11:19 -07:00
Tomasz Stefaniak
c2707c6988 fix: system message 2025-06-09 12:54:13 -07:00
Patrick Erichsen
1b59411ec1 chore: continue bot feedback 2025-05-25 19:47:12 -07:00
Patrick Erichsen
e2e4f94e8d Add alwaysApply property to rules for better control over rule application
This commit introduces an optional `alwaysApply` boolean property to rules that provides fine-grained control over when rules are included in system messages.

## Behavior

- `alwaysApply: true` - Always include the rule, regardless of file context
- `alwaysApply: false` - Only include if globs exist AND match file context
- `alwaysApply: undefined` - Default behavior: include if no globs OR globs match

## Changes

- Added `alwaysApply?: boolean` to `RuleWithSource` interface
- Updated `parseMarkdownRule` to handle frontmatter `alwaysApply` property
- Enhanced `shouldApplyRule` function with explicit logic for all three states
- Added `alwaysApply` to createRuleBlock tool definition and implementation
- Updated UI logic in RulesPeek component to match backend behavior
- Added comprehensive test coverage for all scenarios
- Updated documentation to mention Markdown file support for rules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-25 19:27:15 -07:00
Tomasz Stefaniak
17a249c1ce test: generating system message 2025-05-21 12:46:59 -07:00
Tomasz Stefaniak
bdc2ec8374 fix: missing context items 2025-05-21 12:37:43 -07:00
Tomasz Stefaniak
53f06795d3 feat: display rules used 2025-05-14 16:01:29 -07:00
Patrick Erichsen
24e22db9d4 feat: globs on rules and block docs 2025-04-24 17:35:23 -07:00
Dallin Romney
afd7244548 fix rules not being included in agent mode 2025-04-22 14:54:30 -07:00
Dallin Romney
c277890b40 edit prompts 2025-04-10 21:56:04 -07:00