Merge branch 'main' into tomasz/on-off-rules
This commit is contained in:
commit
f36dbfdff1
12 changed files with 178 additions and 25 deletions
|
|
@ -1,16 +1,111 @@
|
|||
---
|
||||
globs: docs/**/*.{md,mdx}
|
||||
description: Standards for writing and maintaining Continue Docs
|
||||
globs: docs/\*_/_.{md,mdx}
|
||||
description: This style guide should be used as a reference for maintaining consistency across all Continue documentation
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Continue Docs Standards
|
||||
# Continue Documentation Style Guide
|
||||
|
||||
## Overview
|
||||
|
||||
## Writing Tone & Voice
|
||||
|
||||
### Conversational and Direct
|
||||
|
||||
- Follow Docusaurus documentation standards
|
||||
- Include YAML frontmatter with title, description, and keywords
|
||||
- Use consistent heading hierarchy starting with h2 (##)
|
||||
- Include relevant Admonition components for tips, warnings, and info
|
||||
- Use descriptive alt text for images
|
||||
- Include cross-references to related documentation
|
||||
- Reference other docs with relative paths
|
||||
- Use simple, conversational language that gets straight to the point
|
||||
- Avoid overly technical jargon when simpler terms work
|
||||
- Write as if speaking directly to the developer using the tool
|
||||
- Keep paragraphs concise and scannable
|
||||
- Use code blocks with appropriate language tags
|
||||
|
||||
**Example:**
|
||||
✅ "You send it a question, and it replies with an answer"
|
||||
❌ "The system processes user queries and generates corresponding responses"
|
||||
|
||||
### Helpful and Instructional
|
||||
|
||||
- Focus on helping users accomplish their goals
|
||||
- Use active voice and imperative mood for instructions
|
||||
- Assume users want to get things done quickly
|
||||
- Include relevant Admonition components for tips, warnings, and info
|
||||
|
||||
**Example:**
|
||||
✅ "Press cmd/ctrl + L to begin a new session"
|
||||
❌ "A new session can be initiated by pressing cmd/ctrl + L"
|
||||
|
||||
### Practical and Task-Oriented
|
||||
|
||||
- Emphasize what users can accomplish with each feature
|
||||
- Lead with benefits and use cases before diving into mechanics
|
||||
- Keep explanations grounded in real-world scenarios
|
||||
|
||||
## Content Structure
|
||||
|
||||
### Page Organization
|
||||
|
||||
1. **Visual Introduction**: Lead with GIFs or images showing the feature in action
|
||||
2. **Purpose Statement**: Brief explanation of what the feature does and when to use it
|
||||
3. **Step-by-Step Instructions**: Clear, actionable steps with keyboard shortcuts
|
||||
4. **Platform-Specific Notes**: Separate sections for VS Code and JetBrains when needed
|
||||
5. **Additional Tips**: Advanced usage or troubleshooting notes
|
||||
|
||||
### Section Headers
|
||||
|
||||
- Use consistent heading hierarchy starting with h2 (##)
|
||||
- Include YAML frontmatter with title, description, and keywords
|
||||
- Use action-oriented headers that describe what users will do
|
||||
- Format: "Verb + object" (e.g., "Type a request and press enter")
|
||||
- Keep headers concise but descriptive
|
||||
- Use title case
|
||||
|
||||
**Examples:**
|
||||
✅ "Highlight code and activate"
|
||||
✅ "Accept or reject changes"
|
||||
✅ "Switch between different models"
|
||||
|
||||
### Lists and Steps
|
||||
|
||||
- Use numbered lists for sequential steps
|
||||
- Use bullet points for feature lists or options
|
||||
- Keep list items parallel in structure
|
||||
- Start action items with verbs
|
||||
|
||||
## Technical Writing Standards
|
||||
|
||||
### Code and Keyboard Shortcuts
|
||||
|
||||
- Use `backticks` for inline code elements
|
||||
- Format keyboard shortcuts consistently: `cmd/ctrl + L`
|
||||
- Always provide shortcuts for Mac/Windows/Linux
|
||||
- Use code blocks for configuration examples with proper syntax highlighting
|
||||
|
||||
### Cross-References
|
||||
|
||||
- Link to related sections using descriptive anchor text
|
||||
- Use relative links to other documentation pages
|
||||
- Format: `[descriptive text](/path/to/page)`
|
||||
|
||||
### Platform Differences
|
||||
|
||||
- Always address both VS Code and JetBrains when applicable
|
||||
- Use clear subheadings to separate platform-specific instructions
|
||||
- Lead with the more common platform (typically VS Code) when both are covered
|
||||
|
||||
## Language Conventions
|
||||
|
||||
### Terminology
|
||||
|
||||
- **Consistent Terms**: Use the same terms throughout (e.g., "LLM" not "AI model" in some places)
|
||||
- **Product Names**: Capitalize product names correctly (VS Code, JetBrains, Continue)
|
||||
- **Feature Names**: Use consistent capitalization for Continue features (Chat, Edit, Agent, Autocomplete)
|
||||
|
||||
### Abbreviations
|
||||
|
||||
- Spell out acronyms on first use, then use abbreviation consistently
|
||||
- Common abbreviations: LLM, IDE, API, URL
|
||||
|
||||
### Pronouns
|
||||
|
||||
- Use "you" to address the user directly
|
||||
- Use "it" to refer to the tool/model
|
||||
- Avoid "we" unless referring to the Continue team
|
||||
|
|
|
|||
12
binary/package-lock.json
generated
12
binary/package-lock.json
generated
|
|
@ -20,6 +20,7 @@
|
|||
"posthog-node": "^3.6.3",
|
||||
"system-ca": "^1.0.2",
|
||||
"tar": "^7.4.3",
|
||||
"undici": "^7.10.0",
|
||||
"uuid": "^9.0.1",
|
||||
"vectordb": "^0.4.20",
|
||||
"win-ca": "^3.5.1"
|
||||
|
|
@ -105,6 +106,7 @@
|
|||
"sqlite3": "^5.1.7",
|
||||
"system-ca": "^1.0.3",
|
||||
"tar": "^7.4.3",
|
||||
"tree-sitter-structured-text": "^0.0.1",
|
||||
"tree-sitter-wasms": "^0.1.11",
|
||||
"uuid": "^9.0.1",
|
||||
"vectordb": "^0.4.20",
|
||||
|
|
@ -143,6 +145,7 @@
|
|||
"myers-diff": "^2.1.0",
|
||||
"onnxruntime-common": "1.14.0",
|
||||
"onnxruntime-web": "1.14.0",
|
||||
"tree-sitter-cli": "^0.22.5",
|
||||
"ts-jest": "^29.1.1",
|
||||
"typescript": "^5.6.3",
|
||||
"vitest": "^3.1.4"
|
||||
|
|
@ -6774,6 +6777,15 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.10.0",
|
||||
"resolved": "https://registry.npmmirror.com/undici/-/undici-7.10.0.tgz",
|
||||
"integrity": "sha512-u5otvFBOBZvmdjWLVW+5DAc9Nkq8f24g0O9oY7qw2JVIF1VocIFoyz9JFkuVOS2j41AufeO0xnlweJ2RLT8nGw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/universal-user-agent": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
"posthog-node": "^3.6.3",
|
||||
"system-ca": "^1.0.2",
|
||||
"tar": "^7.4.3",
|
||||
"undici": "^7.10.0",
|
||||
"uuid": "^9.0.1",
|
||||
"vectordb": "^0.4.20",
|
||||
"win-ca": "^3.5.1"
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ const { rimrafSync } = require("rimraf");
|
|||
const tar = require("tar");
|
||||
const { RIPGREP_VERSION, TARGET_TO_RIPGREP_RELEASE } = require("./targets");
|
||||
const AdmZip = require("adm-zip");
|
||||
const { ProxyAgent } = require("undici");
|
||||
|
||||
const RIPGREP_BASE_URL = `https://github.com/BurntSushi/ripgrep/releases/download/${RIPGREP_VERSION}`;
|
||||
|
||||
|
|
@ -16,8 +17,13 @@ const RIPGREP_BASE_URL = `https://github.com/BurntSushi/ripgrep/releases/downloa
|
|||
*/
|
||||
async function downloadFile(url, destPath) {
|
||||
// Use the built-in fetch API instead of node-fetch
|
||||
// Use proxy if set in environment variables
|
||||
const proxy = process.env.https_proxy || process.env.HTTPS_PROXY;
|
||||
const agent = proxy ? new ProxyAgent(proxy) : undefined;
|
||||
|
||||
const response = await fetch(url, {
|
||||
redirect: "follow", // Automatically follow redirects
|
||||
dispatcher: agent,
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ We recommend configuring **Claude 4 Sonnet** as your chat model.
|
|||
{
|
||||
"title": "Claude 4 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-20250514",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
@ -68,9 +68,6 @@ Prompt caching is generally available for:
|
|||
- Claude 3.7 Sonnet
|
||||
- Claude 3.5 Sonnet
|
||||
- Claude 3.5 Haiku
|
||||
- Claude 3 Opus
|
||||
- Claude 3 Sonnet
|
||||
- Claude 3 Haiku
|
||||
|
||||
To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
|
||||
|
||||
|
|
@ -84,9 +81,8 @@ To enable caching of the system message and the turn-by-turn conversation, updat
|
|||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
cacheBehavior:
|
||||
cacheSystemMessage: true
|
||||
cacheConversation: true
|
||||
defaultCompletionOptions:
|
||||
promptCaching: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
|
|
@ -100,7 +96,10 @@ To enable caching of the system message and the turn-by-turn conversation, updat
|
|||
},
|
||||
"title": "Anthropic",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-20250514",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"defaultCompletionOptions": {
|
||||
"promptCaching": true
|
||||
},
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension
|
|||
pluginName=continue-intellij-extension
|
||||
pluginRepositoryUrl=https://github.com/continuedev/continue
|
||||
# SemVer format -> https://semver.org
|
||||
pluginVersion=1.0.23
|
||||
pluginVersion=1.0.24
|
||||
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
|
||||
pluginSinceBuild=223
|
||||
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
|
||||
|
|
|
|||
|
|
@ -169,7 +169,11 @@ class ApplyToFileHandler(
|
|||
ide: IDE,
|
||||
params: ApplyToFileParams
|
||||
) {
|
||||
val editorUtils = EditorUtils.getOrOpenEditor(project, params.filepath)
|
||||
val editorUtils = if (EditorUtils.editorFileExist(params.filepath))
|
||||
EditorUtils.getOrOpenEditor(project, params.filepath)
|
||||
else
|
||||
EditorUtils.getEditorByCreateFile(project, params.filepath)
|
||||
|
||||
val diffStreamService = project.getService(DiffStreamService::class.java)
|
||||
|
||||
val handler = ApplyToFileHandler(
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.github.continuedev.continueintellijextension.editor
|
|||
|
||||
import com.github.continuedev.continueintellijextension.utils.toUriOrNull
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.application.runWriteAction
|
||||
import com.intellij.openapi.command.WriteCommandAction
|
||||
import com.intellij.openapi.editor.Editor
|
||||
import com.intellij.openapi.editor.SelectionModel
|
||||
|
|
@ -14,6 +15,8 @@ import com.intellij.openapi.util.TextRange
|
|||
import com.intellij.openapi.vfs.VirtualFileManager
|
||||
import com.intellij.ui.JBColor
|
||||
import com.intellij.openapi.editor.ScrollType
|
||||
import com.intellij.openapi.vfs.LocalFileSystem
|
||||
import java.io.File
|
||||
|
||||
/**
|
||||
* Utility class for working with Editor instances.
|
||||
|
|
@ -166,5 +169,38 @@ class EditorUtils(val editor: Editor) {
|
|||
val editor = FileEditorManager.getInstance(project).selectedTextEditor ?: return null
|
||||
return EditorUtils(editor)
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets editor for the filepath is existed
|
||||
*/
|
||||
fun editorFileExist(filepath: String?): Boolean {
|
||||
return !filepath.isNullOrEmpty() && VirtualFileManager.getInstance().findFileByUrl(filepath) != null
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets editor for the no exist filepath and returns an EditorUtils instance
|
||||
*/
|
||||
fun getEditorByCreateFile(project: Project, filepath: String?): EditorUtils? {
|
||||
if (!filepath.isNullOrEmpty()) {
|
||||
// file not exists and create
|
||||
val ioFile = File(filepath.replace("file:///", ""))
|
||||
if (!ioFile.exists()) {
|
||||
ioFile.parentFile?.mkdirs()
|
||||
ioFile.createNewFile()
|
||||
}
|
||||
// IntelliJ refresh VirtualFile
|
||||
val virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(ioFile)
|
||||
if (virtualFile != null) {
|
||||
ApplicationManager.getApplication().invokeAndWait {
|
||||
runWriteAction {
|
||||
FileEditorManager.getInstance(project).openFile(virtualFile, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val editor = FileEditorManager.getInstance(project).selectedTextEditor ?: return null
|
||||
return EditorUtils(editor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "continue",
|
||||
"icon": "media/icon.png",
|
||||
"author": "Continue Dev, Inc",
|
||||
"version": "1.1.48",
|
||||
"version": "1.1.49",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/continuedev/continue"
|
||||
|
|
|
|||
4
packages/config-yaml/package-lock.json
generated
4
packages/config-yaml/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@continuedev/config-yaml",
|
||||
"version": "1.0.92",
|
||||
"version": "1.0.93",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@continuedev/config-yaml",
|
||||
"version": "1.0.92",
|
||||
"version": "1.0.93",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.14",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/config-yaml",
|
||||
"version": "1.0.92",
|
||||
"version": "1.0.94",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -254,7 +254,7 @@ export async function unrollAssistantFromContent(
|
|||
options: UnrollAssistantOptions,
|
||||
): Promise<ConfigResult<AssistantUnrolled>> {
|
||||
// Parse string to Zod-validated YAML
|
||||
let parsedYaml = parseConfigYaml(rawYaml);
|
||||
let parsedYaml = parseMarkdownRuleOrConfigYaml(rawYaml, id);
|
||||
|
||||
// Unroll blocks and convert their secrets to FQSNs
|
||||
const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue