diff --git a/.continue/prompts/update-llm-info.prompt b/.continue/prompts/update-llm-info.prompt index 9c1cf1f8e..07c9b1b62 100644 --- a/.continue/prompts/update-llm-info.prompt +++ b/.continue/prompts/update-llm-info.prompt @@ -52,7 +52,7 @@ Retrieve the following sites per these providers, and consider these notes on ho // TODO: add info for openai, ollama, etc For any other providers, search the web for "latest [provider] models" and find the most relevant model information using your best judgement. -Generally, ignore models that do not support text output. These models will be used in a coding assistant client that only supports text/image input and text/output, so extraneous capabilities can be ignored. +Generally, ignore models that do not support text output. These models will be used in a coding agent client that only supports text/image input and text/output, so extraneous capabilities can be ignored. Sometimes, "Experimental", "Preview", or similar versions of models are available. The latest-date version of each should have its own information maintained. 3. UPDATE THE INFORMATION diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index cc85d0d0a..9eb505de7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -29,7 +29,7 @@ body: - **Continue version**: v0.9.4 - **IDE version**: VSCode 1.85.1 - Model: Claude Sonnet 3.5 - - Assistant configuration + - Agent configuration value: | - OS: - Continue version: @@ -39,7 +39,7 @@ body: ```yaml ``` - OR link to assistant in Continue hub: + OR link to agent in Continue hub: render: Markdown validations: required: false diff --git a/.gitignore b/.gitignore index bf5b0366d..8bb5a3db7 100644 --- a/.gitignore +++ b/.gitignore @@ -170,4 +170,5 @@ extensions/.continue-debug/ .continuerules **/.continue/assistants/ +**/.continue/agents/ keys \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fe0165951..3993294b4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -288,4 +288,4 @@ We require all contributors to accept the CLA and have made it as easy as commen I have read the CLA Document and I hereby sign the CLA ``` -3. The CLA‑Assistant bot records your signature in the repo and marks the status check as passed. +3. The CLA-Assistant bot records your signature in the repo and marks the status check as passed. diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index db8628cde..837bb2a39 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -21,7 +21,6 @@ import { PolicySingleton } from "../control-plane/PolicySingleton.js"; import { Logger } from "../util/Logger.js"; import { Telemetry } from "../util/posthog.js"; import { - ASSISTANTS, getAllDotContinueDefinitionFiles, LoadAssistantFilesOptions, } from "./loadLocalAssistants.js"; @@ -339,7 +338,7 @@ export class ConfigHandler { async getLocalProfiles(options: LoadAssistantFilesOptions) { /** - * Users can define as many local assistants as they want in a `.continue/assistants` folder + * Users can define as many local agents as they want in a `.continue/agents` (or previous .continue/assistants) folder */ // Local customization disabled for on-premise deployments @@ -358,9 +357,14 @@ export class ConfigHandler { const assistantFiles = await getAllDotContinueDefinitionFiles( this.ide, options, - ASSISTANTS, + "assistants", ); - const profiles = assistantFiles.map((assistant) => { + const agentFiles = await getAllDotContinueDefinitionFiles( + this.ide, + options, + "agents", + ); + const profiles = [...assistantFiles, ...agentFiles].map((assistant) => { return new LocalProfileLoader( this.ide, this.ideSettingsPromise, diff --git a/core/config/default.ts b/core/config/default.ts index 81c133455..9cf680b17 100644 --- a/core/config/default.ts +++ b/core/config/default.ts @@ -21,7 +21,7 @@ export const defaultContextProvidersJetBrains: NonNullable< ]; export const defaultConfig: ConfigYaml = { - name: "Local Assistant", + name: "Local Agent", version: "1.0.0", schema: "v1", models: [], @@ -29,7 +29,7 @@ export const defaultConfig: ConfigYaml = { }; export const defaultConfigJetBrains: ConfigYaml = { - name: "Local Assistant", + name: "Local Agent", version: "1.0.0", schema: "v1", models: [], diff --git a/core/config/loadLocalAssistants.ts b/core/config/loadLocalAssistants.ts index feff60183..b6a29212d 100644 --- a/core/config/loadLocalAssistants.ts +++ b/core/config/loadLocalAssistants.ts @@ -10,16 +10,16 @@ import { getGlobalFolderWithName } from "../util/paths"; import { localPathToUri } from "../util/pathToUri"; import { joinPathsToUri } from "../util/uri"; -export const ASSISTANTS = "assistants"; -export const ASSISTANTS_FOLDER = `.continue/${ASSISTANTS}`; - export function isLocalDefinitionFile(uri: string): boolean { if (!uri.endsWith(".yaml") && !uri.endsWith(".yml") && !uri.endsWith(".md")) { return false; } const normalizedUri = URI.normalize(uri); - return normalizedUri.includes(`/${ASSISTANTS_FOLDER}/`); + return ( + normalizedUri.includes(`/.continue/agents/`) || + normalizedUri.includes(`/.continue/assistants/`) + ); } async function getDefinitionFilesInDir( diff --git a/core/config/loadLocalAssistants.vitest.ts b/core/config/loadLocalAssistants.vitest.ts index a366316d4..8527eada5 100644 --- a/core/config/loadLocalAssistants.vitest.ts +++ b/core/config/loadLocalAssistants.vitest.ts @@ -6,7 +6,7 @@ import { getAllDotContinueDefinitionFiles, LoadAssistantFilesOptions, } from "./loadLocalAssistants"; -describe("getAllDotContinueDefinitionFiles with fileExtType option", () => { +describe("ASSISTANTS getAllDotContinueDefinitionFiles with fileExtType option", () => { beforeEach(() => { setUpTestDir(); walkDirCache.invalidate(); @@ -240,3 +240,232 @@ describe("getAllDotContinueDefinitionFiles with fileExtType option", () => { ); }); }); + +describe("AGENTS getAllDotContinueDefinitionFiles with fileExtType option", () => { + beforeEach(() => { + setUpTestDir(); + walkDirCache.invalidate(); + + // Add test files to the test directory + addToTestDir([ + ".continue/agents/", + [".continue/agents/agent1.yaml", "yaml content 1"], + [".continue/agents/agent2.yml", "yaml content 2"], + [".continue/agents/agent3.md", "markdown content 1"], + [".continue/agents/agent4.txt", "txt content"], + ]); + }); + + afterEach(() => { + tearDownTestDir(); + walkDirCache.invalidate(); + }); + + it("should return only YAML files when fileExtType is 'yaml'", async () => { + const options: LoadAssistantFilesOptions = { + includeGlobal: false, // Only test workspace for simplicity + includeWorkspace: true, + fileExtType: "yaml", + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(2); + expect(result.map((f) => f.path.split("/").pop())).toEqual( + expect.arrayContaining(["agent1.yaml", "agent2.yml"]), + ); + expect(result.map((f) => f.path.split("/").pop())).not.toContain( + "agent3.md", + ); + }); + + it("should return only Markdown files when fileExtType is 'markdown'", async () => { + const options: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "markdown", + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(1); + expect(result.map((f) => f.path.split("/").pop())).toEqual(["agent3.md"]); + expect(result.map((f) => f.path.split("/").pop())).not.toContain( + "agent1.yaml", + ); + expect(result.map((f) => f.path.split("/").pop())).not.toContain( + "agent2.yml", + ); + }); + + it("should return all supported files when fileExtType is not specified", async () => { + const options: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + // fileExtType not specified + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(3); + expect(result.map((f) => f.path.split("/").pop())).toEqual( + expect.arrayContaining(["agent1.yaml", "agent2.yml", "agent3.md"]), + ); + // Should not include .txt files + expect(result.map((f) => f.path.split("/").pop())).not.toContain( + "agent4.txt", + ); + }); + + it("should respect includeWorkspace option with fileExtType", async () => { + // Test with includeWorkspace: false + const workspaceOffOptions: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: false, + fileExtType: "yaml", + }; + + const noWorkspaceResult = await getAllDotContinueDefinitionFiles( + testIde, + workspaceOffOptions, + "agents", + ); + expect(noWorkspaceResult).toHaveLength(0); + + // Test with includeWorkspace: true + const workspaceOnOptions: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "yaml", + }; + + const workspaceResult = await getAllDotContinueDefinitionFiles( + testIde, + workspaceOnOptions, + "agents", + ); + expect(workspaceResult).toHaveLength(2); + expect(workspaceResult.map((f) => f.path.split("/").pop())).toEqual( + expect.arrayContaining(["agent1.yaml", "agent2.yml"]), + ); + }); + + it("should return empty array when no files match the specified extension type", async () => { + // Create a test directory with only non-matching files + tearDownTestDir(); + walkDirCache.invalidate(); + setUpTestDir(); + addToTestDir([ + ".continue/agents/", + [".continue/agents/nonmatch1.txt", "txt content"], + [".continue/agents/nonmatch2.json", "json content"], + ]); + + const options: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + + fileExtType: "yaml", + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(0); + }); + + it("should handle directories that don't exist", async () => { + // Create a clean test directory without the agents folder + tearDownTestDir(); + setUpTestDir(); + + const options: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "yaml", + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(0); + }); + + it("should return correct file content", async () => { + const options: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "yaml", + }; + + const result = await getAllDotContinueDefinitionFiles( + testIde, + options, + "agents", + ); + expect(result).toHaveLength(2); + const yamlFile = result.find((f) => f.path.includes("agent1.yaml")); + expect(yamlFile?.content).toBe("yaml content 1"); + }); + + it("should filter by file extension case sensitively", async () => { + // Add files with uppercase extensions + addToTestDir([ + [".continue/agents/agent5.YAML", "uppercase yaml"], + [".continue/agents/agent6.YML", "uppercase yml"], + [".continue/agents/agent7.MD", "uppercase md"], + ]); + + const yamlOptions: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "yaml", + }; + + const yamlResult = await getAllDotContinueDefinitionFiles( + testIde, + yamlOptions, + "agents", + ); + // Should only get lowercase extensions (current implementation) + expect(yamlResult).toHaveLength(2); + expect(yamlResult.map((f) => f.path.split("/").pop())).toEqual( + expect.arrayContaining(["agent1.yaml", "agent2.yml"]), + ); + expect(yamlResult.map((f) => f.path.split("/").pop())).not.toContain( + "agent5.YAML", + ); + + const markdownOptions: LoadAssistantFilesOptions = { + includeGlobal: false, + includeWorkspace: true, + fileExtType: "markdown", + }; + + const markdownResult = await getAllDotContinueDefinitionFiles( + testIde, + markdownOptions, + "agents", + ); + expect(markdownResult).toHaveLength(1); + expect(markdownResult.map((f) => f.path.split("/").pop())).toEqual([ + "agent3.md", + ]); + expect(markdownResult.map((f) => f.path.split("/").pop())).not.toContain( + "agent7.MD", + ); + }); +}); diff --git a/core/config/profile/LocalProfileLoader.ts b/core/config/profile/LocalProfileLoader.ts index 56d416d0b..e7a9608f1 100644 --- a/core/config/profile/LocalProfileLoader.ts +++ b/core/config/profile/LocalProfileLoader.ts @@ -33,7 +33,7 @@ export default class LocalProfileLoader implements IProfileLoader { iconUrl: "", title: overrideAssistantFile?.path ? getUriPathBasename(overrideAssistantFile.path) - : "Local Assistant", + : "Local Agent", errors: undefined, uri: overrideAssistantFile?.path ?? @@ -48,7 +48,7 @@ export default class LocalProfileLoader implements IProfileLoader { ); this.description.title = parsedAssistant.name; } catch (e) { - console.error("Failed to parse assistant file: ", e); + console.error("Failed to parse agent file: ", e); } } } diff --git a/core/config/yaml/default.ts b/core/config/yaml/default.ts index 1903e3038..22c1d8955 100644 --- a/core/config/yaml/default.ts +++ b/core/config/yaml/default.ts @@ -4,7 +4,7 @@ import { AssistantUnrolled } from "@continuedev/config-yaml"; export const defaultConfigYaml: AssistantUnrolled = { models: [], context: [], - name: "Local Assistant", + name: "Local Agent", version: "1.0.0", schema: "v1", }; @@ -12,7 +12,7 @@ export const defaultConfigYaml: AssistantUnrolled = { export const defaultConfigYamlJetBrains: AssistantUnrolled = { models: [], context: [], - name: "Local Assistant", + name: "Local Agent", version: "1.0.0", schema: "v1", }; diff --git a/core/config/yaml/loadYaml.vitest.ts b/core/config/yaml/loadYaml.vitest.ts index fd6769f70..97c291443 100644 --- a/core/config/yaml/loadYaml.vitest.ts +++ b/core/config/yaml/loadYaml.vitest.ts @@ -1,14 +1,14 @@ -import { describe, it, expect } from "vitest"; import { - validateConfigYaml, AssistantUnrolledNonNullable, + validateConfigYaml, } from "@continuedev/config-yaml"; +import { describe, expect, it } from "vitest"; describe("MCP Server cwd configuration", () => { describe("YAML schema validation", () => { it("should accept valid MCP server with cwd", () => { const config: AssistantUnrolledNonNullable = { - name: "test-assistant", + name: "test-agent", version: "1.0.0", mcpServers: [ { @@ -28,7 +28,7 @@ describe("MCP Server cwd configuration", () => { it("should accept MCP server without cwd", () => { const config: AssistantUnrolledNonNullable = { - name: "test-assistant", + name: "test-agent", version: "1.0.0", mcpServers: [ { @@ -45,7 +45,7 @@ describe("MCP Server cwd configuration", () => { it("should accept relative paths in cwd", () => { const config: AssistantUnrolledNonNullable = { - name: "test-assistant", + name: "test-agent", version: "1.0.0", mcpServers: [ { @@ -63,7 +63,7 @@ describe("MCP Server cwd configuration", () => { it("should accept empty string cwd", () => { const config: AssistantUnrolledNonNullable = { - name: "test-assistant", + name: "test-agent", version: "1.0.0", mcpServers: [ { @@ -115,7 +115,7 @@ describe("MCP Server cwd configuration", () => { configs.forEach(({ name, server }) => { const config: AssistantUnrolledNonNullable = { - name: "test-assistant", + name: "test-agent", version: "1.0.0", mcpServers: [server], }; diff --git a/core/llm/rules/nestedDirectoryRules.vitest.ts b/core/llm/rules/nestedDirectoryRules.vitest.ts index f74637c59..7f55bc7c3 100644 --- a/core/llm/rules/nestedDirectoryRules.vitest.ts +++ b/core/llm/rules/nestedDirectoryRules.vitest.ts @@ -20,7 +20,7 @@ describe("Nested directory rules application", () => { // A global rule for comparison const globalRule: RuleWithSource = { name: "Global Rule", - rule: "SOLID Design Principles - Coding Assistant Guidelines", + rule: "SOLID Design Principles - Coding Agent Guidelines", source: "rules-block", ruleFile: ".continue/rules.md", }; diff --git a/core/llm/templates/edit.ts b/core/llm/templates/edit.ts index aa8433fc4..3481aa80f 100644 --- a/core/llm/templates/edit.ts +++ b/core/llm/templates/edit.ts @@ -164,7 +164,7 @@ Please only respond with code and put it inside of a markdown code block. Do not \`\`\`{{{language}}} `; -const xWinCoderEditPrompt = `: You are an AI coding assistant that helps people with programming. Write a response that appropriately completes the user's request. +const xWinCoderEditPrompt = `: You are an AI coding agent that helps people with programming. Write a response that appropriately completes the user's request. : Please rewrite the following code with these instructions: "{{{userInput}}}" \`\`\`{{{language}}} {{{codeToEdit}}} diff --git a/core/nextEdit/constants.ts b/core/nextEdit/constants.ts index 27a743dcc..43c14b3b4 100644 --- a/core/nextEdit/constants.ts +++ b/core/nextEdit/constants.ts @@ -21,7 +21,7 @@ export const INSTINCT_EDITABLE_REGION_START_TOKEN = "<|editable_region_start|>"; export const INSTINCT_EDITABLE_REGION_END_TOKEN = "<|editable_region_end|>"; export const INSTINCT_CONTEXT_FILE_TOKEN = "<|context_file|>"; export const INSTINCT_SNIPPET_TOKEN = "<|snippet|>"; -export const INSTINCT_SYSTEM_PROMPT = `You are Instinct, an intelligent next-edit predictor developed by Continue.dev. Your role as an AI assistant is to help developers complete their code tasks by predicting the next edit that they will make within the section of code marked by <|editable_region_start|> and <|editable_region_end|> tags. +export const INSTINCT_SYSTEM_PROMPT = `You are Instinct, an intelligent next-edit predictor developed by Continue.dev. Your role as an AI agent is to help developers complete their code tasks by predicting the next edit that they will make within the section of code marked by <|editable_region_start|> and <|editable_region_end|> tags. You have access to the following information to help you make informed suggestions: @@ -64,4 +64,4 @@ export const MERCURY_EDIT_DIFF_HISTORY_OPEN = "<|edit_diff_history|>"; export const MERCURY_EDIT_DIFF_HISTORY_CLOSE = "<|/edit_diff_history|>"; export const MERCURY_CURSOR = "<|cursor|>"; export const MERCURY_SYSTEM_PROMPT = - "You are Mercury, created by Inception Labs. You are an AI Assistant and an expert at coding. Your role as an AI assistant is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags.\n\nYou have access to the following information to help you make informed suggestions:\n\n- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest, with line numbers in the form #| to help you understand the edit diff history. It'\''s possible these are entirely irrelevant to the developer'\''s change.\n- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code. Line numbers in the form #| are included to help you understand the edit diff history.\n- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer'\''s intentions. These changes are listed from oldest to latest. It'\''s possible a lot of old edit diff history is entirely irrelevant to the developer'\''s change.\n- cursor position marked as <|cursor|>: Indicates where the developer'\''s cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.\n\nYour task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they'\''re following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn'\''t get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.\n\n# Steps\n\n1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.\n2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.\n3. **Suggest Edits**: If changes are required, ensure they align with the developers patterns and improve code quality.\n4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.\n\n# Output Format\n\n- Provide only the revised code within the tags. If no changes are necessary, simply return the original code from within the <|code_to_edit|> and <|/code_to_edit|> tags.\n- There are line numbers in the form #| in the code displayed to you above, but these are just for your reference. Please do not include the numbers of the form #| in your response.\n- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags including the <|code_to_edit|> and <|/code_to_edit|> tags.\n\n# Notes\n\n- Avoid undoing or reverting the developer'\''s last change unless there are obvious typos or errors.\n- Don'\''t include the line numbers of the form #| in your response."; + "You are Mercury, created by Inception Labs. You are an AI Agent and an expert at coding. Your role as an AI agent is to help developers complete their code tasks by assisting in editing specific sections of code marked by the <|code_to_edit|> and <|/code_to_edit|> tags.\n\nYou have access to the following information to help you make informed suggestions:\n\n- recently_viewed_code_snippets: These are code snippets that the developer has recently looked at, which might provide context or examples relevant to the current task. They are listed from oldest to newest, with line numbers in the form #| to help you understand the edit diff history. It'''s possible these are entirely irrelevant to the developer'''s change.\n- current_file_content: The content of the file the developer is currently working on, providing the broader context of the code. Line numbers in the form #| are included to help you understand the edit diff history.\n- edit_diff_history: A record of changes made to the code, helping you understand the evolution of the code and the developer'''s intentions. These changes are listed from oldest to latest. It'''s possible a lot of old edit diff history is entirely irrelevant to the developer'''s change.\n- cursor position marked as <|cursor|>: Indicates where the developer'''s cursor is currently located, which can be crucial for understanding what part of the code they are focusing on.\n\nYour task is to predict and complete the changes the developer would have made next in the <|code_to_edit|> section. The developer may have stopped in the middle of typing. Your goal is to keep the developer on the path that you think they'''re following. Some examples include further implementing a class, method, or variable, or improving the quality of the code. Make sure the developer doesn'''t get distracted and ensure your suggestion is relevant. Consider what changes need to be made next, if any. If you think changes should be made, ask yourself if this is truly what needs to happen. If you are confident about it, then proceed with the changes.\n\n# Steps\n\n1. **Review Context**: Analyze the context from the resources provided, such as recently viewed snippets, edit history, surrounding code, and cursor location.\n2. **Evaluate Current Code**: Determine if the current code within the tags requires any corrections or enhancements.\n3. **Suggest Edits**: If changes are required, ensure they align with the developers patterns and improve code quality.\n4. **Maintain Consistency**: Ensure indentation and formatting follow the existing code style.\n\n# Output Format\n\n- Provide only the revised code within the tags. If no changes are necessary, simply return the original code from within the <|code_to_edit|> and <|/code_to_edit|> tags.\n- There are line numbers in the form #| in the code displayed to you above, but these are just for your reference. Please do not include the numbers of the form #| in your response.\n- Ensure that you do not output duplicate code that exists outside of these tags. The output should be the revised code that was between these tags including the <|code_to_edit|> and <|/code_to_edit|> tags.\n\n# Notes\n\n- Avoid undoing or reverting the developer'''s last change unless there are obvious typos or errors.\n- Don'''t include the line numbers of the form #| in your response."; diff --git a/core/util/paths.ts b/core/util/paths.ts index 315053413..402b1b3c4 100644 --- a/core/util/paths.ts +++ b/core/util/paths.ts @@ -393,10 +393,6 @@ export function getGlobalPromptsPath(): string { return getGlobalFolderWithName("prompts"); } -export function getGlobalAssistantsPath(): string { - return getGlobalFolderWithName("assistants"); -} - export function readAllGlobalPromptFiles( folderPath: string = getGlobalPromptsPath(), ): { path: string; content: string }[] { diff --git a/extensions/intellij/rules.md b/extensions/intellij/rules.md index 1f95724c9..e929a9f7c 100644 --- a/extensions/intellij/rules.md +++ b/extensions/intellij/rules.md @@ -2,7 +2,7 @@ ## Project Purpose -JetBrains/IntelliJ extension for Continue AI code assistant. Provides chat, autocomplete, inline edit, and agent features within JetBrains IDEs. +JetBrains/IntelliJ extension for Continue AI code agent. Provides chat, autocomplete, inline edit, and agent features within JetBrains IDEs. ## Architecture diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index 589e37ff4..f122fdcb2 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -53,7 +53,7 @@ describe("GUI Test", () => { const description = await GUISelectors.getDescription(view); expect(await description.getText()).has.string( - "Log in to quickly build your first custom AI code assistant", + "Log in to quickly build your first custom AI code agent", ); }).timeout(DEFAULT_TIMEOUT.XL); @@ -281,7 +281,7 @@ describe("GUI Test", () => { // Verify the rule content const ruleItemText = await ruleItem.getText(); - expect(ruleItemText).to.include("Assistant rule"); + expect(ruleItemText).to.include("Agent rule"); expect(ruleItemText).to.include("Always applied"); expect(ruleItemText).to.include("TEST_SYS_MSG"); }).timeout(DEFAULT_TIMEOUT.MD); diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 5b7116451..5ae6a62b8 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -18,9 +18,9 @@ "homepage": "https://continue.dev", "qna": "https://github.com/continuedev/continue/issues/new/choose", "license": "Apache-2.0", - "displayName": "Continue - open-source AI code assistant", + "displayName": "Continue - open-source AI code agent", "pricing": "Free", - "description": "The leading open-source AI code assistant", + "description": "The leading open-source AI code agent", "publisher": "Continue", "engines": { "vscode": "^1.70.0", diff --git a/extensions/vscode/rules.md b/extensions/vscode/rules.md index 865f0dac5..5a1108c05 100644 --- a/extensions/vscode/rules.md +++ b/extensions/vscode/rules.md @@ -1,4 +1,4 @@ -The `extensions/vscode` folder contains code for the "Continue" VS Code Extension. Continue is a coding assistant extension which extends IDE functionality with AI. +The `extensions/vscode` folder contains code for the "Continue" VS Code Extension. Continue is a coding extension which extends IDE functionality with AI. Core IDE functionality, such as reading files, is implemented using the `VSCodeIDE` class. Code to enable editing/diff streaming into the editor, code suggestion autocompletion, and more can also be found in this directory. Shared code that has abstract logic for the extension is in `core/`. Avoid importing code from `core/` directly where possible. Core is designed to be bundalable as a binary. Use `core.invoke` to send messages to the diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx index 89ac2a81b..18240e098 100644 --- a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx @@ -15,14 +15,14 @@ export function AssistantOptions({ return ( <>
- +
{profiles?.length === 0 ? (
- No assistants found + No agents found
) : ( profiles?.map((profile, idx) => ( diff --git a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx index 86ba08916..13f768111 100644 --- a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx +++ b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx @@ -26,7 +26,7 @@ export function SelectedAssistantButton({ >
{selectedProfile === null ? ( - "Create your first assistant" + "Create your first agent" ) : configLoading ? ( - New Assistant + New Agent @@ -166,7 +166,7 @@ export function AssistantAndOrgListbox() { configLoading && "animate-spin-slow", )} /> - Reload assistants + Reload agents @@ -191,7 +191,7 @@ export function AssistantAndOrgListbox() { style={{ fontSize: tinyFont }} > - {getMetaKeyLabel()} ⇧ ' to toggle assistant + {getMetaKeyLabel()} ⇧ ' to toggle agent
diff --git a/gui/src/components/ExploreHubCard/index.tsx b/gui/src/components/ExploreHubCard/index.tsx index bf6327c35..07a9e2919 100644 --- a/gui/src/components/ExploreHubCard/index.tsx +++ b/gui/src/components/ExploreHubCard/index.tsx @@ -25,13 +25,10 @@ export function ExploreHubCard() { >
-

- Create Your Own Assistant -

+

Create Your Own Agent

- Discover and remix popular assistants, or create your own from - scratch + Discover and remix popular agents, or create your own from scratch

@@ -39,12 +36,12 @@ export function ExploreHubCard() { className="w-full" onClick={() => { ideMessenger.request("controlPlane/openUrl", { - path: "/explore/assistants", + path: "/?type=assistants", orgSlug: undefined, }); }} > - Explore Assistants + Explore Agents
- Or, create your own assistant from scratch + Or, create your own agent from scratch
diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx index 40abbea5f..22fcf971e 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx @@ -58,7 +58,7 @@ export function OnboardingCardLanding({ <>

You've reached the free trial limit. Visit the Continue Platform to - select a Coding Assistant. + select a Coding Agent.

diff --git a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx index f632cb10a..009fcb59b 100644 --- a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx @@ -90,7 +90,7 @@ const RuleCard: React.FC = ({ rule }) => { } else if (rule.source === "model-options-chat") { return "Base System Chat Message"; } else { - return "Assistant rule"; + return "Agent rule"; } } }, [rule]); diff --git a/gui/src/components/mainInput/belowMainInput/RulesPeek.tsx b/gui/src/components/mainInput/belowMainInput/RulesPeek.tsx index c887e9d9e..2dd29c13e 100644 --- a/gui/src/components/mainInput/belowMainInput/RulesPeek.tsx +++ b/gui/src/components/mainInput/belowMainInput/RulesPeek.tsx @@ -78,7 +78,7 @@ export function RulesPeekItem({ rule }: RulesPeekItemProps) {
- {rule.name || "Assistant rule"} + {rule.name || "Agent rule"}
diff --git a/gui/src/pages/config/HelpCenterSection.tsx b/gui/src/pages/config/HelpCenterSection.tsx index 7a711068c..df8fa7bbd 100644 --- a/gui/src/pages/config/HelpCenterSection.tsx +++ b/gui/src/pages/config/HelpCenterSection.tsx @@ -40,7 +40,7 @@ export function HelpCenterSection() {
ideMessenger.post("openUrl", "https://hub.continue.dev/") diff --git a/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx index e24eb5564..ce973d21a 100644 --- a/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx +++ b/gui/src/pages/config/IndexingProgress/IndexingProgressSubtext.tsx @@ -15,7 +15,7 @@ const STATUS_TO_SUBTITLE_TEXT: Record< indexing: "Click to pause", paused: "Click to resume", failed: "Click to retry", - disabled: "Click to open assistant configuration", + disabled: "Click to open agent configuration", cancelled: "Click to restart", }; diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index 649de4310..c808350bd 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -201,9 +201,9 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => {
{session && selectedProfile && !isLocalProfile(selectedProfile) && (
- {`If your hub secret values may have changed, refresh your assistants`} + {`If your hub secret values may have changed, refresh your agents`} - Refresh assistant secrets + Refresh agent secrets
)} diff --git a/gui/src/redux/slices/profilesSlice.ts b/gui/src/redux/slices/profilesSlice.ts index 16d0498ae..a60c7b775 100644 --- a/gui/src/redux/slices/profilesSlice.ts +++ b/gui/src/redux/slices/profilesSlice.ts @@ -28,7 +28,7 @@ const initialState: ProfilesState = { id: "personal", profiles: [ { - title: "Local Assistant", + title: "Local Agent", id: "local", errors: [], profileType: "local", diff --git a/gui/src/util/test/utils.ts b/gui/src/util/test/utils.ts index ebc4181d7..0326306cf 100644 --- a/gui/src/util/test/utils.ts +++ b/gui/src/util/test/utils.ts @@ -10,7 +10,7 @@ function logDomText() { const doc = parser.parseFromString(bodyText, "text/html"); let cleaned = doc.body.textContent ?? ""; cleaned = cleaned?.replace( - "No resultsAaModelsRulesDocsPromptsToolsMCPCreate your first assistant", + "No resultsAaModelsRulesDocsPromptsToolsMCPCreate your first agent", "", ); cleaned = cleaned?.replace( diff --git a/packages/config-yaml/src/__tests__/index.test.ts b/packages/config-yaml/src/__tests__/index.test.ts index 4ba87bb81..b537ede56 100644 --- a/packages/config-yaml/src/__tests__/index.test.ts +++ b/packages/config-yaml/src/__tests__/index.test.ts @@ -107,7 +107,7 @@ describe("E2E Scenarios", () => { uriType: "slug", fullSlug: { ownerSlug: "test-org", - packageSlug: "assistant-with-non-existing-block", + packageSlug: "agent-with-non-existing-block", versionSlug: "latest", }, }, @@ -130,7 +130,7 @@ describe("E2E Scenarios", () => { uriType: "slug", fullSlug: { ownerSlug: "test-org", - packageSlug: "assistant", + packageSlug: "agent", versionSlug: "latest", }, }, @@ -221,7 +221,7 @@ describe("E2E Scenarios", () => { uriType: "slug", fullSlug: { ownerSlug: "test-org", - packageSlug: "assistant", + packageSlug: "agent", versionSlug: "latest", }, }, @@ -276,7 +276,7 @@ describe("E2E Scenarios", () => { const unrolledConfig = await unrollAssistant( { uriType: "file", - fileUri: "./src/__tests__/local-files/duplicate-test-assistant.yaml", + fileUri: "./src/__tests__/local-files/duplicate-test-agent.yaml", }, registry, { diff --git a/packages/config-yaml/src/__tests__/local-files/duplicate-test-assistant.yaml b/packages/config-yaml/src/__tests__/local-files/duplicate-test-agent.yaml similarity index 95% rename from packages/config-yaml/src/__tests__/local-files/duplicate-test-assistant.yaml rename to packages/config-yaml/src/__tests__/local-files/duplicate-test-agent.yaml index 7f5eca13a..05a79683d 100644 --- a/packages/config-yaml/src/__tests__/local-files/duplicate-test-assistant.yaml +++ b/packages/config-yaml/src/__tests__/local-files/duplicate-test-agent.yaml @@ -1,4 +1,4 @@ -name: Duplicate Test Assistant +name: Duplicate Test Agent version: 0.0.1 schema: v1 diff --git a/packages/config-yaml/src/__tests__/packages/test-org/assistant-with-non-existing-block.yaml b/packages/config-yaml/src/__tests__/packages/test-org/agent-with-non-existing-block.yaml similarity index 64% rename from packages/config-yaml/src/__tests__/packages/test-org/assistant-with-non-existing-block.yaml rename to packages/config-yaml/src/__tests__/packages/test-org/agent-with-non-existing-block.yaml index 4f01b32b8..885b0dac7 100644 --- a/packages/config-yaml/src/__tests__/packages/test-org/assistant-with-non-existing-block.yaml +++ b/packages/config-yaml/src/__tests__/packages/test-org/agent-with-non-existing-block.yaml @@ -1,4 +1,4 @@ -name: Assistant with non-existing block +name: Agent with non-existing block version: 0.0.1 schema: v1 diff --git a/packages/config-yaml/src/__tests__/packages/test-org/assistant.yaml b/packages/config-yaml/src/__tests__/packages/test-org/agent.yaml similarity index 97% rename from packages/config-yaml/src/__tests__/packages/test-org/assistant.yaml rename to packages/config-yaml/src/__tests__/packages/test-org/agent.yaml index 6836f0c73..9a6d53e18 100644 --- a/packages/config-yaml/src/__tests__/packages/test-org/assistant.yaml +++ b/packages/config-yaml/src/__tests__/packages/test-org/agent.yaml @@ -1,4 +1,4 @@ -name: Assistant +name: Agent version: 0.0.1 schema: v1 diff --git a/packages/config-yaml/src/load/unroll.test.ts b/packages/config-yaml/src/load/unroll.test.ts index 5df66084b..9b2551f2d 100644 --- a/packages/config-yaml/src/load/unroll.test.ts +++ b/packages/config-yaml/src/load/unroll.test.ts @@ -8,7 +8,7 @@ describe("parseMarkdownRuleOrAssistantUnrolled tests", () => { fileUri: "./foo/bar.yaml", }; const yamlContent = ` -name: Test Assistant +name: Test Agent version: 1.0.0 models: @@ -17,7 +17,7 @@ models: provider: ollama `; const result = parseMarkdownRuleOrAssistantUnrolled(yamlContent, mockId); - expect(result).toHaveProperty("name", "Test Assistant"); + expect(result).toHaveProperty("name", "Test Agent"); expect(result).toHaveProperty("version", "1.0.0"); expect(result.models?.length).toBe(1); expect(result.models?.[0]).toHaveProperty("name", "model"); @@ -58,7 +58,7 @@ This is the rule fileUri: "./foo/bar.yaml", }; const invalidContent = ` -name: Test Assistant +name: Test Agent version: 1.0.0 model: # should be models diff --git a/packages/config-yaml/src/load/unroll.ts b/packages/config-yaml/src/load/unroll.ts index 21af99303..c2e524c4c 100644 --- a/packages/config-yaml/src/load/unroll.ts +++ b/packages/config-yaml/src/load/unroll.ts @@ -45,12 +45,12 @@ export function parseConfigYaml(configYaml: string): ConfigYaml { "cause" in e && e.cause === "result.success was false" ) { - throw new Error(`Failed to parse assistant: ${e.message}`); + throw new Error(`Failed to parse agent: ${e.message}`); } else if (e instanceof ZodError) { - throw new Error(`Failed to parse assistant: ${formatZodError(e)}`); + throw new Error(`Failed to parse agent: ${formatZodError(e)}`); } else { throw new Error( - `Failed to parse assistant: ${e instanceof Error ? e.message : e}`, + `Failed to parse agent: ${e instanceof Error ? e.message : e}`, ); } } @@ -65,7 +65,7 @@ export function parseAssistantUnrolled(configYaml: string): AssistantUnrolled { console.error( `Failed to parse unrolled assistant: ${e.message}\n\n${configYaml}`, ); - throw new Error(`Failed to parse unrolled assistant: ${formatZodError(e)}`); + throw new Error(`Failed to parse agent: ${formatZodError(e)}`); } }