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
Nate Sesti
d3d201315d
Merge pull request #6221 from continuedev/tomasz/regex-trigger
...
Regex rule trigger
2025-06-23 10:48:06 -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
Dallin Romney
5aafefd820
Merge pull request #6170 from continuedev/tomasz/fix-always-apply
...
test: alwaysApply
2025-06-20 16:44:46 -07:00
Tomasz Stefaniak
a251c1b6f6
test: pattern matching
2025-06-20 11:22:32 -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
de6a0ae36c
fix: policy precedence
2025-06-17 16:22:08 -07:00
Tomasz Stefaniak
e1a0da69fc
Update getSystemMessageWithRules.ts
2025-06-17 16:15:29 -07:00
Tomasz Stefaniak
3b44bc9564
Update getSystemMessageWithRules.vitest.ts
2025-06-17 14:31:36 -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
5c94ec06db
test: alwaysApply
2025-06-17 12:15:54 -07:00
Tomasz Stefaniak
4d278e479a
fix: prettier
2025-06-11 15:23:09 -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
9dba4730b9
fix: type errors / formatting
2025-06-09 17:11:55 -07:00
Tomasz Stefaniak
a7f6f99edc
test: cleanup
2025-06-09 15:58:08 -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
fb282727e9
fix: colocation
2025-06-09 15:51:36 -07:00
Tomasz Stefaniak
e1d227cbc3
fix: colocation
2025-06-09 15:49:18 -07:00
Tomasz Stefaniak
e4f7188b8b
Update nestedDirectoryRules.vitest.ts
2025-06-09 14:09:27 -07:00
Tomasz Stefaniak
d08ed5f780
test: rules
2025-06-09 13:58:56 -07:00
Tomasz Stefaniak
9e57412fe1
fix: rules
2025-06-09 13:51:04 -07:00
Tomasz Stefaniak
2178ef8b05
Create implicitGlobalRules.vitest.ts
2025-06-09 13:48:50 -07:00
Tomasz Stefaniak
5d51f729ff
improv: rules
2025-06-09 13:43:43 -07:00
Tomasz Stefaniak
cafb2e93c7
fix: tests
2025-06-09 13:22:34 -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
Tomasz Stefaniak
a7a6c5cb43
test: globs
2025-06-09 12:49:35 -07:00
Tomasz Stefaniak
2ec5ad7eba
Update ruleColocation.vitest.ts
2025-06-09 11:26:34 -07:00
Tomasz Stefaniak
b5b4b0d31d
test: colocation
2025-06-09 11:02:12 -07:00
Tomasz Stefaniak
9efd0e128e
fix: formatting
2025-06-02 13:51:36 -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