uinstinct
fde7eae70a
fix: use rules when alwaysApply is absent
2025-07-23 20:13:31 +05:30
Nate
7c39878ed8
add applied rules to dev data
2025-07-08 21:37:15 -07:00
Dallin Romney
6b0c022fd9
constructMessages tests
2025-07-01 16:10:10 -07:00
Dallin Romney
bebc8bc71e
construct message: tool messages
2025-06-30 11:15:48 -07:00
Tomasz Stefaniak
be7c317799
improv: naming
2025-06-23 09:42:00 -07:00
Tomasz Stefaniak
7f541da7ec
improv: naming
2025-06-23 09:23:00 -07:00
Tomasz Stefaniak
1bc7b78a1c
fix: args
2025-06-20 09:39:04 -07:00
Tomasz Stefaniak
897f7130e0
improv: clean up
2025-06-20 09:32:10 -07:00
Tomasz Stefaniak
4cf154d9c9
fix: pattern matching
2025-06-20 09:27:33 -07:00
Tomasz Stefaniak
b270e25059
Update getSystemMessageWithRules.ts
2025-06-20 09:22:14 -07:00
Tomasz Stefaniak
559b5aa9fb
improv: clean up
2025-06-20 09:07:07 -07:00
Tomasz Stefaniak
2c0181bd3e
improv: clean up code
2025-06-20 09:01:21 -07:00
Tomasz Stefaniak
3786a04fc9
Update getSystemMessageWithRules.ts
2025-06-18 17:35:35 -07:00
Tomasz Stefaniak
3422fff607
Update getSystemMessageWithRules.ts
2025-06-18 17:08:02 -07:00
Tomasz Stefaniak
1703fce650
Update getSystemMessageWithRules.ts
2025-06-18 15:40:38 -07:00
Tomasz Stefaniak
3a33dc7887
Update getSystemMessageWithRules.ts
2025-06-18 15:36:22 -07:00
Tomasz Stefaniak
c3081d9d25
improv: use on / off for rules
2025-06-18 15:27:11 -07:00
Tomasz Stefaniak
f5a8edfc91
improv: clean up
2025-06-17 16:25:47 -07:00
Tomasz Stefaniak
e1a0da69fc
Update getSystemMessageWithRules.ts
2025-06-17 16:15:29 -07:00
Tomasz Stefaniak
765141f0e4
Update getSystemMessageWithRules.ts
2025-06-17 13:28:26 -07:00
Tomasz Stefaniak
f976e54dc3
fix: type errors
2025-06-17 13:27:36 -07:00
Tomasz Stefaniak
8a2ffb3a85
feat: rules policies
2025-06-17 13:08:10 -07:00
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