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> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .eslintrc.json | ||
| .gitignore | ||
| index.html | ||
| indexConsole.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.cjs | ||
| README.md | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
Continue React App
The Continue React app is a notebook-like interface to the Continue server. It allows the user to submit arbitrary text input, then communicates with the server to takes steps, which are displayed as a sequence of editable cells. The React app should sit beside an IDE, as in the VS Code extension.