diff --git a/.claude/lint-check.sh b/.claude/lint-check.sh new file mode 100755 index 000000000..de9496951 --- /dev/null +++ b/.claude/lint-check.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Get file path from hook input +FILE_PATH=$(cat | jq -r '.tool_input.file_path // .tool_input.edits[].file_path // empty' | head -n1) + +# Function to run lint and typecheck +run_checks() { + local dir=$1 + cd "$dir" + npm run lint >&2 && npm run tsc:check >&2 +} + +# Run checks based on file location +if [[ "$FILE_PATH" == *"/core/"* ]]; then + run_checks core +elif [[ "$FILE_PATH" == *"/gui/"* ]]; then + run_checks gui +elif [[ "$FILE_PATH" == *"/extensions/vscode/"* ]]; then + run_checks extensions/vscode +fi \ No newline at end of file diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 000000000..6aa60b2c8 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,15 @@ +{ + "hooks": { + "PostToolUse": [ + { + "matcher": "Write|Edit|MultiEdit", + "hooks": [ + { + "type": "command", + "command": "$CLAUDE_PROJECT_DIR/.claude/lint-check.sh" + } + ] + } + ] + } +} diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index fe243ae3f..e2ee171af 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,11 @@ blank_issues_enabled: false contact_links: - - name: Something else? Message us on Discord :) + - name: Have a feature request? + url: https://github.com/continuedev/continue/discussions + about: Upvote existing suggestions or make a new one + - name: Have a question? + url: https://github.com/continuedev/continue/discussions + about: Search for existing questions or ask a new one + - name: Something else? Join the Continue Community url: https://discord.gg/vapESyrFmJ - about: Join our Discord to ask questions, share thoughts, and more! + about: Join our Discord to chat with our community diff --git a/.github/ISSUE_TEMPLATE/improvement_suggestion.yml b/.github/ISSUE_TEMPLATE/improvement_suggestion.yml deleted file mode 100644 index d1e43cee9..000000000 --- a/.github/ISSUE_TEMPLATE/improvement_suggestion.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -name: πŸ’ͺ Improvement suggestion -description: Share how you think Continue could be better -labels: [enhancement] -body: - - type: markdown - attributes: - value: | - Thanks for taking the time to share your perspective! We are keen to hear how you think Continue could work better for you. - - type: checkboxes - id: checkboxes - attributes: - label: Validations - description: Before submitting your suggested improvement - options: - - label: I believe this is a way to improve. I'll try to join the [Continue Discord](https://discord.gg/NWtdYexhMs) for questions - required: false - - label: I'm not able to find an [open issue](https://github.com/continuedev/continue/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement) that requests the same enhancement - required: false - - type: textarea - attributes: - label: Problem - description: Please describe the problem you are aiming to solve with this suggested improvement. If applicable, add a screenshot, gif, or video to better convey your idea. - placeholder: | - Short description - validations: - required: false - - type: textarea - attributes: - label: Solution - description: Please describe what you might want to happen to address this issue. If applicable, add a screenshot, gif, or video to better convey your idea. - placeholder: | - Short description - validations: - required: false diff --git a/.github/workflows/compliance.yaml b/.github/workflows/compliance.yaml index 724227354..3b69c00cb 100644 --- a/.github/workflows/compliance.yaml +++ b/.github/workflows/compliance.yaml @@ -40,7 +40,7 @@ jobs: fi - name: Add PR title guidance comment - if: steps.pr-title-check.outputs.valid == 'false' + if: always() && steps.pr-title-check.outputs.valid == 'false' uses: actions/github-script@v7 with: script: | @@ -88,6 +88,9 @@ jobs: ].join('\n') }); } + - name: Ensure job always succeeds + if: always() + run: echo "βœ… Conventional commits check completed (warning only)" security-audit: name: Security Audit diff --git a/.prettierignore b/.prettierignore index a6e71a7f2..97c951ccc 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,6 +10,11 @@ extensions/vscode/.vscode-test extensions/vscode/bin extensions/vscode/build extensions/vscode/out +extensions/vscode/gui +extensions/vscode/e2e/.test-extensions +extensions/vscode/e2e/test-continue +extensions/vscode/models +extensions/intellij/src/main/resources gui/dist **/.continueignore CHANGELOG.md @@ -19,7 +24,4 @@ CHANGELOG.md core/vendor coverage e2e -extensions/vscode/gui -extensions/vscode/models -extensions/intellij/src/main/resources packages/continue-sdk \ No newline at end of file diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 1ba43cfda..179e5fad4 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -1,4 +1,4 @@ -import { ConfigResult } from "@continuedev/config-yaml"; +import { ConfigResult, ConfigValidationError } from "@continuedev/config-yaml"; import { ControlPlaneClient } from "../control-plane/client.js"; import { @@ -46,7 +46,7 @@ export class ConfigHandler { private organizations: OrgWithProfiles[] = []; currentProfile: ProfileLifecycleManager | null; currentOrg: OrgWithProfiles; - totalConfigLoads: number = 0; + totalConfigReloads: number = 0; public isInitialized: Promise; private initter: EventEmitter; @@ -121,7 +121,7 @@ export class ConfigHandler { this.workspaceDirs = null; // forces workspace dirs reload try { - const orgs = await this.getOrgs(); + const { orgs, errors } = await this.getOrgs(); // Figure out selected org const workspaceId = await this.getWorkspaceId(); @@ -136,21 +136,20 @@ export class ConfigHandler { // note, ignoring case of zero orgs since should never happen let selectedOrg: OrgWithProfiles; - if (!currentSelection) { - selectedOrg = fallback; - } else { + if (currentSelection) { const match = orgs.find((org) => org.id === currentSelection); if (match) { selectedOrg = match; } else { selectedOrg = fallback; } + } else { + selectedOrg = fallback; } if (signal.aborted) { return; // local only case, no`fetch to throw abort error } - this.initter.emit("init"); this.globalContext.update("lastSelectedOrgIdForWorkspace", { ...selectedOrgs, @@ -161,28 +160,52 @@ export class ConfigHandler { this.currentOrg = selectedOrg; this.currentProfile = selectedOrg.currentProfile; - await this.reloadConfig(reason); + await this.reloadConfig(reason, errors); } catch (e) { - if (e instanceof Error && e.message.includes("AbortError")) { + if (signal.aborted) { return; } else { - this.initter.emit("init"); // Error case counts for initialization + this.initter.emit("init"); // Error case counts as init throw e; } } } - private async getOrgs(): Promise { + private async getOrgs(): Promise<{ + orgs: OrgWithProfiles[]; + errors?: ConfigValidationError[]; + }> { + const errors: ConfigValidationError[] = []; const isSignedIn = await this.controlPlaneClient.isSignedIn(); if (isSignedIn) { - const orgDescs = await this.controlPlaneClient.listOrganizations(); - const orgs = await Promise.all([ - this.getPersonalHubOrg(), - ...orgDescs.map((org) => this.getNonPersonalHubOrg(org)), - ]); - return orgs; - } else { - return [await this.getLocalOrg()]; + try { + const orgDescs = await this.controlPlaneClient.listOrganizations(); + const orgs = await Promise.all([ + this.getPersonalHubOrg(), + ...orgDescs.map((org) => this.getNonPersonalHubOrg(org)), + ]); + // TODO make try/catch more granular here, to catch specific org errors + return { orgs }; + } catch (e) { + errors.push({ + fatal: false, + message: `Error loading Continue Hub assistants${e instanceof Error ? ":\n" + e.message : ""}`, + }); + } + } + // Load local org if not signed in or hub orgs fail + try { + const orgs = [await this.getLocalOrg()]; + return { orgs }; + } catch (e) { + errors.push({ + fatal: true, + message: `Error loading local assistants${e instanceof Error ? ":\n" + e.message : ""}`, + }); + return { + orgs: [], + errors, + }; } } @@ -276,9 +299,7 @@ export class ConfigHandler { firstNonLocal ?? (profiles.length > 0 ? profiles[0] : null); let currentProfile: ProfileLifecycleManager | null; - if (!currentSelection) { - currentProfile = fallback; - } else { + if (currentSelection) { const match = profiles.find( (profile) => profile.profileDescription.id === currentSelection, ); @@ -287,6 +308,8 @@ export class ConfigHandler { } else { currentProfile = fallback; } + } else { + currentProfile = fallback; } if (currentProfile) { @@ -460,14 +483,17 @@ export class ConfigHandler { // IMPORTANT - must always refresh when switching profiles // Because of e.g. MCP singleton and docs service using things from config // Could improve this - async reloadConfig(reason: string) { + async reloadConfig(reason: string, injectErrors?: ConfigValidationError[]) { const startTime = performance.now(); - this.totalConfigLoads += 1; + this.totalConfigReloads += 1; // console.log(`Reloading config (#${this.totalConfigLoads}): ${reason}`); // Uncomment to see config loading logs if (!this.currentProfile) { return { config: undefined, - errors: [{ message: "Current profile not found", fatal: true }], + errors: [ + { message: "Current profile not found", fatal: true }, + ...(injectErrors ?? []), + ], configLoadInterrupted: true, }; } @@ -483,22 +509,35 @@ export class ConfigHandler { } } - const { config, errors, configLoadInterrupted } = - await this.currentProfile.reloadConfig(this.additionalContextProviders); + const { + config, + errors = [], + configLoadInterrupted, + } = await this.currentProfile.reloadConfig(this.additionalContextProviders); + + if (injectErrors) { + errors.unshift(...injectErrors); + } this.notifyConfigListeners({ config, errors, configLoadInterrupted }); + this.initter.emit("init"); + // Track config loading telemetry const endTime = performance.now(); const duration = endTime - startTime; void Telemetry.capture("config_reload", { duration, reason, - totalConfigLoads: this.totalConfigLoads, + totalConfigLoads: this.totalConfigReloads, configLoadInterrupted, }); - return { config, errors, configLoadInterrupted }; + return { + config, + errors: errors.length ? errors : undefined, + configLoadInterrupted, + }; } // Listeners setup - can listen to current profile updates diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index bef744ffe..ea6b0bf51 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -18,6 +18,7 @@ import { SlashCommandDescWithSource, Tool, } from "../../"; +import { stringifyMcpPrompt } from "../../commands/slash/mcpSlashCommand"; import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; import CurrentFileContextProvider from "../../context/providers/CurrentFileContextProvider"; import MCPContextProvider from "../../context/providers/MCPContextProvider"; @@ -216,15 +217,39 @@ export default async function doLoadConfig(options: { })); newConfig.tools.push(...serverTools); + // Fetch MCP prompt content during config load const serverSlashCommands: SlashCommandDescWithSource[] = - server.prompts.map((prompt) => ({ - name: prompt.name, - description: prompt.description ?? "MCP Prompt", - source: "mcp-prompt", - isLegacy: false, - mcpServerName: server.name, // Used in client to retrieve prompt - mcpArgs: prompt.arguments, - })); + await Promise.all( + server.prompts.map(async (prompt) => { + let promptContent: string | undefined; + + try { + // Fetch the actual prompt content from the MCP server + const mcpPromptResponse = await mcpManager.getPrompt( + server.name, + prompt.name, + {}, // Empty args for now - TODO: handle prompt arguments + ); + promptContent = stringifyMcpPrompt(mcpPromptResponse); + } catch (error) { + console.warn( + `Failed to fetch MCP prompt content for ${prompt.name} from server ${server.name}:`, + error, + ); + // Keep promptContent as undefined so the UI can show a fallback + } + + return { + name: prompt.name, + description: prompt.description ?? "MCP Prompt", + source: "mcp-prompt", + isLegacy: false, + prompt: promptContent, // Store the actual prompt content + mcpServerName: server.name, // Used in client to retrieve prompt + mcpArgs: prompt.arguments, + }; + }), + ); newConfig.slashCommands.push(...serverSlashCommands); const submenuItems = server.resources @@ -333,6 +358,9 @@ export default async function doLoadConfig(options: { }; if (newConfig.analytics) { + // FIXME before re-enabling TeamAnalytics.setup() populate workspaceId in + // controlPlaneProxyInfo to prevent /proxy/analytics/undefined/capture calls + // where undefined is :workspaceId // await TeamAnalytics.setup( // newConfig.analytics, // uniqueId, diff --git a/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts b/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts index bb63bcf74..678be92e0 100644 --- a/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts +++ b/core/control-plane/analytics/ContinueProxyAnalyticsProvider.ts @@ -20,8 +20,12 @@ export default class ContinueProxyAnalyticsProvider event: string, properties: { [key: string]: any }, ): Promise { + if (!this.controlPlaneProxyInfo?.workspaceId) { + return; + } + const url = new URL( - `proxy/analytics/${this.controlPlaneProxyInfo?.workspaceId}/capture`, + `proxy/analytics/${this.controlPlaneProxyInfo.workspaceId}/capture`, this.controlPlaneProxyInfo?.controlPlaneProxyUrl, ).toString(); void fetch(url, { diff --git a/core/edit/searchAndReplace/findSearchMatch.strategy.test.ts b/core/edit/searchAndReplace/findSearchMatch.strategy.test.ts new file mode 100644 index 000000000..b046c9a1d --- /dev/null +++ b/core/edit/searchAndReplace/findSearchMatch.strategy.test.ts @@ -0,0 +1,713 @@ +import { findSearchMatch, SearchMatchResult } from "./findSearchMatch"; + +/** + * Helper function to perform a replacement using the match result + * This simulates what the actual replacement tool would do + */ +function performReplacement( + fileContent: string, + match: SearchMatchResult, + replacement: string, +): string { + return ( + fileContent.substring(0, match.startIndex) + + replacement + + fileContent.substring(match.endIndex) + ); +} + +/** + * Helper function to test a specific strategy by crafting inputs that + * will fail all previous strategies + */ +function testSpecificStrategy( + fileContent: string, + searchContent: string, + expectedStrategy: string, +): SearchMatchResult | null { + const result = findSearchMatch(fileContent, searchContent); + if (result && result.strategyName !== expectedStrategy) { + throw new Error( + `Expected strategy ${expectedStrategy} but got ${result.strategyName}`, + ); + } + return result; +} + +/** + * Helper function to verify that a match result correctly identifies + * the intended content and replacement works properly + */ +function verifyMatchAndReplacement( + fileContent: string, + searchContent: string, + expectedMatchedText: string, + replacementText: string, + expectedResult: string, +): void { + const match = findSearchMatch(fileContent, searchContent); + + if (!match) { + throw new Error("No match found"); + } + + // Verify the match captures the expected text + const actualMatchedText = fileContent.substring( + match.startIndex, + match.endIndex, + ); + expect(actualMatchedText).toBe(expectedMatchedText); + + // Verify replacement works correctly + const result = performReplacement(fileContent, match, replacementText); + expect(result).toBe(expectedResult); +} + +describe("Strategy-specific tests", () => { + describe("exactMatch strategy", () => { + it("should handle exact match at various positions", () => { + const testCases = [ + { + name: "at start", + fileContent: "abc def ghi", + searchContent: "abc", + expectedStart: 0, + expectedEnd: 3, + }, + { + name: "in middle", + fileContent: "abc def ghi", + searchContent: "def", + expectedStart: 4, + expectedEnd: 7, + }, + { + name: "at end", + fileContent: "abc def ghi", + searchContent: "ghi", + expectedStart: 8, + expectedEnd: 11, + }, + { + name: "entire content", + fileContent: "abc def ghi", + searchContent: "abc def ghi", + expectedStart: 0, + expectedEnd: 11, + }, + ]; + + testCases.forEach( + ({ name, fileContent, searchContent, expectedStart, expectedEnd }) => { + const result = testSpecificStrategy( + fileContent, + searchContent, + "exactMatch", + ); + expect(result).not.toBeNull(); + expect(result!.startIndex).toBe(expectedStart); + expect(result!.endIndex).toBe(expectedEnd); + + // Verify the matched content + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toBe(searchContent); + }, + ); + }); + + it("should handle multiline exact matches", () => { + const fileContent = `line1 +line2 +line3 +line4`; + const searchContent = `line2 +line3`; + + const result = testSpecificStrategy( + fileContent, + searchContent, + "exactMatch", + ); + expect(result).not.toBeNull(); + expect(result!.startIndex).toBe(6); // After "line1\n" + expect(result!.endIndex).toBe(17); // End of "line3" + + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toBe(searchContent); + }); + + it("should handle content with special characters", () => { + const fileContent = `const regex = /[a-z]+/gi; +const str = "Hello, World!"; +const result = str.match(regex);`; + const searchContent = `const str = "Hello, World!";`; + + const result = testSpecificStrategy( + fileContent, + searchContent, + "exactMatch", + ); + expect(result).not.toBeNull(); + + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toBe(searchContent); + }); + + it("should verify replacement works correctly for exact matches", () => { + verifyMatchAndReplacement( + "const a = 1;\nconst b = 2;\nconst c = 3;", + "const b = 2;", + "const b = 2;", + "const b = 42;", + "const a = 1;\nconst b = 42;\nconst c = 3;", + ); + }); + + it("should handle Windows-style line endings", () => { + const fileContent = "line1\r\nline2\r\nline3"; + const searchContent = "line2"; + + const result = testSpecificStrategy( + fileContent, + searchContent, + "exactMatch", + ); + expect(result).not.toBeNull(); + expect(result!.startIndex).toBe(7); // After "line1\r\n" + expect(result!.endIndex).toBe(12); // End of "line2" + }); + + it("should handle mixed line endings", () => { + const fileContent = "line1\nline2\r\nline3\rline4"; + const searchContent = "line2\r\nline3"; + + const result = testSpecificStrategy( + fileContent, + searchContent, + "exactMatch", + ); + expect(result).not.toBeNull(); + + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toBe(searchContent); + }); + }); + + describe("trimmedMatch strategy", () => { + it("should match when only whitespace differs at edges", () => { + const testCases = [ + { + name: "leading spaces", + fileContent: "abc\n def\nghi", + searchContent: " def", + trimmedSearch: "def", + }, + { + name: "trailing spaces", + fileContent: "abc\ndef \nghi", + searchContent: "def ", + trimmedSearch: "def", + }, + { + name: "both leading and trailing", + fileContent: "abc\n def \nghi", + searchContent: " def ", + trimmedSearch: "def", + }, + { + name: "tabs and spaces", + fileContent: "abc\n\t def \t\nghi", + searchContent: "\t def \t", + trimmedSearch: "def", + }, + ]; + + testCases.forEach( + ({ name, fileContent, searchContent, trimmedSearch }) => { + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + + // For cases where exact match exists, it should be preferred + if (fileContent.indexOf(searchContent) !== -1) { + expect(result!.strategyName).toBe("exactMatch"); + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toBe(searchContent); + } else { + expect(result!.strategyName).toBe("trimmedMatch"); + // The match should find the trimmed content with surrounding whitespace + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toContain(trimmedSearch); + } + }, + ); + }); + + it("should handle multiline content with edge whitespace", () => { + const fileContent = `function test() { + const x = 1; + const y = 2; +}`; + const searchContent = ` const x = 1; + const y = 2; `; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + // Since there's no exact match (trailing spaces don't exist), trimmedMatch should be used + expect(result!.strategyName).toBe("trimmedMatch"); + }); + + it("should verify replacement with trimmed matches", () => { + const fileContent = "start\n targetContent \nend"; + const searchContent = " targetContent "; + const replacement = "newContent"; + + const match = findSearchMatch(fileContent, searchContent); + expect(match).not.toBeNull(); + expect(match!.strategyName).toBe("trimmedMatch"); + + const result = performReplacement(fileContent, match!, replacement); + expect(result).toBe("start\nnewContent\nend"); + }); + + it("should handle edge case with only whitespace", () => { + const fileContent = " \n \n "; + const searchContent = " \n "; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + // Should find exact match since the content matches exactly + expect(result!.strategyName).toBe("exactMatch"); + }); + }); + + describe("whitespaceIgnoredMatch strategy", () => { + it("should match content with different indentation", () => { + const fileContent = `function test() { + const x = 1; + if (x > 0) { + return true; + } +}`; + const searchContent = `const x=1; +if(x>0){ +return true; +}`; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("whitespaceIgnoredMatch"); + + // Verify the match covers the intended code block + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toContain("const x = 1"); + expect(matchedContent).toContain("return true"); + }); + + it("should handle complex whitespace variations", () => { + const testCases = [ + { + name: "spaces vs tabs", + fileContent: "if\t(\tcondition\t)\t{\n\treturn\ttrue;\n}", + searchContent: "if (condition) { return true; }", + }, + { + name: "multiple spaces collapsed", + fileContent: "const result = calculate( x , y );", + searchContent: "const result=calculate(x,y);", + }, + { + name: "newlines removed", + fileContent: "function\ntest\n(\n)\n{\nreturn\n1\n;\n}", + searchContent: "function test(){return 1;}", + }, + ]; + + testCases.forEach(({ name, fileContent, searchContent }) => { + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("whitespaceIgnoredMatch"); + + // Verify the entire content is matched + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent.replace(/\s/g, "")).toBe( + searchContent.replace(/\s/g, ""), + ); + }); + }); + + it("should handle partial matches with whitespace differences", () => { + const fileContent = `class Example { + constructor(name) { + this.name = name; + this.items = []; + } + + addItem(item) { + this.items.push(item); + } +}`; + const searchContent = `constructor(name){this.name=name;this.items=[];}`; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("whitespaceIgnoredMatch"); + + // The match should cover the constructor method + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toContain("constructor"); + expect(matchedContent).toContain("this.items = []"); + }); + + it("should verify replacement with whitespace-ignored matches", () => { + const fileContent = `function calculate ( a , b ) { + return a + b ; +}`; + const searchContent = `function calculate(a,b){return a+b;}`; + const replacement = `function calculate(x, y) { + return x + y; +}`; + + const match = findSearchMatch(fileContent, searchContent); + expect(match).not.toBeNull(); + expect(match!.strategyName).toBe("whitespaceIgnoredMatch"); + + const result = performReplacement(fileContent, match!, replacement); + expect(result).toBe(replacement); + }); + + it("should handle edge cases with empty content after whitespace removal", () => { + const fileContent = " \n\t\r\n "; + const searchContent = " \n "; + + const result = findSearchMatch(fileContent, searchContent); + // Since search content doesn't exist in file but trims to empty, should return emptySearch + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("emptySearch"); + }); + + it("should match correctly when multiple potential matches exist", () => { + const fileContent = `const a=1; +const a = 1 ; +const a = 1;`; + const searchContent = "const a = 1;"; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + // Should find the exact match first (third occurrence) + expect(result!.strategyName).toBe("exactMatch"); + expect(result!.startIndex).toBe(33); // After first two lines + }); + }); + + describe("jaroWinklerFuzzyMatch strategy", () => { + it("should match similar code with variable name differences", () => { + const fileContent = `function calculateTotal(items) { + let sum = 0; + for (const item of items) { + sum += item.price; + } + return sum; +}`; + const searchContent = `function calculateTotal(products) { + let total = 0; + for (const product of products) { + total += product.price; + } + return total; +}`; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("jaroWinklerFuzzyMatch"); + }); + + it("should match code with minor typos", () => { + const testCases = [ + { + name: "typo in function name", + fileContent: "function getUserName() { return this.name; }", + searchContent: "function getUserNaem() { return this.name; }", + }, + { + name: "typo in variable", + fileContent: "const message = 'Hello World';", + searchContent: "const mesage = 'Hello World';", + }, + { + name: "missing character", + fileContent: "console.log('Debug info');", + searchContent: "console.log('Debug nfo');", + }, + ]; + + testCases.forEach(({ name, fileContent, searchContent }) => { + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("jaroWinklerFuzzyMatch"); + }); + }); + + it("should not match when similarity is too low", () => { + const fileContent = "function add(a, b) { return a + b; }"; + const searchContent = + "class Calculator { multiply(x, y) { return x * y; } }"; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).toBeNull(); + }); + + it("should handle multiline fuzzy matches", () => { + const fileContent = `if (userIsLoggedIn) { + showDashboard(); + loadUserData(); +}`; + const searchContent = `if (isUserLoggedIn) { + displayDashboard(); + fetchUserData(); +}`; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("jaroWinklerFuzzyMatch"); + }); + + it("should verify replacement with fuzzy matches", () => { + const fileContent = "const userName = 'John';"; + const searchContent = "const usrName = 'John';"; // Typo in variable name + const replacement = "const userName = 'Jane';"; + + const match = findSearchMatch(fileContent, searchContent); + expect(match).not.toBeNull(); + expect(match!.strategyName).toBe("jaroWinklerFuzzyMatch"); + + const result = performReplacement(fileContent, match!, replacement); + expect(result).toBe(replacement); + }); + + it("should handle edge case with very short strings", () => { + const fileContent = "ab"; + const searchContent = "ac"; + + const result = findSearchMatch(fileContent, searchContent); + // Should not match due to low similarity on short strings + expect(result).toBeNull(); + }); + }); + + describe("Empty search content", () => { + it("should always return position 0 for empty search", () => { + const testCases = [ + { fileContent: "some content" }, + { fileContent: "" }, + { fileContent: "line1\nline2\nline3" }, + { fileContent: " spaces " }, + ]; + + testCases.forEach(({ fileContent }) => { + const result = findSearchMatch(fileContent, ""); + expect(result).toEqual({ + startIndex: 0, + endIndex: 0, + strategyName: "emptySearch", + }); + }); + }); + + it("should treat whitespace-only search as empty", () => { + const searchVariants = [" ", "\n\n", "\t\t", " \n\t "]; + + searchVariants.forEach((searchContent) => { + const result = findSearchMatch("test content", searchContent); + expect(result).toEqual({ + startIndex: 0, + endIndex: 0, + strategyName: "emptySearch", + }); + }); + }); + }); + + describe("Strategy precedence", () => { + it("should always prefer exact match over other strategies", () => { + const fileContent = `exact match +exact match with spaces +exactmatch`; + + // This should find exact match even though fuzzy would also work + const result = findSearchMatch(fileContent, "exact match"); + expect(result!.strategyName).toBe("exactMatch"); + expect(result!.startIndex).toBe(0); + }); + + it("should prefer trimmed match over whitespace-ignored", () => { + const fileContent = " content "; + const searchContent = " content "; + + // Should find exact match + const result = findSearchMatch(fileContent, searchContent); + expect(result!.strategyName).toBe("exactMatch"); + }); + + it("should prefer whitespace-ignored over fuzzy", () => { + const fileContent = "const x = 1;"; + const searchContent = "const x=1;"; + + // Should use whitespace-ignored, not fuzzy + const result = findSearchMatch(fileContent, searchContent); + expect(result!.strategyName).toBe("whitespaceIgnoredMatch"); + }); + }); + + describe("Replacement verification tests", () => { + it("should correctly replace content found by each strategy", () => { + const testCases = [ + { + name: "exact match replacement", + fileContent: "const a = 1;\nconst b = 2;\nconst c = 3;", + searchContent: "const b = 2;", + replacement: "const b = 42;", + expectedResult: "const a = 1;\nconst b = 42;\nconst c = 3;", + expectedStrategy: "exactMatch", + }, + { + name: "trimmed match replacement", + fileContent: "start\n target \nend", + searchContent: " target ", + replacement: "replaced", + expectedResult: "start\nreplaced\nend", + expectedStrategy: "trimmedMatch", + }, + { + name: "whitespace-ignored replacement", + fileContent: "if ( x > 0 ) { return true; }", + searchContent: "if(x>0){return true;}", + replacement: "if (x > 0) { return false; }", + expectedResult: "if (x > 0) { return false; }", + expectedStrategy: "whitespaceIgnoredMatch", + }, + ]; + + testCases.forEach( + ({ + name, + fileContent, + searchContent, + replacement, + expectedResult, + expectedStrategy, + }) => { + const match = findSearchMatch(fileContent, searchContent); + expect(match).not.toBeNull(); + expect(match!.strategyName).toBe(expectedStrategy); + + const result = performReplacement(fileContent, match!, replacement); + expect(result).toBe(expectedResult); + }, + ); + }); + + it("should handle edge cases in replacement", () => { + // Empty replacement + verifyMatchAndReplacement( + "before target after", + "target", + "target", + "", + "before after", + ); + + // Replacement longer than original + verifyMatchAndReplacement( + "short", + "short", + "short", + "much longer replacement", + "much longer replacement", + ); + + // Multiline replacement + verifyMatchAndReplacement( + "single line", + "single", + "single", + "multi\nline\nreplacement", + "multi\nline\nreplacement line", + ); + }); + }); + + describe("Performance and edge cases", () => { + it("should handle very long content efficiently", () => { + const longContent = "x".repeat(10000) + "target" + "y".repeat(10000); + const result = findSearchMatch(longContent, "target"); + + expect(result).not.toBeNull(); + expect(result!.startIndex).toBe(10000); + expect(result!.endIndex).toBe(10006); + }); + + it("should handle unicode and special characters", () => { + const testCases = [ + { + fileContent: "const emoji = 'πŸš€πŸŒŸπŸŽ‰';", + searchContent: "πŸš€πŸŒŸπŸŽ‰", + }, + { + fileContent: "const chinese = 'δ½ ε₯½δΈ–η•Œ';", + searchContent: "δ½ ε₯½δΈ–η•Œ", + }, + { + fileContent: "const regex = /\\d+/g;", + searchContent: "/\\d+/g", + }, + ]; + + testCases.forEach(({ fileContent, searchContent }) => { + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + + const matchedContent = fileContent.substring( + result!.startIndex, + result!.endIndex, + ); + expect(matchedContent).toContain(searchContent); + }); + }); + + it("should handle null bytes and control characters", () => { + const fileContent = "before\x00null\x01byte\x02after"; + const searchContent = "\x00null\x01byte\x02"; + + const result = findSearchMatch(fileContent, searchContent); + expect(result).not.toBeNull(); + expect(result!.strategyName).toBe("exactMatch"); + }); + }); +}); diff --git a/core/edit/searchAndReplace/findSearchMatch.ts b/core/edit/searchAndReplace/findSearchMatch.ts index 9597d5070..eb0257db7 100644 --- a/core/edit/searchAndReplace/findSearchMatch.ts +++ b/core/edit/searchAndReplace/findSearchMatch.ts @@ -43,20 +43,48 @@ function exactMatch( /** * Trimmed content matching strategy + * Finds content where the search content (when trimmed) matches content in the file, + * and returns the span that includes the file content's whitespace */ function trimmedMatch( fileContent: string, searchContent: string, ): BasicMatchResult | null { const trimmedSearchContent = searchContent.trim(); - const trimmedIndex = fileContent.indexOf(trimmedSearchContent); - if (trimmedIndex !== -1) { - return { - startIndex: trimmedIndex, - endIndex: trimmedIndex + trimmedSearchContent.length, - }; + + // Don't apply if search content has no leading/trailing whitespace to trim + if (trimmedSearchContent === searchContent) { + return null; } - return null; + + // Don't match if trimmed content is empty + if (trimmedSearchContent === "") { + return null; + } + + // Look for the trimmed content in the file + const trimmedContentIndex = fileContent.indexOf(trimmedSearchContent); + if (trimmedContentIndex === -1) { + return null; + } + + // Find the boundaries that include surrounding whitespace (but not newlines) + // Look backwards for horizontal whitespace (spaces and tabs) + let startIndex = trimmedContentIndex; + while (startIndex > 0 && /[ \t]/.test(fileContent[startIndex - 1])) { + startIndex--; + } + + // Look forwards for horizontal whitespace (spaces and tabs) + let endIndex = trimmedContentIndex + trimmedSearchContent.length; + while (endIndex < fileContent.length && /[ \t]/.test(fileContent[endIndex])) { + endIndex++; + } + + return { + startIndex, + endIndex, + }; } /** @@ -298,10 +326,24 @@ export function findSearchMatch( fileContent: string, searchContent: string, ): SearchMatchResult | null { - const trimmedSearchContent = searchContent.trim(); + // Handle truly empty search content + if (searchContent === "") { + return { startIndex: 0, endIndex: 0, strategyName: "emptySearch" }; + } + // Handle whitespace-only search content that trims to empty + const trimmedSearchContent = searchContent.trim(); if (trimmedSearchContent === "") { - // Empty search content matches the beginning of the file + // Check if the whitespace-only search content has an exact match first + const exactIndex = fileContent.indexOf(searchContent); + if (exactIndex !== -1) { + return { + startIndex: exactIndex, + endIndex: exactIndex + searchContent.length, + strategyName: "exactMatch", + }; + } + // If no exact match for whitespace-only content, treat as empty search return { startIndex: 0, endIndex: 0, strategyName: "emptySearch" }; } diff --git a/core/index.d.ts b/core/index.d.ts index 79442065a..eacffcb56 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1069,6 +1069,11 @@ export interface ToolExtras { codeBaseIndexer?: CodebaseIndexer; } +export type ToolPolicy = + | "allowedWithPermission" + | "allowedWithoutPermission" + | "disabled"; + export interface Tool { type: "function"; function: { @@ -1089,6 +1094,7 @@ export interface Tool { group: string; originalFunctionName?: string; systemMessageDescription?: string; + defaultToolPolicy?: ToolPolicy; } interface ToolChoice { diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 92693456d..571a7a700 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -155,6 +155,24 @@ function llmCanGenerateInParallel(provider: string, model: string): boolean { return PARALLEL_PROVIDERS.includes(provider); } +function isProviderHandlesTemplatingOrNoTemplateTypeRequired( + modelName: string, +): boolean { + return ( + modelName.includes("gpt") || + modelName.includes("command") || + modelName.includes("aya") || + modelName.includes("chat-bison") || + modelName.includes("pplx") || + modelName.includes("gemini") || + modelName.includes("grok") || + modelName.includes("moonshot") || + modelName.includes("kimi") || + modelName.includes("mercury") || + /^o\d/.test(modelName) + ); +} + function autodetectTemplateType(model: string): TemplateType | undefined { const lower = model.toLowerCase(); @@ -162,20 +180,10 @@ function autodetectTemplateType(model: string): TemplateType | undefined { return "codellama-70b"; } - if ( - lower.includes("gpt") || - lower.includes("command") || - lower.includes("aya") || - lower.includes("chat-bison") || - lower.includes("pplx") || - lower.includes("gemini") || - lower.includes("grok") || - lower.includes("moonshot") || - lower.includes("mercury") || - /^o\d/.test(lower) - ) { + if (isProviderHandlesTemplatingOrNoTemplateTypeRequired(lower)) { return undefined; } + if (lower.includes("llama3") || lower.includes("llama-3")) { return "llama3"; } diff --git a/core/llm/llms/Anthropic.ts b/core/llm/llms/Anthropic.ts index 1f3647e0c..74c950350 100644 --- a/core/llm/llms/Anthropic.ts +++ b/core/llm/llms/Anthropic.ts @@ -9,6 +9,22 @@ import { safeParseToolCallArgs } from "../../tools/parseArgs.js"; import { renderChatMessage, stripImages } from "../../util/messageContent.js"; import { BaseLLM } from "../index.js"; +const errorMessages = { + invalid_request_error: + "There was an issue with the format or content of your request.", + authentication_error: "There's an issue with your API key.", + permission_error: + "Your API key does not have permission to use the specified resource.", + not_found_error: "The requested resource was not found.", + request_too_large: + "Request exceeds the maximum allowed number of bytes (32 MB limit).", + rate_limit_error: "Your account has hit a rate limit.", + api_error: + "An unexpected error has occurred internal to Anthropic's systems.", + overloaded_error: + "Anthropic's API is temporarily overloaded. Please check their status page: https://status.anthropic.com/#past-incidents", +}; + class Anthropic extends BaseLLM { static providerName = "anthropic"; static defaultOptions: Partial = { @@ -183,9 +199,9 @@ class Anthropic extends BaseLLM { if (!response.ok) { const json = await response.json(); if (json.type === "error") { - if (json.error?.type === "overloaded_error") { + if (json.error?.type in errorMessages) { throw new Error( - "The Anthropic API is currently overloaded. Please check their status page: https://status.anthropic.com/#past-incidents", + errorMessages[json.error.type as keyof typeof errorMessages], ); } throw new Error(json.message); diff --git a/core/llm/rules/getSystemMessageWithRules.ts b/core/llm/rules/getSystemMessageWithRules.ts index 39a30e34d..dc03ad43f 100644 --- a/core/llm/rules/getSystemMessageWithRules.ts +++ b/core/llm/rules/getSystemMessageWithRules.ts @@ -132,7 +132,7 @@ const isFileInDirectory = ( * Checks if a rule is a root-level rule (.continue directory or no file path) */ const isRootLevelRule = (rule: RuleWithSource): boolean => { - return !rule.ruleFile || rule.ruleFile.startsWith(".continue/"); + return !rule.ruleFile || rule.ruleFile.includes(".continue/"); // ruleFile path is absolute - hence we need to check for it in between }; /** diff --git a/core/llm/rules/getSystemMessageWithRules.vitest.ts b/core/llm/rules/getSystemMessageWithRules.vitest.ts index 0b4444cd1..9f350197d 100644 --- a/core/llm/rules/getSystemMessageWithRules.vitest.ts +++ b/core/llm/rules/getSystemMessageWithRules.vitest.ts @@ -69,7 +69,7 @@ describe("Rule colocation glob matching", () => { name: "Root Rule", rule: "Follow project standards", source: "rules-block", - ruleFile: ".continue/rules.md", + ruleFile: "/path/to/repo/.continue/rules.md", // No restriction, should apply to all files }; @@ -212,7 +212,7 @@ describe("Rule policies", () => { name: "Root Rule", rule: "Follow project standards", source: "rules-block", - ruleFile: ".continue/rules.md", + ruleFile: "/my/project/.continue/rules.md", }; // Off policy should override even global rules diff --git a/core/llm/toolSupport.test.ts b/core/llm/toolSupport.test.ts index 8d1a574df..c3397878c 100644 --- a/core/llm/toolSupport.test.ts +++ b/core/llm/toolSupport.test.ts @@ -30,6 +30,11 @@ describe("PROVIDER_TOOL_SUPPORT", () => { ).toBe(true); }); + it("should return true for Gemma models", () => { + expect(supportsFn("ownerSlug/packageSlug/openai/gemma")).toBe(true); + expect(supportsFn("ownerSlug/packageSlug/openai/gemma3")).toBe(true); + }); + it("should return true for O3 models", () => { expect(supportsFn("ownerSlug/packageSlug/openai/o3-preview")).toBe(true); }); @@ -56,6 +61,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => { supportsFn("ownerSlug/packageSlug/anthropic/CLAUDE-3-5-sonnet"), ).toBe(true); expect(supportsFn("ownerSlug/packageSlug/openai/GPT-4-turbo")).toBe(true); + expect(supportsFn("ownerSlug/packageSlug/openai/Gemma3")).toBe(true); expect(supportsFn("ownerSlug/packageSlug/gemini/GEMINI-pro")).toBe(true); }); }); @@ -98,6 +104,11 @@ describe("PROVIDER_TOOL_SUPPORT", () => { expect(supportsFn("o3-preview")).toBe(true); }); + it("should return true for Gemma models", () => { + expect(supportsFn("gemma")).toBe(true); + expect(supportsFn("gemma3")).toBe(true); + }); + it("should return undefined for unsupported models", () => { expect(supportsFn("gpt-3.5-turbo")).toBe(false); expect(supportsFn("davinci")).toBe(false); @@ -106,6 +117,7 @@ describe("PROVIDER_TOOL_SUPPORT", () => { it("should handle case insensitivity", () => { expect(supportsFn("GPT-4-turbo")).toBe(true); expect(supportsFn("O3-preview")).toBe(true); + expect(supportsFn("Gemma3")).toBe(true); }); }); diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index 562c315cc..0cd2e32ba 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -25,6 +25,7 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = "o3", "gemini", "claude-opus-4", + "gemma", ].some((part) => model.toLowerCase().startsWith(part)); }, anthropic: (model) => { @@ -65,6 +66,12 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = if (model.toLowerCase().includes("exaone")) { return true; } + + // https://ai.google.dev/gemma/docs/capabilities/function-calling + if (model.toLowerCase().startsWith("gemma")) { + return true; + } + // firworks-ai https://docs.fireworks.ai/guides/function-calling if (model.startsWith("accounts/fireworks/models/")) { switch (model.substring(26)) { @@ -291,6 +298,22 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = } } + return false; + }, + moonshot: (model) => { + // support moonshot models + // https://platform.moonshot.ai/docs/pricing/chat#concepts + if ( + model.toLowerCase().startsWith("kimi") && + model.toLowerCase() !== "kimi-thinking-preview" + ) { + return true; + } + + if (model.toLowerCase().startsWith("moonshot")) { + return true; + } + return false; }, }; diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 55532eac0..232953f88 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -52,7 +52,6 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { setInactive: [undefined, void]; - submitMessage: [{ message: any }, void]; // any -> JSONContent from TipTap newSessionWithPrompt: [{ prompt: string }, void]; userInput: [{ input: string }, void]; focusContinueInput: [undefined, void]; diff --git a/core/tools/definitions/codebaseTool.ts b/core/tools/definitions/codebaseTool.ts index 0714a230b..f7806bc30 100644 --- a/core/tools/definitions/codebaseTool.ts +++ b/core/tools/definitions/codebaseTool.ts @@ -27,6 +27,7 @@ export const codebaseTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.CodebaseTool, `To search the codebase, use the ${BuiltInToolNames.CodebaseTool} tool with a natural language query. For example, to find authentication logic, you might respond with:`, diff --git a/core/tools/definitions/createNewFile.ts b/core/tools/definitions/createNewFile.ts index 152af5693..e0ba8ee9a 100644 --- a/core/tools/definitions/createNewFile.ts +++ b/core/tools/definitions/createNewFile.ts @@ -31,6 +31,7 @@ export const createNewFileTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.CreateNewFile, `To create a NEW file, use the ${BuiltInToolNames.CreateNewFile} tool with the relative filepath and new contents. For example, to create a file located at 'path/to/file.txt', you would respond with:`, diff --git a/core/tools/definitions/createRuleBlock.ts b/core/tools/definitions/createRuleBlock.ts index e6bf6689e..3ab63f6a4 100644 --- a/core/tools/definitions/createRuleBlock.ts +++ b/core/tools/definitions/createRuleBlock.ts @@ -60,6 +60,7 @@ export const createRuleBlock: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.CreateRuleBlock, `Sometimes the user will provide feedback or guidance on your output. If you were not aware of these "rules", consider using the ${BuiltInToolNames.CreateRuleBlock} tool to persist the rule for future interactions. diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 59e20c681..33ac93e38 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -40,6 +40,7 @@ export const editFileTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.EditExistingFile, `To edit an EXISTING file, use the ${BuiltInToolNames.EditExistingFile} tool with diff --git a/core/tools/definitions/fetchUrlContent.ts b/core/tools/definitions/fetchUrlContent.ts index ae57fc532..5deedc9c7 100644 --- a/core/tools/definitions/fetchUrlContent.ts +++ b/core/tools/definitions/fetchUrlContent.ts @@ -26,6 +26,7 @@ export const fetchUrlContentTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.FetchUrlContent, `To fetch the content of a URL, use the ${BuiltInToolNames.FetchUrlContent} tool. For example, to read the contents of a webpage, you might respond with:`, diff --git a/core/tools/definitions/globSearch.ts b/core/tools/definitions/globSearch.ts index e0f195a66..4d4c01c4f 100644 --- a/core/tools/definitions/globSearch.ts +++ b/core/tools/definitions/globSearch.ts @@ -26,6 +26,7 @@ export const globSearchTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.FileGlobSearch, `To return a list of files based on a glob search pattern, use the ${BuiltInToolNames.FileGlobSearch} tool`, diff --git a/core/tools/definitions/grepSearch.ts b/core/tools/definitions/grepSearch.ts index e276d5a8f..b3017cbd5 100644 --- a/core/tools/definitions/grepSearch.ts +++ b/core/tools/definitions/grepSearch.ts @@ -27,6 +27,7 @@ export const grepSearchTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.GrepSearch, `To perform a grep search within the project, call the ${BuiltInToolNames.GrepSearch} tool with the query pattern to match. For example:`, diff --git a/core/tools/definitions/index.ts b/core/tools/definitions/index.ts new file mode 100644 index 000000000..c1998444c --- /dev/null +++ b/core/tools/definitions/index.ts @@ -0,0 +1,17 @@ +export { codebaseTool } from "./codebaseTool"; +export { createNewFileTool } from "./createNewFile"; +export { createRuleBlock } from "./createRuleBlock"; +export { editFileTool } from "./editFile"; +export { fetchUrlContentTool } from "./fetchUrlContent"; +export { globSearchTool } from "./globSearch"; +export { grepSearchTool } from "./grepSearch"; +export { lsTool } from "./ls"; +export { readCurrentlyOpenFileTool } from "./readCurrentlyOpenFile"; +export { readFileTool } from "./readFile"; +export { requestRuleTool } from "./requestRule"; +export { runTerminalCommandTool } from "./runTerminalCommand"; +export { searchAndReplaceInFileTool } from "./searchAndReplaceInFile"; +export { searchWebTool } from "./searchWeb"; +export { viewDiffTool } from "./viewDiff"; +export { viewRepoMapTool } from "./viewRepoMap"; +export { viewSubdirectoryTool } from "./viewSubdirectory"; diff --git a/core/tools/definitions/ls.ts b/core/tools/definitions/ls.ts index 97d23f4f6..7e66300fe 100644 --- a/core/tools/definitions/ls.ts +++ b/core/tools/definitions/ls.ts @@ -31,6 +31,7 @@ export const lsTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.LSTool, `To list files and folders in a given directory, call the ${BuiltInToolNames.LSTool} tool with "dirPath" and "recursive". For example:`, diff --git a/core/tools/definitions/readCurrentlyOpenFile.ts b/core/tools/definitions/readCurrentlyOpenFile.ts index 3f07f816f..995dbcd1a 100644 --- a/core/tools/definitions/readCurrentlyOpenFile.ts +++ b/core/tools/definitions/readCurrentlyOpenFile.ts @@ -20,6 +20,7 @@ export const readCurrentlyOpenFileTool: Tool = { properties: {}, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.ReadCurrentlyOpenFile, `To view the user's currently open file, use the ${BuiltInToolNames.ReadCurrentlyOpenFile} tool. diff --git a/core/tools/definitions/readFile.ts b/core/tools/definitions/readFile.ts index fb13eba05..eae37f603 100644 --- a/core/tools/definitions/readFile.ts +++ b/core/tools/definitions/readFile.ts @@ -27,6 +27,7 @@ export const readFileTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.ReadFile, `To read a file with a known filepath, use the ${BuiltInToolNames.ReadFile} tool. For example, to read a file located at 'path/to/file.txt', you would respond with this:`, diff --git a/core/tools/definitions/requestRule.ts b/core/tools/definitions/requestRule.ts index 4e2f1ef61..b90c4d7df 100644 --- a/core/tools/definitions/requestRule.ts +++ b/core/tools/definitions/requestRule.ts @@ -60,6 +60,7 @@ export const requestRuleTool: GetTool = ({ rules }) => ({ }, }, }, + defaultToolPolicy: "disabled", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.RequestRule, getRequestRuleSystemMessageDescription(rules), diff --git a/core/tools/definitions/runTerminalCommand.ts b/core/tools/definitions/runTerminalCommand.ts index 8ab379e1b..dea965f5b 100644 --- a/core/tools/definitions/runTerminalCommand.ts +++ b/core/tools/definitions/runTerminalCommand.ts @@ -56,6 +56,7 @@ export const runTerminalCommandTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.RunTerminalCommand, `To run a terminal command, use the ${BuiltInToolNames.RunTerminalCommand} tool diff --git a/core/tools/definitions/searchAndReplaceInFile.ts b/core/tools/definitions/searchAndReplaceInFile.ts index 96dac65da..cdb0d127c 100644 --- a/core/tools/definitions/searchAndReplaceInFile.ts +++ b/core/tools/definitions/searchAndReplaceInFile.ts @@ -11,9 +11,6 @@ export interface SearchAndReplaceInFileArgs { export const NO_PARALLEL_TOOL_CALLING_INSRUCTION = "Note this tool CANNOT be called in parallel."; -const SEARCH_AND_REPLACE_TOOL_DESCRIPTION = `Request to replace sections of content in an existing file using multiple SEARCH/REPLACE blocks that define exact changes to specific parts of the file. This tool should be used when you need to make targeted changes to specific parts of a file. ${NO_PARALLEL_TOOL_CALLING_INSRUCTION}`; -const SEARCH_AND_REPLACE_FILEPATH_DESCRIPTION = - "The path of the file to modify, relative to the root of the workspace."; const SEARCH_AND_REPLACE_EXAMPLE_BLOCK = `------- SEARCH [exact content to find] ======= @@ -40,7 +37,8 @@ const SEARCH_AND_REPLACE_RULES = `Critical rules: * DO NOT make back-to-back tool calls. Instead interleave with brief explanation of what each will do. For example, instead of [explanation, tool call, tool call] you should do [explanation, tool call, explanation, tool call] 6. Special operations: * To move code: Use two SEARCH/REPLACE blocks (one to delete from original + one to insert at new location) - * To delete code: Use empty REPLACE section`; + * To delete code: Use empty REPLACE section +7. You should always read the file before trying to edit it, to ensure you know the up-to-date file contents`; const SEARCH_AND_REPLACE_DIFFS_DESCRIPTION = `An array of strings, each containing one or more SEARCH/REPLACE blocks following this exact format: \`\`\` @@ -73,14 +71,14 @@ export const searchAndReplaceInFileTool: Tool = { isInstant: false, function: { name: BuiltInToolNames.SearchAndReplaceInFile, - description: SEARCH_AND_REPLACE_TOOL_DESCRIPTION, + description: `Request to replace sections of content in an existing file using multiple SEARCH/REPLACE blocks that define exact changes to specific parts of the file. This tool should be used when you need to make targeted changes to specific parts of a file. ${NO_PARALLEL_TOOL_CALLING_INSRUCTION}`, parameters: { type: "object", required: ["filepath", "diffs"], properties: { filepath: { type: "string", - description: SEARCH_AND_REPLACE_FILEPATH_DESCRIPTION, + description: `The path of the file to modify, relative to the root of the workspace.`, }, diffs: { type: "array", @@ -94,7 +92,7 @@ export const searchAndReplaceInFileTool: Tool = { }, systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.SearchAndReplaceInFile, - `To make targeted edits by replacing sections of content in an existing file, use the ${BuiltInToolNames.SearchAndReplaceInFile} tool with a "diffs" argument containing an array of SEARCH/REPLACE blocks that define exact changes to specific parts of the file. + `To make targeted edits by replacing sections of content in an existing file, use the ${BuiltInToolNames.SearchAndReplaceInFile} tool with a filepath (relative to the root of the workspace) and a "diffs" argument containing an array of SEARCH/REPLACE blocks that define exact changes to specific parts of the file. Each block should follow this format: ${SEARCH_AND_REPLACE_EXAMPLE_BLOCK} @@ -106,18 +104,11 @@ ${SEARCH_AND_REPLACE_RULES} [ "diffs", `[ -"------- SEARCH -[exact content to find] -======= -[new content to replace with] -+++++++ REPLACE", -"------- SEARCH -[exact content to find] -======= -[new content to replace with] -+++++++ REPLACE" +"${SEARCH_AND_REPLACE_EXAMPLE_BLOCK}", +"${SEARCH_AND_REPLACE_EXAMPLE_BLOCK}" ]`, ], ], ), + defaultToolPolicy: "allowedWithPermission", }; diff --git a/core/tools/definitions/searchWeb.ts b/core/tools/definitions/searchWeb.ts index bcaa743a3..5d66e83e8 100644 --- a/core/tools/definitions/searchWeb.ts +++ b/core/tools/definitions/searchWeb.ts @@ -26,6 +26,7 @@ export const searchWebTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.SearchWeb, `To search the web, use the ${BuiltInToolNames.SearchWeb} tool with a natural language query. For example, to search for the current weather, you would respond with:`, diff --git a/core/tools/definitions/toolDefinitions.test.ts b/core/tools/definitions/toolDefinitions.test.ts new file mode 100644 index 000000000..a6e3fd717 --- /dev/null +++ b/core/tools/definitions/toolDefinitions.test.ts @@ -0,0 +1,54 @@ +import { describe, expect, it } from "@jest/globals"; +import { ConfigDependentToolParams, GetTool, Tool } from "../.."; +import * as toolDefinitions from "./index"; + +describe("Tool Definitions", () => { + // Mock params for tools that need them + const mockParams: ConfigDependentToolParams = { + rules: [], + enableExperimentalTools: false, + }; + + // Helper function to get the actual tool object + const getToolObject = (toolDefinition: Tool | GetTool): Tool => { + if (typeof toolDefinition === "function") { + return toolDefinition(mockParams); + } + return toolDefinition; + }; + + it("should have all required parameters defined in properties for each tool", () => { + const exportedTools = Object.values(toolDefinitions); + + exportedTools.forEach((toolDefinition) => { + const tool = getToolObject(toolDefinition); + + // Each tool should have the required structure + expect(tool).toHaveProperty("type", "function"); + expect(tool).toHaveProperty("function"); + expect(tool.function).toHaveProperty("parameters"); + + const parameters = tool.function.parameters; + + // If there are required parameters, they should be defined in properties + if ( + parameters && + parameters.required && + Array.isArray(parameters.required) + ) { + expect(parameters).toHaveProperty("properties"); + expect(typeof parameters.properties).toBe("object"); + + // Check each required parameter is defined in properties + parameters.required.forEach((requiredParam: string) => { + expect(parameters.properties).toHaveProperty(requiredParam); + + // Each property should have at least a type + const property = parameters.properties[requiredParam]; + expect(property).toHaveProperty("type"); + expect(typeof property.type).toBe("string"); + }); + } + }); + }); +}); diff --git a/core/tools/definitions/viewDiff.ts b/core/tools/definitions/viewDiff.ts index bf488f171..ceaa241ec 100644 --- a/core/tools/definitions/viewDiff.ts +++ b/core/tools/definitions/viewDiff.ts @@ -20,6 +20,7 @@ export const viewDiffTool: Tool = { properties: {}, }, }, + defaultToolPolicy: "allowedWithoutPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.ViewDiff, `To view the current git diff, use the ${BuiltInToolNames.ViewDiff} tool. This will show you the changes made in the working directory compared to the last commit.`, diff --git a/core/tools/definitions/viewRepoMap.ts b/core/tools/definitions/viewRepoMap.ts index a58584fc1..147ce132f 100644 --- a/core/tools/definitions/viewRepoMap.ts +++ b/core/tools/definitions/viewRepoMap.ts @@ -20,6 +20,7 @@ export const viewRepoMapTool: Tool = { properties: {}, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.ViewRepoMap, `To view the repository map, use the ${BuiltInToolNames.ViewRepoMap} tool. This will provide a visual representation of the project's structure and organization.`, diff --git a/core/tools/definitions/viewSubdirectory.ts b/core/tools/definitions/viewSubdirectory.ts index 11c27a775..0d45e922b 100644 --- a/core/tools/definitions/viewSubdirectory.ts +++ b/core/tools/definitions/viewSubdirectory.ts @@ -26,6 +26,7 @@ export const viewSubdirectoryTool: Tool = { }, }, }, + defaultToolPolicy: "allowedWithPermission", systemMessageDescription: createSystemMessageExampleCall( BuiltInToolNames.ViewSubdirectory, `To view a map of a specific folder within the project, you can use the ${BuiltInToolNames.ViewSubdirectory} tool. This will provide a visual representation of the folder's structure and organization.`, diff --git a/core/tools/index.ts b/core/tools/index.ts index 1246c937f..540f4d2bb 100644 --- a/core/tools/index.ts +++ b/core/tools/index.ts @@ -1,50 +1,38 @@ import { ConfigDependentToolParams, IDE, Tool } from ".."; -import { codebaseTool } from "./definitions/codebaseTool"; -import { createNewFileTool } from "./definitions/createNewFile"; -import { createRuleBlock } from "./definitions/createRuleBlock"; -import { editFileTool } from "./definitions/editFile"; -import { fetchUrlContentTool } from "./definitions/fetchUrlContent"; -import { globSearchTool } from "./definitions/globSearch"; -import { grepSearchTool } from "./definitions/grepSearch"; -import { lsTool } from "./definitions/ls"; -import { readCurrentlyOpenFileTool } from "./definitions/readCurrentlyOpenFile"; -import { readFileTool } from "./definitions/readFile"; -import { requestRuleTool } from "./definitions/requestRule"; -import { runTerminalCommandTool } from "./definitions/runTerminalCommand"; -import { searchAndReplaceInFileTool } from "./definitions/searchAndReplaceInFile"; -import { searchWebTool } from "./definitions/searchWeb"; -import { viewDiffTool } from "./definitions/viewDiff"; -import { viewRepoMapTool } from "./definitions/viewRepoMap"; -import { viewSubdirectoryTool } from "./definitions/viewSubdirectory"; +import * as toolDefinitions from "./definitions"; // I'm writing these as functions because we've messed up 3 TIMES by pushing to const, causing duplicate tool definitions on subsequent config loads. // missing support for remote os calls: https://github.com/microsoft/vscode/issues/252269 -const getLocalOnlyToolDefinitions = () => [grepSearchTool]; +const getLocalOnlyToolDefinitions = () => [toolDefinitions.grepSearchTool]; const getBaseToolDefinitions = () => [ - readFileTool, - createNewFileTool, - runTerminalCommandTool, - globSearchTool, - searchWebTool, - viewDiffTool, - readCurrentlyOpenFileTool, - lsTool, - createRuleBlock, - fetchUrlContentTool, + toolDefinitions.readFileTool, + toolDefinitions.createNewFileTool, + toolDefinitions.runTerminalCommandTool, + toolDefinitions.globSearchTool, + toolDefinitions.searchWebTool, + toolDefinitions.viewDiffTool, + toolDefinitions.readCurrentlyOpenFileTool, + toolDefinitions.lsTool, + toolDefinitions.createRuleBlock, + toolDefinitions.fetchUrlContentTool, ]; export const getConfigDependentToolDefinitions = ( params: ConfigDependentToolParams, ): Tool[] => [ - requestRuleTool(params), + toolDefinitions.requestRuleTool(params), // Search and replace is now generally available - searchAndReplaceInFileTool, + toolDefinitions.searchAndReplaceInFileTool, // Keep edit file tool available for models that need it - editFileTool, + toolDefinitions.editFileTool, ...(params.enableExperimentalTools - ? [viewRepoMapTool, viewSubdirectoryTool, codebaseTool] + ? [ + toolDefinitions.viewRepoMapTool, + toolDefinitions.viewSubdirectoryTool, + toolDefinitions.codebaseTool, + ] : []), ]; diff --git a/docs/c15t-cookie-banner.js b/docs/c15t-cookie-banner.js new file mode 100644 index 000000000..c88902dcc --- /dev/null +++ b/docs/c15t-cookie-banner.js @@ -0,0 +1,505 @@ +// Cookie Banner Implementation for Continue Documentation +// This script implements a cookie consent banner in offline mode + +(function () { + "use strict"; + + // Configuration + const COOKIE_NAME = "continue_cookie_consent"; + const COOKIE_EXPIRY_DAYS = 365; + + // Default consent state + const defaultConsent = { + necessary: true, + analytics: false, + marketing: false, + }; + + // Wait for the page to fully load + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", initializeCookieBanner); + } else { + initializeCookieBanner(); + } + + function initializeCookieBanner() { + // Check if banner is already initialized + if (window.cookieBannerInitialized) { + return; + } + window.cookieBannerInitialized = true; + + // Get stored consent + const storedConsent = getStoredConsent(); + + // Apply stored consent or show banner + if (storedConsent) { + applyConsent(storedConsent); + } else { + // Set default consent (deny all except necessary) + applyConsent(defaultConsent); + showCookieBanner(); + } + } + + function getStoredConsent() { + const cookie = document.cookie + .split(";") + .find((c) => c.trim().startsWith(COOKIE_NAME + "=")); + if (cookie) { + try { + return JSON.parse(decodeURIComponent(cookie.split("=")[1])); + } catch (e) { + console.error("Failed to parse consent cookie:", e); + } + } + return null; + } + + function setConsentCookie(consent) { + const date = new Date(); + date.setTime(date.getTime() + COOKIE_EXPIRY_DAYS * 24 * 60 * 60 * 1000); + const expires = "expires=" + date.toUTCString(); + document.cookie = + COOKIE_NAME + + "=" + + encodeURIComponent(JSON.stringify(consent)) + + ";" + + expires + + ";path=/;SameSite=Lax"; + } + + function applyConsent(consent) { + // Apply Google Analytics consent + if (window.gtag) { + window.gtag("consent", "update", { + analytics_storage: consent.analytics ? "granted" : "denied", + ad_user_data: consent.marketing ? "granted" : "denied", + ad_personalization: consent.marketing ? "granted" : "denied", + }); + } + + // Apply PostHog consent + if (window.posthog) { + if (consent.analytics) { + window.posthog.opt_in_capturing(); + } else { + window.posthog.opt_out_capturing(); + } + } + + // Store consent + setConsentCookie(consent); + } + + function showCookieBanner() { + // Create banner (no overlay - users can continue browsing) + const banner = document.createElement("div"); + banner.className = "cookie-banner"; + banner.innerHTML = ` + + `; + + document.body.appendChild(banner); + + // Make functions globally available + window.acceptAllCookies = function () { + const consent = { + necessary: true, + analytics: true, + marketing: true, + }; + applyConsent(consent); + hideCookieBanner(); + }; + + window.showPreferencesDialog = showPreferencesDialog; + } + + function hideCookieBanner() { + const banner = document.querySelector(".cookie-banner"); + if (banner) banner.remove(); + } + + function showPreferencesDialog() { + hideCookieBanner(); + + const currentConsent = getStoredConsent() || defaultConsent; + + // Create dialog overlay + const dialogOverlay = document.createElement("div"); + dialogOverlay.className = "cookie-dialog-overlay"; + dialogOverlay.onclick = function (e) { + if (e.target === dialogOverlay) { + hidePreferencesDialog(); + } + }; + + // Create dialog + const dialog = document.createElement("div"); + dialog.className = "cookie-dialog"; + dialog.innerHTML = ` + + + + `; + + dialogOverlay.appendChild(dialog); + document.body.appendChild(dialogOverlay); + + // Make functions globally available + window.hidePreferencesDialog = hidePreferencesDialog; + + window.rejectAllCookies = function () { + const consent = { + necessary: true, + analytics: false, + marketing: false, + }; + applyConsent(consent); + hidePreferencesDialog(); + }; + + window.savePreferences = function () { + const consent = { + necessary: true, + analytics: document.getElementById("cookie-analytics").checked, + marketing: document.getElementById("cookie-marketing").checked, + }; + applyConsent(consent); + hidePreferencesDialog(); + }; + } + + function hidePreferencesDialog() { + const dialogOverlay = document.querySelector(".cookie-dialog-overlay"); + if (dialogOverlay) dialogOverlay.remove(); + } + + // Add styles + const style = document.createElement("style"); + style.textContent = ` + + .cookie-banner { + position: fixed; + bottom: 0; + left: 0; + right: 0; + background: #1a1a1a; + color: #ffffff; + padding: 1.5rem; + z-index: 9999; + box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); + } + + .cookie-banner-content { + max-width: 1200px; + margin: 0 auto; + display: flex; + align-items: center; + justify-content: space-between; + gap: 2rem; + flex-wrap: wrap; + } + + .cookie-banner-text { + flex: 1; + min-width: 300px; + } + + .cookie-banner-text p { + margin: 0; + font-size: 14px; + line-height: 1.5; + } + + .cookie-banner-actions { + display: flex; + gap: 1rem; + flex-wrap: wrap; + } + + .cookie-btn { + padding: 0.5rem 1.5rem; + border: none; + border-radius: 4px; + font-size: 14px; + font-weight: 500; + cursor: pointer; + transition: all 0.2s; + white-space: nowrap; + } + + .cookie-btn-primary { + background: #6b7280; + color: #ffffff; + } + + .cookie-btn-primary:hover { + background: #4b5563; + } + + .cookie-btn-secondary { + background: transparent; + color: #ffffff; + border: 1px solid #6b7280; + } + + .cookie-btn-secondary:hover { + background: #6b7280; + } + + /* Dialog-specific button styles */ + .cookie-dialog-footer .cookie-btn-secondary { + color: #6b7280; + border-color: #6b7280; + } + + .cookie-dialog-footer .cookie-btn-secondary:hover { + color: #ffffff; + background: #6b7280; + } + + .cookie-dialog-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.5); + z-index: 10000; + display: flex; + align-items: center; + justify-content: center; + padding: 1rem; + } + + .cookie-dialog { + background: #ffffff; + border-radius: 8px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); + max-width: 600px; + width: 100%; + max-height: 90vh; + overflow: hidden; + display: flex; + flex-direction: column; + } + + .cookie-dialog-header { + padding: 1.5rem; + border-bottom: 1px solid #e5e7eb; + display: flex; + align-items: center; + justify-content: space-between; + } + + .cookie-dialog-header h2 { + margin: 0; + font-size: 1.5rem; + color: #1a1a1a; + } + + .cookie-dialog-close { + background: none; + border: none; + font-size: 1.5rem; + color: #6b7280; + cursor: pointer; + padding: 0; + width: 2rem; + height: 2rem; + display: flex; + align-items: center; + justify-content: center; + border-radius: 4px; + transition: all 0.2s; + } + + .cookie-dialog-close:hover { + background: #f3f4f6; + } + + .cookie-dialog-body { + padding: 1.5rem; + overflow-y: auto; + flex: 1; + } + + .cookie-dialog-body > p { + margin: 0 0 1.5rem 0; + color: #6b7280; + line-height: 1.5; + } + + .cookie-category { + margin-bottom: 1.5rem; + padding-bottom: 1.5rem; + border-bottom: 1px solid #e5e7eb; + } + + .cookie-category:last-child { + margin-bottom: 0; + padding-bottom: 0; + border-bottom: none; + } + + .cookie-category-header { + display: flex; + align-items: flex-start; + gap: 1rem; + } + + .cookie-category-info { + flex: 1; + } + + .cookie-category-info h3 { + margin: 0 0 0.5rem 0; + font-size: 1.1rem; + color: #1a1a1a; + } + + .cookie-category-info p { + margin: 0; + color: #6b7280; + font-size: 14px; + line-height: 1.5; + } + + .cookie-switch { + position: relative; + display: inline-block; + width: 48px; + height: 24px; + flex-shrink: 0; + } + + .cookie-switch input { + opacity: 0; + width: 0; + height: 0; + } + + .cookie-slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #e5e7eb; + transition: .4s; + border-radius: 24px; + } + + .cookie-slider:before { + position: absolute; + content: ""; + height: 16px; + width: 16px; + left: 4px; + bottom: 4px; + background-color: white; + transition: .4s; + border-radius: 50%; + } + + .cookie-switch input:checked + .cookie-slider { + background-color: #6b7280; + } + + .cookie-switch input:checked + .cookie-slider:before { + transform: translateX(24px); + } + + .cookie-switch input:disabled + .cookie-slider { + background-color: #9ca3af; + cursor: not-allowed; + } + + .cookie-dialog-footer { + padding: 1.5rem; + border-top: 1px solid #e5e7eb; + display: flex; + justify-content: flex-end; + gap: 1rem; + } + + @media (max-width: 640px) { + .cookie-banner-content { + flex-direction: column; + align-items: stretch; + } + + .cookie-banner-actions { + justify-content: stretch; + } + + .cookie-btn { + flex: 1; + } + + .cookie-dialog { + margin: 1rem; + } + } + `; + document.head.appendChild(style); +})(); diff --git a/docs/customization/mcp-tools.mdx b/docs/customization/mcp-tools.mdx index 028417d43..a23f7f840 100644 --- a/docs/customization/mcp-tools.mdx +++ b/docs/customization/mcp-tools.mdx @@ -13,4 +13,4 @@ description: "Model Context Protocol servers provide specialized functionality:" ## Learn More -Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. +Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. diff --git a/docs/customize/deep-dives/model-capabilities.mdx b/docs/customize/deep-dives/model-capabilities.mdx new file mode 100644 index 000000000..df1daefc5 --- /dev/null +++ b/docs/customize/deep-dives/model-capabilities.mdx @@ -0,0 +1,246 @@ +--- +title: Model Capabilities +description: Understanding and configuring model capabilities for tools and image support +keywords: [capabilities, tools, function calling, image input, config] +--- + +Continue needs to know what features your models support to provide the best experience. This guide explains how model capabilities work and how to configure them. + +## What are Model Capabilities? + +Model capabilities tell Continue what features a model supports: + +- **`tool_use`** - Whether the model can use tools and functions +- **`image_input`** - Whether the model can process images + +Without proper capability configuration, you may encounter issues like: + +- Agent mode being unavailable (requires tools) +- Tools not working at all +- Image uploads being disabled + +## How Continue Detects Capabilities + +Continue uses a two-tier system for determining model capabilities: + +### 1. Automatic Detection (Default) + +Continue automatically detects capabilities based on your provider and model name. For example: + +- **OpenAI**: GPT-4 and GPT-3.5 Turbo models support tools +- **Anthropic**: Claude 3.5+ models support both tools and images +- **Ollama**: Most models support tools, vision models support images +- **Google**: All Gemini models support function calling + +This works well for popular models, but may not cover custom deployments or newer models. + +For implementation details, see: + +- [toolSupport.ts](https://github.com/continuedev/continue/blob/main/core/llm/toolSupport.ts) - Tool capability detection logic +- [@continuedev/llm-info](https://www.npmjs.com/package/@continuedev/llm-info) - Image support detection + +### 2. Manual Configuration + +You can add capabilities to models that Continue doesn't automatically detect in your `config.yaml`. + + +You cannot override autodetection - you can only add capabilities. Continue will always use its built-in knowledge about your model in addition to any capabilities you specify. + + +```yaml +models: + - name: my-custom-gpt4 + provider: openai + apiBase: https://my-deployment.com/v1 + model: gpt-4-custom + capabilities: + - tool_use + - image_input +``` + +## When to Add Capabilities + +Add capabilities when: + +1. **Using custom deployments** - Your API endpoint serves a model with different capabilities than the standard version +2. **Using newer models** - Continue doesn't yet recognize a newly released model +3. **Experiencing issues** - Autodetection isn't working correctly for your setup +4. **Using proxy services** - Some proxy services modify model capabilities + +## Configuration Examples + +### Basic Configuration + +Add tool support for a model that Continue doesn't recognize: + +```yaml +models: + - name: custom-model + provider: openai + model: my-fine-tuned-gpt4 + capabilities: + - tool_use +``` + + + The `tool_use` capability is for native tool/function calling support. The + model must actually support tools for this to work. + + + + **Experimental**: System message tools are available as an experimental feature + for models without native tool support. These are not automatically used as a + fallback and must be explicitly configured. Most models are trained for native + tools, so system message tools may not work as well. + + +### Disable Capabilities + +Explicitly set no capabilities (autodetection will still apply): + +```yaml +models: + - name: limited-claude + provider: anthropic + model: claude-4.0-sonnet + capabilities: [] # Empty array doesn't disable autodetection +``` + + + An empty capabilities array does not disable autodetection. Continue will + still detect and use the model's actual capabilities. To truly limit a model's + capabilities, you would need to use a model that doesn't support those + features. + + +### Multiple Capabilities + +Enable both tools and image support: + +```yaml +models: + - name: multimodal-gpt + provider: openai + model: gpt-4-vision-preview + capabilities: + - tool_use + - image_input +``` + +## Common Scenarios + +Some providers and custom deployments may require explicit capability configuration: + +- **OpenRouter**: May not preserve the original model's capabilities +- **Custom API endpoints**: May have different capabilities than standard models +- **Local models**: May need explicit capabilities if using non-standard model names + +Example configuration: + +```yaml +models: + - name: custom-deployment + provider: openai + apiBase: https://custom-api.company.com/v1 + model: custom-gpt + capabilities: + - tool_use # If supports function calling + - image_input # If supports vision +``` + +## Troubleshooting + +For troubleshooting capability-related issues like Agent mode being unavailable or tools not working, see the [Troubleshooting guide](/troubleshooting#agent-mode-is-unavailable-or-tools-arent-working). + +## Best Practices + +1. **Start with autodetection** - Only override if you experience issues +2. **Test after changes** - Verify tools and images work as expected +3. **Keep Continue updated** - Newer versions improve autodetection + +Remember: Setting capabilities only adds to autodetection. Continue will still use its built-in knowledge about your model in addition to your specified capabilities. + +## Model Capability Support + +This matrix shows which models support tool use and image input capabilities. Continue auto-detects these capabilities, but you can override them if needed. + +### OpenAI + +| Model | Tool Use | Image Input | Context Window | +| :------------ | -------- | ----------- | -------------- | +| o3 | Yes | No | 128k | +| o3-mini | Yes | No | 128k | +| GPT-4o | Yes | Yes | 128k | +| GPT-4 Turbo | Yes | Yes | 128k | +| GPT-4 | Yes | No | 8k | +| GPT-3.5 Turbo | Yes | No | 16k | + +### Anthropic + +| Model | Tool Use | Image Input | Context Window | +| :---------------- | -------- | ----------- | -------------- | +| Claude 4 Sonnet | Yes | Yes | 200k | +| Claude 3.5 Sonnet | Yes | Yes | 200k | +| Claude 3.5 Haiku | Yes | Yes | 200k | + +### Google + +| Model | Tool Use | Image Input | Context Window | +| :--------------- | -------- | ----------- | -------------- | +| Gemini 2.5 Pro | Yes | Yes | 2M | +| Gemini 2.0 Flash | Yes | Yes | 1M | + +### Mistral + +| Model | Tool Use | Image Input | Context Window | +| :-------------- | -------- | ----------- | -------------- | +| Devstral Medium | Yes | No | 32k | +| Mistral | Yes | No | 32k | + +### DeepSeek + +| Model | Tool Use | Image Input | Context Window | +| :---------------- | -------- | ----------- | -------------- | +| DeepSeek V3 | Yes | No | 128k | +| DeepSeek Coder V2 | Yes | No | 128k | +| DeepSeek Chat | Yes | No | 64k | + +### xAI + +| Model | Tool Use | Image Input | Context Window | +| :----- | -------- | ----------- | -------------- | +| Grok 4 | Yes | Yes | 128k | + +### Moonshot AI + +| Model | Tool Use | Image Input | Context Window | +| :------ | -------- | ----------- | -------------- | +| Kimi K2 | Yes | Yes | 128k | + +### Qwen + +| Model | Tool Use | Image Input | Context Window | +| :---------------- | -------- | ----------- | -------------- | +| Qwen Coder 3 480B | Yes | No | 128k | + +### Ollama (Local Models) + +| Model | Tool Use | Image Input | Context Window | +| :------------- | -------- | ----------- | -------------- | +| Qwen 3 Coder | Yes | No | 32k | +| Devstral Small | Yes | No | 32k | +| Llama 3.1 | Yes | No | 128k | +| Llama 3 | Yes | No | 8k | +| Mistral | Yes | No | 32k | +| Codestral | Yes | No | 32k | +| Gemma 3 4B | Yes | No | 8k | + +### Notes + +- **Tool Use**: Function calling support (tools are required for Agent mode) +- **Image Input**: Processing images +- **Context Window**: Maximum number of tokens the model can process in a single request + +--- + +**Is your model missing or incorrect?** Help improve this documentation! You can edit this page on GitHub using the link below. diff --git a/docs/customize/model-providers/llamastack.mdx b/docs/customize/model-providers/more/llamastack.mdx similarity index 100% rename from docs/customize/model-providers/llamastack.mdx rename to docs/customize/model-providers/more/llamastack.mdx diff --git a/docs/customize/model-providers/more/lmstudio.mdx b/docs/customize/model-providers/more/lmstudio.mdx index e6f6f84af..6fdaf9e7d 100644 --- a/docs/customize/model-providers/more/lmstudio.mdx +++ b/docs/customize/model-providers/more/lmstudio.mdx @@ -4,13 +4,17 @@ title: "LM Studio" [LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class: +## Chat model + +We recommend configuring **Llama3.1 8B** as your chat model. + ```yaml title="config.yaml" models: - - name: LM Studio + - name: Llama3.1 8B Instruct provider: lmstudio - model: llama2-7b + model: meta-llama-3.1-8b-instruct ``` @@ -18,9 +22,9 @@ title: "LM Studio" { "models": [ { - "title": "LM Studio", + "title": "Llama3.1 8B Instruct", "provider": "lmstudio", - "model": "llama2-7b" + "model": "meta-llama-3.1-8b-instruct" } ] } @@ -28,7 +32,7 @@ title: "LM Studio" -### Embeddings model +## Embeddings model LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models) @@ -63,21 +67,24 @@ To configure a remote instance of LM Studio, add the `"apiBase"` property to you ```yaml title="config.yaml" models: - - name: Nomic Embed Text + - name: Llama3.1 8B Instruct provider: lmstudio - model: nomic-ai/nomic-embed-text-v1.5-GGUF - roles: - - embed + model: meta-llama-3.1-8b-instruct + apiBase: http:///v1 ``` ```json title="config.json" - { - "embeddingsProvider": { - "provider": "lmstudio", - "model": "nomic-ai/nomic-embed-text-v1.5-GGUF" + { + "models": [ + { + "title": "Llama3.1 8B Instruct", + "provider": "lmstudio", + "model": "meta-llama-3.1-8b-instruct", + "apiBase": "http:///v1" + } + ] } - } ``` diff --git a/docs/customize/model-providers/more/openrouter.mdx b/docs/customize/model-providers/more/openrouter.mdx index 67f1c6051..f1be54017 100644 --- a/docs/customize/model-providers/more/openrouter.mdx +++ b/docs/customize/model-providers/more/openrouter.mdx @@ -71,3 +71,50 @@ For example, to prevent extra long prompts from being compressed, you can explic Learn more about available settings [here](https://openrouter.ai/docs). + +## Model Capabilities + +OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the original model's function calling support. + + + Continue automatically uses system message tools for models that don't support native function calling, so Agent mode should work even without explicit capability configuration. However, you can still override capabilities if needed. + + +If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field: + + + + ```yaml title="config.yaml" + models: + - name: Claude via OpenRouter + provider: openrouter + model: anthropic/claude-3.5-sonnet + apiBase: https://openrouter.ai/api/v1 + apiKey: + capabilities: + - tool_use # Enable function calling for Agent mode + - image_input # Enable image upload support + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Claude via OpenRouter", + "provider": "openrouter", + "model": "anthropic/claude-3.5-sonnet", + "apiBase": "https://openrouter.ai/api/v1", + "apiKey": "", + "capabilities": { + "tools": true, + "uploadImage": true + } + } + ] + } + ``` + + + +Note: Not all models support function calling. Check the [OpenRouter models page](https://openrouter.ai/models) for specific model capabilities. diff --git a/docs/customize/model-providers/top-level/ollama.mdx b/docs/customize/model-providers/top-level/ollama.mdx index a592c289a..6c2d4002f 100644 --- a/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/customize/model-providers/top-level/ollama.mdx @@ -123,3 +123,42 @@ To configure a remote instance of Ollama, add the `"apiBase"` property to your m ``` + +## Model Capabilities + +Ollama models usually have their capabilities auto-detected correctly. However, if you're using custom model names or experiencing issues with tools/images not working, you can explicitly set capabilities: + + + + ```yaml title="config.yaml" + models: + - name: Custom Vision Model + provider: ollama + model: my-custom-llava + capabilities: + - tool_use # Enable if your model supports function calling + - image_input # Enable for vision models like llava + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Custom Vision Model", + "provider": "ollama", + "model": "my-custom-llava", + "capabilities": { + "tools": true, + "uploadImage": true + } + } + ] + } + ``` + + + + +Most standard Ollama models (like llama3.1, mistral, etc.) support tool use by default. Vision models (like llava) also support image input. + diff --git a/docs/docs.json b/docs/docs.json index 9fcd181c9..6bbeafc18 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -125,6 +125,7 @@ "customize/model-providers/more/together", "customize/model-providers/more/lmstudio", "customize/model-providers/more/llamacpp", + "customize/model-providers/more/llamastack", "customize/model-providers/more/openrouter", "customize/model-providers/more/huggingfaceinferenceapi", "customize/model-providers/more/cohere", @@ -168,7 +169,8 @@ "customize/deep-dives/autocomplete", "customize/deep-dives/development-data", "customize/deep-dives/vscode-actions", - "customize/deep-dives/mcp" + "customize/deep-dives/mcp", + "customize/deep-dives/model-capabilities" ] }, { @@ -704,10 +706,6 @@ "source": "/advanced/model-providers/more/flowise", "destination": "/customize/model-providers/more/flowise" }, - { - "source": "/advanced/model-providers/more/llamastack", - "destination": "/customize/model-providers/llamastack" - }, { "source": "/reference/Model Providers/huggingfaceinferenceapi", "destination": "/customize/model-providers/more/huggingfaceinferenceapi" @@ -740,6 +738,14 @@ "source": "/advanced/model-providers/more/llamacpp", "destination": "/customize/model-providers/more/llamacpp" }, + { + "source": "/reference/Model Providers/llamastack", + "destination": "/customize/model-providers/more/llamastack" + }, + { + "source": "/advanced/model-providers/more/llamastack", + "destination": "/customize/model-providers/more/llamastack" + }, { "source": "/reference/Model Providers/llamafile", "destination": "/customize/model-providers/more/llamafile" diff --git a/docs/features/agent/model-setup.mdx b/docs/features/agent/model-setup.mdx index a089c20c1..88a22aa55 100644 --- a/docs/features/agent/model-setup.mdx +++ b/docs/features/agent/model-setup.mdx @@ -1,3 +1,37 @@ -The models you set up for Chat mode will be used with Agent mode if the model supports tool calling. +The models you set up for Chat mode will be used with Agent mode if the model supports tool calling. The recommended models and how to set them up can be found [here](/features/chat/model-setup). -The recommended models and how to set them up can be found [here](/features/chat/model-setup). +## System Message Tools + + + System message tools are experimental and may change in future releases. + + +Continue implements an innovative approach called **system message tools** that ensures consistent tool functionality across all models, regardless of their native capabilities. This allows Agent mode to work seamlessly with a wider range of models and providers. + +### How It Works + +Instead of relying solely on native tool calling APIs (which vary between providers), Continue converts tools into XML format and includes them in the system message. The model generates tool calls as structured XML within its response, which Continue then parses and executes. This approach provides: + +- **Universal compatibility** - Any model capable of following instructions can use tools, not just those with native tool support +- **Consistent behavior** - Tool calls work identically across OpenAI, Anthropic, local models, and others +- **Better reliability** - Models that struggle with native tools often perform better with system message tools +- **Seamless switching** - Change between providers without modifying your workflow + +### Recommended Models + +For the best Agent mode experience, we recommend models with strong reasoning and instruction-following capabilities: + +**Premium Models:** +- **Claude Sonnet 4** (Anthropic) - Our top recommendation for its exceptional tool use and reasoning +- **GPT-4** models (OpenAI) - Excellent native tool support +- **DeepSeek** models - Strong performance with competitive pricing + +**Local Models:** +While more limited in capabilities, these models can work with system message tools: +- Qwen2.5-Coder 32B - Best local option for Agent mode +- Devstral 27B - Good for code-specific tasks +- Smaller models (7B-13B) - May struggle with complex tool interactions + +### Configuration + +Agent mode automatically determines whether to use native or system message tools based on the model's capabilities. No additional configuration is required - simply select your model and Continue handles the rest. diff --git a/docs/features/autocomplete/model-setup.mdx b/docs/features/autocomplete/model-setup.mdx index 828aadf98..6f5b1d799 100644 --- a/docs/features/autocomplete/model-setup.mdx +++ b/docs/features/autocomplete/model-setup.mdx @@ -43,3 +43,7 @@ This model provides good suggestions while keeping your code completely private. ## Need Help? If you're not seeing any completions or need more detailed configuration options, check out our comprehensive [autocomplete deep dive guide](/customize/deep-dives/autocomplete). + +## Model Compatibility + +To see a complete list of models and their capabilities, visit our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). diff --git a/docs/features/chat/model-setup.mdx b/docs/features/chat/model-setup.mdx index 9e0a1c213..06d61fc6d 100644 --- a/docs/features/chat/model-setup.mdx +++ b/docs/features/chat/model-setup.mdx @@ -97,4 +97,8 @@ Their limited tool calling and reasoning capabilities will make it challenging t 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) 3. Click `Reload config` in the assistant selector in the Continue IDE extension -For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model) +For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model). + +## Model Compatibility + +To see which models support specific features like tool use (for Agent mode) and image input, check out our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). diff --git a/docs/features/edit/model-setup.mdx b/docs/features/edit/model-setup.mdx index 240e0613e..8442015c9 100644 --- a/docs/features/edit/model-setup.mdx +++ b/docs/features/edit/model-setup.mdx @@ -10,3 +10,7 @@ We also recommend setting up an Apply model for the best Edit experience. - [Morph v3](https://hub.continue.dev/morphllm/morph-v2) - [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply) + +## Model Compatibility + +For a complete overview of which models support various features, see our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). diff --git a/docs/guides/cli.mdx b/docs/guides/cli.mdx index f23dcc3bd..4794e9557 100644 --- a/docs/guides/cli.mdx +++ b/docs/guides/cli.mdx @@ -84,3 +84,9 @@ cn --ask Bash(curl*) # Never use the Fetch tool cn --exclude Fetch ``` + +## Troubleshooting + +Run `cn` with the `--verbose` flag to see more detailed logs. These will be output to `~/.continue/logs/cn.log`. + +If you have feedback on the alpha, please [share in our Discord](https://discord.com/invite/EfJEfdFnDQ). diff --git a/docs/hub/blocks/block-types.mdx b/docs/hub/blocks/block-types.mdx index cd97d12ae..235d0bd7e 100644 --- a/docs/hub/blocks/block-types.mdx +++ b/docs/hub/blocks/block-types.mdx @@ -24,13 +24,13 @@ Learn more in the [@Docs context provider documentation](/customize/context/docu Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub. -Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. +Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. ## Rules Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub. -Learn more in the [rules deep dive](/customization/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details. +Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details. ## Prompts diff --git a/docs/package-lock.json b/docs/package-lock.json index c2baedd69..22f0e47fd 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -8,6 +8,9 @@ "name": "docs2", "version": "1.0.0", "license": "ISC", + "dependencies": { + "@c15t/react": "^1.4.4" + }, "devDependencies": { "mintlify": "^4.2.3" } @@ -89,6 +92,82 @@ "node": ">=6.9.0" } }, + "node_modules/@c15t/backend": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@c15t/backend/-/backend-1.4.2.tgz", + "integrity": "sha512-Ki3HXTrGVPW5A0uFCuGyr/jDeFvJxhr9eOCykAuE1yOcXnATUEjqxwa6cH5jRXHz59mf7kLMHdRyjHarXxHqtA==", + "license": "GPL-3.0-only", + "dependencies": { + "@c15t/translations": "1.4.2", + "@doubletie/logger": "1.0.4", + "@opentelemetry/api": "1.8.0", + "@opentelemetry/resources": "^1.25.1", + "@opentelemetry/sdk-node": "^0.51.1", + "@opentelemetry/sdk-trace-base": "^1.25.1", + "@orpc/contract": "1.2.0", + "@orpc/openapi": "1.2.0", + "@orpc/server": "1.2.0", + "@orpc/zod": "1.2.0", + "base-x": "^5.0.1", + "defu": "^6.1.4", + "drizzle-orm": "^0.41.0", + "kysely": "^0.27.6", + "neverthrow": "^8.2.0", + "superjson": "^2.2.2", + "zod": "^3.24.2" + } + }, + "node_modules/@c15t/node-sdk": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@c15t/node-sdk/-/node-sdk-1.4.2.tgz", + "integrity": "sha512-APQkUTjp2CJYxLH3Qfu0XcqNpw2ytzCaUjaim5PljMZ8Gv8ecI7LVQgq4H4xn9XddKfVvMIb2MoJIXX8D+a9Lg==", + "dependencies": { + "@c15t/backend": "1.4.2", + "@orpc/client": "1.2.0", + "@orpc/contract": "1.2.0", + "@orpc/openapi-client": "^1.2.0", + "@orpc/server": "1.2.0" + } + }, + "node_modules/@c15t/react": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@c15t/react/-/react-1.4.4.tgz", + "integrity": "sha512-IwANOzzKsZHTYfJRQGt1JbdZO/GvwaV+y/uQkvqQTzXCcfXClNQc/XneAySuVuXNRSsU5S1vgEJ1JR1g3Os5qQ==", + "license": "GPL-3.0-only", + "dependencies": { + "@c15t/node-sdk": "1.4.2", + "@radix-ui/react-accordion": "1.2.4", + "@radix-ui/react-slot": "1.2.0", + "@radix-ui/react-switch": "1.1.4", + "c15t": "1.4.4", + "clsx": "2.1.1", + "zustand": "^5.0.3" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc" + } + }, + "node_modules/@c15t/translations": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@c15t/translations/-/translations-1.4.2.tgz", + "integrity": "sha512-snPX8HdY0IKLGoW484y5Dy4vwGoReUcpeWKBiYChlzUb3j9vv4F8KO9yrOr9y8sH29Y18l1q+it7Him+31jLqA==", + "license": "GPL-3.0-only" + }, + "node_modules/@doubletie/logger": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@doubletie/logger/-/logger-1.0.4.tgz", + "integrity": "sha512-oZXaHQbTh76kCwIVv+EzAvQObr2k0+hDziB6bDBzvB/B7WCrNMBpqn8JWDMtzMJQhr4iGdmPT2FTczbcnR3zvg==", + "license": "MIT", + "dependencies": { + "next": "15.2.2", + "picocolors": "^1.1.1", + "tinygradient": "^2.0.1" + }, + "engines": { + "node": ">=16.2.0" + } + }, "node_modules/@emnapi/runtime": { "version": "1.4.4", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.4.4.tgz", @@ -108,6 +187,37 @@ "license": "0BSD", "optional": true }, + "node_modules/@grpc/grpc-js": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.13.4.tgz", + "integrity": "sha512-GsFaMXCkMqkKIvwCQjCrwH+GHbPKBjhwo/8ZuUkWHqbI73Kky9I+pQltrlT0+MWpedCoosda53lgjYfyEPgxBg==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/proto-loader": "^0.7.13", + "@js-sdsl/ordered-map": "^4.4.2" + }, + "engines": { + "node": ">=12.10.0" + } + }, + "node_modules/@grpc/proto-loader": { + "version": "0.7.15", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.7.15.tgz", + "integrity": "sha512-tMXdRCfYVixjuFK+Hk0Q1s38gV9zDiDJfWL3h1rv4Qc39oILCu1TRTDt7+fGUI8K4G1Fj125Hx/ru3azECWTyQ==", + "license": "Apache-2.0", + "dependencies": { + "lodash.camelcase": "^4.3.0", + "long": "^5.0.0", + "protobufjs": "^7.2.5", + "yargs": "^17.7.2" + }, + "bin": { + "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/@img/sharp-darwin-arm64": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.33.5.tgz", @@ -1021,6 +1131,16 @@ } } }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, "node_modules/@jsep-plugin/assignment": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", @@ -1598,6 +1718,140 @@ "zod-to-json-schema": "^3.20.3" } }, + "node_modules/@next/env": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/env/-/env-15.2.2.tgz", + "integrity": "sha512-yWgopCfA9XDR8ZH3taB5nRKtKJ1Q5fYsTOuYkzIIoS8TJ0UAUKAGF73JnGszbjk2ufAQDj6mDdgsJAFx5CLtYQ==", + "license": "MIT" + }, + "node_modules/@next/swc-darwin-arm64": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-15.2.2.tgz", + "integrity": "sha512-HNBRnz+bkZ+KfyOExpUxTMR0Ow8nkkcE6IlsdEa9W/rI7gefud19+Sn1xYKwB9pdCdxIP1lPru/ZfjfA+iT8pw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-darwin-x64": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-15.2.2.tgz", + "integrity": "sha512-mJOUwp7al63tDpLpEFpKwwg5jwvtL1lhRW2fI1Aog0nYCPAhxbJsaZKdoVyPZCy8MYf/iQVNDuk/+i29iLCzIA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-gnu": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-15.2.2.tgz", + "integrity": "sha512-5ZZ0Zwy3SgMr7MfWtRE7cQWVssfOvxYfD9O7XHM7KM4nrf5EOeqwq67ZXDgo86LVmffgsu5tPO57EeFKRnrfSQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-arm64-musl": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-15.2.2.tgz", + "integrity": "sha512-cgKWBuFMLlJ4TWcFHl1KOaVVUAF8vy4qEvX5KsNd0Yj5mhu989QFCq1WjuaEbv/tO1ZpsQI6h/0YR8bLwEi+nA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-gnu": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-15.2.2.tgz", + "integrity": "sha512-c3kWSOSsVL8rcNBBfOq1+/j2PKs2nsMwJUV4icUxRgGBwUOfppeh7YhN5s79enBQFU+8xRgVatFkhHU1QW7yUA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-linux-x64-musl": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-15.2.2.tgz", + "integrity": "sha512-PXTW9PLTxdNlVYgPJ0equojcq1kNu5NtwcNjRjHAB+/sdoKZ+X8FBu70fdJFadkxFIGekQTyRvPMFF+SOJaQjw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-arm64-msvc": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-15.2.2.tgz", + "integrity": "sha512-nG644Es5llSGEcTaXhnGWR/aThM/hIaz0jx4MDg4gWC8GfTCp8eDBWZ77CVuv2ha/uL9Ce+nPTfYkSLG67/sHg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, + "node_modules/@next/swc-win32-x64-msvc": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-15.2.2.tgz", + "integrity": "sha512-52nWy65S/R6/kejz3jpvHAjZDPKIbEQu4x9jDBzmB9jJfuOy5rspjKu4u77+fI4M/WzLXrrQd57hlFGzz1ubcQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 10" + } + }, "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-3.2.0.tgz", @@ -1608,6 +1862,1202 @@ "fast-deep-equal": "^3.1.3" } }, + "node_modules/@opentelemetry/api": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.8.0.tgz", + "integrity": "sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.51.1.tgz", + "integrity": "sha512-E3skn949Pk1z2XtXu/lxf6QAZpawuTM/IUEXcAzpiUkTd73Hmvw26FiN3cJuTmkpM5hZzHwkomVdtrh/n/zzwA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/context-async-hooks": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.24.1.tgz", + "integrity": "sha512-R5r6DO4kgEOVBxFXhXjwospLQkv+sYxwCfjvoZBe7Zm6KKXAV9kDSJhi/D1BweowdZmO+sdbENLs374gER8hpQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.30.1.tgz", + "integrity": "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-grpc/-/exporter-trace-otlp-grpc-0.51.1.tgz", + "integrity": "sha512-P9+Hkszih95ITvldGZ+kXvj9HpD1QfS+PwooyHK72GYA+Bgm+yUSAsDkUkDms8+s9HW6poxURv3LcjaMuBBpVQ==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "1.24.1", + "@opentelemetry/otlp-grpc-exporter-base": "0.51.1", + "@opentelemetry/otlp-transformer": "0.51.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-grpc/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.51.1.tgz", + "integrity": "sha512-n+LhLPsX07URh+HhV2SHVSvz1t4G/l/CE5BjpmhAPqeTceFac1VpyQkavWEJbvnK5bUEXijWt4LxAxFpt2fXyw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/otlp-exporter-base": "0.51.1", + "@opentelemetry/otlp-transformer": "0.51.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-proto/-/exporter-trace-otlp-proto-0.51.1.tgz", + "integrity": "sha512-SE9f0/6V6EeXC9i+WA4WFjS1EYgaBCpAnI5+lxWvZ7iO7EU1IvHvZhP6Kojr0nLldo83gqg6G7OWFqsID3uF+w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/otlp-exporter-base": "0.51.1", + "@opentelemetry/otlp-proto-exporter-base": "0.51.1", + "@opentelemetry/otlp-transformer": "0.51.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-proto/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/exporter-zipkin": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-zipkin/-/exporter-zipkin-1.24.1.tgz", + "integrity": "sha512-+Rl/VFmu2n6eaRMnVbyfZx1DqR/1KNyWebYuHyQBZaEAVIn/ZLgmofRpXN1X2nhJ4BNaptQUNxAstCYYz6dKoQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/exporter-zipkin/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/instrumentation": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.51.1.tgz", + "integrity": "sha512-JIrvhpgqY6437QIqToyozrUG1h5UhwHkaGK/WAX+fkrpyPtc+RO5FkRtUd9BH0MibabHHvqsnBGKfKVijbmp8w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.51.1", + "@types/shimmer": "^1.0.2", + "import-in-the-middle": "1.7.4", + "require-in-the-middle": "^7.1.1", + "semver": "^7.5.2", + "shimmer": "^1.2.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.51.1.tgz", + "integrity": "sha512-UYlnOYyDdzo1Gw559EHCzru0RwhvuXCwoH8jGo9J4gO1TE58GjnEmIjomMsKBCym3qWNJfIQXw+9SZCV0DdQNg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/otlp-grpc-exporter-base": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-grpc-exporter-base/-/otlp-grpc-exporter-base-0.51.1.tgz", + "integrity": "sha512-ZAS+4pq8o7dsugGTwV9s6JMKSxi+guIHdn0acOv0bqj26e9pWDFx5Ky+bI0aY46uR9Y0JyXqY+KAEYM/SO3DFA==", + "license": "Apache-2.0", + "dependencies": { + "@grpc/grpc-js": "^1.7.1", + "@opentelemetry/core": "1.24.1", + "@opentelemetry/otlp-exporter-base": "0.51.1", + "protobufjs": "^7.2.3" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-grpc-exporter-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/otlp-proto-exporter-base": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-proto-exporter-base/-/otlp-proto-exporter-base-0.51.1.tgz", + "integrity": "sha512-gxxxwfk0inDMb5DLeuxQ3L8TtptxSiTNHE4nnAJH34IQXAVRhXSXW1rK8PmDKDngRPIZ6J7ncUCjjIn8b+AgqQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/otlp-exporter-base": "0.51.1", + "protobufjs": "^7.2.3" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.0.0" + } + }, + "node_modules/@opentelemetry/otlp-proto-exporter-base/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-proto-exporter-base/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/otlp-transformer": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.51.1.tgz", + "integrity": "sha512-OppYOXwV9LQqqtYUCywqoOqX/JT9LQ5/FMuPZ//eTkvuHdUC4ZMwz2c6uSoT2R90GWvvGnF1iEqTGyTT3xAt2Q==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.51.1", + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-logs": "0.51.1", + "@opentelemetry/sdk-metrics": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/propagator-b3": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-1.24.1.tgz", + "integrity": "sha512-nda97ZwhpZKyUJTXqQuKzNhPMUgMLunbbGWn8kroBwegn+nh6OhtyGkrVQsQLNdVKJl0KeB5z0ZgeWszrYhwFw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/propagator-b3/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/propagator-b3/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/propagator-jaeger": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.24.1.tgz", + "integrity": "sha512-7bRBJn3FG1l195A1m+xXRHvgzAOBsfmRi9uZ5Da18oTh7BLmNDiA8+kpk51FpTsU1PCikPVpRDNPhKVB6lyzZg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/propagator-jaeger/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/propagator-jaeger/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.30.1.tgz", + "integrity": "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.30.1", + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-logs": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.51.1.tgz", + "integrity": "sha512-ULQQtl82b673PpZc5/0EtH4V+BrwVOgKJZEB7tYZnGTG3I98tQVk89S9/JSixomDr++F4ih+LSJTCqIKBz+MQQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.9.0", + "@opentelemetry/api-logs": ">=0.39.1" + } + }, + "node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sdk-metrics": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.24.1.tgz", + "integrity": "sha512-FrAqCbbGao9iKI+Mgh+OsC9+U2YMoXnlDHe06yH7dvavCKzE3S892dGtX54+WhSFVxHR/TMRVJiK/CV93GR0TQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "lodash.merge": "^4.6.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sdk-node": { + "version": "0.51.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-node/-/sdk-node-0.51.1.tgz", + "integrity": "sha512-GgmNF9C+6esr8PIJxCqHw84rEOkYm6XdFWZ2+Wyc3qaUt92ACoN7uSw5iKNvaUq62W0xii1wsGxwHzyENtPP8w==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.51.1", + "@opentelemetry/core": "1.24.1", + "@opentelemetry/exporter-trace-otlp-grpc": "0.51.1", + "@opentelemetry/exporter-trace-otlp-http": "0.51.1", + "@opentelemetry/exporter-trace-otlp-proto": "0.51.1", + "@opentelemetry/exporter-zipkin": "1.24.1", + "@opentelemetry/instrumentation": "0.51.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/sdk-logs": "0.51.1", + "@opentelemetry/sdk-metrics": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1", + "@opentelemetry/sdk-trace-node": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-node/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.30.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.30.1.tgz", + "integrity": "sha512-jVPgBbH1gCy2Lb7X0AVQ8XAfgg0pJ4nvl8/IiQA6nxOsPvS+0zMJaFSs2ltXe0J6C8dqjcnpyqINDJmU30+uOg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.30.1", + "@opentelemetry/resources": "1.30.1", + "@opentelemetry/semantic-conventions": "1.28.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.24.1.tgz", + "integrity": "sha512-/FZX8uWaGIAwsDhqI8VvQ+qWtfMNlXjaFYGc+vmxgdRFppCSSIRwrPyIhJO1qx61okyYhoyxVEZAfoiNxrfJCg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/context-async-hooks": "1.24.1", + "@opentelemetry/core": "1.24.1", + "@opentelemetry/propagator-b3": "1.24.1", + "@opentelemetry/propagator-jaeger": "1.24.1", + "@opentelemetry/sdk-trace-base": "1.24.1", + "semver": "^7.5.2" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/core": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.24.1.tgz", + "integrity": "sha512-wMSGfsdmibI88K9wB498zXY04yThPexo8jvwNNlm542HZB7XrrMRBbAyKJqG8qDRJwIBdBrPMi4V9ZPW/sqrcg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/resources": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.24.1.tgz", + "integrity": "sha512-cyv0MwAaPF7O86x5hk3NNgenMObeejZFLJJDVuSeSMIsknlsj3oOZzRv3qSzlwYomXsICfBeFFlxwHQte5mGXQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/sdk-trace-base": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.24.1.tgz", + "integrity": "sha512-zz+N423IcySgjihl2NfjBf0qw1RWe11XIAWVrTNOSSI6dtSPJiVom2zipFB2AEEtJWpv0Iz6DY6+TjnyTV5pWg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "1.24.1", + "@opentelemetry/resources": "1.24.1", + "@opentelemetry/semantic-conventions": "1.24.1" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.9.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node/node_modules/@opentelemetry/semantic-conventions": { + "version": "1.24.1", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.24.1.tgz", + "integrity": "sha512-VkliWlS4/+GHLLW7J/rVBA00uXus1SWvwFvcUDxDwmFxYfg/2VI6ekwdXS28cjI8Qz2ky2BzG8OUHo+WeYIWqw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.28.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz", + "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@orpc/client": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/client/-/client-1.2.0.tgz", + "integrity": "sha512-Wt1il08fs6l9YK8TIjLmMBwb7MzzO8+3aOxFMs7RaQE3iGQ9Ox7ImomSPV8lhxQpWefpDN9fqOCH6pOid6cH6Q==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0", + "@orpc/standard-server-fetch": "1.2.0", + "@orpc/standard-server-peer": "1.2.0" + } + }, + "node_modules/@orpc/contract": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/contract/-/contract-1.2.0.tgz", + "integrity": "sha512-hl90EmPYtP4oMK2+93yocgDaah95tXi3YQbmdgQuKCec4x4GAn85LbHze4G8pPZ5BiSjNSBpyykRV4uA4E5zbA==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.2.0", + "@orpc/shared": "1.2.0", + "@standard-schema/spec": "^1.0.0" + } + }, + "node_modules/@orpc/openapi": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/openapi/-/openapi-1.2.0.tgz", + "integrity": "sha512-yZ5RWyBSltHuSrh17wdjA69OcbQwjeBrKecTRe1ORJmaIMHFSW/aDij/nBYzWHspJPcD911j3vsD6CjVvz8k9Q==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.2.0", + "@orpc/contract": "1.2.0", + "@orpc/openapi-client": "1.2.0", + "@orpc/server": "1.2.0", + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0", + "json-schema-typed": "^8.0.1", + "openapi-types": "^12.1.3", + "rou3": "^0.6.0" + } + }, + "node_modules/@orpc/openapi-client": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/openapi-client/-/openapi-client-1.7.5.tgz", + "integrity": "sha512-3N18WR3mRz5kpO06+peTtJF4nrSWvqQDZgbcIoX7loFcKrGmT9KdAtIOrc+5zUi7UVYNiO7RP9Ha4Y/HrD7mLg==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.7.5", + "@orpc/contract": "1.7.5", + "@orpc/shared": "1.7.5", + "@orpc/standard-server": "1.7.5" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/client": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/client/-/client-1.7.5.tgz", + "integrity": "sha512-UA4uJAOdy2SM/c7/tQVvS4+fYiBmFn7/8NxhCV3GfY6cBnxPBf83v1jC25ZtGrfyc2RY/+7dwdpKRdQXI2Biaw==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.7.5", + "@orpc/standard-server": "1.7.5", + "@orpc/standard-server-fetch": "1.7.5", + "@orpc/standard-server-peer": "1.7.5" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/contract": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/contract/-/contract-1.7.5.tgz", + "integrity": "sha512-Q2XaOJEBzxc7PZ40DIoFJgAPBn6Z8SUYE/tb4N3ynUOjsqMsexhm++cyPzsp+qDG5okO+t3cPY2H5K2YdgTNdw==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.7.5", + "@orpc/shared": "1.7.5", + "@standard-schema/spec": "^1.0.0", + "openapi-types": "^12.1.3" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/shared": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/shared/-/shared-1.7.5.tgz", + "integrity": "sha512-kEXags36EeL0rYVVJ30OQ6lIB8YySE2A/0wYw1kdi5g/KO6xXDE2W5LRsm3SU2UljG0AqXggIL9IKaWOl/qwAw==", + "license": "MIT", + "dependencies": { + "radash": "^12.1.1", + "type-fest": "^4.39.1" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/standard-server": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/standard-server/-/standard-server-1.7.5.tgz", + "integrity": "sha512-hEFqOin/H53+WmG4M0hfeAx/E2mAEp5Gzz12ufK9nmddbrbpkT8KBKCrs6iHPnJkjvYwB7f1EItrtgmBPAYOXg==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.7.5" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/standard-server-fetch": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/standard-server-fetch/-/standard-server-fetch-1.7.5.tgz", + "integrity": "sha512-O/HWpKd3vObiTYCS+wWfQiuX+rhzL4whgEPdF4kBAXmxxxV93q1aF3ZfldYC3qsHMtEzA0mVDHyhonsajaBefA==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.7.5", + "@orpc/standard-server": "1.7.5" + } + }, + "node_modules/@orpc/openapi-client/node_modules/@orpc/standard-server-peer": { + "version": "1.7.5", + "resolved": "https://registry.npmjs.org/@orpc/standard-server-peer/-/standard-server-peer-1.7.5.tgz", + "integrity": "sha512-bP//D18Qlj3Rh8Udl88KtKwVv/wGzLQ5++XlSQutMe0ENGmqUDz/sf+PtZtezk0nU5pjhBNU7L9u3cU+BN4Xcw==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.7.5", + "@orpc/standard-server": "1.7.5" + } + }, + "node_modules/@orpc/openapi/node_modules/@orpc/openapi-client": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/openapi-client/-/openapi-client-1.2.0.tgz", + "integrity": "sha512-f3eK9vfwbc2Ni3tQJrhHJb8BCxdCqDoUZ/hvoAhSieYROK5p+cB67+biI3zD/XNaee9xHbC/SyWa1ThtvTEgmg==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.2.0", + "@orpc/contract": "1.2.0", + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0" + } + }, + "node_modules/@orpc/server": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/server/-/server-1.2.0.tgz", + "integrity": "sha512-EQARc4PEcS3ndkL+Es87M1BZru5x7q49q7Ivcd6tWFpA9Hn6n08WgiJDqDRDMoEeEJlzG5AzI+eXxvF1hR9Cdg==", + "license": "MIT", + "dependencies": { + "@orpc/client": "1.2.0", + "@orpc/contract": "1.2.0", + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0", + "@orpc/standard-server-fetch": "1.2.0", + "@orpc/standard-server-node": "1.2.0", + "@orpc/standard-server-peer": "1.2.0" + }, + "peerDependencies": { + "crossws": ">=0.3.4", + "ws": ">=8.18.1" + }, + "peerDependenciesMeta": { + "crossws": { + "optional": true + }, + "ws": { + "optional": true + } + } + }, + "node_modules/@orpc/shared": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/shared/-/shared-1.2.0.tgz", + "integrity": "sha512-Y01Q4dS/vlxWfV4cEAmMSWaitbIqp6yFXgin/rIEtciwXr5X1YRw80+dtu91eLWAmEaOCOL/BcyACinqEvc/DQ==", + "license": "MIT", + "dependencies": { + "radash": "^12.1.0", + "type-fest": "^4.39.1" + } + }, + "node_modules/@orpc/standard-server": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/standard-server/-/standard-server-1.2.0.tgz", + "integrity": "sha512-EJ9GqNwK6gGfcdoQGgAJsVZ2c4HFcvkq8TJOUDdv6DFl/GmViIU2log0o4K83C5B9vNIYRahk26hOOFp9sdQAQ==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.2.0" + } + }, + "node_modules/@orpc/standard-server-fetch": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/standard-server-fetch/-/standard-server-fetch-1.2.0.tgz", + "integrity": "sha512-2gNOSkmgoWD1L3LWr5/47C8PibsMnFr4GCU7VXKtyFo0ejsP51hxgwnetFwDeKfDWugEtjNzk19xsvN09Vj4Ug==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0" + } + }, + "node_modules/@orpc/standard-server-node": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/standard-server-node/-/standard-server-node-1.2.0.tgz", + "integrity": "sha512-ZRUAZKxQWwzJuHWUsskK5+E+V1mx21eJtGihJRnk5VZWiK8ooA/0g4Kvf8v5ewfyahFLjDsRPEJJV2UZLUlVtg==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0" + } + }, + "node_modules/@orpc/standard-server-peer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/standard-server-peer/-/standard-server-peer-1.2.0.tgz", + "integrity": "sha512-G6shbGltkxpYVeQiJEOAQnlCyxKGzMi5vzL3+EMggCqm6ykt3UIR3+QEcey1x7OKXopienjh6Rq+i7IwVBI+ZA==", + "license": "MIT", + "dependencies": { + "@orpc/shared": "1.2.0", + "@orpc/standard-server": "1.2.0" + } + }, + "node_modules/@orpc/zod": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@orpc/zod/-/zod-1.2.0.tgz", + "integrity": "sha512-Ua1fJpFvZsn1Cf2bM1dmjJckU7V7rYlaSlumNLNpOZcaH0NZ2b7e/ffY/MeB8GtWACyzggZ5lj/Jtc79WdUuVw==", + "license": "MIT", + "dependencies": { + "@orpc/openapi": "1.2.0", + "@orpc/shared": "1.2.0", + "escape-string-regexp": "^5.0.0", + "wildcard-match": "^5.1.3" + }, + "peerDependencies": { + "@orpc/contract": "1.2.0", + "@orpc/server": "1.2.0", + "@zod/core": ">=0.11.4", + "zod": ">=3.24.2" + }, + "peerDependenciesMeta": { + "@zod/core": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/@oxlint/darwin-arm64": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/@oxlint/darwin-arm64/-/darwin-arm64-1.6.0.tgz", @@ -1720,6 +3170,70 @@ "win32" ] }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, "node_modules/@puppeteer/browsers": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-2.3.0.tgz", @@ -1743,6 +3257,350 @@ "node": ">=18" } }, + "node_modules/@radix-ui/primitive": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.2.tgz", + "integrity": "sha512-XnbHrrprsNqZKQhStrSwgRUQzoCI1glLzdw79xiZPoofhGICeZRSQ3dIxAKH1gb3OHfNf4d6f+vAv3kil2eggA==", + "license": "MIT" + }, + "node_modules/@radix-ui/react-accordion": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-accordion/-/react-accordion-1.2.4.tgz", + "integrity": "sha512-SGCxlSBaMvEzDROzyZjsVNzu9XY5E28B3k8jOENyrz6csOv/pG1eHyYfLJai1n9tRjwG61coXDhfpgtxKxUv5g==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.2", + "@radix-ui/react-collapsible": "1.1.4", + "@radix-ui/react-collection": "1.1.3", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-direction": "1.1.1", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-primitive": "2.0.3", + "@radix-ui/react-use-controllable-state": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collapsible": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.1.4.tgz", + "integrity": "sha512-u7LCw1EYInQtBNLGjm9nZ89S/4GcvX1UR5XbekEgnQae2Hkpq39ycJ1OhdeN1/JDfVNG91kWaWoest127TaEKQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.2", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-id": "1.1.1", + "@radix-ui/react-presence": "1.1.3", + "@radix-ui/react-primitive": "2.0.3", + "@radix-ui/react-use-controllable-state": "1.1.1", + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-collection": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-collection/-/react-collection-1.1.3.tgz", + "integrity": "sha512-mM2pxoQw5HJ49rkzwOs7Y6J4oYH22wS8BfK2/bBxROlI4xuR0c4jEenQP63LlTlDkO6Buj2Vt+QYAYcOgqtrXA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-primitive": "2.0.3", + "@radix-ui/react-slot": "1.2.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-compose-refs": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.2.tgz", + "integrity": "sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-context": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.2.tgz", + "integrity": "sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-direction": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.1.tgz", + "integrity": "sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-id": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-id/-/react-id-1.1.1.tgz", + "integrity": "sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-presence": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.3.tgz", + "integrity": "sha512-IrVLIhskYhH3nLvtcBLQFZr61tBG7wx7O3kEmdzcYwRGAEBmBicGGL7ATzNgruYJ3xBTbuzEEq9OXJM3PAX3tA==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-primitive": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.0.3.tgz", + "integrity": "sha512-Pf/t/GkndH7CQ8wE2hbkXA+WyZ83fhQQn5DDmwDiDo6AwN/fhaH8oqZ0jRjMrO2iaMhDi6P1HRx6AZwyMinY1g==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-slot": "1.2.0" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-slot": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.2.0.tgz", + "integrity": "sha512-ujc+V6r0HNDviYqIK3rW4ffgYiZ8g5DEHrGJVk4x7kTlLXRDILnKX9vAUYeIsLOoDpDJ0ujpqMkjH4w2ofuo6w==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-compose-refs": "1.1.2" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-switch": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@radix-ui/react-switch/-/react-switch-1.1.4.tgz", + "integrity": "sha512-zGP6W8plLeogoeGMiTHJ/uvf+TE1C2chVsEwfP8YlvpQKJHktG+iCkUtCLGPAuDV8/qDSmIRPm4NggaTxFMVBQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/primitive": "1.1.2", + "@radix-ui/react-compose-refs": "1.1.2", + "@radix-ui/react-context": "1.1.2", + "@radix-ui/react-primitive": "2.0.3", + "@radix-ui/react-use-controllable-state": "1.1.1", + "@radix-ui/react-use-previous": "1.1.1", + "@radix-ui/react-use-size": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "@types/react-dom": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc", + "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-callback-ref": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.1.tgz", + "integrity": "sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-controllable-state": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.1.1.tgz", + "integrity": "sha512-YnEXIy8/ga01Y1PN0VfaNH//MhA91JlEGVBDxDzROqwrAtG5Yr2QGEPz8A/rJA3C7ZAHryOYGaUv8fLSW2H/mg==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-callback-ref": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-layout-effect": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.1.tgz", + "integrity": "sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-previous": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-previous/-/react-use-previous-1.1.1.tgz", + "integrity": "sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==", + "license": "MIT", + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@radix-ui/react-use-size": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@radix-ui/react-use-size/-/react-use-size-1.1.1.tgz", + "integrity": "sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==", + "license": "MIT", + "dependencies": { + "@radix-ui/react-use-layout-effect": "1.1.1" + }, + "peerDependencies": { + "@types/react": "*", + "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.46.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.46.1.tgz", + "integrity": "sha512-9OADZYryz/7E8/qt0vnaHQgmia2Y0wrjSSn1V/uL+zw/i7NUhxbX4cHXdEQ7dnJgzYDS81d8+tf6nbIdRFZQoQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, "node_modules/@shikijs/core": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-3.7.0.tgz", @@ -1881,6 +3739,12 @@ "dev": true, "license": "MIT" }, + "node_modules/@standard-schema/spec": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.0.0.tgz", + "integrity": "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==", + "license": "MIT" + }, "node_modules/@stoplight/better-ajv-errors": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@stoplight/better-ajv-errors/-/better-ajv-errors-1.0.3.tgz", @@ -2262,6 +4126,27 @@ "dev": true, "license": "0BSD" }, + "node_modules/@swc/counter": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@swc/counter/-/counter-0.1.3.tgz", + "integrity": "sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==", + "license": "Apache-2.0" + }, + "node_modules/@swc/helpers": { + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.8.0" + } + }, + "node_modules/@swc/helpers/node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, "node_modules/@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", @@ -2398,7 +4283,6 @@ "version": "24.0.10", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.0.10.tgz", "integrity": "sha512-ENHwaH+JIRTDIEEbDK6QSQntAYGtbvdDXnMXnZaZ6k13Du1dPMmprkEHIL7ok2Wl2aZevetwTAb5S+7yIF+enA==", - "dev": true, "license": "MIT", "dependencies": { "undici-types": "~7.8.0" @@ -2408,13 +4292,19 @@ "version": "19.1.8", "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.8.tgz", "integrity": "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==", - "dev": true, + "devOptional": true, "license": "MIT", "peer": true, "dependencies": { "csstype": "^3.0.2" } }, + "node_modules/@types/shimmer": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.2.0.tgz", + "integrity": "sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==", + "license": "MIT" + }, "node_modules/@types/unist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", @@ -2478,7 +4368,6 @@ "version": "8.15.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -2487,6 +4376,15 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-import-attributes": { + "version": "1.9.5", + "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", + "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, "node_modules/acorn-jsx": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", @@ -2914,6 +4812,12 @@ } } }, + "node_modules/base-x": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz", + "integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==", + "license": "MIT" + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -3082,6 +4986,17 @@ "node": "*" } }, + "node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -3092,6 +5007,19 @@ "node": ">= 0.8" } }, + "node_modules/c15t": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/c15t/-/c15t-1.4.4.tgz", + "integrity": "sha512-u7iwyjCuKePWX9EXv2CEQe3XYPAJeEyPGqyJfXlxt/Dd6fSqAKHUaX/Xf6QWi97AaIehp8QjcJw8Ka4kPds7eg==", + "license": "GPL-3.0-only", + "dependencies": { + "@c15t/backend": "1.4.2", + "@c15t/translations": "1.4.2", + "@orpc/client": "1.2.0", + "@orpc/server": "1.2.0", + "zustand": "^5.0.3" + } + }, "node_modules/cacheable-lookup": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz", @@ -3181,6 +5109,26 @@ "node": ">=6" } }, + "node_modules/caniuse-lite": { + "version": "1.0.30001727", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", + "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, "node_modules/ccount": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", @@ -3316,6 +5264,12 @@ "url": "https://github.com/sponsors/colinhacks" } }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "license": "MIT" + }, "node_modules/clean-stack": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-4.2.0.tgz", @@ -3418,11 +5372,16 @@ "node": ">= 12" } }, + "node_modules/client-only": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz", + "integrity": "sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==", + "license": "MIT" + }, "node_modules/cliui": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, "license": "ISC", "dependencies": { "string-width": "^4.2.0", @@ -3437,7 +5396,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3447,7 +5405,6 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -3463,14 +5420,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, "license": "MIT" }, "node_modules/cliui/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==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -3480,7 +5435,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -3495,7 +5449,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -3508,7 +5461,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", @@ -3522,6 +5474,15 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/code-excerpt": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-4.0.0.tgz", @@ -3550,7 +5511,7 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "color-convert": "^2.0.1", @@ -3564,7 +5525,6 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -3577,14 +5537,13 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, "license": "MIT" }, "node_modules/color-string": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "color-name": "^1.0.0", @@ -3682,6 +5641,21 @@ "dev": true, "license": "MIT" }, + "node_modules/copy-anything": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.5.tgz", + "integrity": "sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==", + "license": "MIT", + "dependencies": { + "is-what": "^4.1.8" + }, + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/cors": { "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", @@ -3727,7 +5701,7 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true, + "devOptional": true, "license": "MIT", "peer": true }, @@ -3799,7 +5773,6 @@ "version": "4.4.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -3912,6 +5885,12 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/defu": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", + "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", + "license": "MIT" + }, "node_modules/degenerator": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-5.0.1.tgz", @@ -3982,7 +5961,7 @@ "version": "2.0.4", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz", "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==", - "dev": true, + "devOptional": true, "license": "Apache-2.0", "engines": { "node": ">=8" @@ -4053,6 +6032,127 @@ "node": ">=6" } }, + "node_modules/drizzle-orm": { + "version": "0.41.0", + "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.41.0.tgz", + "integrity": "sha512-7A4ZxhHk9gdlXmTdPj/lREtP+3u8KvZ4yEN6MYVxBzZGex5Wtdc+CWSbu7btgF6TB0N+MNPrvW7RKBbxJchs/Q==", + "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/client-rds-data": ">=3", + "@cloudflare/workers-types": ">=4", + "@electric-sql/pglite": ">=0.2.0", + "@libsql/client": ">=0.10.0", + "@libsql/client-wasm": ">=0.10.0", + "@neondatabase/serverless": ">=0.10.0", + "@op-engineering/op-sqlite": ">=2", + "@opentelemetry/api": "^1.4.1", + "@planetscale/database": ">=1", + "@prisma/client": "*", + "@tidbcloud/serverless": "*", + "@types/better-sqlite3": "*", + "@types/pg": "*", + "@types/sql.js": "*", + "@vercel/postgres": ">=0.8.0", + "@xata.io/client": "*", + "better-sqlite3": ">=7", + "bun-types": "*", + "expo-sqlite": ">=14.0.0", + "gel": ">=2", + "knex": "*", + "kysely": "*", + "mysql2": ">=2", + "pg": ">=8", + "postgres": ">=3", + "sql.js": ">=1", + "sqlite3": ">=5" + }, + "peerDependenciesMeta": { + "@aws-sdk/client-rds-data": { + "optional": true + }, + "@cloudflare/workers-types": { + "optional": true + }, + "@electric-sql/pglite": { + "optional": true + }, + "@libsql/client": { + "optional": true + }, + "@libsql/client-wasm": { + "optional": true + }, + "@neondatabase/serverless": { + "optional": true + }, + "@op-engineering/op-sqlite": { + "optional": true + }, + "@opentelemetry/api": { + "optional": true + }, + "@planetscale/database": { + "optional": true + }, + "@prisma/client": { + "optional": true + }, + "@tidbcloud/serverless": { + "optional": true + }, + "@types/better-sqlite3": { + "optional": true + }, + "@types/pg": { + "optional": true + }, + "@types/sql.js": { + "optional": true + }, + "@vercel/postgres": { + "optional": true + }, + "@xata.io/client": { + "optional": true + }, + "better-sqlite3": { + "optional": true + }, + "bun-types": { + "optional": true + }, + "expo-sqlite": { + "optional": true + }, + "gel": { + "optional": true + }, + "knex": { + "optional": true + }, + "kysely": { + "optional": true + }, + "mysql2": { + "optional": true + }, + "pg": { + "optional": true + }, + "postgres": { + "optional": true + }, + "prisma": { + "optional": true + }, + "sql.js": { + "optional": true + }, + "sqlite3": { + "optional": true + } + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -4437,7 +6537,6 @@ "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -4454,7 +6553,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -5063,7 +7161,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -5111,7 +7208,6 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" @@ -5413,7 +7509,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, "license": "MIT", "dependencies": { "function-bind": "^1.1.2" @@ -5888,7 +7983,7 @@ "version": "9.0.21", "resolved": "https://registry.npmjs.org/immer/-/immer-9.0.21.tgz", "integrity": "sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==", - "dev": true, + "devOptional": true, "license": "MIT", "funding": { "type": "opencollective", @@ -5912,6 +8007,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/import-in-the-middle": { + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.7.4.tgz", + "integrity": "sha512-Lk+qzWmiQuRPPulGQeK5qq0v32k2bHnWrRPFgqyvhw7Kkov5L6MOLOIU3pcWeujc9W4q54Cp3Q2WV16eQkc7Bg==", + "license": "Apache-2.0", + "dependencies": { + "acorn": "^8.8.2", + "acorn-import-attributes": "^1.9.5", + "cjs-module-lexer": "^1.2.2", + "module-details-from-path": "^1.0.3" + } + }, "node_modules/indent-string": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-5.0.0.tgz", @@ -6240,6 +8347,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-data-view": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", @@ -6679,6 +8801,18 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-what": { + "version": "4.1.16", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz", + "integrity": "sha512-ZhMwEosbFJkA0YhFnNDgTM4ZxDRsS6HqTo7qsZM08fehyRYIYa0yHu5R6mgo1n/8MgaPBXiPimPD77baVFYg+A==", + "license": "MIT", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, "node_modules/is-wsl": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", @@ -6757,6 +8891,12 @@ "dev": true, "license": "MIT" }, + "node_modules/json-schema-typed": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.1.tgz", + "integrity": "sha512-XQmWYj2Sm4kn4WeTYvmpKEbyPsL7nBsb647c7pMe6l02/yx2+Jfc4dT6UZkEXnIUb5LhD55r2HPsJ1milQ4rDg==", + "license": "BSD-2-Clause" + }, "node_modules/jsonc-parser": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-2.2.1.tgz", @@ -6843,6 +8983,15 @@ "node": ">=0.10.0" } }, + "node_modules/kysely": { + "version": "0.27.6", + "resolved": "https://registry.npmjs.org/kysely/-/kysely-0.27.6.tgz", + "integrity": "sha512-FIyV/64EkKhJmjgC0g2hygpBv5RNWVPyNCqSAD7eTCv6eFWNIi4PN1UvdSJGicN/o35bnevgis4Y0UDC0qi8jQ==", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/lcm": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/lcm/-/lcm-0.0.3.tgz", @@ -6880,6 +9029,18 @@ "dev": true, "license": "MIT" }, + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "license": "MIT" + }, "node_modules/lodash.topath": { "version": "4.5.2", "resolved": "https://registry.npmjs.org/lodash.topath/-/lodash.topath-4.5.2.tgz", @@ -6887,6 +9048,12 @@ "dev": true, "license": "MIT" }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, "node_modules/longest-streak": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", @@ -8283,11 +10450,16 @@ "node": ">=10" } }, + "node_modules/module-details-from-path": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz", + "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true, "license": "MIT" }, "node_modules/mute-stream": { @@ -8300,6 +10472,24 @@ "node": "^18.17.0 || >=20.5.0" } }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -8330,6 +10520,72 @@ "node": ">= 0.4.0" } }, + "node_modules/neverthrow": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/neverthrow/-/neverthrow-8.2.0.tgz", + "integrity": "sha512-kOCT/1MCPAxY5iUV3wytNFUMUolzuwd/VF/1KCx7kf6CutrOsTie+84zTGTpgQycjvfLdBBdvBvFLqFD2c0wkQ==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@rollup/rollup-linux-x64-gnu": "^4.24.0" + } + }, + "node_modules/next": { + "version": "15.2.2", + "resolved": "https://registry.npmjs.org/next/-/next-15.2.2.tgz", + "integrity": "sha512-dgp8Kcx5XZRjMw2KNwBtUzhngRaURPioxoNIVl5BOyJbhi9CUgEtKDO7fx5wh8Z8vOVX1nYZ9meawJoRrlASYA==", + "license": "MIT", + "dependencies": { + "@next/env": "15.2.2", + "@swc/counter": "0.1.3", + "@swc/helpers": "0.5.15", + "busboy": "1.6.0", + "caniuse-lite": "^1.0.30001579", + "postcss": "8.4.31", + "styled-jsx": "5.1.6" + }, + "bin": { + "next": "dist/bin/next" + }, + "engines": { + "node": "^18.18.0 || ^19.8.0 || >= 20.0.0" + }, + "optionalDependencies": { + "@next/swc-darwin-arm64": "15.2.2", + "@next/swc-darwin-x64": "15.2.2", + "@next/swc-linux-arm64-gnu": "15.2.2", + "@next/swc-linux-arm64-musl": "15.2.2", + "@next/swc-linux-x64-gnu": "15.2.2", + "@next/swc-linux-x64-musl": "15.2.2", + "@next/swc-win32-arm64-msvc": "15.2.2", + "@next/swc-win32-x64-msvc": "15.2.2", + "sharp": "^0.33.5" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.1.0", + "@playwright/test": "^1.41.2", + "babel-plugin-react-compiler": "*", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", + "sass": "^1.3.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@playwright/test": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "sass": { + "optional": true + } + } + }, "node_modules/nimma": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/nimma/-/nimma-0.2.3.tgz", @@ -8542,7 +10798,6 @@ "version": "12.1.3", "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", - "dev": true, "license": "MIT" }, "node_modules/os-tmpdir": { @@ -8802,6 +11057,12 @@ "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "license": "MIT" + }, "node_modules/path-to-regexp": { "version": "0.1.12", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", @@ -8820,7 +11081,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -8856,6 +11116,34 @@ "node": ">= 0.4" } }, + "node_modules/postcss": { + "version": "8.4.31", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz", + "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, "node_modules/prettier": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", @@ -8893,6 +11181,30 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/protobufjs": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.3.tgz", + "integrity": "sha512-sildjKwVqOI2kmFDiXQ6aEB0fjYTafpEvIBs8tOR8qI4spuL9OPROLVu2qZqi/xgCfsHIwVqlaF8JBjWFHnKbw==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -9055,6 +11367,15 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/radash": { + "version": "12.1.1", + "resolved": "https://registry.npmjs.org/radash/-/radash-12.1.1.tgz", + "integrity": "sha512-h36JMxKRqrAxVD8201FrCpyeNuUY9Y5zZwujr20fFO77tpUtGa6EZzfKw/3WaiBX95fq7+MpsuMLNdSnORAwSA==", + "license": "MIT", + "engines": { + "node": ">=14.18.0" + } + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -9082,15 +11403,34 @@ } }, "node_modules/react": { - "version": "19.1.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", - "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", - "dev": true, + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.1.1.tgz", + "integrity": "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==", "license": "MIT", "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==", + "license": "MIT", + "peer": true, + "dependencies": { + "scheduler": "^0.26.0" + }, + "peerDependencies": { + "react": "^19.1.1" + } + }, + "node_modules/react-dom/node_modules/scheduler": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", + "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "license": "MIT", + "peer": true + }, "node_modules/react-reconciler": { "version": "0.32.0", "resolved": "https://registry.npmjs.org/react-reconciler/-/react-reconciler-0.32.0.tgz", @@ -9504,7 +11844,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -9520,6 +11859,40 @@ "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", + "integrity": "sha512-gAZ+kLqBdHarXB64XpAe2VCjB7rIRv+mU8tfRWziHRJ5umKsIHN2tLLv6EtMw7WCdP19S0ERVMldNvxYCHnhSQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.3.5", + "module-details-from-path": "^1.0.3", + "resolve": "^1.22.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/resolve-alpn": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", @@ -9635,6 +12008,12 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/rou3": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/rou3/-/rou3-0.6.3.tgz", + "integrity": "sha512-1HSG1ENTj7Kkm5muMnXuzzfdDOf7CFnbSYFA+H3Fp/rB9lOCxCPgy1jlZxTKyFoC5jJay8Mmc+VbPLYRjzYLrA==", + "license": "MIT" + }, "node_modules/run-async": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/run-async/-/run-async-4.0.4.tgz", @@ -9791,7 +12170,6 @@ "version": "7.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -9944,7 +12322,7 @@ "version": "0.33.5", "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", "integrity": "sha512-haPVm1EkS9pgvHrQ/F3Xy+hgcuMV0Wm9vfIBSiwZ05k+xgb0PkBQpGsAA/oWdDobNaZTH5ppvHtzCFbnSEwHVw==", - "dev": true, + "devOptional": true, "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { @@ -9997,6 +12375,12 @@ "@types/hast": "^3.0.4" } }, + "node_modules/shimmer": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz", + "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==", + "license": "BSD-2-Clause" + }, "node_modules/side-channel": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", @@ -10097,7 +12481,7 @@ "version": "0.2.2", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", - "dev": true, + "devOptional": true, "license": "MIT", "dependencies": { "is-arrayish": "^0.3.1" @@ -10107,7 +12491,7 @@ "version": "0.3.2", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==", - "dev": true, + "devOptional": true, "license": "MIT" }, "node_modules/slice-ansi": { @@ -10314,6 +12698,15 @@ "node": ">= 8" } }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/space-separated-tokens": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", @@ -10379,6 +12772,14 @@ "node": ">= 0.4" } }, + "node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/streamx": { "version": "2.22.1", "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.1.tgz", @@ -10531,6 +12932,53 @@ "inline-style-parser": "0.2.4" } }, + "node_modules/styled-jsx": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-5.1.6.tgz", + "integrity": "sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==", + "license": "MIT", + "dependencies": { + "client-only": "0.0.1" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "react": ">= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/superjson": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.2.tgz", + "integrity": "sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==", + "license": "MIT", + "dependencies": { + "copy-anything": "^3.0.2" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/tar": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", @@ -10593,6 +13041,21 @@ "dev": true, "license": "MIT" }, + "node_modules/tinycolor2": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz", + "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==", + "license": "MIT" + }, + "node_modules/tinygradient": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/tinygradient/-/tinygradient-2.0.1.tgz", + "integrity": "sha512-V7K7sZvniKq4wLvDMGyvaAoZbeoVjCa19dMtMFmtrinK/yHiRig3sV9BefrRtw1N5l5QM2mzFBWCg2NGxaVZyw==", + "license": "MIT", + "dependencies": { + "tinycolor2": "^1.6.0" + } + }, "node_modules/tmp": { "version": "0.0.33", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", @@ -10680,7 +13143,6 @@ "version": "4.41.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", - "dev": true, "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=16" @@ -10815,7 +13277,6 @@ "version": "7.8.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.8.0.tgz", "integrity": "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==", - "dev": true, "license": "MIT" }, "node_modules/unified": { @@ -11286,6 +13747,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/wildcard-match": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/wildcard-match/-/wildcard-match-5.1.4.tgz", + "integrity": "sha512-wldeCaczs8XXq7hj+5d/F38JE2r7EXgb6WQDM84RVwxy81T/sxB5e9+uZLK9Q9oNz1mlvjut+QtvgaOQFPVq/g==", + "license": "ISC" + }, "node_modules/wrap-ansi": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", @@ -11315,7 +13782,7 @@ "version": "8.18.3", "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz", "integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==", - "dev": true, + "devOptional": true, "license": "MIT", "engines": { "node": ">=10.0.0" @@ -11361,7 +13828,6 @@ "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, "license": "ISC", "engines": { "node": ">=10" @@ -11391,7 +13857,6 @@ "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, "license": "MIT", "dependencies": { "cliui": "^8.0.1", @@ -11410,7 +13875,6 @@ "version": "21.1.1", "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, "license": "ISC", "engines": { "node": ">=12" @@ -11420,7 +13884,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -11430,14 +13893,12 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, "license": "MIT" }, "node_modules/yargs/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==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -11447,7 +13908,6 @@ "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", @@ -11462,7 +13922,6 @@ "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" @@ -11506,7 +13965,6 @@ "version": "3.25.75", "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.75.tgz", "integrity": "sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" @@ -11522,6 +13980,35 @@ "zod": "^3.24.1" } }, + "node_modules/zustand": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.6.tgz", + "integrity": "sha512-ihAqNeUVhe0MAD+X8M5UzqyZ9k3FFZLBTtqo6JLPwV53cbRB/mJwBI0PxcIgqhBBHlEs8G45OTDTMq3gNcLq3A==", + "license": "MIT", + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "@types/react": ">=18.0.0", + "immer": ">=9.0.6", + "react": ">=18.0.0", + "use-sync-external-store": ">=1.2.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "immer": { + "optional": true + }, + "react": { + "optional": true + }, + "use-sync-external-store": { + "optional": true + } + } + }, "node_modules/zwitch": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", diff --git a/docs/package.json b/docs/package.json index e44aeb094..2ff504d1c 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,5 +14,8 @@ "type": "commonjs", "devDependencies": { "mintlify": "^4.2.3" + }, + "dependencies": { + "@c15t/react": "^1.4.4" } } diff --git a/docs/reference.mdx b/docs/reference.mdx index 46b22b035..1a827dc60 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -175,7 +175,11 @@ The `models` section defines the language models used in your configuration. Mod - `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used. -- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`. +- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. See the [Model Capabilities guide](/customize/deep-dives/model-capabilities) for detailed information. Supported capabilities include: + - `tool_use`: Enables function/tool calling support (required for Agent mode) + - `image_input`: Enables image upload and processing support + + Continue automatically detects these capabilities for most models, but you can override this when using custom deployments or if autodetection isn't working correctly. - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdx index 60f197442..d14f282d3 100644 --- a/docs/troubleshooting.mdx +++ b/docs/troubleshooting.mdx @@ -135,6 +135,64 @@ If you are having persistent errors with indexing, our recommendation is to rebu This can be accomplished using the following command: `Continue: Rebuild codebase index`. +### Agent mode is unavailable or tools aren't working + +If Agent mode is grayed out or tools aren't functioning properly, this is likely due to model capability configuration issues. + + + Continue uses system message tools as a fallback for models without native tool support, so most models should work with Agent mode automatically. + + +#### Check if your model has tool support + +1. Not all models support native tool/function calling, but Continue will automatically use system message tools as a fallback +2. Try adding `capabilities: ["tool_use"]` to your model config to force tool support +3. Verify your provider supports function calling or that system message tools are working correctly + +#### Tools Not Working + +If tools aren't being called: + +1. Ensure `tool_use` is in your capabilities +2. Check that your API endpoint actually supports function calling +3. Some providers may use different function calling formats + +#### Images Not Uploading + +If you can't upload images: + +1. Add `image_input` to capabilities +2. Ensure your model actually supports vision (e.g., gpt-4-vision, claude-3) +3. Check that your provider passes through image data + +#### Add capabilities + +If Continue's autodetection isn't working correctly, you can manually add capabilities in your `config.yaml`: + +```yaml +models: + - name: my-model + provider: openai + model: gpt-4 + capabilities: + - tool_use + - image_input +``` + +#### Verify with provider + +Some proxy services (like OpenRouter) or custom deployments may not preserve tool calling capabilities. Check your provider's documentation. + +#### Verifying Current Capabilities + +To see what capabilities Continue detected for your model: + +1. Check the mode selector tooltips - they indicate if tools are available +2. Try uploading an image - if disabled, the model lacks `image_input` +3. Check if Agent mode is available - requires `tool_use` + +See the [Model Capabilities guide](/customize/deep-dives/model-capabilities) for complete configuration details. + ### Android Studio - "Nothing to show" in Chat This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details. diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index 589e37ff4..421e17772 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -287,6 +287,7 @@ describe("GUI Test", () => { }).timeout(DEFAULT_TIMEOUT.MD); it("should render tool call", async () => { + await GUIActions.toggleToolPolicy(view, "view_diff", 0); const [messageInput] = await GUISelectors.getMessageInputFields(view); await messageInput.sendKeys("Hello"); await messageInput.sendKeys(Key.ENTER); diff --git a/extensions/vscode/src/activation/activate.ts b/extensions/vscode/src/activation/activate.ts index 66a665221..464f9f4f0 100644 --- a/extensions/vscode/src/activation/activate.ts +++ b/extensions/vscode/src/activation/activate.ts @@ -1,5 +1,3 @@ -import * as path from "path"; - import { getContinueRcPath, getTsConfigPath } from "core/util/paths"; import { Telemetry } from "core/util/posthog"; import * as vscode from "vscode"; @@ -58,10 +56,10 @@ export async function activateExtension(context: vscode.ExtensionContext) { const yamlMatcher = ".continue/**/*.yaml"; const yamlConfig = vscode.workspace.getConfiguration("yaml"); - const newPath = path.join( - context.extension.extensionUri.fsPath, + const newPath = vscode.Uri.joinPath( + context.extension.extensionUri, "config-yaml-schema.json", - ); + ).toString(); try { await yamlConfig.update( diff --git a/gui/src/components/AnimatedEllipsis.tsx b/gui/src/components/AnimatedEllipsis.tsx new file mode 100644 index 000000000..918ca17c8 --- /dev/null +++ b/gui/src/components/AnimatedEllipsis.tsx @@ -0,0 +1,24 @@ +import styled, { keyframes } from "styled-components"; + +const ellipsisAnimation = keyframes` + 0% { width: 0; } + 33% { width: 0.33em; } + 66% { width: 0.66em; } + 100% { width: 1em; } +`; + +export const AnimatedEllipsis = styled.span` + display: inline-block; + width: 1em; /* Fixed width to match the maximum animation width */ + + &::after { + content: "..."; + display: inline-block; + overflow: hidden; + vertical-align: bottom; + animation: ${ellipsisAnimation} 2s infinite; + width: 0; + } +`; + +export default AnimatedEllipsis; diff --git a/gui/src/components/StepContainer/ConversationSummary.tsx b/gui/src/components/StepContainer/ConversationSummary.tsx index 6980ba5f7..5260da58f 100644 --- a/gui/src/components/StepContainer/ConversationSummary.tsx +++ b/gui/src/components/StepContainer/ConversationSummary.tsx @@ -2,7 +2,7 @@ import { ChevronDownIcon, ChevronUpIcon } from "@heroicons/react/24/solid"; import { TrashIcon } from "@heroicons/react/24/outline"; import { ChatHistoryItem } from "core"; import { useState } from "react"; -import { AnimatedEllipsis } from "../"; +import { AnimatedEllipsis } from "../AnimatedEllipsis"; import { useAppSelector } from "../../redux/hooks"; import StyledMarkdownPreview from "../StyledMarkdownPreview"; import { useDeleteCompaction } from "../../util/compactConversation"; diff --git a/gui/src/components/StepContainer/StepContainer.tsx b/gui/src/components/StepContainer/StepContainer.tsx index 84d681936..d83d7d9e8 100644 --- a/gui/src/components/StepContainer/StepContainer.tsx +++ b/gui/src/components/StepContainer/StepContainer.tsx @@ -110,21 +110,18 @@ export default function StepContainer(props: StepContainerProps) { {props.isLast && } - {shouldRenderResponseAction() && ( - // We want to occupy space in the DOM regardless of whether the actions are visible to avoid jank on stream complete + {shouldRenderResponseAction() && !isStreaming && (
- {!isStreaming && ( - - )} +
)} diff --git a/gui/src/components/TabBar/TabBar.tsx b/gui/src/components/TabBar/TabBar.tsx index 7f881edd5..6d24853c3 100644 --- a/gui/src/components/TabBar/TabBar.tsx +++ b/gui/src/components/TabBar/TabBar.tsx @@ -237,6 +237,13 @@ export const TabBar = React.forwardRef((_, ref) => { key={tab.id} isActive={tab.isActive} onClick={() => handleTabClick(tab.id)} + onAuxClick={(e) => { + // Middle mouse button + if (e.button === 1) { + e.preventDefault(); + handleTabClose(tab.id); + } + }} > {tab.title} (props.loading ? "8px" : "")}; `; diff --git a/gui/src/components/mainInput/Lump/LumpToolbar/GeneratingIndicator.tsx b/gui/src/components/mainInput/Lump/LumpToolbar/GeneratingIndicator.tsx index 0f95a4e40..620c2aacb 100644 --- a/gui/src/components/mainInput/Lump/LumpToolbar/GeneratingIndicator.tsx +++ b/gui/src/components/mainInput/Lump/LumpToolbar/GeneratingIndicator.tsx @@ -1,4 +1,4 @@ -import { AnimatedEllipsis } from "../../.."; +import { AnimatedEllipsis } from "../../../AnimatedEllipsis"; export function GeneratingIndicator({ text = "Generating", diff --git a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts index 891cb2855..6786e43b7 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.test.ts @@ -189,7 +189,7 @@ describe("processEditorContent", () => { expect(result.parts).toEqual([ { type: "text", - text: "Check this code:\n\n```js example.js\nfunction test() {\n return 'hello';\n}\n```\n", + text: "Check this code:\n\n```js example.js (1-1)\nfunction test() {\n return 'hello';\n}\n```\n", }, ]); expect(result.selectedCode).toHaveLength(1); @@ -347,7 +347,7 @@ describe("processEditorContent", () => { expect(result.parts).toEqual([ { type: "text", - text: "Please explain this code and also check @related\n\n```ts script.ts\nconst x = 42;\n```\n\nWhat does this constant do?", + text: "Please explain this code and also check @related\n\n```ts script.ts (1-1)\nconst x = 42;\n```\n\nWhat does this constant do?", }, { type: "imageUrl", diff --git a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts index 0f6f0c0e4..4801c853f 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/processEditorContent.ts @@ -96,7 +96,7 @@ export function processEditorContent(editorState: JSONContent) { rif.filepath, window.workspacePaths ?? [], ); - const codeText = `\n\`\`\`${extension} ${relativePathOrBasename}\n${contextItem.content}\n\`\`\`\n`; + const codeText = `\n\`\`\`${extension} ${relativePathOrBasename} (${rif.range.start.line + 1}-${rif.range.end.line + 1})\n${contextItem.content}\n\`\`\`\n`; if (parts[parts.length - 1]?.type === "text") { (parts[parts.length - 1] as TextMessagePart).text += "\n" + codeText; diff --git a/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx b/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx index 8ba560ad6..d28e2b78e 100644 --- a/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx +++ b/gui/src/components/mainInput/belowMainInput/ContextItemsPeek.tsx @@ -3,13 +3,13 @@ import { ContextItemWithId } from "core"; import { ctxItemToRifWithContents } from "core/commands/util"; import { getUriPathBasename } from "core/util/uri"; import { ComponentType, useContext, useMemo } from "react"; -import { AnimatedEllipsis } from "../.."; import { IdeMessengerContext, IIdeMessenger, } from "../../../context/IdeMessenger"; import { useAppSelector } from "../../../redux/hooks"; import { selectIsGatheringContext } from "../../../redux/slices/sessionSlice"; +import { AnimatedEllipsis } from "../../AnimatedEllipsis"; import FileIcon from "../../FileIcon"; import SafeImg from "../../SafeImg"; import ToggleDiv from "../../ToggleDiv"; diff --git a/gui/src/components/mainInput/belowMainInput/ThinkingBlockPeek.tsx b/gui/src/components/mainInput/belowMainInput/ThinkingBlockPeek.tsx index 90f9fe885..ba423bbc4 100644 --- a/gui/src/components/mainInput/belowMainInput/ThinkingBlockPeek.tsx +++ b/gui/src/components/mainInput/belowMainInput/ThinkingBlockPeek.tsx @@ -4,8 +4,10 @@ import { ChevronUpIcon } from "@heroicons/react/24/solid"; import { ChatHistoryItem } from "core"; import { useEffect, useState } from "react"; import styled from "styled-components"; + import { defaultBorderRadius, lightGray, vscBackground } from "../.."; import { getFontSize } from "../../../util"; +import { AnimatedEllipsis } from "../../AnimatedEllipsis"; import StyledMarkdownPreview from "../../StyledMarkdownPreview"; const SpoilerButton = styled.div` @@ -36,34 +38,11 @@ const ButtonContent = styled.div` gap: 6px; `; -export const ThinkingText = styled.span` - position: relative; - padding-right: 12px; +const ThinkingTextContainer = styled.span` + display: inline-block; + min-width: fit-content; - &:after { - content: "..."; - position: absolute; - animation: ellipsis 1s steps(4, end) infinite; - width: 0px; - display: inline-block; - overflow: hidden; - } - - @keyframes ellipsis { - 0%, - 100% { - width: 0px; - } - 33% { - width: 8px; - } - 66% { - width: 16px; - } - 90% { - width: 24px; - } - } + padding-right: 1em; /* Reserve space for the ellipsis animation */ `; const MarkdownWrapper = styled.div` @@ -120,12 +99,13 @@ function ThinkingBlockPeek({ className="flex items-center justify-start pl-2 text-xs text-gray-300" data-testid="thinking-block-peek" > - setOpen((prev) => !prev)}> + setOpen(!open)}> {inProgress ? ( - + {redactedThinking ? "Redacted Thinking" : "Thinking"} - + + ) : redactedThinking ? ( "Redacted Thinking" ) : ( @@ -141,7 +121,6 @@ function ThinkingBlockPeek({ -
{ - void dispatch( - streamResponseThunk({ - editorState: data.message, - modifiers: { useCodebase: false, noContext: true }, - }), - ); - }); - useWebviewListener("addContextItem", async (data) => { dispatch( addContextItemsAtIndex({ diff --git a/gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx b/gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx index dc0666479..e339399af 100644 --- a/gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx +++ b/gui/src/pages/config/IndexingProgress/IndexingProgressTitleText.tsx @@ -1,5 +1,5 @@ import { IndexingProgressUpdate } from "core"; -import { AnimatedEllipsis } from "../../../components"; +import { AnimatedEllipsis } from "../../../components/AnimatedEllipsis"; export interface IndexingProgressTitleTextProps { update: IndexingProgressUpdate; diff --git a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx index c54b2341d..7e346a678 100644 --- a/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx +++ b/gui/src/pages/gui/chat-tests/EditToolScenarios.test.tsx @@ -10,7 +10,10 @@ import { generateToolCallButtonTestId } from "../../../components/mainInput/Lump import { waitFor } from "@testing-library/dom"; import { act } from "@testing-library/react"; import { ChatMessage } from "core"; -import { toggleToolSetting } from "../../../redux/slices/uiSlice"; +import { + setToolPolicy, + toggleToolSetting, +} from "../../../redux/slices/uiSlice"; import { getElementByTestId, getElementByText, @@ -173,7 +176,12 @@ test("Edit run with no policy and yolo mode", { timeout: 15000 }, async () => { addAndSelectMockLlm(store, ideMessenger); // Enable automatic edit and yolo mode - store.dispatch(toggleToolSetting(BuiltInToolNames.EditExistingFile)); + store.dispatch( + setToolPolicy({ + toolName: BuiltInToolNames.EditExistingFile, + policy: "allowedWithoutPermission", + }), + ); triggerConfigUpdate({ store, ideMessenger, diff --git a/gui/src/redux/selectors/index.ts b/gui/src/redux/selectors/index.ts index aa24f87b3..8247e56e0 100644 --- a/gui/src/redux/selectors/index.ts +++ b/gui/src/redux/selectors/index.ts @@ -10,11 +10,18 @@ export const selectSlashCommandComboBoxInputs = createSelector( (slashCommands) => { return ( slashCommands?.map((cmd) => { + let content = cmd.prompt; + + // For MCP prompts without content, show that it failed to load + if (cmd.source === "mcp-prompt" && !content) { + content = "[MCP Prompt - failed to load content during startup]"; + } + return { title: cmd.name, description: cmd.description, type: "slashCommand" as ComboBoxItemType, - content: cmd.prompt, + content: content, } as ComboBoxItem; }) || [] ); diff --git a/gui/src/redux/selectors/selectActiveTools.ts b/gui/src/redux/selectors/selectActiveTools.ts index 2e90bbfd5..b28a3d903 100644 --- a/gui/src/redux/selectors/selectActiveTools.ts +++ b/gui/src/redux/selectors/selectActiveTools.ts @@ -1,6 +1,7 @@ import { createSelector } from "@reduxjs/toolkit"; import { Tool } from "core"; import { BUILT_IN_GROUP_NAME } from "core/tools/builtIn"; +import { DEFAULT_TOOL_SETTING } from "../slices/uiSlice"; import { RootState } from "../store"; export const selectActiveTools = createSelector( @@ -14,11 +15,15 @@ export const selectActiveTools = createSelector( if (mode === "chat") { return []; } else { - const enabledTools = tools.filter( - (tool) => - policies[tool.function.name] !== "disabled" && - groupPolicies[tool.group] !== "exclude", - ); + const enabledTools = tools.filter((tool) => { + const toolPolicy = + policies[tool.function.name] ?? + tool.defaultToolPolicy ?? + DEFAULT_TOOL_SETTING; + return ( + toolPolicy !== "disabled" && groupPolicies[tool.group] !== "exclude" + ); + }); if (mode === "plan") { return enabledTools.filter( (t) => t.group !== BUILT_IN_GROUP_NAME || t.readonly, diff --git a/gui/src/redux/slices/uiSlice.ts b/gui/src/redux/slices/uiSlice.ts index f261ff892..e350d9f72 100644 --- a/gui/src/redux/slices/uiSlice.ts +++ b/gui/src/redux/slices/uiSlice.ts @@ -1,5 +1,5 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { RuleWithSource, Tool } from "core"; +import { RuleWithSource, Tool, ToolPolicy } from "core"; import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "core/tools/builtIn"; import { defaultOnboardingCardState, @@ -7,11 +7,6 @@ import { } from "../../components/OnboardingCard"; import { getLocalStorage, LocalStorageKey } from "../../util/localStorage"; -export type ToolPolicy = - | "allowedWithPermission" - | "allowedWithoutPermission" - | "disabled"; - export type RulePolicy = "on" | "off"; export type ToolGroupPolicy = "include" | "exclude"; @@ -50,21 +45,7 @@ export const uiSlice = createSlice({ ), shouldAddFileForEditing: false, ttsActive: false, - toolSettings: { - [BuiltInToolNames.ReadFile]: "allowedWithoutPermission", - [BuiltInToolNames.EditExistingFile]: "allowedWithPermission", - [BuiltInToolNames.CreateNewFile]: "allowedWithPermission", - [BuiltInToolNames.RunTerminalCommand]: "allowedWithPermission", - [BuiltInToolNames.GrepSearch]: "allowedWithoutPermission", - [BuiltInToolNames.FileGlobSearch]: "allowedWithoutPermission", - [BuiltInToolNames.SearchWeb]: "allowedWithoutPermission", - [BuiltInToolNames.FetchUrlContent]: "allowedWithPermission", - [BuiltInToolNames.ViewDiff]: "allowedWithoutPermission", - [BuiltInToolNames.LSTool]: "allowedWithoutPermission", - [BuiltInToolNames.CreateRuleBlock]: "allowedWithPermission", - [BuiltInToolNames.RequestRule]: "disabled", - [BuiltInToolNames.SearchAndReplaceInFile]: "allowedWithPermission", - }, + toolSettings: {}, toolGroupSettings: { [BUILT_IN_GROUP_NAME]: "include", }, @@ -95,7 +76,7 @@ export const uiSlice = createSlice({ // Tools addTool: (state, action: PayloadAction) => { state.toolSettings[action.payload.function.name] = - "allowedWithPermission"; + action.payload.defaultToolPolicy ?? DEFAULT_TOOL_SETTING; }, setToolPolicy: ( state, diff --git a/gui/src/util/migrateLocalStorage.ts b/gui/src/util/migrateLocalStorage.ts index 13beb0eaf..b32babff1 100644 --- a/gui/src/util/migrateLocalStorage.ts +++ b/gui/src/util/migrateLocalStorage.ts @@ -1,9 +1,6 @@ +import { ToolPolicy } from "core"; import { BuiltInToolNames } from "core/tools/builtIn"; -import { - clearToolPolicy, - setToolPolicy, - ToolPolicy, -} from "../redux/slices/uiSlice"; +import { clearToolPolicy, setToolPolicy } from "../redux/slices/uiSlice"; import { AppDispatch } from "../redux/store"; const validPolicyValues: ToolPolicy[] = [ diff --git a/package.json b/package.json index 79e522af1..0a2842ba0 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "tsc:watch:vscode": "tsc --project extensions/vscode/tsconfig.json --watch --noEmit --pretty", "tsc:watch:core": "tsc --project core/tsconfig.json --watch --noEmit --pretty", "tsc:watch:binary": "tsc --project binary/tsconfig.json --watch --noEmit --pretty", - "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore", - "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore" + "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore --ignore-path .prettierignore", + "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\" --ignore-path .gitignore --ignore-path .prettierignore" }, "devDependencies": { "@typescript-eslint/parser": "^7.8.0", diff --git a/packages/hub/src/ContinueHubClient.ts b/packages/hub/src/ContinueHubClient.ts index 516dee31b..de433867e 100644 --- a/packages/hub/src/ContinueHubClient.ts +++ b/packages/hub/src/ContinueHubClient.ts @@ -80,10 +80,7 @@ export class ContinueHubClient implements IContinueHubClient { const alwaysUseProxy = options.alwaysUseProxy ?? false; try { - const urlObj = new URL( - organizationId ? "ide/list-assistants" : "ide/list-assistants", - this.apiBase, - ); + const urlObj = new URL("ide/list-assistants", this.apiBase); if (organizationId) { urlObj.searchParams.set("organizationId", organizationId); } diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index 731bfe01b..2239571b2 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -4645,6 +4645,19 @@ "node": ">=8" } }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -5291,6 +5304,20 @@ "url": "https://dotenvx.com" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/duplexer2": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", @@ -5533,6 +5560,24 @@ "is-arrayish": "^0.2.1" } }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-module-lexer": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", @@ -5540,6 +5585,33 @@ "dev": true, "license": "MIT" }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/esbuild": { "version": "0.25.8", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.8.tgz", @@ -5898,12 +5970,15 @@ } }, "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", "mime-types": "^2.1.12" }, "engines": { @@ -5995,8 +6070,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "peer": true, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -6060,6 +6133,30 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/get-package-type": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", @@ -6070,6 +6167,19 @@ "node": ">=8.0.0" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/get-stream": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", @@ -6211,6 +6321,18 @@ "node": ">=14" } }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -6260,12 +6382,37 @@ "node": ">=8" } }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "peer": true, "dependencies": { "function-bind": "^1.1.2" }, @@ -7727,6 +7874,15 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/meow": { "version": "13.2.0", "resolved": "https://registry.npmjs.org/meow/-/meow-13.2.0.tgz", diff --git a/packages/openai-adapters/src/apis/Anthropic.ts b/packages/openai-adapters/src/apis/Anthropic.ts index 9771ce97d..ea517f467 100644 --- a/packages/openai-adapters/src/apis/Anthropic.ts +++ b/packages/openai-adapters/src/apis/Anthropic.ts @@ -55,6 +55,14 @@ export class AnthropicApi implements BaseLlmApi { return cachingStrategy(cleanBody); } + private maxTokensForModel(model: string): number { + if (model.includes("haiku")) { + return 8192; + } + + return 32_000; + } + public _convertToCleanAnthropicBody(oaiBody: ChatCompletionCreateParams) { let stop = undefined; if (oaiBody.stop && Array.isArray(oaiBody.stop)) { @@ -81,7 +89,7 @@ export class AnthropicApi implements BaseLlmApi { : systemMessage, top_p: oaiBody.top_p, temperature: oaiBody.temperature, - max_tokens: oaiBody.max_tokens ?? 4096, // max_tokens is required + max_tokens: oaiBody.max_tokens ?? this.maxTokensForModel(oaiBody.model), // max_tokens is required model: oaiBody.model, stop_sequences: stop, stream: oaiBody.stream, diff --git a/packages/openai-adapters/src/apis/AnthropicCachingStrategies.test.ts b/packages/openai-adapters/src/apis/AnthropicCachingStrategies.test.ts index afb0a2f22..c468f88df 100644 --- a/packages/openai-adapters/src/apis/AnthropicCachingStrategies.test.ts +++ b/packages/openai-adapters/src/apis/AnthropicCachingStrategies.test.ts @@ -59,6 +59,30 @@ describe("AnthropicCachingStrategies", () => { const result = CACHING_STRATEGIES.systemOnly(body); expect(result).toEqual(body); }); + + it("should not add more than 5 cached messages", () => { + const body = { + system: [ + { text: "system message 1" }, + { text: "system message 2" }, + { text: "system message 3" }, + { text: "system message 4" }, + { text: "system message 5" }, + ], + messages: [{ content: "user message" }], + }; + + const result = CACHING_STRATEGIES.systemOnly(body); + + expect(result.system).toEqual([ + { text: "system message 1", cache_control: { type: "ephemeral" } }, + { text: "system message 2", cache_control: { type: "ephemeral" } }, + { text: "system message 3", cache_control: { type: "ephemeral" } }, + { text: "system message 4", cache_control: { type: "ephemeral" } }, + { text: "system message 5" }, + ]); + expect(result.messages).toEqual(body.messages); + }); }); describe("systemAndToolsStrategy", () => { @@ -119,6 +143,30 @@ describe("AnthropicCachingStrategies", () => { const result = CACHING_STRATEGIES.systemAndTools(body); expect(result).toEqual(body); }); + + it("should add only 4 cache controls in total to both system and tools", () => { + const body = { + system: [ + { text: "system message 1" }, + { text: "system message 2" }, + { text: "system message 3" }, + { text: "system message 4" }, + ], + tools: [{ name: "tool1" }, { name: "tool2" }], + messages: [{ content: "user message" }], + }; + + const result = CACHING_STRATEGIES.systemAndTools(body); + + expect(result.system).toEqual([ + { text: "system message 1", cache_control: { type: "ephemeral" } }, + { text: "system message 2", cache_control: { type: "ephemeral" } }, + { text: "system message 3", cache_control: { type: "ephemeral" } }, + { text: "system message 4", cache_control: { type: "ephemeral" } }, + ]); + expect(result.tools).toEqual(body.tools); + expect(result.messages).toEqual(body.messages); + }); }); describe("optimizedStrategy", () => { @@ -203,6 +251,46 @@ describe("AnthropicCachingStrategies", () => { ]); }); + it("should add maximum 4 cache control blocks", () => { + const body = { + system: [{ text: "system message 1" }, { text: "system message 2" }], + tools: [{ name: "tool" }], + messages: [ + { content: "small content" }, + { content: "a".repeat(2100) }, + { content: "b".repeat(2100) }, + { + content: [ + { type: "text", text: "c".repeat(2100) }, + { type: "image", data: "image" }, + ], + }, + ], + }; + + const result = CACHING_STRATEGIES.optimized(body); + + expect(result.system).toEqual([ + { text: "system message 1", cache_control: { type: "ephemeral" } }, + { text: "system message 2", cache_control: { type: "ephemeral" } }, + ]); + expect(result.tools).toEqual([ + { name: "tool", cache_control: { type: "ephemeral" } }, + ]); + expect(result.messages[0]).toEqual({ content: "small content" }); + expect(result.messages[1]).toEqual({ + content: [ + { + type: "text", + text: "a".repeat(2100), + cache_control: { type: "ephemeral" }, + }, + ], + }); + expect(result.messages[2].content).toEqual(body.messages[2].content); + expect(result.messages[3].content).toEqual(body.messages[3].content); + }); + it("should handle complex message structure", () => { const body = { system: [{ text: "system" }], diff --git a/packages/openai-adapters/src/apis/AnthropicCachingStrategies.ts b/packages/openai-adapters/src/apis/AnthropicCachingStrategies.ts index 586a2828f..8d3065141 100644 --- a/packages/openai-adapters/src/apis/AnthropicCachingStrategies.ts +++ b/packages/openai-adapters/src/apis/AnthropicCachingStrategies.ts @@ -1,3 +1,5 @@ +const MAX_CACHING_MESSAGES = 4; + // Caching strategy type - transforms a clean Anthropic body by adding cache_control export type CachingStrategy = (anthropicBody: any) => any; @@ -9,13 +11,20 @@ const noCachingStrategy: CachingStrategy = (body) => body; // Strategy 2: System Messages Only (Current Implementation) const systemOnlyStrategy: CachingStrategy = (body) => { + let availableCacheMessages = MAX_CACHING_MESSAGES; if (body.system && Array.isArray(body.system)) { return { ...body, - system: body.system.map((item: any) => ({ - ...item, - cache_control: { type: "ephemeral" }, - })), + system: body.system.map((item: any) => { + if (availableCacheMessages > 0) { + availableCacheMessages -= 1; + return { + ...item, + cache_control: { type: "ephemeral" }, + }; + } + return item; + }), }; } return body; @@ -24,19 +33,27 @@ const systemOnlyStrategy: CachingStrategy = (body) => { // Strategy 3: System and Tools (High Impact) const systemAndToolsStrategy: CachingStrategy = (body) => { const result = { ...body }; + let availableCacheMessages = MAX_CACHING_MESSAGES; // Cache system messages if (result.system && Array.isArray(result.system)) { - result.system = result.system.map((item: any) => ({ - ...item, - cache_control: { type: "ephemeral" }, - })); + result.system = result.system.map((item: any) => { + if (availableCacheMessages > 0) { + availableCacheMessages -= 1; + return { + ...item, + cache_control: { type: "ephemeral" }, + }; + } + return item; + }); } // Cache tool definitions if (result.tools && Array.isArray(result.tools) && result.tools.length > 0) { result.tools = result.tools.map((tool: any, index: number) => { - if (index === result.tools.length - 1) { + if (index === result.tools.length - 1 && availableCacheMessages > 0) { + availableCacheMessages -= 1; return { ...tool, cache_control: { type: "ephemeral" }, @@ -52,19 +69,27 @@ const systemAndToolsStrategy: CachingStrategy = (body) => { // Strategy 4: Optimized (Intelligent Caching) const optimizedStrategy: CachingStrategy = (body) => { const result = { ...body }; + let availableCacheMessages = MAX_CACHING_MESSAGES; // Always cache system messages if (result.system && Array.isArray(result.system)) { - result.system = result.system.map((item: any) => ({ - ...item, - cache_control: { type: "ephemeral" }, - })); + result.system = result.system.map((item: any) => { + if (availableCacheMessages > 0) { + availableCacheMessages -= 1; + return { + ...item, + cache_control: { type: "ephemeral" }, + }; + } + return item; + }); } // Cache tool definitions if (result.tools && Array.isArray(result.tools) && result.tools.length > 0) { result.tools = result.tools.map((tool: any, index: number) => { - if (index === result.tools.length - 1) { + if (index === result.tools.length - 1 && availableCacheMessages > 0) { + availableCacheMessages -= 1; return { ...tool, cache_control: { type: "ephemeral" }, @@ -79,7 +104,8 @@ const optimizedStrategy: CachingStrategy = (body) => { result.messages = result.messages.map((message: any) => { if (message.content && typeof message.content === "string") { const tokens = estimateTokenCount(message.content); - if (tokens > 500) { + if (tokens > 500 && availableCacheMessages > 0) { + availableCacheMessages -= 1; return { ...message, content: [ @@ -95,7 +121,8 @@ const optimizedStrategy: CachingStrategy = (body) => { const updatedContent = message.content.map((item: any) => { if (item.type === "text" && item.text) { const tokens = estimateTokenCount(item.text); - if (tokens > 500) { + if (tokens > 500 && availableCacheMessages > 0) { + availableCacheMessages -= 1; return { ...item, cache_control: { type: "ephemeral" }, diff --git a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts index 24d087187..6e875efe0 100644 --- a/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts +++ b/packages/openai-adapters/src/test/anthropic-adapter.vitest.ts @@ -1,4 +1,4 @@ -import { describe, test, vi, expect, afterEach } from "vitest"; +import { afterEach, describe, expect, test, vi } from "vitest"; import { runAdapterTest } from "./adapter-test-utils.js"; // Mock the fetch package @@ -53,7 +53,7 @@ describe("Anthropic Adapter Tests", () => { messages: [{ role: "user", content: "hello" }], system: undefined, model: "claude-3-5-sonnet-20241022", - max_tokens: 4096, + max_tokens: 32000, stream: undefined, }, }, @@ -107,7 +107,7 @@ describe("Anthropic Adapter Tests", () => { messages: [{ role: "user", content: "hello" }], system: undefined, model: "claude-3-5-sonnet-20241022", - max_tokens: 4096, + max_tokens: 32000, stream: true, }, }, @@ -168,7 +168,7 @@ describe("Anthropic Adapter Tests", () => { }, ], model: "claude-3-5-sonnet-20241022", - max_tokens: 4096, + max_tokens: 32000, stream: true, }, },