merge in main

This commit is contained in:
BekahHW 2025-12-08 10:36:14 -05:00
commit 35f762f84d
159 changed files with 5513 additions and 3656 deletions

View file

@ -28,7 +28,7 @@ body:
- **OS**: macOS
- **Continue version**: v0.9.4
- **IDE version**: VSCode 1.85.1
- Model: Claude Sonnet 3.5
- Model: Claude Sonnet 4.5
- Agent configuration
value: |
- OS:

View file

@ -107,7 +107,7 @@ jobs:
ref: ${{ github.event.release.tag_name }}
- name: Import Apple certificate
uses: apple-actions/import-codesign-certs@v5
uses: apple-actions/import-codesign-certs@v6
with:
keychain: ${{ github.run_id }}
keychain-password: ${{ github.run_id }}
@ -491,7 +491,7 @@ jobs:
# Run Qodana inspections
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v2025.2.2
uses: JetBrains/qodana-action@v2025.2.3
with:
cache-default-branch-only: true

View file

@ -1,8 +1,24 @@
{
"name": "cn",
"dockerfile": "FROM runloop:runloop/universal-ubuntu-24.04-x86_64-dnd",
"system_setup_commands": [
"npm i -g @continuedev/cli@latest",
"sudo apt update",
"sudo apt install -y ripgrep"
]
"printf '#!/bin/sh\\nexit 101\\n' | sudo tee /usr/sbin/policy-rc.d > /dev/null && sudo chmod +x /usr/sbin/policy-rc.d",
"sudo apt install -y --no-install-recommends ripgrep chromium chromium-driver xvfb",
"sudo rm /usr/sbin/policy-rc.d",
"sudo mkdir -p /opt/google/chrome",
"sudo ln -s /usr/bin/chromium /opt/google/chrome/chrome",
"curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash",
"sudo apt-get install -y infisical"
],
"launch_parameters": {
"launch_commands": [
"export DISPLAY=:99",
"nohup Xvfb :99 -screen 0 1920x1080x24 > /tmp/xvfb.log 2>&1 &",
"sleep 2",
"sudo mkdir -p /home/user",
"for dir in /root/*; do [ -d \"$dir\" ] && [ -d \"$dir/.git\" ] && sudo ln -sf \"$dir\" \"/home/user/$(basename \"$dir\")\"; done"
]
}
}

View file

@ -0,0 +1,59 @@
name: Upload Runloop Blueprint
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/runloop-blueprint-template.json'
permissions:
contents: read
jobs:
upload-blueprint:
name: Upload Blueprint to Runloop
runs-on: ubuntu-latest
# Only run this workflow on the main repository (continuedev/continue)
if: github.repository == 'continuedev/continue'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Publish Blueprint to Runloop
env:
RUNLOOP_API_KEY: ${{ secrets.RUNLOOP_API_KEY }}
run: |
echo "Publishing blueprint 'cn' to Runloop API"
# Use blueprint configuration from template file
cp .github/workflows/runloop-blueprint-template.json blueprint.json
# Publish to Runloop API
response=$(curl -X POST "https://api.runloop.ai/v1/blueprints" \
-H "Authorization: Bearer $RUNLOOP_API_KEY" \
-H "Content-Type: application/json" \
-d @blueprint.json \
-w "%{http_code}" \
-s)
http_code=$(echo "$response" | tail -c 4)
response_body=$(echo "$response" | head -c -4)
if [[ "$http_code" == "200" ]] || [[ "$http_code" == "201" ]]; then
echo "✅ Successfully published blueprint to Runloop API"
echo "Response: $response_body"
# Extract blueprint ID if available
blueprint_id=$(echo "$response_body" | jq -r '.id // empty')
if [[ -n "$blueprint_id" ]]; then
echo "Blueprint ID: $blueprint_id"
echo "blueprint_id=$blueprint_id" >> $GITHUB_OUTPUT
fi
else
echo "❌ Failed to publish blueprint to Runloop API"
echo "HTTP Code: $http_code"
echo "Response: $response_body"
exit 1
fi

View file

