continue-custom/docs
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
..
docs Add alwaysApply property to rules for better control over rule application 2025-05-25 19:27:15 -07:00
i18n/zh-CN Delete changie and the associated changelog 2025-05-13 20:45:37 -07:00
src set to json by default 2025-02-18 10:29:16 -08:00
static reo fix 2025-05-22 20:41:09 -07:00
.gitignore copying from old repo 2023-05-23 23:45:12 -04:00
babel.config.js copying from old repo 2023-05-23 23:45:12 -04:00
docusaurus.config.js address whitespace 2025-05-22 20:43:46 -07:00
netlify.toml docs: remove /docs routing 2024-09-16 12:23:12 -07:00
package-lock.json Bump @babel/helpers from 7.26.0 to 7.27.0 in /docs 2025-04-23 21:43:51 +00:00
package.json Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
README.md READMEs 2023-06-02 21:29:04 -04:00
sidebars.js Merge pull request #5177 from uinstinct/customize-collapsed 2025-04-25 11:57:30 -07:00

Continue Docs

Markdown content exists in the docs/ folder, nested as it will be shown in the sidebar. docusaurus.config.js defines important footer, sidebar, and title content for the site.