@ -42086,8 +42086,8 @@
"license": "Apache-2.0",
"dependencies": {
"@anthropic-ai/sdk": "^0.67.0",
"@aws-sdk/client-bedrock-runtime": "^3.842.0",
"@aws-sdk/credential-providers": "^3.913.0",
"@aws-sdk/client-bedrock-runtime": "^3.925.0",
"@aws-sdk/credential-providers": "^3.929.0",
"@continuedev/config-types": "^1.0.14",
"@continuedev/config-yaml": "^1.36.0",
"@continuedev/fetch": "^1.6.0",

View file

@ -23,7 +23,15 @@ export function stringifyMcpPrompt(
let stringified = "";
for (const message of messages) {
if (message.content.type === "text") {
stringified += `<${message.content.role}/>\n${message.content.text}\n<${message.content.role}/>`;
const role =
"role" in message.content && typeof message.content.role === "string"
? message.content.role
: message.content._meta &&
"role" in message.content._meta &&
typeof message.content._meta.role === "string"
? message.content._meta.role
: "assistant";
stringified += `<${role}/>\n${message.content.text}\n<${role}/>`;
} else {
console.warn(
`MCP Prompt conversion warning: ${message.content.type} content is not yet supported, message skipped`,

View file

@ -42,9 +42,9 @@ function getContentsForNewBlock(blockType: BlockType): ConfigYaml {
configYaml.models = [
{
provider: "anthropic",
model: "claude-3-7-sonnet-latest",
model: "claude-sonnet-4-5",
apiKey: "${{ secrets.ANTHROPIC_API_KEY }}",
name: "Claude 3.7 Sonnet",
name: "Claude Sonnet 4.5",
roles: ["chat", "edit"],
},
];

View file

@ -80,17 +80,15 @@ class MCPContextProvider extends BaseContextProvider {
return await Promise.all(
contents.map(async (resource) => {
const content = resource.text;
if (typeof content !== "string") {
if (!("text" in resource) || typeof resource.text !== "string") {
throw new Error(
"Continue currently only supports text resources from MCP",
);
}
return {
name: resource.uri,
description: resource.uri,
content,
content: resource.text,
uri: {
type: "url",
value: resource.uri,

View file

@ -59,6 +59,25 @@ function trimmedMatch(
return null;
}
/**
* Case-insensitive matching strategy
*/
function caseInsensitiveMatch(
fileContent: string,
searchContent: string,
): BasicMatchResult | null {
const lowerFileContent = fileContent.toLowerCase();
const lowerSearchContent = searchContent.toLowerCase();
const index = lowerFileContent.indexOf(lowerSearchContent);
if (index !== -1) {
return {
startIndex: index,
endIndex: index + searchContent.length,
};
}
return null;
}
/**
* Whitespace-ignored matching strategy
* Removes all whitespace from both content and search, then finds the match
@ -284,6 +303,7 @@ function findFuzzyMatch(
const matchingStrategies: Array<{ strategy: MatchStrategy; name: string }> = [
{ strategy: exactMatch, name: "exactMatch" },
{ strategy: trimmedMatch, name: "trimmedMatch" },
{ strategy: caseInsensitiveMatch, name: "caseInsensitiveMatch" },
{ strategy: whitespaceIgnoredMatch, name: "whitespaceIgnoredMatch" },
// { strategy: findFuzzyMatch, name: "jaroWinklerFuzzyMatch" },
];

View file

@ -109,8 +109,11 @@ describe("findSearchMatch", () => {
const searchContent = "hello";
const result = findSearchMatch(fileContent, searchContent);
// Should not match due to case sensitivity, will fall through to other strategies
expect(result).toBeNull();
expect(result).toEqual({
startIndex: 0,
endIndex: 5,
strategyName: "caseInsensitiveMatch",
});
});
});
@ -152,6 +155,32 @@ describe("findSearchMatch", () => {
});
});
describe("Case insensitive match strategy fallback", () => {
it("should match when case differs", () => {
const result = findSearchMatch(
"const myVariable = 42;",
"const MYVARIABLE = 42;",
);
expect(result).toEqual({
startIndex: 0,
endIndex: 22,
strategyName: "caseInsensitiveMatch",
});
});
it("should match mixed case in middle of file", () => {
const result = findSearchMatch(
"function HandleClick() {",
"function handleclick() {",
);
expect(result).toEqual({
startIndex: 0,
endIndex: 24,
strategyName: "caseInsensitiveMatch",
});
});
});
describe("Whitespace ignored strategy fallback", () => {
it("should match content with different whitespace formatting", () => {
const fileContent = "function test() {\n return true;\n}";

View file

@ -113,6 +113,98 @@ line 3 foo`;
});
});
describe("case insensitive match strategy", () => {
it("should find multiple occurrences with different cases", () => {
const content = "const Foo = 'FOO';";
const search = "foo";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(2);
expect(matches[0]).toEqual({
startIndex: 6,
endIndex: 9,
strategyName: "caseInsensitiveMatch",
});
expect(matches[1]).toEqual({
startIndex: 13,
endIndex: 16,
strategyName: "caseInsensitiveMatch",
});
});
it("should handle mixed case patterns", () => {
const content = "const MyVariable = 'value';";
const search = "mYvArIaBlE";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(1);
expect(matches[0]).toEqual({
startIndex: 6,
endIndex: 16,
strategyName: "caseInsensitiveMatch",
});
});
it("should find multiple matches with varying cases", () => {
const content = "Hello world, HELLO universe, HeLLo there";
const search = "hello";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(3);
expect(matches[0]).toEqual({
startIndex: 0,
endIndex: 5,
strategyName: "caseInsensitiveMatch",
});
expect(matches[1]).toEqual({
startIndex: 13,
endIndex: 18,
strategyName: "caseInsensitiveMatch",
});
expect(matches[2]).toEqual({
startIndex: 29,
endIndex: 34,
strategyName: "caseInsensitiveMatch",
});
});
it("should handle multi-line content with case differences", () => {
const content = `function Test() {
return TRUE;
}`;
const search = "test";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(1);
expect(matches[0]).toEqual({
startIndex: 9,
endIndex: 13,
strategyName: "caseInsensitiveMatch",
});
});
it("should preserve original content length in match", () => {
const content = "const VARIABLE = 'value';";
const search = "variable";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(1);
expect(matches[0].endIndex - matches[0].startIndex).toBe(8);
expect(content.slice(matches[0].startIndex, matches[0].endIndex)).toBe(
"VARIABLE",
);
});
it("should not match when exact and trimmed strategies succeed", () => {
const content = "const foo = 'bar';";
const search = "foo";
const matches = findSearchMatches(content, search);
expect(matches).toHaveLength(1);
expect(matches[0].strategyName).toBe("exactMatch");
});
});
describe("whitespace ignored match strategy", () => {
it("should find matches ignoring internal whitespace", () => {
const content = "const foo = bar;";

7
core/index.d.ts vendored
View file

@ -267,6 +267,11 @@ export interface IContextProvider {
get deprecationMessage(): string | null;
}
export interface SessionUsage extends Usage {
/** Total cumulative cost in USD for all LLM API calls in this session */
totalCost: number;
}
export interface Session {
sessionId: string;
title: string;
@ -276,6 +281,8 @@ export interface Session {
mode?: MessageModes;
/** Optional: title of the selected chat model for this session */
chatModelTitle?: string | null;
/** Optional: cumulative usage and cost for all LLM API calls in this session */
usage?: SessionUsage;
}
export interface BaseSessionMetadata {

View file

@ -134,7 +134,7 @@ describe("Anthropic", () => {
test("streamChat should send a valid request", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -155,7 +155,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -177,7 +177,7 @@ describe("Anthropic", () => {
test("chat should send a valid request", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -198,7 +198,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -220,7 +220,7 @@ describe("Anthropic", () => {
test("streamComplete should send a valid request", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -238,7 +238,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -260,7 +260,7 @@ describe("Anthropic", () => {
test("complete should send a valid request", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -278,7 +278,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -301,7 +301,7 @@ describe("Anthropic", () => {
test("should handle system message", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -325,7 +325,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -347,7 +347,7 @@ describe("Anthropic", () => {
test("should handle tool calls", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -386,7 +386,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 8192,
stream: true,
messages: [
@ -424,7 +424,7 @@ describe("Anthropic", () => {
test("should handle custom max tokens", async () => {
const anthropic = new Anthropic({
apiKey: "test-api-key",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});
@ -446,7 +446,7 @@ describe("Anthropic", () => {
"x-api-key": "test-api-key",
},
body: {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
max_tokens: 1000,
stream: true,
messages: [
@ -470,7 +470,7 @@ describe("Anthropic", () => {
test("should throw error when API key is missing", async () => {
const anthropic = new Anthropic({
apiKey: "",
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiBase: "https://api.anthropic.com/v1/",
});

View file

@ -13,6 +13,7 @@ import { safeParseToolCallArgs } from "../../tools/parseArgs.js";
import { renderChatMessage, stripImages } from "../../util/messageContent.js";
import { extractBase64FromDataUrl } from "../../util/url.js";
import { BaseLLM } from "../index.js";
import { LlmApiRequestType } from "../openaiTypeConverters.js";
import {
GeminiChatContent,
GeminiChatContentPart,
@ -41,6 +42,15 @@ class Gemini extends BaseLLM {
maxEmbeddingBatchSize: 100,
};
protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = [
"chat",
"embed",
"list",
"rerank",
"streamChat",
"streamFim",
];
// Function to convert completion options to Gemini format
public convertArgs(options: CompletionOptions): GeminiGenerationConfig {
// should be public for use within VertexAI

View file

@ -6,13 +6,13 @@ import OpenRouter from "./OpenRouter";
describe("OpenRouter Anthropic Caching", () => {
it("should detect Anthropic models correctly", () => {
const openRouter = new OpenRouter({
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiKey: "test-key",
});
// Test private method through modifyChatBody
const body: ChatCompletionCreateParams = {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
messages: [],
};
@ -22,7 +22,7 @@ describe("OpenRouter Anthropic Caching", () => {
it("should add cache_control to user messages when caching is enabled", () => {
const openRouter = new OpenRouter({
model: "anthropic/claude-3.5-sonnet",
model: "anthropic/claude-sonnet-4.5",
apiKey: "test-key",
cacheBehavior: {
cacheConversation: true,
@ -31,7 +31,7 @@ describe("OpenRouter Anthropic Caching", () => {
});
const body: ChatCompletionCreateParams = {
model: "anthropic/claude-3.5-sonnet",
model: "anthropic/claude-sonnet-4.5",
messages: [
{ role: "user", content: "First message" },
{ role: "assistant", content: "Response" },
@ -71,7 +71,7 @@ describe("OpenRouter Anthropic Caching", () => {
it("should correctly handle cache_control with system messages present", () => {
const openRouter = new OpenRouter({
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiKey: "test-key",
cacheBehavior: {
cacheConversation: true,
@ -80,7 +80,7 @@ describe("OpenRouter Anthropic Caching", () => {
});
const body: ChatCompletionCreateParams = {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
messages: [
{ role: "system", content: "You are a helpful assistant" },
{ role: "user", content: "First user message" },
@ -137,7 +137,7 @@ describe("OpenRouter Anthropic Caching", () => {
it("should add cache_control to system message when caching is enabled", () => {
const openRouter = new OpenRouter({
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiKey: "test-key",
cacheBehavior: {
cacheConversation: false,
@ -146,7 +146,7 @@ describe("OpenRouter Anthropic Caching", () => {
});
const body: ChatCompletionCreateParams = {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
messages: [
{ role: "system", content: "You are a helpful assistant" },
{ role: "user", content: "Hello" },
@ -176,7 +176,7 @@ describe("OpenRouter Anthropic Caching", () => {
it("should handle array content correctly", () => {
const openRouter = new OpenRouter({
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
apiKey: "test-key",
cacheBehavior: {
cacheConversation: true,
@ -185,7 +185,7 @@ describe("OpenRouter Anthropic Caching", () => {
});
const body: ChatCompletionCreateParams = {
model: "claude-3-5-sonnet-latest",
model: "claude-sonnet-4-5",
messages: [
{
role: "user",

View file

@ -5,6 +5,7 @@ import { ChatMessage, CompletionOptions, LLMOptions } from "../../index.js";
import { renderChatMessage, stripImages } from "../../util/messageContent.js";
import { BaseLLM } from "../index.js";
import { LlmApiRequestType } from "../openaiTypeConverters.js";
import Anthropic from "./Anthropic.js";
import Gemini from "./Gemini.js";
@ -23,6 +24,15 @@ class VertexAI extends BaseLLM {
private clientPromise: Promise<AuthClient | void>;
protected useOpenAIAdapterFor: (LlmApiRequestType | "*")[] = [
"chat",
"embed",
"list",
"rerank",
"streamChat",
"streamFim",
];
/*
Vertex Supports 3 different URL formats
1. Standard VertexAI: e.g. https://{location}-aiplatform.googleapis.com/v1/projects/{project}/locations/{location}/publishers/google/models/{model}:streamGenerateContent

View file

@ -179,17 +179,11 @@ describe("PROVIDER_TOOL_SUPPORT", () => {
});
it("should return undefined for Claude Haiku and Opus models", () => {
expect(supportsFn("anthropic.claude-3-5-haiku-20240307-v1:0")).toBe(
false,
);
expect(supportsFn("anthropic.claude-3.5-haiku-20240620-v1:0")).toBe(
false,
);
expect(supportsFn("anthropic.claude-3-7-haiku-20240620-v1:0")).toBe(
false,
);
expect(supportsFn("anthropic.claude-3-5-opus-20240620-v1:0")).toBe(false);
expect(supportsFn("anthropic.claude-3.7-opus-20240620-v1:0")).toBe(false);
expect(supportsFn("anthropic.claude-3-5-haiku-20240307-v1:0")).toBe(true);
expect(supportsFn("anthropic.claude-3.5-haiku-20240620-v1:0")).toBe(true);
expect(supportsFn("anthropic.claude-3-7-haiku-20240620-v1:0")).toBe(true);
expect(supportsFn("anthropic.claude-3-5-opus-20240620-v1:0")).toBe(true);
expect(supportsFn("anthropic.claude-3.7-opus-20240620-v1:0")).toBe(true);
});
it("should return undefined for other unsupported models", () => {

View file

@ -14,39 +14,17 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
}
} catch (e) {}
return [
"claude-3-5",
"claude-3.5",
"claude-3-7",
"claude-3.7",
"claude-sonnet-4",
"claude-4-sonnet",
"gpt-4",
"o3",
"gemini",
"claude-opus-4",
"gemma",
].some((part) => model.toLowerCase().startsWith(part));
return ["claude", "gpt-4", "o3", "gemini", "gemma"].some((part) =>
model.toLowerCase().startsWith(part),
);
},
anthropic: (model) => {
const lower = model.toLowerCase();
if (
[
"claude-3-5",
"claude-3.5",
"claude-3-7",
"claude-3.7",
"claude-sonnet-4",
"claude-4-sonnet",
"claude-opus-4",
].some((part) => lower.startsWith(part))
) {
if (model.includes("claude-2") || model.includes("claude-instant")) {
return false;
}
if (["claude"].some((part) => model.toLowerCase().startsWith(part))) {
return true;
}
if (lower.includes("claude") && lower.includes("4-5")) {
return true;
}
return false;
},
azure: (model) => {
@ -125,15 +103,12 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
);
},
bedrock: (model) => {
if (model.includes("claude-2") || model.includes("claude-instant")) {
return false;
}
if (
[
"claude-3-5-sonnet",
"claude-3.5-sonnet",
"claude-3-7-sonnet",
"claude-3.7-sonnet",
"claude-sonnet-4",
"claude-4-sonnet",
"claude-opus-4",
"claude",
"nova-lite",
"nova-pro",
"nova-micro",
@ -280,8 +255,7 @@ export const PROVIDER_TOOL_SUPPORT: Record<string, (model: string) => boolean> =
"openai/o3",
"openai/o4",
"openai/gpt-oss",
"anthropic/claude-3",
"anthropic/claude-4",
"anthropic/claude",
"microsoft/phi-3",
"google/gemini-flash-1.5",
"google/gemini-2",
@ -391,7 +365,8 @@ export function isRecommendedAgentModel(modelName: string): boolean {
const recs: RegExp[][] = [
[/o[134]/],
[/deepseek/, /r1|reasoner/],
[/gemini/, /2\.5|3/, /pro/],
[/gemini/, /2\.5/, /pro/],
[/gemini/, /3-pro/],
[/gpt/, /-5|5\.1/],
[/claude/, /sonnet/, /3\.7|3-7|-4/],
[/claude/, /opus/, /-4/],

View file

@ -12,19 +12,21 @@ function calculateAnthropicCost(
// Normalize model name to handle various formats
const normalizedModel = model.toLowerCase();
// Define pricing per million tokens (MTok)
// Define pricing per million tokens (MTok) by model family prefix
const pricing: Record<
string,
{ input: number; output: number; cacheWrite: number; cacheRead: number }
> = {
// Claude Opus 4 (most intelligent model)
"claude-3-opus": {
input: 15,
output: 75,
cacheWrite: 18.75,
cacheRead: 1.5,
// Claude Opus 4.5 (most intelligent model)
"claude-opus-4-5": {
input: 5,
output: 25,
cacheWrite: 6.25,
cacheRead: 0.5,
},
"claude-3-opus-20240229": {
// Claude Opus 4 (legacy)
"claude-3-opus": {
input: 15,
output: 75,
cacheWrite: 18.75,
@ -38,18 +40,6 @@ function calculateAnthropicCost(
cacheWrite: 3.75,
cacheRead: 0.3,
},
"claude-3-5-sonnet-20241022": {
input: 3,
output: 15,
cacheWrite: 3.75,
cacheRead: 0.3,
},
"claude-3-5-sonnet-20240620": {
input: 3,
output: 15,
cacheWrite: 3.75,
cacheRead: 0.3,
},
// Claude Haiku 3.5 (fastest, most cost-effective)
"claude-3-5-haiku": {
@ -58,12 +48,6 @@ function calculateAnthropicCost(
cacheWrite: 1,
cacheRead: 0.08,
},
"claude-3-5-haiku-20241022": {
input: 0.8,
output: 4,
cacheWrite: 1,
cacheRead: 0.08,
},
// Legacy Claude 3 Haiku
"claude-3-haiku": {
@ -72,35 +56,16 @@ function calculateAnthropicCost(
cacheWrite: 0.3,
cacheRead: 0.03,
},
"claude-3-haiku-20240307": {
input: 0.25,
output: 1.25,
cacheWrite: 0.3,
cacheRead: 0.03,
},
};
// Find matching pricing model
let modelPricing = pricing[normalizedModel];
// Sort keys by length (longest first) to match most specific patterns first
const sortedKeys = Object.keys(pricing).sort((a, b) => b.length - a.length);
// If exact match not found, try to find by partial match
if (!modelPricing) {
for (const [key, value] of Object.entries(pricing)) {
if (normalizedModel.includes(key) || key.includes(normalizedModel)) {
modelPricing = value;
break;
}
}
}
// If still no match, try common patterns
if (!modelPricing) {
if (normalizedModel.includes("opus")) {
modelPricing = pricing["claude-3-opus"];
} else if (normalizedModel.includes("sonnet")) {
modelPricing = pricing["claude-3-5-sonnet"];
} else if (normalizedModel.includes("haiku")) {
modelPricing = pricing["claude-3-5-haiku"];
let modelPricing = null;
for (const prefix of sortedKeys) {
if (normalizedModel.startsWith(prefix)) {
modelPricing = pricing[prefix];
break;
}
}
@ -167,14 +132,90 @@ function calculateAnthropicCost(
};
}
function calculateOpenAICost(
model: string,
usage: Usage,
): CostBreakdown | null {
// Normalize model name
const normalizedModel = model.toLowerCase();
// Define pricing per million tokens (MTok) by model family prefix
const pricing: Record<string, { input: number; output: number }> = {
// GPT-4o models (most specific first)
"gpt-4o-mini": { input: 0.15, output: 0.6 },
"gpt-4o": { input: 2.5, output: 10 },
// GPT-4 Turbo models
"gpt-4-turbo": { input: 10, output: 30 },
// GPT-3.5 Turbo models (most specific first)
"gpt-3.5-turbo-0125": { input: 0.5, output: 1.5 },
"gpt-3.5-turbo-1106": { input: 1, output: 2 },
"gpt-3.5-turbo": { input: 1.5, output: 2 },
// Base GPT-4 (fallback for other gpt-4 variants)
"gpt-4": { input: 30, output: 60 },
};
// Sort keys by length (longest first) to match most specific patterns first
const sortedKeys = Object.keys(pricing).sort((a, b) => b.length - a.length);
let modelPricing = null;
for (const prefix of sortedKeys) {
if (normalizedModel.startsWith(prefix)) {
modelPricing = pricing[prefix];
break;
}
}
if (!modelPricing) {
return null; // Unknown model
}
// Calculate costs
const inputCost = (usage.promptTokens / 1_000_000) * modelPricing.input;
const outputCost = (usage.completionTokens / 1_000_000) * modelPricing.output;
// Build breakdown components
const breakdownParts: string[] = [];
if (usage.promptTokens > 0) {
breakdownParts.push(
`Input: ${usage.promptTokens.toLocaleString()} tokens × $${modelPricing.input}/MTok = $${inputCost.toFixed(6)}`,
);
}
if (usage.completionTokens > 0) {
breakdownParts.push(
`Output: ${usage.completionTokens.toLocaleString()} tokens × $${modelPricing.output}/MTok = $${outputCost.toFixed(6)}`,
);
}
const totalCost = inputCost + outputCost;
// Build final breakdown string
let breakdown = `Model: ${model}\n`;
breakdown += breakdownParts.join("\n");
if (breakdownParts.length > 1) {
breakdown += `\nTotal: $${totalCost.toFixed(6)}`;
}
return {
cost: totalCost,
breakdown,
};
}
export function calculateRequestCost(
provider: string,
model: string,
usage: Usage,
): CostBreakdown | null {
switch (provider) {
switch (provider.toLowerCase()) {
case "anthropic":
return calculateAnthropicCost(model, usage);
case "openai":
return calculateOpenAICost(model, usage);
default:
return null;
}

View file

@ -0,0 +1,256 @@
import { describe, expect, it } from "vitest";
import type { Usage } from "../..";
import { calculateRequestCost, CostBreakdown } from "./calculateRequestCost";
interface TestCase {
provider: string;
model: string;
promptTokens: number;
completionTokens: number;
cachedTokens?: number;
cacheWriteTokens?: number;
expectedCost: number | null;
description?: string;
}
describe("calculateRequestCost", () => {
const testCases: TestCase[] = [
// Anthropic Claude 3.5 Sonnet
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0105,
description: "Claude 3.5 Sonnet basic usage",
},
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 1000,
completionTokens: 500,
cachedTokens: 2000,
expectedCost: 0.0111,
description: "Claude 3.5 Sonnet with cache reads",
},
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 1000,
completionTokens: 500,
cacheWriteTokens: 300,
expectedCost: 0.011625,
description: "Claude 3.5 Sonnet with cache writes",
},
{
provider: "anthropic",
model: "claude-3-5-sonnet-20240620",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0105,
description: "Claude 3.5 Sonnet (older version)",
},
// Anthropic Claude 3.5 Haiku
{
provider: "anthropic",
model: "claude-3-5-haiku-20241022",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0028,
description: "Claude 3.5 Haiku",
},
// Anthropic Claude 3 Haiku (legacy)
{
provider: "anthropic",
model: "claude-3-haiku-20240307",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.000875,
description: "Claude 3 Haiku legacy",
},
// Anthropic Claude 3 Opus
{
provider: "anthropic",
model: "claude-3-opus-20240229",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0525,
description: "Claude 3 Opus",
},
// Anthropic Claude Opus 4.5
{
provider: "anthropic",
model: "claude-opus-4-5-20251101",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0175,
description: "Claude Opus 4.5 basic usage",
},
{
provider: "anthropic",
model: "claude-opus-4-5-latest",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0175,
description: "Claude Opus 4.5 latest (partial match)",
},
{
provider: "anthropic",
model: "claude-opus-4-5-20251101",
promptTokens: 1000,
completionTokens: 500,
cachedTokens: 2000,
expectedCost: 0.0185,
description: "Claude Opus 4.5 with cache reads",
},
{
provider: "anthropic",
model: "claude-opus-4-5-20251101",
promptTokens: 1000,
completionTokens: 500,
cacheWriteTokens: 300,
expectedCost: 0.019375,
description: "Claude Opus 4.5 with cache writes",
},
// OpenAI GPT-4
{
provider: "openai",
model: "gpt-4",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.06,
description: "GPT-4 basic usage",
},
{
provider: "openai",
model: "gpt-4-turbo",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.025,
description: "GPT-4 Turbo",
},
{
provider: "openai",
model: "gpt-4o",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0075,
description: "GPT-4o",
},
{
provider: "openai",
model: "gpt-4o-mini",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.00045,
description: "GPT-4o-mini",
},
// OpenAI GPT-3.5
{
provider: "openai",
model: "gpt-3.5-turbo-0125",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.00125,
description: "GPT-3.5 Turbo",
},
// Edge cases
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 0,
completionTokens: 0,
expectedCost: 0,
description: "Zero tokens",
},
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 1000,
completionTokens: 0,
expectedCost: 0.003,
description: "Only input tokens",
},
{
provider: "anthropic",
model: "claude-3-5-sonnet-20241022",
promptTokens: 0,
completionTokens: 500,
expectedCost: 0.0075,
description: "Only output tokens",
},
// Case insensitivity
{
provider: "ANTHROPIC",
model: "claude-3-5-sonnet-20241022",
promptTokens: 1000,
completionTokens: 500,
expectedCost: 0.0105,
description: "Provider name case insensitive",
},
// Unknown models/providers
{
provider: "anthropic",
model: "claude-unknown-model",
promptTokens: 1000,
completionTokens: 500,
expectedCost: null,
description: "Unknown Anthropic model",
},
{
provider: "google",
model: "gemini-pro",
promptTokens: 1000,
completionTokens: 500,
expectedCost: null,
description: "Unknown provider",
},
];
testCases.forEach(
({
provider,
model,
promptTokens,
completionTokens,
cachedTokens,
cacheWriteTokens,
expectedCost,
description,
}) => {
it(description || `${provider}/${model}`, () => {
const usage: Usage = {
promptTokens,
completionTokens,
promptTokensDetails:
cachedTokens || cacheWriteTokens
? {
cachedTokens,
cacheWriteTokens,
}
: undefined,
};
const result = calculateRequestCost(provider, model, usage);
if (expectedCost === null) {
expect(result).toBeNull();
} else {
expect(result).not.toBeNull();
expect(result!.cost).toBeCloseTo(expectedCost, 6);
}
});
},
);
});

332
core/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -64,7 +64,7 @@
"@continuedev/llm-info": "file:../packages/llm-info",
"@continuedev/openai-adapters": "file:../packages/openai-adapters",
"@continuedev/terminal-security": "file:../packages/terminal-security",
"@modelcontextprotocol/sdk": "^1.12.0",
"@modelcontextprotocol/sdk": "^1.24.0",
"@mozilla/readability": "^0.5.0",
"@octokit/rest": "^20.1.1",
"@sentry/cli": "^2.50.2",

View file

@ -1,6 +1,6 @@
import { expect, test, vi } from "vitest";
import { ToolExtras } from "../..";
import { readFileRangeImpl } from "./readFileRange";
import { MAX_CHAR_POSITION, readFileRangeImpl } from "./readFileRange";
// Mock the dependencies
vi.mock("../../util/ideUtils", () => ({
@ -76,7 +76,7 @@ test("readFileRangeImpl handles out-of-bounds ranges gracefully", async () => {
"file:///test.txt",
{
start: { line: 99, character: 0 }, // 100 - 1
end: { line: 104, character: Number.MAX_SAFE_INTEGER }, // 105 - 1
end: { line: 104, character: MAX_CHAR_POSITION }, // 105 - 1
},
);
@ -84,7 +84,7 @@ test("readFileRangeImpl handles out-of-bounds ranges gracefully", async () => {
"file:///test.txt",
{
start: { line: 4, character: 0 }, // 5 - 1
end: { line: 99, character: Number.MAX_SAFE_INTEGER }, // 100 - 1
end: { line: 99, character: MAX_CHAR_POSITION }, // 100 - 1
},
);
});
@ -199,6 +199,6 @@ test("readFileRangeImpl handles normal ranges correctly", async () => {
// Verify correct 0-based conversion
expect(mockIde.readRangeInFile).toHaveBeenCalledWith("file:///test.txt", {
start: { line: 1, character: 0 }, // 2 - 1
end: { line: 3, character: Number.MAX_SAFE_INTEGER }, // 4 - 1
end: { line: 3, character: MAX_CHAR_POSITION }, // 4 - 1
});
});

View file

@ -7,6 +7,10 @@ import { getNumberArg, getStringArg } from "../parseArgs";
import { throwIfFileExceedsHalfOfContext } from "./readFileLimit";
import { ContinueError, ContinueErrorReason } from "../../util/errors";
// Use Int.MAX_VALUE from Java/Kotlin (2^31 - 1) instead of JavaScript's Number.MAX_SAFE_INTEGER
// to ensure compatibility with IntelliJ's Kotlin Position type which uses Int for character field
export const MAX_CHAR_POSITION = 2147483647;
export const readFileRangeImpl: ToolImpl = async (args, extras) => {
const filepath = getStringArg(args, "filepath");
const startLine = getNumberArg(args, "startLine");
@ -52,7 +56,7 @@ export const readFileRangeImpl: ToolImpl = async (args, extras) => {
},
end: {
line: endLine - 1, // Convert from 1-based to 0-based
character: Number.MAX_SAFE_INTEGER, // Read to end of line
character: MAX_CHAR_POSITION, // Read to end of line
},
});

View file

@ -18,15 +18,38 @@ export function getStringArg(
argName: string,
allowEmpty = false,
): string {
if (!args || !(argName in args) || typeof args[argName] !== "string") {
if (!args || !(argName in args)) {
throw new Error(
`\`${argName}\` argument is required${allowEmpty ? "" : " and must not be empty or whitespace-only"}. (type string)`,
);
}
if (!allowEmpty && !args[argName].trim()) {
let value = args[argName];
// Handle case where JSON was parsed into an object by the tool call parser.
// If the arguments to the tool call are valid JSON (e.g. the model attempts to create a .json file)
// the earlier call to JSON.parse() will have deeply parsed the returned arguments.
// If that has happened, convert back to string.
if (typeof value === "object" && value !== null) {
try {
value = JSON.stringify(value);
return value;
} catch (e) {
//Swallow this, because it might be fine later.
}
}
if (typeof value !== "string") {
throw new Error(
`\`${argName}\` argument is required${allowEmpty ? "" : " and must not be empty or whitespace-only"}. (type string)`,
);
}
if (!allowEmpty && !value.trim()) {
throw new Error(`Argument ${argName} must not be empty or whitespace-only`);
}
return args[argName];
return value;
}
export function getOptionalStringArg(

View file

@ -144,6 +144,50 @@ describe("getStringArg", () => {
"`name` argument is required and must not be empty or whitespace-only. (type string)",
);
});
it("should convert parsed JSON object to string for contents parameter", () => {
// This simulates the case where JSON.parse() has converted a JSON string into an object
const args = { contents: { key: "value", number: 123 } };
const result = getStringArg(args, "contents");
expect(result).toBe('{"key":"value","number":123}');
});
it("should convert nested JSON object to string for contents parameter", () => {
const args = {
contents: {
user: {
name: "John",
details: {
age: 30,
preferences: ["coding", "reading"],
},
},
},
};
const result = getStringArg(args, "contents");
const expected =
'{"user":{"name":"John","details":{"age":30,"preferences":["coding","reading"]}}}';
expect(result).toBe(expected);
});
it("should convert JSON array to string for contents parameter", () => {
const args = { contents: ["item1", "item2", { key: "value" }] };
const result = getStringArg(args, "contents");
expect(result).toBe('["item1","item2",{"key":"value"}]');
});
it("should handle contents parameter that is already a string", () => {
const args = { contents: "already a string" };
const result = getStringArg(args, "contents");
expect(result).toBe("already a string");
});
it("should handle contents parameter that is null", () => {
const args = { contents: null };
expect(() => getStringArg(args, "contents")).toThrowError(
"`contents` argument is required and must not be empty or whitespace-only. (type string)",
);
});
});
describe("getOptionalStringArg", () => {

View file

@ -114,6 +114,9 @@ export class HistoryManager {
if (session.chatModelTitle !== undefined) {
orderedSession.chatModelTitle = session.chatModelTitle;
}
if (session.usage !== undefined) {
orderedSession.usage = session.usage;
}
fs.writeFileSync(
getSessionFilePath(session.sessionId),

View file

@ -21,6 +21,10 @@ If you want to have the best autocomplete experience, we recommend using Codestr
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Codestral
provider: mistral
@ -68,6 +72,10 @@ Then, add the model to your configuration:
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen 1.5b Autocomplete Model
provider: ollama
@ -104,6 +112,10 @@ For example:
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen3 without Thinking for Autocomplete
provider: ollama

View file

@ -8,6 +8,10 @@ The SambaNova Cloud is a cloud platform for running large AI models with the wor
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: GPT OSS 120B
provider: sambanova

View file

@ -33,6 +33,10 @@ Add your Ask Sage model to your Continue configuration file.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: GPT-4 gov
provider: askSage
@ -66,6 +70,10 @@ For secure environments, specify your DoD CA bundle path:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: GPT-4 gov
provider: askSage

View file

@ -12,6 +12,10 @@ Cerebras Inference uses specialized silicon to provides fast inference.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Cerebras Llama 3.1 70B
provider: cerebras

View file

@ -8,6 +8,10 @@ Cloudflare Workers AI can be used for both chat and tab autocompletion in Contin
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3 8B
provider: cloudflare

View file

@ -12,6 +12,10 @@ We recommend configuring **Command A** as your chat model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Command A 03-2025
provider: cohere
@ -48,6 +52,10 @@ We recommend configuring **embed-v4.0** as your embeddings model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Cohere Embed v4.0
provider: cohere
@ -77,6 +85,10 @@ We recommend configuring **rerank-v3.5** as your reranking model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Cohere Rerank v3.5
provider: cohere

View file

@ -16,6 +16,10 @@ description: "Configure DeepInfra with Continue to access low-cost inference for
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: deepinfra

View file

@ -16,6 +16,10 @@ slug: ../deepseek
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: deepseek

View file

@ -8,6 +8,10 @@ description: "Configure Flowise with Continue to integrate with this low-code/no
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Flowise
provider: flowise

View file

@ -18,6 +18,10 @@ Function Network supports a number of models for chat. We recommend using LLama
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3.1 70b
provider: function-network
@ -52,6 +56,10 @@ Function Network supports a number of models for autocomplete. We recommend usin
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Deepseek Coder 6.7b
provider: function-network
@ -82,6 +90,10 @@ Function Network supports a number of models for embeddings. We recommend using
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: BGE Base En
provider: function-network

View file

@ -12,6 +12,10 @@ sidebarTitle: "Groq"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: groq

View file

@ -1,37 +0,0 @@
---
title: "Hugging Face"
---
<Info>
Get started with [Hugging Face Inference Endpoints](https://endpoints.huggingface.co/)
</Info>
## Configuration
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: <MODEL_NAME>
provider: huggingface-inference-api
model: <MODEL_ID>
apiKey: <YOUR_HF_TOKEN>
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
```
</Tab>
<Tab title="JSON (Deprecated)">
```json title="config.json"
{
"models": [
{
"title": "<MODEL_NAME>",
"provider": "huggingface-inference-api",
"model": "<MODEL_ID>",
"apiKey": "<YOUR_HF_TOKEN>",
"apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
}
]
}
```
</Tab>
</Tabs>

View file

@ -14,6 +14,10 @@ IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: IPEX-LLM
provider: ollama
@ -40,6 +44,10 @@ If you would like to reach the Ollama service from another machine, make sure yo
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: IPEX-LLM
provider: ollama

View file

@ -10,6 +10,10 @@ Kindo offers centralized control over your organization's AI operations, ensurin
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Claude 3.5 Sonnet
provider: kindo
@ -38,6 +42,10 @@ Kindo offers centralized control over your organization's AI operations, ensurin
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: WhiteRabbitNeo
provider: kindo

View file

@ -33,6 +33,10 @@ If you need custom settings, you can manually configure Lemonade:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Lemonade
provider: lemonade

View file

@ -11,6 +11,10 @@ title: "Llama.cpp"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: llama.cpp

View file

@ -8,6 +8,10 @@ A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contai
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llamafile
provider: llamafile

View file

@ -10,6 +10,10 @@ keywords: [llama, stack, local, api, inference]
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: llamastack

View file

@ -16,6 +16,10 @@ slug: ../mistral
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: mistral

View file

@ -15,6 +15,10 @@ To use Moonshot AI models, you need to:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Moonshot
provider: moonshot
@ -61,6 +65,10 @@ Here's a complete configuration example:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Moonshot-8K
provider: moonshot

View file

@ -8,6 +8,10 @@ Morph provides a fast apply model that helps you quickly and accurately apply co
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- uses: morphllm/morph-v0
with:
@ -15,6 +19,10 @@ Morph provides a fast apply model that helps you quickly and accurately apply co
```
or
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
- name: Morph Fast Apply
provider: openai
model: morph-v2
@ -54,6 +62,10 @@ We recommend configuring **morph-embedding-v2** as your embeddings model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Morph Embeddings
provider: openai
@ -85,6 +97,10 @@ We recommend configuring **morph-rerank-v2** as your reranking model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Morph Reranker
provider: cohere

View file

@ -8,6 +8,10 @@ description: "Configure Msty with Continue to easily run both online and local o
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Msty
provider: msty
@ -47,6 +51,10 @@ If you need to send custom headers for authentication, you may use the `requestO
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Msty
provider: msty

View file

@ -14,6 +14,10 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: DeepSeek R1
provider: nebius
@ -44,6 +48,10 @@ Available models can be found on the [Nebius AI Studio embeddings page](https://
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: BAAI Embedder
provider: nebius

View file

@ -8,6 +8,10 @@ description: "Configure Novita AI with Continue to access their affordable and r
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3.1 8B
provider: novita

View file

@ -11,6 +11,10 @@ title: "NVIDIA"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: nvidia

View file

@ -14,6 +14,10 @@ OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API
Example configuration once OVMS is launched:
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: OVMS CodeLlama-7b-Instruct-hf
provider: openai

View file

@ -20,6 +20,10 @@ Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of ou
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen2.5-Coder-32B-Instruct
provider: ovhcloud
@ -50,6 +54,10 @@ We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: BGE Multilingual Gemma2
provider: ovhcloud

View file

@ -8,6 +8,10 @@ Replicate is a great option for newly released language models or models that yo
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Replicate CodeLLama
provider: replicate

View file

@ -10,6 +10,10 @@ Here is an example Sagemaker configuration setup:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: deepseek-6.7b-instruct
provider: sagemaker

View file

@ -20,6 +20,10 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen2.5-Coder-32B-Instruct
provider: scaleway
@ -56,6 +60,10 @@ We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: BGE Multilingual Gemma2
provider: scaleway

View file

@ -15,6 +15,10 @@ We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen
provider: siliconflow
@ -47,6 +51,10 @@ We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen
provider: siliconflow

View file

@ -8,6 +8,10 @@ TextGenWebUI is a comprehensive, open-source language model UI and local server.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Text Generation WebUI
provider: text-gen-webui

View file

@ -16,6 +16,10 @@ sidebarTitle: "Together AI"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: together

View file

@ -16,6 +16,10 @@ We recommend configuring **Llama3.1 8B** as your chat model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama3.1 8B Instruct
provider: vllm
@ -46,6 +50,10 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Qwen2.5-Coder 1.5B
provider: vllm
@ -76,6 +84,10 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: VLLM Nomad Embed Text
provider: vllm

View file

@ -46,6 +46,10 @@ Add the following configuration:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: watsonx - Model Name
provider: watsonx
@ -83,6 +87,10 @@ If you are using a custom deployment endpoint, set `deploymentID` to the model's
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: watsonx - Model Name
provider: watsonx
@ -121,6 +129,10 @@ You can also configure generation parameters, such as temperature, topP, topK, f
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Granite Code 20b
provider: watsonx
@ -180,6 +192,10 @@ Granite models are recommended for tab auto complete. The configuration is simil
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Granite Code 8b
provider: watsonx
@ -217,6 +233,10 @@ To view the list of available embeddings models, visit [this page](https://datap
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Watsonx Embedder
provider: watsonx
@ -250,6 +270,10 @@ To view the list of available embeddings models, visit [this page](https://datap
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Watsonx Reranker
provider: watsonx

View file

@ -12,6 +12,10 @@ slug: ../xai
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: xai

View file

@ -20,6 +20,7 @@ These are the most commonly used model providers that offer a wide range of capa
| [xAI](/customize/model-providers/more/xAI) | Grok models from xAI | Chat, Edit, Apply |
| [Vertex AI](/customize/model-providers/top-level/vertexai) | Google Cloud's machine learning platform | Chat, Edit, Apply, Embeddings |
| [Inception](/customize/model-providers/top-level/inception) | On-premises open-source model runners | Chat, Edit, Apply |
| [HuggingFace](/customize/model-providers/top-level/huggingfaceinference) | Platform for open source models with inference providers and endpoints | Chat, Edit, Apply, Embeddings |
## Additional Model Providers
@ -37,7 +38,6 @@ Beyond the top-level providers, Continue supports many other options:
| [Cohere](/customize/model-providers/more/cohere) | Models specialized for semantic search and text generation |
| [NVIDIA](/customize/model-providers/more/nvidia) | GPU-accelerated model hosting |
| [Cloudflare](/customize/model-providers/more/cloudflare) | Edge-based AI inference services |
| [HuggingFace](/customize/model-providers/more/huggingfaceinferenceapi) | Platform for open source models |
### Local Model Options

View file

@ -17,6 +17,10 @@ sidebarTitle: "Anthropic"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: anthropic
@ -41,7 +45,7 @@ sidebarTitle: "Anthropic"
</Tabs>
<Info>
**Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-4-sonnet?view=config)**
**Check out a more advanced configuration [here](https://hub.continue.dev/anthropic/claude-sonnet-4-5?view=config)**
</Info>
## How to Enable Prompt Caching with Claude
@ -53,6 +57,10 @@ To enable caching of the system message and the turn-by-turn conversation, updat
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: anthropic

View file

@ -11,6 +11,10 @@ sidebarTitle: "Azure AI Foundry"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <Model_NAME>
provider: azure
@ -55,6 +59,10 @@ For example, a Target URI of `https://just-an-example.openai.azure.com/openai/de
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
model: <MODEL_ID>

View file

@ -17,6 +17,10 @@ sidebarTitle: "Amazon Bedrock"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: bedrock
@ -57,6 +61,10 @@ messages between requests. Enable this behavior by adding
configuration.
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: bedrock
@ -84,6 +92,10 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: bedrock
@ -121,6 +133,10 @@ To setup Bedrock using custom imported models, add the following to your config
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: bedrockimport

View file

@ -17,6 +17,10 @@ sidebarTitle: "Gemini"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: gemini

View file

@ -0,0 +1,89 @@
---
title: "Hugging Face"
---
Hugging Face is the main platform for sharing open AI models. It provides inference in two ways. [Inference Providers](https://huggingface.co/docs/inference-providers/index) and [Inference Endpoints](https://huggingface.co/docs/inference-endpoints/index).
## Inference Providers
Inference Providers is a serverless service powered by external inference providers and routed through Hugging Face and paid per token.
<Info>
You can access your access token from [Hugging Face](https://huggingface.co/settings/tokens) and prioritize your [providers in settings](https://huggingface.co/settings/inference-providers/overview).
</Info>
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: deepseek
provider: huggingface-inference-providers
model: deepseek-ai/DeepSeek-V3.2-Exp
apiKey: <YOUR_HF_TOKEN>
apiBase: https://router.huggingface.co/v1
```
</Tab>
<Tab title="JSON (Deprecated)">
```json title="config.json"
{
"models": [
{
"title": "deepseek",
"provider": "huggingface-inference-providers",
"model": "deepseek-ai/DeepSeek-V3.2-Exp",
"apiKey": "<YOUR_HF_TOKEN>",
"apiBase": "https://router.huggingface.co/v1"
}
]
}
```
</Tab>
</Tabs>
## Inference Endpoints
Inference Endpoints is a dedicated service that allows you to run your open models dedicated hardware. It is a more advanced way to get inference from Hugging Face models where you have more control over the whole process.
<Info>
Before you can use Inference Endpoints, you need to create an endpoint. You can do this by going to [Inference Endpoints](https://endpoints.huggingface.co/burtenshaw/endpoints/dedicated) and clicking on "Create Endpoint".
</Info>
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: deepseek
provider: huggingface-inference-endpoints
model: <ENDPOINT_ID>
apiKey: <YOUR_HF_TOKEN>
apiBase: https://<YOUR_ENDPOINT_ID>.aws.endpoints.huggingface.cloud
```
</Tab>
<Tab title="JSON (Deprecated)">
```json title="config.json"
{
"models": [
{
"title": "deepseek",
"provider": "huggingface-inference-endpoints",
"model": "<ENDPOINT_ID>",
"apiKey": "<YOUR_HF_TOKEN>",
"apiBase": "https://<YOUR_ENDPOINT_ID>.aws.endpoints.huggingface.cloud"
}
]
}
```
</Tab>
</Tabs>

View file

@ -17,6 +17,10 @@ sidebarTitle: "Inception"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: inception

View file

@ -15,6 +15,10 @@ title: "LM Studio"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: lmstudio

View file

@ -17,6 +17,10 @@ sidebarTitle: "Ollama"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: ollama
@ -51,6 +55,10 @@ Ollama models usually have their capabilities auto-detected correctly. However,
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <CUSTOM_MODEL_NAME>
provider: ollama

View file

@ -17,6 +17,10 @@ sidebarTitle: "OpenAI"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: openai
@ -63,6 +67,10 @@ If you are using an OpenAI API compatible providers, you can change the `apiBase
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
provider: openai
@ -95,6 +103,10 @@ To force usage of `completions` instead of `chat/completions` endpoint you can s
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <OPENAI_API_COMPATIBLE_PROVIDER_MODEL>
provider: openai

View file

@ -14,6 +14,10 @@ sidebarTitle: "OpenRouter"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: openrouter
@ -52,6 +56,10 @@ For example, to prevent extra long prompts from being compressed, you can explic
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: openrouter
@ -97,6 +105,10 @@ If you're experiencing issues with Agent mode or tools not working, you can add
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: openrouter

View file

@ -14,6 +14,10 @@ sidebarTitle: "Vertex AI"
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: vertexai
@ -47,6 +51,10 @@ You can use Vertex AI in [express mode](https://cloud.google.com/vertex-ai/gener
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: <MODEL_NAME>
provider: vertexai

View file

@ -29,6 +29,10 @@ Our current top recommendations are Claude Opus 4.5 and Claude Sonnet 4 from [An
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Claude Opus 4.5
provider: anthropic
@ -57,6 +61,10 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: "Gemma 3 27B"
provider: "ollama"
@ -65,6 +73,10 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
</Tab>
<Tab title="Together">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: "Gemma 3 27B"
provider: "together"
@ -86,6 +98,10 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai),
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: GPT-5.1
provider: openai
@ -105,6 +121,10 @@ If you prefer to use a model from [xAI](../model-providers/more/xAI), then we re
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Grok-4.1
provider: xAI
@ -124,6 +144,10 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini),
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Gemini 3 Pro
provider: gemini
@ -157,6 +181,10 @@ If your local machine can run an 8B parameter model, then we recommend running L
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3.1 8B
provider: ollama
@ -165,6 +193,10 @@ If your local machine can run an 8B parameter model, then we recommend running L
</Tab>
<Tab title="LM Studio">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3.1 8B
provider: lmstudio
@ -173,6 +205,10 @@ If your local machine can run an 8B parameter model, then we recommend running L
</Tab>
<Tab title="Msty">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Llama 3.1 8B
provider: msty
@ -203,6 +239,10 @@ If your local machine can run a 16B parameter model, then we recommend running D
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: DeepSeek Coder 2 16B
provider: ollama
@ -211,6 +251,10 @@ If your local machine can run a 16B parameter model, then we recommend running D
</Tab>
<Tab title="LM Studio">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: DeepSeek Coder 2 16B
provider: lmstudio
@ -219,6 +263,10 @@ If your local machine can run a 16B parameter model, then we recommend running D
</Tab>
<Tab title="Msty">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: DeepSeek Coder 2 16B
provider: msty

View file

@ -11,6 +11,10 @@ It's often useful to select a different model to respond to Edit instructions th
In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Claude 4 Sonnet
provider: anthropic

View file

@ -37,6 +37,10 @@ After obtaining an API key from [here](https://www.voyageai.com/), you can confi
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Voyage Code 3
provider: voyage
@ -70,6 +74,10 @@ See [here](../model-providers/top-level/ollama#embeddings-model) for instruction
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: default-transformers
provider: transformers.js
@ -99,6 +107,10 @@ See [here](../model-providers/top-level/ollama#embeddings-model) for instruction
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Huggingface TEI Embedder
provider: huggingface-tei

View file

@ -24,12 +24,20 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model.
<Tabs>
<Tab title="Hub">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- uses: voyageai/rerank-2
```
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: My Voyage Reranker
provider: voyage
@ -52,6 +60,10 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Cohere Reranker
provider: cohere
@ -74,6 +86,10 @@ If you only have access to a single LLM, then you can use it as a reranker. This
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: LLM Reranker
provider: openai
@ -97,6 +113,10 @@ If you only have access to a single LLM, then you can use it as a reranker. This
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: Huggingface-tei Reranker
provider: huggingface-tei

View file

@ -30,10 +30,10 @@ Read more about [model roles](/customize/model-roles), [model capabilities](/cus
# Frontier Models
[Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) from Anthropic
[Claude Sonnet 4.5](https://hub.continue.dev/anthropic/claude-sonnet-4-5) from Anthropic
1. Get your API key from [Anthropic](https://console.anthropic.com/)
2. Add [Claude 4 Sonnet](https://hub.continue.dev/anthropic/claude-4-sonnet) to a config on Continue Mission Control
2. Add[Claude Sonnet 4.5](https://hub.continue.dev/anthropic/claude-sonnet-4-5) to a config on Continue Mission Control
3. Add `ANTHROPIC_API_KEY` as a [User Secret](https://docs.continue.dev/mission-control/secrets/secret-types#user-secrets) on Continue Mission Control [here](https://hub.continue.dev/settings/secrets)
4. Click `Reload config` in the config selector in the Continue IDE extension

View file

@ -187,6 +187,7 @@
"customize/model-providers/top-level/azure",
"customize/model-providers/top-level/bedrock",
"customize/model-providers/top-level/gemini",
"customize/model-providers/top-level/huggingfaceinference",
"customize/model-providers/top-level/inception",
"customize/model-providers/top-level/lmstudio",
"customize/model-providers/top-level/ollama",
@ -203,7 +204,6 @@
"customize/model-providers/more/deepseek",
"customize/model-providers/more/deepinfra",
"customize/model-providers/more/groq",
"customize/model-providers/more/huggingfaceinferenceapi",
"customize/model-providers/more/llamacpp",
"customize/model-providers/more/llamastack",
"customize/model-providers/more/mistral",

View file

@ -147,6 +147,10 @@ For all options, first:
Install from Hub (recommended) or add YAML manually. Minimal YAML example:
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
mcpServers:
- name: Atlassian Rovo MCP
type: sse

View file

@ -83,6 +83,10 @@ After ensuring you meet the **Prerequisites** above, you have two paths to get s
Install from Hub (recommended) or add YAML manually. Minimal YAML example:
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
mcpServers:
- name: GitHub MCP
command: npx

95
docs/package-lock.json generated
View file

@ -1189,6 +1189,7 @@
"resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
"integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
"license": "ISC",
"peer": true,
"dependencies": {
"string-width": "^5.1.2",
"string-width-cjs": "npm:string-width@^4.2.0",
@ -1205,13 +1206,15 @@
"version": "9.2.2",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/@isaacs/cliui/node_modules/string-width": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",
"integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
"license": "MIT",
"peer": true,
"dependencies": {
"eastasianwidth": "^0.2.0",
"emoji-regex": "^9.2.2",
@ -1229,6 +1232,7 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
"integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-styles": "^6.1.0",
"string-width": "^5.0.1",
@ -1855,7 +1859,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",
"integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",
"license": "Apache-2.0",
"peer": true,
"engines": {
"node": ">=8.0.0"
}
@ -1865,6 +1868,7 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz",
"integrity": "sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@opentelemetry/api": "^1.3.0"
},
@ -3125,7 +3129,6 @@
"resolved": "https://registry.npmjs.org/@orpc/contract/-/contract-1.8.1.tgz",
"integrity": "sha512-zw0xgRxOyR/otX+4UeGEm0VjuMH/AeVbEuWvPNRJC8xxvQpaPJFo8Nr8eaywqSUZo1DnIS+pkwsdipa7GgFl7A==",
"license": "MIT",
"peer": true,
"dependencies": {
"@orpc/client": "1.8.1",
"@orpc/shared": "1.8.1",
@ -3231,7 +3234,6 @@
"resolved": "https://registry.npmjs.org/@orpc/server/-/server-1.8.1.tgz",
"integrity": "sha512-Aei7KJSMG9daNdubREeDYKCnmSRTnZT7V1Cx0NFLYDYqx8Bdil2J2InJghsio6AZdJUWLNq/zMm6QDu3NN2E6g==",
"license": "MIT",
"peer": true,
"dependencies": {
"@orpc/client": "1.8.1",
"@orpc/contract": "1.8.1",
@ -3481,6 +3483,7 @@
"integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
"license": "MIT",
"optional": true,
"peer": true,
"engines": {
"node": ">=14"
}
@ -4058,7 +4061,8 @@
"version": "1.2.5",
"resolved": "https://registry.npmjs.org/@sqltools/formatter/-/formatter-1.2.5.tgz",
"integrity": "sha512-Uy0+khmZqUrUGm5dmMqVlnvufZRSK0FbYzVgp0UMstm+F5+W2/jnEEQyc9vo1ZR/E5ZI/B1WjjoTqBqwJL6Krw==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/@standard-schema/spec": {
"version": "1.0.0",
@ -4663,7 +4667,6 @@
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
"license": "MIT",
"peer": true,
"bin": {
"acorn": "bin/acorn"
},
@ -4733,7 +4736,6 @@
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
@ -4833,6 +4835,7 @@
"resolved": "https://registry.npmjs.org/ansis/-/ansis-3.17.0.tgz",
"integrity": "sha512-0qWUglt9JEqLFr3w1I1pbrChn1grhaiAR2ocX1PP/flRmxgtwTzPFFFnfIlD6aMOLQZgSuCRlidD70lvx8yhzg==",
"license": "ISC",
"peer": true,
"engines": {
"node": ">=14"
}
@ -4856,6 +4859,7 @@
"resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-3.1.0.tgz",
"integrity": "sha512-biN3PwB2gUtjaYy/isrU3aNWI5w+fAfvHkSvCKeQGxhmYpwKFUxudR3Yya+KqVRHBmEDYh+/lTozYCFbmzX4nA==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">= 6.0.0"
}
@ -5961,6 +5965,7 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"license": "MIT",
"peer": true,
"dependencies": {
"path-key": "^3.1.0",
"shebang-command": "^2.0.0",
@ -5975,7 +5980,8 @@
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
"devOptional": true,
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/data-uri-to-buffer": {
"version": "6.0.2",
@ -6045,7 +6051,8 @@
"version": "1.11.19",
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.19.tgz",
"integrity": "sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/debug": {
"version": "4.4.1",
@ -6112,6 +6119,7 @@
"resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.0.tgz",
"integrity": "sha512-HGFtf8yhuhGhqO07SV79tRp+br4MnbdjeVxotpn1QBl30pcLLCQjX5b2295ll0fv8RKDKsmWYrl05usHM9CewQ==",
"license": "MIT",
"peer": true,
"peerDependencies": {
"babel-plugin-macros": "^3.1.0"
},
@ -6294,8 +6302,7 @@
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1312386.tgz",
"integrity": "sha512-DPnhUXvmvKT2dFA/j7B+riVLUt9Q6RKJlcppojL5CoRywJJKLDYnRlw0gTFKfgDPHP5E04UoB71SxoJlVZy8FA==",
"dev": true,
"license": "BSD-3-Clause",
"peer": true
"license": "BSD-3-Clause"
},
"node_modules/dns-packet": {
"version": "5.6.1",
@ -6328,6 +6335,7 @@
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
"license": "BSD-2-Clause",
"peer": true,
"engines": {
"node": ">=12"
},
@ -6340,7 +6348,6 @@
"resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.44.7.tgz",
"integrity": "sha512-quIpnYznjU9lHshEOAYLoZ9s3jweleHlZIAWR/jX9gAWNg/JhQ1wj0KGRf7/Zm+obRrYd9GjPVJg790QY9N5AQ==",
"license": "Apache-2.0",
"peer": true,
"peerDependencies": {
"@aws-sdk/client-rds-data": ">=3",
"@cloudflare/workers-types": ">=4",
@ -6479,7 +6486,8 @@
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
"integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/ee-first": {
"version": "1.1.1",
@ -7356,6 +7364,7 @@
"resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",
"integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",
"license": "ISC",
"peer": true,
"dependencies": {
"cross-spawn": "^7.0.6",
"signal-exit": "^4.0.1"
@ -7372,6 +7381,7 @@
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
"integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
"license": "ISC",
"peer": true,
"engines": {
"node": ">=14"
},
@ -7713,6 +7723,7 @@
"resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",
"integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",
"license": "ISC",
"peer": true,
"dependencies": {
"foreground-child": "^3.1.0",
"jackspeak": "^3.1.2",
@ -7746,6 +7757,7 @@
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"balanced-match": "^1.0.0"
}
@ -7755,6 +7767,7 @@
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
"license": "ISC",
"peer": true,
"dependencies": {
"brace-expansion": "^2.0.1"
},
@ -7770,6 +7783,7 @@
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
"license": "ISC",
"peer": true,
"engines": {
"node": ">=16 || 14 >=14.17"
}
@ -8430,7 +8444,6 @@
"integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==",
"devOptional": true,
"license": "MIT",
"peer": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/immer"
@ -8458,6 +8471,7 @@
"resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-2.0.0.tgz",
"integrity": "sha512-yNZhyQYqXpkT0AKq3F3KLasUSK4fHvebNH5hOsKQw2dhGSALvQ4U0BqUc5suziKvydO5u5hgN2hy1RJaho8U5A==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"acorn": "^8.14.0",
"acorn-import-attributes": "^1.9.5",
@ -8490,7 +8504,6 @@
"integrity": "sha512-vhhFrCodTHZAPPSdMYzLEbeI0Ug37R9j6yA0kLKok9kSK53lQtj/RJhEQJUjq6OwT4N33nxqSRd/7yXhEhVPIw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@alcalzone/ansi-tokenize": "^0.1.3",
"ansi-escapes": "^7.0.0",
@ -9280,13 +9293,15 @@
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"license": "ISC"
"license": "ISC",
"peer": true
},
"node_modules/jackspeak": {
"version": "3.4.3",
"resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",
"integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",
"license": "BlueOak-1.0.0",
"peer": true,
"dependencies": {
"@isaacs/cliui": "^8.0.2"
},
@ -9330,7 +9345,6 @@
"integrity": "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">= 10.16.0"
}
@ -9447,7 +9461,6 @@
"resolved": "https://registry.npmjs.org/kysely/-/kysely-0.27.6.tgz",
"integrity": "sha512-FIyV/64EkKhJmjgC0g2hygpBv5RNWVPyNCqSAD7eTCv6eFWNIi4PN1UvdSJGicN/o35bnevgis4Y0UDC0qi8jQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=14.0.0"
}
@ -11327,7 +11340,8 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",
"integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",
"license": "BlueOak-1.0.0"
"license": "BlueOak-1.0.0",
"peer": true
},
"node_modules/parent-module": {
"version": "1.0.1",
@ -11445,6 +11459,7 @@
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
"integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -11460,6 +11475,7 @@
"resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",
"integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",
"license": "BlueOak-1.0.0",
"peer": true,
"dependencies": {
"lru-cache": "^10.2.0",
"minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
@ -11475,7 +11491,8 @@
"version": "10.4.3",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
"license": "ISC"
"license": "ISC",
"peer": true
},
"node_modules/path-to-regexp": {
"version": "0.1.12",
@ -11790,7 +11807,6 @@
"resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz",
"integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=0.10.0"
}
@ -11812,7 +11828,8 @@
"version": "0.26.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz",
"integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/react-reconciler": {
"version": "0.32.0",
@ -12254,6 +12271,7 @@
"resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-8.0.1.tgz",
"integrity": "sha512-QT7FVMXfWOYFbeRBF6nu+I6tr2Tf3u0q8RIEjNob/heKY/nh7drD/k7eeMFmSQgnTtCzLDcCu/XEnpW2wk4xCQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"debug": "^4.3.5",
"module-details-from-path": "^1.0.3"
@ -12710,6 +12728,7 @@
"resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz",
"integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==",
"license": "(MIT AND BSD-3-Clause)",
"peer": true,
"dependencies": {
"inherits": "^2.0.4",
"safe-buffer": "^5.2.1",
@ -12770,6 +12789,7 @@
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
"integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
"license": "MIT",
"peer": true,
"dependencies": {
"shebang-regex": "^3.0.0"
},
@ -12782,6 +12802,7 @@
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
"integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -13156,6 +13177,7 @@
}
],
"license": "MIT",
"peer": true,
"engines": {
"node": ">=14"
}
@ -13244,6 +13266,7 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"license": "MIT",
"peer": true,
"dependencies": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
@ -13258,6 +13281,7 @@
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -13266,13 +13290,15 @@
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/string-width-cjs/node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -13282,6 +13308,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-regex": "^5.0.1"
},
@ -13384,6 +13411,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-regex": "^5.0.1"
},
@ -13396,6 +13424,7 @@
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -13530,6 +13559,7 @@
"resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz",
"integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==",
"license": "MIT",
"peer": true,
"dependencies": {
"isarray": "^2.0.5",
"safe-buffer": "^5.2.1",
@ -13717,6 +13747,7 @@
"resolved": "https://registry.npmjs.org/typeorm/-/typeorm-0.3.27.tgz",
"integrity": "sha512-pNV1bn+1n8qEe8tUNsNdD8ejuPcMAg47u2lUGnbsajiNUr3p2Js1XLKQjBMH0yMRMDfdX8T+fIRejFmIwy9x4A==",
"license": "MIT",
"peer": true,
"dependencies": {
"@sqltools/formatter": "^1.2.5",
"ansis": "^3.17.0",
@ -13833,6 +13864,7 @@
}
],
"license": "MIT",
"peer": true,
"dependencies": {
"base64-js": "^1.3.1",
"ieee754": "^1.2.1"
@ -13842,7 +13874,8 @@
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
"license": "0BSD"
"license": "0BSD",
"peer": true
},
"node_modules/unbox-primitive": {
"version": "1.1.0",
@ -13886,7 +13919,6 @@
"integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@types/unist": "^3.0.0",
"bail": "^2.0.0",
@ -14154,6 +14186,7 @@
"https://github.com/sponsors/ctavan"
],
"license": "MIT",
"peer": true,
"bin": {
"uuid": "dist/esm/bin/uuid"
}
@ -14262,6 +14295,7 @@
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
"integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
"license": "ISC",
"peer": true,
"dependencies": {
"isexe": "^2.0.0"
},
@ -14406,6 +14440,7 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
"integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-styles": "^4.0.0",
"string-width": "^4.1.0",
@ -14423,6 +14458,7 @@
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -14432,6 +14468,7 @@
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"license": "MIT",
"peer": true,
"dependencies": {
"color-convert": "^2.0.1"
},
@ -14446,13 +14483,15 @@
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
"integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
"integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
"license": "MIT",
"peer": true,
"engines": {
"node": ">=8"
}
@ -14462,6 +14501,7 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
"integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
"license": "MIT",
"peer": true,
"dependencies": {
"emoji-regex": "^8.0.0",
"is-fullwidth-code-point": "^3.0.0",
@ -14476,6 +14516,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-regex": "^5.0.1"
},
@ -14495,7 +14536,6 @@
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"devOptional": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=10.0.0"
},
@ -14678,7 +14718,6 @@
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz",
"integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==",
"license": "MIT",
"peer": true,
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}

View file

@ -45,7 +45,9 @@ The top-level properties in the `config.yaml` configuration file are:
The `name` property specifies the name of your project or configuration.
```yaml title="config.yaml"
name: MyProject
name: My Config
version: 1.0.0
schema: v1
```
---
@ -149,6 +151,9 @@ The `models` section defines the language models used in your configuration. Mod
**Example:**
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
models:
- name: GPT-4o
provider: openai
@ -198,6 +203,9 @@ More information about usage/params for each context provider can be found [here
**Example:**
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
context:
- provider: file
- provider: code
@ -218,6 +226,9 @@ Rules are concatenated into the system message for all [Agent](/ide-extensions/a
Confiugration example:
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
rules:
- uses: sanity/sanity-opinionated # rules file stored on Continue Mission Control
- uses: file://user/Desktop/rules.md # rules file stored on local computer
@ -244,6 +255,9 @@ Prompts can be invoked with a <kbd>/</kbd> command.
Configuration example:
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
prompts:
- uses: supabase/create-functions # prompts file stored on Continue Mission Control
- uses: file://user/Desktop/prompts.md # prompts file stored on local computer
@ -278,6 +292,9 @@ List of documentation sites to index.
**Example:**
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
docs:
- name: Continue
startUrl: https://docs.continue.dev/intro
@ -303,6 +320,9 @@ The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a
**Example:**
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
mcpServers:
- name: My MCP Server
command: uvx
@ -334,6 +354,9 @@ Destinations to which [development data](/customize/deep-dives/development-data)
**Example:**
```yaml title="config.yaml"
name: My Config
version: 1.0.0
schema: v1
data:
- name: Local Data Bank
destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
@ -355,8 +378,8 @@ data:
Putting it all together, here's a complete example of a `config.yaml` configuration file:
```yaml title="config.yaml"
name: MyProject
version: 0.0.1
name: My Config
version: 1.0.0
schema: v1
models:
- uses: anthropic/claude-3.5-sonnet
@ -430,8 +453,8 @@ You can also use node anchors to avoid duplication of properties. To do so, addi
```yaml title="config.yaml"
%YAML 1.1
---
name: MyProject
version: 0.0.1
name: My Config
version: 1.0.0
schema: v1
model_defaults: &model_defaults
provider: openai

View file

@ -67,6 +67,10 @@ There are a few options that let you configure the behavior of the `@codebase` c
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
context:
- provider: codebase
params:

View file

@ -30,6 +30,10 @@ To enable the `@Docs` context provider, add it to the list of context providers
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
context:
- provider: docs
```
@ -90,6 +94,10 @@ For bulk documentation site adds or edits, we recommend editing your global conf
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
docs:
- title: Nest.js
startUrl: https://docs.nestjs.com/
@ -128,6 +136,10 @@ As with [@Codebase context provider configuration](./deprecated-codebase#configu
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
context:
- provider: docs
params:
@ -161,6 +173,10 @@ The GitHub API rate limits public requests to 60 per hour. If you want to reliab
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
context:
- provider: docs
params:
@ -192,6 +208,10 @@ If your documentation is private, you can skip the default crawler and use a loc
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
docs:
- title: My Private Docs
startUrl: http://10.2.1.2/docs
@ -255,6 +275,10 @@ The following configuration example works out of the box for VS Code. This uses
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
context:
- provider: docs
@ -289,6 +313,10 @@ Here is the equivalent minimal example for Jetbrains, which requires setting up
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: LMStudio embedder
provider: lmstudio
@ -337,6 +365,10 @@ The following configuration example includes:
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
name: My Config
version: 0.0.1
schema: v1
models:
- name: LMStudio Nomic Text
provider: lmstudio

View file

@ -120,7 +120,7 @@ Specifies options for tab autocompletion behavior.
- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
- `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{prefix}}}`, `{{{suffix}}}`, `{{{filename}}}`, `{{{reponame}}}`, and `{{{language}}}` variables.
- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
Example

View file

@ -36,15 +36,15 @@ Alternatively in VS Code, you can disable telemetry through your VS Code setting
### CLI
For `cn`, the Continue CLI, set the environment variable `CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0` before running commands:
For `cn`, the Continue CLI, set the environment variable `CONTINUE_TELEMETRY_ENABLED=0` before running commands:
```bash
export CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0
export CONTINUE_TELEMETRY_ENABLED=0
cn <your prompt>
```
Or run it inline:
```bash
CONTINUE_ALLOW_ANONYMOUS_TELEMETRY=0 cn <your prompt>
```
CONTINUE_TELEMETRY_ENABLED=0 cn <your prompt>
```

View file

@ -23,7 +23,7 @@
"@continuedev/openai-adapters": "file:../../packages/openai-adapters",
"@continuedev/sdk": "^0.0.13",
"@continuedev/terminal-security": "file:../../packages/terminal-security",
"@modelcontextprotocol/sdk": "^1.17.2",
"@modelcontextprotocol/sdk": "^1.24.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0",
"@opentelemetry/exporter-metrics-otlp-http": "^0.203.0",
@ -129,7 +129,7 @@
"@continuedev/llm-info": "file:../packages/llm-info",
"@continuedev/openai-adapters": "file:../packages/openai-adapters",
"@continuedev/terminal-security": "file:../packages/terminal-security",
"@modelcontextprotocol/sdk": "^1.12.0",
"@modelcontextprotocol/sdk": "^1.24.0",
"@mozilla/readability": "^0.5.0",
"@octokit/rest": "^20.1.1",
"@sentry/cli": "^2.50.2",
@ -188,7 +188,7 @@
"tree-sitter-wasms": "^0.1.11",
"untildify": "^6.0.0",
"uuid": "^9.0.1",
"vectordb": "^0.4.20",
"vectordb": "0.4.20",
"web-tree-sitter": "^0.21.0",
"win-ca": "^3.5.1",
"wink-nlp-utils": "^2.1.0",
@ -273,11 +273,12 @@
"license": "Apache-2.0",
"dependencies": {
"@anthropic-ai/sdk": "^0.67.0",
"@aws-sdk/client-bedrock-runtime": "^3.842.0",
"@aws-sdk/credential-providers": "^3.913.0",
"@aws-sdk/client-bedrock-runtime": "^3.929.0",
"@aws-sdk/credential-providers": "^3.929.0",
"@continuedev/config-types": "^1.0.14",
"@continuedev/config-yaml": "^1.36.0",
"@continuedev/fetch": "^1.6.0",
"@google/genai": "^1.30.0",
"dotenv": "^16.5.0",
"google-auth-library": "^10.4.1",
"json-schema": "^0.4.0",
@ -516,7 +517,6 @@
}
],
"license": "MIT",
"peer": true,
"engines": {
"node": ">=18"
},
@ -540,7 +540,6 @@
}
],
"license": "MIT",
"peer": true,
"engines": {
"node": ">=18"
}
@ -1636,13 +1635,14 @@
"license": "BSD-2-Clause"
},
"node_modules/@modelcontextprotocol/sdk": {
"version": "1.17.4",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.17.4.tgz",
"integrity": "sha512-zq24hfuAmmlNZvik0FLI58uE5sriN0WWsQzIlYnzSuKDAHFqJtBFrl/LfB1NLgJT5Y7dEBzaX4yAKqOPrcetaw==",
"version": "1.24.1",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.24.1.tgz",
"integrity": "sha512-YTg4v6bKSst8EJM8NXHC3nGm8kgHD08IbIBbognUeLAgGLVgLpYrgQswzLQd4OyTL4l614ejhqsDrV1//t02Qw==",
"dev": true,
"license": "MIT",
"dependencies": {
"ajv": "^6.12.6",
"ajv": "^8.17.1",
"ajv-formats": "^3.0.1",
"content-type": "^1.0.5",
"cors": "^2.8.5",
"cross-spawn": "^7.0.5",
@ -1650,15 +1650,62 @@
"eventsource-parser": "^3.0.0",
"express": "^5.0.1",
"express-rate-limit": "^7.5.0",
"jose": "^6.1.1",
"pkce-challenge": "^5.0.0",
"raw-body": "^3.0.0",
"zod": "^3.23.8",
"zod-to-json-schema": "^3.24.1"
"zod": "^3.25 || ^4.0",
"zod-to-json-schema": "^3.25.0"
},
"engines": {
"node": ">=18"
},
"peerDependencies": {
"@cfworker/json-schema": "^4.1.1",
"zod": "^3.25 || ^4.0"
},
"peerDependenciesMeta": {
"@cfworker/json-schema": {
"optional": true
},
"zod": {
"optional": false
}
}
},
"node_modules/@modelcontextprotocol/sdk/node_modules/ajv": {
"version": "8.17.1",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
"dev": true,
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/@modelcontextprotocol/sdk/node_modules/jose": {
"version": "6.1.3",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz",
"integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==",
"dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
}
},
"node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"dev": true,
"license": "MIT"
},
"node_modules/@mswjs/interceptors": {
"version": "0.39.6",
"resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.39.6.tgz",
@ -1757,7 +1804,6 @@
"integrity": "sha512-oNXsh2ywth5aowwIa7RKtawnkdH6LgU1ztfP9AIUCQCvzysB+WeU8o2kyyosDPwBZutPpjZDKPQGIzzrfTWweQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@octokit/auth-token": "^6.0.0",
"@octokit/graphql": "^9.0.1",
@ -1928,7 +1974,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",
"integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",
"license": "Apache-2.0",
"peer": true,
"engines": {
"node": ">=8.0.0"
}
@ -1950,7 +1995,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.0.1.tgz",
"integrity": "sha512-XuY23lSI3d4PEqKA+7SLtAgwqIfc6E/E9eAQWLN1vlpC53ybO3o6jW4BsXo1xvz9lYyyWItfQDDLzezER01mCw==",
"license": "Apache-2.0",
"peer": true,
"engines": {
"node": "^18.19.0 || >=20.6.0"
},
@ -1963,7 +2007,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.0.1.tgz",
"integrity": "sha512-MaZk9SJIDgo1peKevlbhP6+IwIiNPNmswNL4AF0WaQJLbHXjr9SrZMgS12+iqr9ToV4ZVosCcc0f8Rg67LXjxw==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@opentelemetry/semantic-conventions": "^1.29.0"
},
@ -2205,7 +2248,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.203.0.tgz",
"integrity": "sha512-ke1qyM+3AK2zPuBPb6Hk/GCsc5ewbLvPNkEuELx/JmANeEp6ZjnZ+wypPAJSucTw0wvCGrUaibDSdcrGFoWxKQ==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@opentelemetry/api-logs": "0.203.0",
"import-in-the-middle": "^1.8.1",
@ -3522,7 +3564,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.0.1.tgz",
"integrity": "sha512-dZOB3R6zvBwDKnHDTB4X1xtMArB/d324VsbiPkX/Yu0Q8T2xceRthoIVFhJdvgVM2QhGVUyX9tzwiNxGtoBJUw==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@opentelemetry/core": "2.0.1",
"@opentelemetry/semantic-conventions": "^1.29.0"
@ -3611,7 +3652,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.0.1.tgz",
"integrity": "sha512-xYLlvk/xdScGx1aEqvxLwf6sXQLXCjk3/1SQT9X9AoN5rXRhkdvIFShuNNmtTEPRBqcsMbS4p/gJLNI2wXaDuQ==",
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"@opentelemetry/core": "2.0.1",
"@opentelemetry/resources": "2.0.1",
@ -3647,7 +3687,6 @@
"resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.36.0.tgz",
"integrity": "sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==",
"license": "Apache-2.0",
"peer": true,
"engines": {
"node": ">=14"
}
@ -5058,7 +5097,8 @@
"resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.4.tgz",
"integrity": "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==",
"dev": true,
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/@types/body-parser": {
"version": "1.19.6",
@ -5346,7 +5386,6 @@
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.0.tgz",
"integrity": "sha512-aPTXCrfwnDLj4VvXrm+UUCQjNEvJgNA8s5F1cvwQU+3KNltTOkBm1j30uNLyqqPNe7gE3KFzImYoZEfLhp4Yow==",
"license": "MIT",
"peer": true,
"dependencies": {
"undici-types": "~7.10.0"
}
@ -5416,7 +5455,6 @@
"integrity": "sha512-lr3jdBw/BGj49Eps7EvqlUaoeA0xpj3pc0RoJkHpYaCHkVK7i28dKyImLQb3JVlqs3aYSXf7qYuWOW/fgZnTXQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"csstype": "^3.0.2"
}
@ -5538,7 +5576,6 @@
"integrity": "sha512-w/EboPlBwnmOBtRbiOvzjD+wdiZdgFeo17lkltrtn7X37vagKKWJABvyfsJXTlHe6XBzugmYgd4A4nW+k8Mixw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@eslint-community/regexpp": "^4.10.0",
"@typescript-eslint/scope-manager": "8.40.0",
@ -5569,7 +5606,6 @@
"integrity": "sha512-jCNyAuXx8dr5KJMkecGmZ8KI61KBUhkCob+SD+C+I5+Y1FWI2Y3QmY4/cxMCC5WAsZqoEtEETVhUiUMIGCf6Bw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@typescript-eslint/scope-manager": "8.40.0",
"@typescript-eslint/types": "8.40.0",
@ -6170,7 +6206,6 @@
"integrity": "sha512-hGISOaP18plkzbWEcP/QvtRW1xDXF2+96HbEX6byqQhAUbiS5oH6/9JwW+QsQCIYON2bI6QZBF+2PvOmrRZ9wA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@vitest/utils": "3.2.4",
"fflate": "^0.8.2",
@ -6251,7 +6286,6 @@
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
"license": "MIT",
"peer": true,
"bin": {
"acorn": "bin/acorn"
},
@ -6345,6 +6379,48 @@
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/ajv-formats": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz",
"integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"ajv": "^8.0.0"
},
"peerDependencies": {
"ajv": "^8.0.0"
},
"peerDependenciesMeta": {
"ajv": {
"optional": true
}
}
},
"node_modules/ajv-formats/node_modules/ajv": {
"version": "8.17.1",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz",
"integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==",
"dev": true,
"license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.3",
"fast-uri": "^3.0.1",
"json-schema-traverse": "^1.0.0",
"require-from-string": "^2.0.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/epoberezkin"
}
},
"node_modules/ajv-formats/node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
"integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
"dev": true,
"license": "MIT"
},
"node_modules/ansi-escapes": {
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-7.0.0.tgz",
@ -6417,6 +6493,7 @@
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
"dev": true,
"license": "Apache-2.0",
"peer": true,
"dependencies": {
"dequal": "^2.0.3"
}
@ -8290,7 +8367,8 @@
"resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz",
"integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==",
"dev": true,
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/dot-prop": {
"version": "5.3.0",
@ -8831,7 +8909,6 @@
"integrity": "sha512-TS9bTNIryDzStCpJN93aC5VRSW3uTx9sClUn4B87pwiCaJh220otoI0X8mJKr+VcPtniMdN8GKjlwgWGUv5ZKA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.12.1",
@ -9003,7 +9080,6 @@
"integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@rtsao/scc": "^1.1.0",
"array-includes": "^3.1.9",
@ -9451,7 +9527,6 @@
"integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"accepts": "^2.0.0",
"body-parser": "^2.2.1",
@ -9581,6 +9656,23 @@
"dev": true,
"license": "MIT"
},
"node_modules/fast-uri": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz",
"integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/fastify"
},
{
"type": "opencollective",
"url": "https://opencollective.com/fastify"
}
],
"license": "BSD-3-Clause"
},
"node_modules/fastq": {
"version": "1.19.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",
@ -12031,6 +12123,7 @@
"integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"lz-string": "bin/bin.js"
}
@ -12058,7 +12151,6 @@
"integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"marked": "bin/marked.js"
},
@ -14966,7 +15058,6 @@
"dev": true,
"inBundle": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=12"
},
@ -15881,7 +15972,6 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"devOptional": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=12"
},
@ -16103,7 +16193,6 @@
"integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
@ -16207,6 +16296,7 @@
"integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"ansi-regex": "^5.0.1",
"ansi-styles": "^5.0.0",
@ -16222,6 +16312,7 @@
"integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=10"
},
@ -16445,36 +16536,44 @@
}
},
"node_modules/react": {
"version": "19.1.1",
"resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz",
"integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==",
"version": "19.2.1",
"resolved": "https://registry.npmjs.org/react/-/react-19.2.1.tgz",
"integrity": "sha512-DGrYcCWK7tvYMnWh79yrPHt+vdx9tY+1gPZa7nJQtO/p8bLTDaHp4dzwEhQB7pZ4Xe3ok4XKuEPrVuc+wlpkmw==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/react-dom": {
"version": "19.1.1",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.1.tgz",
"integrity": "sha512-Dlq/5LAZgF0Gaz6yiqZCf6VCcZs1ghAJyrsu84Q/GT0gV+mCxbfmKNoGRKBYMJ8IEdGPqu49YWXD02GCknEDkw==",
"version": "19.2.1",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.1.tgz",
"integrity": "sha512-ibrK8llX2a4eOskq1mXKu/TGZj9qzomO+sNfO98M6d9zIPOEhlBkMkBUBLd1vgS0gQsLDBzA+8jJBVXDnfHmJg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"scheduler": "^0.26.0"
"scheduler": "^0.27.0"
},
"peerDependencies": {
"react": "^19.1.1"
"react": "^19.2.1"
}
},
"node_modules/react-dom/node_modules/scheduler": {
"version": "0.27.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
"integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
"dev": true,
"license": "MIT",
"peer": true
},
"node_modules/react-is": {
"version": "17.0.2",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",
"integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==",
"dev": true,
"license": "MIT"
"license": "MIT",
"peer": true
},
"node_modules/react-reconciler": {
"version": "0.32.0",
@ -16633,6 +16732,16 @@
"node": ">=0.10.0"
}
},
"node_modules/require-from-string": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",
"integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/require-in-the-middle": {
"version": "7.5.2",
"resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.5.2.tgz",
@ -16956,7 +17065,6 @@
"integrity": "sha512-g7RssbTAbir1k/S7uSwSVZFfFXwpomUB9Oas0+xi9KStSCmeDXcA7rNhiskjLqvUe/Evhx8fVCT16OSa34eM5g==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@semantic-release/commit-analyzer": "^13.0.0-beta.1",
"@semantic-release/error": "^4.0.0",
@ -18489,7 +18597,6 @@
"integrity": "sha512-yyxBKfORQ7LuRt/BQKBXrpcq59ZvSW0XxwfjAt3w2/8PmdxaFzijtMhTawprSHhpzeM5BgU2hXHG3lklIERZXg==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"esbuild": "~0.25.0",
"get-tsconfig": "^4.7.5"
@ -18639,7 +18746,6 @@
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
"dev": true,
"license": "Apache-2.0",
"peer": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@ -18759,7 +18865,6 @@
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"peer": true,
"dependencies": {
"napi-postinstall": "^0.3.0"
},
@ -18873,7 +18978,6 @@
"integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"esbuild": "^0.25.0",
"fdir": "^6.4.4",
@ -18972,7 +19076,6 @@
"integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",
"dev": true,
"license": "MIT",
"peer": true,
"dependencies": {
"@types/chai": "^5.2.2",
"@vitest/expect": "3.2.4",
@ -19508,7 +19611,6 @@
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
"dev": true,
"license": "MIT",
"peer": true,
"engines": {
"node": ">=10.0.0"
},
@ -19583,7 +19685,6 @@
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
"dev": true,
"license": "ISC",
"peer": true,
"bin": {
"yaml": "bin.mjs"
},
@ -19713,19 +19814,18 @@
"integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==",
"dev": true,
"license": "MIT",
"peer": true,
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
},
"node_modules/zod-to-json-schema": {
"version": "3.24.6",
"resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.6.tgz",
"integrity": "sha512-h/z3PKvcTcTetyjl1fkj79MHNEjm+HpD6NXheWjzOekY7kV+lwDYnHw+ivHkijnCSMz1yJaWBD9vu/Fcmk+vEg==",
"version": "3.25.0",
"resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.0.tgz",
"integrity": "sha512-HvWtU2UG41LALjajJrML6uQejQhNJx+JBO9IflpSja4R03iNWfKXrj6W2h7ljuLyc1nKS+9yDyL/9tD1U/yBnQ==",
"dev": true,
"license": "ISC",
"peerDependencies": {
"zod": "^3.24.1"
"zod": "^3.25 || ^4"
}
}
}

View file

@ -55,7 +55,7 @@
"@continuedev/openai-adapters": "file:../../packages/openai-adapters",
"@continuedev/sdk": "^0.0.13",
"@continuedev/terminal-security": "file:../../packages/terminal-security",
"@modelcontextprotocol/sdk": "^1.17.2",
"@modelcontextprotocol/sdk": "^1.24.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/exporter-metrics-otlp-grpc": "^0.203.0",
"@opentelemetry/exporter-metrics-otlp-http": "^0.203.0",

View file

@ -17,17 +17,18 @@ The Continue CLI should emit metrics that provide insights into:
### Environment Variables
| Environment Variable | Description | Example Values |
| ------------------------------- | --------------------------------------------------------- | ------------------------------------ |
| `CONTINUE_CLI_ENABLE_TELEMETRY` | Enables OTEL telemetry collection (required) | `1` |
| `OTEL_METRICS_EXPORTER` | Metrics exporter type(s) (comma-separated) | `console`, `otlp`, `prometheus` |
| `OTEL_LOGS_EXPORTER` | Logs/events exporter type(s) (comma-separated) | `console`, `otlp` |
| `OTEL_EXPORTER_OTLP_PROTOCOL` | Protocol for OTLP exporter (all signals) | `grpc`, `http/json`, `http/protobuf` |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint (all signals) | `http://localhost:4317` |
| `OTEL_EXPORTER_OTLP_HEADERS` | Authentication headers for OTLP | `Authorization=Bearer token` |
| `OTEL_METRIC_EXPORT_INTERVAL` | Export interval in milliseconds (default: 60000) | `5000`, `60000` |
| `OTEL_LOGS_EXPORT_INTERVAL` | Logs export interval in milliseconds (default: 5000) | `1000`, `10000` |
| `OTEL_LOG_USER_PROMPTS` | Enable logging of user prompt content (default: disabled) | `1` to enable |
| Environment Variable | Description | Example Values |
| ------------------------------- | --------------------------------------------------------------- | ------------------------------------ |
| `CONTINUE_METRICS_ENABLED` | Enables OTEL telemetry collection (preferred, takes precedence) | `0` to disable, `1` to enable |
| `CONTINUE_CLI_ENABLE_TELEMETRY` | Enables OTEL telemetry collection (legacy, lower precedence) | `0` to disable, `1` to enable |
| `OTEL_METRICS_EXPORTER` | Metrics exporter type(s) (comma-separated) | `console`, `otlp`, `prometheus` |
| `OTEL_LOGS_EXPORTER` | Logs/events exporter type(s) (comma-separated) | `console`, `otlp` |
| `OTEL_EXPORTER_OTLP_PROTOCOL` | Protocol for OTLP exporter (all signals) | `grpc`, `http/json`, `http/protobuf` |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP collector endpoint (all signals) | `http://localhost:4317` |
| `OTEL_EXPORTER_OTLP_HEADERS` | Authentication headers for OTLP | `Authorization=Bearer token` |
| `OTEL_METRIC_EXPORT_INTERVAL` | Export interval in milliseconds (default: 60000) | `5000`, `60000` |
| `OTEL_LOGS_EXPORT_INTERVAL` | Logs export interval in milliseconds (default: 5000) | `1000`, `10000` |
| `OTEL_LOG_USER_PROMPTS` | Enable logging of user prompt content (default: disabled) | `1` to enable |
### Metrics Cardinality Control

View file

@ -27,6 +27,8 @@ Interaction with other input helpers
- "/" slash command UI is disabled.
- When in slash command mode (input starts with /):
- "@" file search suggestions are disabled.
- Enter submits the highlighted slash command directly (except /title, which requires Tab to select first).
- Tab selects the highlighted command without submitting.
Submission behavior
@ -44,8 +46,8 @@ Output handling
- Stdout is streamed into memory; Stderr is captured and appended as a trailing "Stderr: ..." section on success.
- If the process exits non-zero and Stderr contains content, the tool call is marked as error and the error text is shown.
- Output is truncated to the first 5000 lines if exceeded.
- Timeout behavior: If no output is received for 30 seconds (configurable in tests), the process is terminated and the result includes a note like:
"[Command timed out after 30 seconds of no output]".
- Timeout behavior: If no output is received for 120 seconds (configurable in tests), the process is terminated and the result includes a note like:
"[Command timed out after 120 seconds of no output]".
Keyboard behaviors (summary)

View file

@ -4,7 +4,7 @@
- Used by Continue for product metrics (not used by customers)
- uses public posthog key in repo
- CONTINUE_ALLOW_ANONYMOUS_TELEMETRY can be set to 0 to disable
- `CONTINUE_TELEMETRY_ENABLED=0` disables telemetry
- non-anonymous and private data like code is never sent to posthog
- Event user ids are the Continue user id is signed in, or a unique machine id if not
- Current events are slash command usage and chat calls

View file

@ -0,0 +1,266 @@
import { platform } from "os";
import { normalize, resolve } from "path";
import { describe, expect, it } from "vitest";
import { pathToUri, slugToUri, uriToPath, uriToSlug } from "./uriUtils.js";
describe("uriUtils", () => {
describe("pathToUri", () => {
it("should convert Unix-style absolute paths to file URIs", () => {
const unixPath = "/home/user/documents/file.txt";
const result = pathToUri(unixPath);
expect(result).toMatch(/^file:\/\/\//);
expect(result).toContain("file.txt");
});
it("should convert Unix-style relative paths to file URIs", () => {
const relativePath = "./documents/file.txt";
const result = pathToUri(relativePath);
expect(result).toMatch(/^file:\/\/\//);
expect(result).toContain("file.txt");
});
it("should handle Windows-style paths with drive letters", () => {
const windowsPath = "C:\\Users\\user\\Documents\\file.txt";
const result = pathToUri(windowsPath);
expect(result).toMatch(/^file:\/\/\//);
expect(result).toContain("file.txt");
// Windows paths should be converted to forward slashes in URI
if (platform() === "win32") {
expect(result).toContain("C:");
}
});
it("should handle Windows UNC paths", () => {
const uncPath = "\\\\server\\share\\folder\\file.txt";
const result = pathToUri(uncPath);
// UNC paths produce file://server/share/... format (two slashes, not three)
expect(result).toMatch(/^file:\/\//);
expect(result).toContain("file.txt");
});
it("should handle paths with special characters", () => {
const pathWithSpaces = "/home/user/my documents/file with spaces.txt";
const result = pathToUri(pathWithSpaces);
expect(result).toMatch(/^file:\/\/\//);
// Spaces should be properly encoded
expect(result).toContain("file%20with%20spaces.txt");
});
it("should handle paths with Unicode characters", () => {
const unicodePath = "/home/user/文档/файл.txt";
const result = pathToUri(unicodePath);
expect(result).toMatch(/^file:\/\/\//);
// Should handle Unicode properly
expect(result).toContain("%E6%96%87%E6%A1%A3"); // 文档 encoded
});
it("should normalize mixed path separators", () => {
const mixedPath = "/home/user\\documents/file.txt";
const result = pathToUri(mixedPath);
expect(result).toMatch(/^file:\/\/\//);
expect(result).toContain("file.txt");
});
it("should handle empty string", () => {
const result = pathToUri("");
expect(result).toMatch(/^file:\/\/\//);
});
it("should handle current directory", () => {
const result = pathToUri(".");
expect(result).toMatch(/^file:\/\/\//);
});
});
describe("uriToPath", () => {
it("should convert file URIs to Unix-style paths", () => {
const uri = "file:///home/user/documents/file.txt";
const result = uriToPath(uri);
// On Windows, Unix-style URIs without a drive letter are invalid
if (platform() === "win32") {
expect(result).toBeNull();
} else {
expect(result).toBeTruthy();
expect(result).toContain("file.txt");
expect(result).toBe("/home/user/documents/file.txt");
}
});
it("should convert Windows file URIs to Windows paths", () => {
const uri = "file:///C:/Users/user/Documents/file.txt";
const result = uriToPath(uri);
expect(result).toBeTruthy();
expect(result).toContain("file.txt");
if (platform() === "win32") {
expect(result).toContain("C:");
// fileURLToPath returns paths with single backslashes as separators
expect(result).toContain("\\");
}
});
it("should handle URIs with encoded special characters", () => {
const uri = "file:///home/user/my%20documents/file%20with%20spaces.txt";
const result = uriToPath(uri);
// Note: This test may fail on Windows if the URI lacks a drive letter
if (result) {
expect(result).toContain("my documents");
expect(result).toContain("file with spaces.txt");
}
});
it("should handle URIs with Unicode characters", () => {
const uri = "file:///home/user/%E6%96%87%E6%A1%A3/%E6%96%87%E4%BB%B6.txt";
const result = uriToPath(uri);
// Note: This test may fail on Windows if the URI lacks a drive letter
if (result) {
expect(result).toContain("文档");
expect(result).toContain("文件.txt");
}
});
it("should return null for non-file URIs", () => {
const httpUri = "http://example.com/file.txt";
const result = uriToPath(httpUri);
expect(result).toBeNull();
});
it("should return null for malformed URIs", () => {
const malformedUri = "file://invalid-uri";
const result = uriToPath(malformedUri);
// On Windows, file://invalid-uri is interpreted as a UNC path
// On Unix, it may throw an error and return null, or parse successfully
if (platform() === "win32") {
// Windows interprets this as \\invalid-uri
expect(result).toBeTruthy();
}
// On other platforms behavior varies, so we don't assert
});
it("should handle UNC paths on Windows", () => {
const uri = "file://server/share/folder/file.txt";
const result = uriToPath(uri);
if (platform() === "win32") {
expect(result).toBeTruthy();
expect(result).toContain("file.txt");
}
// On Unix systems, this format is not valid and behavior is undefined
});
it("should return null for empty URI", () => {
const result = uriToPath("");
expect(result).toBeNull();
});
it("should handle root directory URI", () => {
const uri = "file:///";
const result = uriToPath(uri);
// On Windows, file:/// without a drive letter may fail
// On Unix, it should return /
if (platform() !== "win32") {
expect(result).toBe("/");
}
// Skip assertion on Windows as behavior is platform-specific
});
});
describe("round-trip conversion", () => {
const testPaths = [
"/home/user/documents/file.txt", // Unix absolute
"./relative/path/file.txt", // Relative
"../parent/file.txt", // Parent relative
"/tmp/file with spaces.txt", // Spaces
"/home/用户/文档/文件.txt", // Unicode
];
// Add Windows-specific paths if running on Windows
const windowsPaths = [
"C:\\Users\\user\\Documents\\file.txt", // Windows absolute
"D:\\Program Files\\app\\file.exe", // Program Files
"\\\\server\\share\\file.txt", // UNC path
];
const allPaths =
platform() === "win32" ? [...testPaths, ...windowsPaths] : testPaths;
allPaths.forEach((originalPath) => {
it(`should maintain path integrity for: ${originalPath}`, () => {
const uri = pathToUri(originalPath);
const roundTripPath = uriToPath(uri);
expect(roundTripPath).toBeTruthy();
// Normalize both paths for comparison since path separators might differ
const normalizedOriginal = normalize(resolve(originalPath));
const normalizedRoundTrip = normalize(roundTripPath!);
expect(normalizedRoundTrip).toBe(normalizedOriginal);
});
});
});
describe("slugToUri", () => {
it("should convert slug to URI", () => {
const slug = "my-awesome-project";
const result = slugToUri(slug);
expect(result).toBe("slug://my-awesome-project");
});
it("should handle empty slug", () => {
const slug = "";
const result = slugToUri(slug);
expect(result).toBe("slug://");
});
it("should handle slug with special characters", () => {
const slug = "my-project_123";
const result = slugToUri(slug);
expect(result).toBe("slug://my-project_123");
});
});
describe("uriToSlug", () => {
it("should extract slug from URI", () => {
const uri = "slug://my-awesome-project";
const result = uriToSlug(uri);
expect(result).toBe("my-awesome-project");
});
it("should return null for non-slug URIs", () => {
const uri = "file:///path/to/file";
const result = uriToSlug(uri);
expect(result).toBeNull();
});
it("should handle empty slug URI", () => {
const uri = "slug://";
const result = uriToSlug(uri);
expect(result).toBe("");
});
it("should return null for malformed URI", () => {
const uri = "slug:/missing-slash";
const result = uriToSlug(uri);
expect(result).toBeNull();
});
});
describe("slug round-trip conversion", () => {
const testSlugs = [
"simple-slug",
"complex_slug-123",
"",
"a",
"very-long-slug-name-with-many-parts",
];
testSlugs.forEach((originalSlug) => {
it(`should maintain slug integrity for: "${originalSlug}"`, () => {
const uri = slugToUri(originalSlug);
const roundTripSlug = uriToSlug(uri);
expect(roundTripSlug).toBe(originalSlug);
});
});
});
});

View file

@ -1,9 +1,13 @@
import { normalize } from "path";
import { fileURLToPath, pathToFileURL } from "url";
/**
* URI utility functions for auth config
*/
export function pathToUri(path: string): string {
return `file://${path}`;
const normalizedPath = normalize(path);
return pathToFileURL(normalizedPath).href;
}
export function slugToUri(slug: string): string {
@ -14,7 +18,11 @@ export function uriToPath(uri: string): string | null {
if (!uri.startsWith("file://")) {
return null;
}
return uri.slice(7);
try {
return fileURLToPath(uri);
} catch {
return null;
}
}
export function uriToSlug(uri: string): string | null {

View file

@ -0,0 +1,12 @@
# Devbox entrypoint behavior (cn serve)
Context: runloop resumes a devbox by re-running the same entrypoint script, which invokes `cn serve --id <agentId> ...`. Because the entrypoint always replays, the CLI must avoid duplicating state on restart.
- **Session reuse:** `serve` now calls `loadOrCreateSessionById` when `--id` is provided so the same session file is reused instead of generating a new UUID. This keeps chat history intact across suspend/resume.
- **Skip replaying the initial prompt:** `shouldQueueInitialPrompt` checks existing history and only queues the initial prompt when there are no non-system messages. This prevents the first prompt from being resent when a suspended devbox restarts.
- **Environment persistence:** The devbox entrypoint (control-plane) writes all env vars to `~/.continue/devbox-env` and sources it before `cn serve`, so keys survive suspend/resume. The CLI assumes env is already present.
Operational notes:
- Changing the entrypoint is expensive; prefer adapting CLI/session behavior as above.
- When testing suspend/resume, confirm a single session file under `~/.continue/sessions` for the agent id and that follow-up messages append normally without replaying the first prompt.

View file

@ -0,0 +1,30 @@
import type { ChatHistoryItem } from "core/index.js";
import { describe, expect, it } from "vitest";
import { shouldQueueInitialPrompt } from "./serve.js";
const systemOnly: ChatHistoryItem[] = [
{ message: { role: "system", content: "sys" }, contextItems: [] },
];
const withConversation: ChatHistoryItem[] = [
...systemOnly,
{ message: { role: "user", content: "hi" }, contextItems: [] },
{ message: { role: "assistant", content: "hello" }, contextItems: [] },
];
describe("shouldQueueInitialPrompt", () => {
it("returns false when no prompt is provided", () => {
expect(shouldQueueInitialPrompt([], undefined)).toBe(false);
expect(shouldQueueInitialPrompt([], null)).toBe(false);
});
it("returns true when prompt exists and only system history is present", () => {
expect(shouldQueueInitialPrompt([], "prompt")).toBe(true);
expect(shouldQueueInitialPrompt(systemOnly, "prompt")).toBe(true);
});
it("returns false when prompt exists but conversation already has non-system messages", () => {
expect(shouldQueueInitialPrompt(withConversation, "prompt")).toBe(false);
});
});

View file

@ -23,7 +23,11 @@ import {
ConfigServiceState,
ModelServiceState,
} from "../services/types.js";
import { createSession, getCompleteStateSnapshot } from "../session.js";
import {
createSession,
getCompleteStateSnapshot,
loadOrCreateSessionById,
} from "../session.js";
import { messageQueue } from "../stream/messageQueue.js";
import { constructSystemMessage } from "../systemMessage.js";
import { telemetryService } from "../telemetry/telemetryService.js";
@ -47,6 +51,26 @@ interface ServeOptions extends ExtendedCommandOptions {
id?: string;
}
/**
* Decide whether to enqueue the initial prompt on server startup.
* We only want to send it when starting a brand-new session; if any non-system
* messages already exist (e.g., after resume), skip to avoid replaying.
*/
export function shouldQueueInitialPrompt(
history: ChatHistoryItem[],
prompt?: string | null,
): boolean {
if (!prompt) {
return false;
}
// If there are any non-system messages, we already have conversation context
const hasConversation = history.some(
(item) => item.message.role !== "system",
);
return !hasConversation;
}
// eslint-disable-next-line max-statements
export async function serve(prompt?: string, options: ServeOptions = {}) {
await posthogService.capture("sessionStart", {});
@ -142,7 +166,11 @@ export async function serve(prompt?: string, options: ServeOptions = {}) {
});
}
const session = createSession(initialHistory);
const trimmedId = options.id?.trim();
const session =
trimmedId && trimmedId.length > 0
? loadOrCreateSessionById(trimmedId, initialHistory)
: createSession(initialHistory);
// Align ChatHistoryService with server session and enable remote mode
try {
@ -411,10 +439,28 @@ export async function serve(prompt?: string, options: ServeOptions = {}) {
agentFileState?.agentFile?.prompt,
actualPrompt,
);
if (initialPrompt) {
console.log(chalk.dim("\nProcessing initial prompt..."));
await messageQueue.enqueueMessage(initialPrompt);
processMessages(state, llmApi);
const existingHistory =
(() => {
try {
return services.chatHistory.getHistory();
} catch {
return state.session.history;
}
})() ?? [];
if (shouldQueueInitialPrompt(existingHistory, initialPrompt)) {
logger.info(chalk.dim("\nProcessing initial prompt..."));
await messageQueue.enqueueMessage(initialPrompt);
processMessages(state, llmApi);
} else {
logger.info(
chalk.dim(
"Skipping initial prompt because existing conversation history was found.",
),
);
}
}
});

View file

@ -10,6 +10,7 @@ import {
createSession,
getCurrentSession,
hasSession,
loadOrCreateSessionById,
loadSession,
saveSession,
startNewSession,
@ -36,17 +37,24 @@ vi.mock("./util/logger.js", () => ({
error: vi.fn(),
},
}));
vi.mock("../../core/util/history.js", () => ({
default: {
save: vi.fn(),
load: vi.fn(() => ({
sessionId: "test-session-id",
title: "Test Session",
workspaceDirectory: "/test/workspace",
history: [],
})),
list: vi.fn(() => []),
},
const mockHistoryManager: any = vi.hoisted(() => ({
save: vi.fn((session: any) => {
// Mimic writing the session payload to disk so expectations on fs still work
fs.writeFileSync(
`/home/test/.continue/sessions/${session.sessionId}.json`,
JSON.stringify(session),
);
}),
load: vi.fn(() => ({
sessionId: "test-session-id",
title: "Test Session",
workspaceDirectory: "/test/workspace",
history: [],
})),
list: vi.fn(() => []),
}));
vi.mock("core/util/history.js", () => ({
default: mockHistoryManager,
}));
const mockFs = vi.mocked(fs);
@ -71,6 +79,9 @@ describe("SessionManager", () => {
mockFs.readFileSync.mockReturnValue("[]");
mockFs.readdirSync.mockReturnValue([]);
mockFs.statSync.mockReturnValue({ mtime: new Date() } as any);
// Ensure each test starts with a fresh session
clearSession();
});
describe("getCurrentSession", () => {
@ -82,6 +93,15 @@ describe("SessionManager", () => {
title: "Untitled Session",
workspaceDirectory: process.cwd(),
history: [],
usage: {
promptTokens: 0,
completionTokens: 0,
totalCost: 0,
promptTokensDetails: {
cachedTokens: 0,
cacheWriteTokens: 0,
},
},
});
});
@ -102,6 +122,15 @@ describe("SessionManager", () => {
title: "Untitled Session",
workspaceDirectory: process.cwd(),
history: [],
usage: {
promptTokens: 0,
completionTokens: 0,
totalCost: 0,
promptTokensDetails: {
cachedTokens: 0,
cacheWriteTokens: 0,
},
},
});
});
@ -127,6 +156,13 @@ describe("SessionManager", () => {
expect(currentSession).toBe(session);
});
it("should use provided sessionId when supplied", () => {
const session = createSession([], "custom-session-id");
expect(session.sessionId).toBe("custom-session-id");
expect(uuidv4).not.toHaveBeenCalled();
});
});
describe("updateSessionHistory", () => {
@ -217,6 +253,42 @@ describe("SessionManager", () => {
});
});
describe("loadOrCreateSessionById", () => {
it("should load an existing session and set it as current", () => {
const existingSession: Session = {
sessionId: "existing-id",
title: "Existing",
workspaceDirectory: "/test/workspace",
history: [
{
message: { role: "user", content: "hi" },
contextItems: [],
},
],
};
mockHistoryManager.load.mockReturnValue(existingSession);
const session = loadOrCreateSessionById("existing-id");
expect(session).toBe(existingSession);
expect(mockHistoryManager.load).toHaveBeenCalledWith("existing-id");
expect(getCurrentSession()).toBe(existingSession);
});
it("should create a new session when none exists for the id", () => {
mockHistoryManager.load.mockImplementation(() => {
throw new Error("not found");
});
const session = loadOrCreateSessionById("new-id");
expect(session.sessionId).toBe("new-id");
expect(session.history).toEqual([]);
expect(getCurrentSession()).toBe(session);
});
});
describe("loadSession", () => {
it("should return null if session directory doesn't exist", () => {
mockFs.existsSync.mockReturnValue(false);

Some files were not shown because too many files have changed in this diff Show more