From 1320ff828e8e812465bb4344ed5227387e2d1402 Mon Sep 17 00:00:00 2001 From: dipfocus Date: Sat, 5 Jul 2025 18:54:27 +0800 Subject: [PATCH 01/64] Refactor downloadFile function to use fetch API and support proxy configuration. --- .../scripts/download-copy-sqlite-esbuild.js | 89 +++++-------------- 1 file changed, 23 insertions(+), 66 deletions(-) diff --git a/extensions/vscode/scripts/download-copy-sqlite-esbuild.js b/extensions/vscode/scripts/download-copy-sqlite-esbuild.js index ea6f8ebd9..b595c3bdf 100644 --- a/extensions/vscode/scripts/download-copy-sqlite-esbuild.js +++ b/extensions/vscode/scripts/download-copy-sqlite-esbuild.js @@ -1,83 +1,40 @@ const { fork } = require("child_process"); const fs = require("fs"); -const https = require("https"); const path = require("path"); +const { ProxyAgent } = require("undici"); const { rimrafSync } = require("rimraf"); const { execCmdSync } = require("../../../scripts/util"); /** - * download a file using nodejs http + * download a file using fetch API * @param {string} url * @param {string} outputPath - * @param {number} maxRedirects */ -async function downloadFile(url, outputPath, maxRedirects = 5) { - return new Promise((resolve, reject) => { - const downloadWithRedirects = (currentUrl, redirectCount = 0) => { - if (redirectCount > maxRedirects) { - return reject(new Error(`Too many redirects (${maxRedirects})`)); - } +async function downloadFile(url, outputPath) { + // Use proxy if set in environment variables + const proxy = process.env.https_proxy || process.env.HTTPS_PROXY; + const agent = proxy ? new ProxyAgent(proxy) : undefined; - const request = https.get(currentUrl, (response) => { - if ( - response.statusCode >= 300 && - response.statusCode < 400 && - response.headers.location - ) { - return downloadWithRedirects( - response.headers.location, - redirectCount + 1, - ); - } - - if (response.statusCode !== 200) { - return reject( - new Error(`HTTP ${response.statusCode}: ${response.statusMessage}`), - ); - } - - const outputDir = path.dirname(outputPath); - if (!fs.existsSync(outputDir)) { - fs.mkdirSync(outputDir, { recursive: true }); - } - - const writeStream = fs.createWriteStream(outputPath); - - const totalSize = parseInt(response.headers["content-length"], 10); - let downloadedSize = 0; - - response.on("data", (chunk) => { - downloadedSize += chunk.length; - if (totalSize) { - const percent = ((downloadedSize / totalSize) * 100).toFixed(1); - process.stdout.write( - `\rDownloading: ${percent}% (${downloadedSize}/${totalSize} bytes)`, - ); - } - }); - - response.pipe(writeStream); - - writeStream.on("finish", () => { - console.log(`\nDownload completed: ${outputPath}`); - resolve(outputPath); - }); - - writeStream.on("error", reject); - response.on("error", reject); - }); - - request.on("error", reject); - request.setTimeout(30000, () => { - request.destroy(); - reject(new Error("Request timeout")); - }); - }; - - downloadWithRedirects(url); + const response = await fetch(url, { + redirect: "follow", // Automatically follow redirects + dispatcher: agent, }); + + if (!response.ok) { + throw new Error(`Failed to download file, status code: ${response.status}`); + } + + // Create output directory if it doesn't exist + const outputDir = path.dirname(outputPath); + if (!fs.existsSync(outputDir)) { + fs.mkdirSync(outputDir, { recursive: true }); + } + + // Get the response as an array buffer and write it to the file + const buffer = await response.arrayBuffer(); + fs.writeFileSync(outputPath, Buffer.from(buffer)); } /** From 30dbdee5dc10b5ff25b47d8c9751d206e946dfa1 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 10 Jul 2025 23:59:05 -0700 Subject: [PATCH 03/64] fix: reload assistants, not config --- gui/src/components/AssistantAndOrgListbox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index 65b9e6a81..e9b3fb023 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -180,7 +180,7 @@ export function AssistantAndOrgListbox() { configLoading && "animate-spin-slow", )} /> - Reload config + Reload assistants From 572c4a7539a8405cc07326966c198172c3293bf0 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:13:16 -0700 Subject: [PATCH 04/64] always show user email --- .../AssistantAndOrgListbox/index.tsx | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index e9b3fb023..a55758ca1 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -1,5 +1,5 @@ import { ArrowPathIcon, PlusIcon } from "@heroicons/react/24/outline"; -import { isOnPremSession } from "core/control-plane/AuthTypes"; +import { AuthType, isOnPremSession } from "core/control-plane/AuthTypes"; import { useContext, useEffect, useRef } from "react"; import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; @@ -126,19 +126,23 @@ export function AssistantAndOrgListbox() { - {shouldRenderOrgInfo && ( -
-
+
+
+ {session && session?.AUTH_TYPE !== AuthType.OnPrem && ( - {session.account.id} + {session?.account.id} - - -
+ )} + {shouldRenderOrgInfo && ( + <> + + + + )}
- )} +
Date: Fri, 11 Jul 2025 00:17:01 -0700 Subject: [PATCH 05/64] fix: reload assistants button leading to new assistant page --- gui/src/components/AssistantAndOrgListbox/index.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index a55758ca1..7072c38e3 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -165,18 +165,17 @@ export function AssistantAndOrgListbox() { login(false)} + onClick={async (e: any) => { + e.stopPropagation(); + await refreshProfiles(); + }} > { - e.stopPropagation(); - await refreshProfiles(); - }} > Date: Fri, 11 Jul 2025 00:27:49 -0700 Subject: [PATCH 06/64] fix: don't block user with "create your first assistant" --- .../AssistantOptions.tsx | 22 ++++++++++------ .../SelectedAssistantButton.tsx | 6 +++-- .../AssistantAndOrgListbox/index.tsx | 25 ++----------------- 3 files changed, 20 insertions(+), 33 deletions(-) diff --git a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx index 23c54184d..89ac2a81b 100644 --- a/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx +++ b/gui/src/components/AssistantAndOrgListbox/AssistantOptions.tsx @@ -20,14 +20,20 @@ export function AssistantOptions({
- {profiles?.map((profile, idx) => ( - - ))} + {profiles?.length === 0 ? ( +
+ No assistants found +
+ ) : ( + profiles?.map((profile, idx) => ( + + )) + )}
); diff --git a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx index bb0a301e1..86ba08916 100644 --- a/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx +++ b/gui/src/components/AssistantAndOrgListbox/SelectedAssistantButton.tsx @@ -9,7 +9,7 @@ import { ListboxButton } from "../ui"; import { AssistantIcon } from "./AssistantIcon"; interface SelectedAssistantButtonProps { - selectedProfile: ProfileDescription; + selectedProfile: ProfileDescription | null; } export function SelectedAssistantButton({ @@ -25,7 +25,9 @@ export function SelectedAssistantButton({ style={{ fontSize: fontSize(-3) }} >
- {configLoading ? ( + {selectedProfile === null ? ( + "Create your first assistant" + ) : configLoading ? ( { - void ideMessenger.request("controlPlane/openUrl", { - path: "/new?type=assistant", - orgSlug: currentOrg?.slug, - }); - }} - className="text-description flex cursor-pointer select-none items-center gap-1" - style={{ fontSize: smallFont }} - > - - - Create your first assistant - -
- ); - } - return (
@@ -143,8 +121,9 @@ export function AssistantAndOrgListbox() { )}
+ From 48a5783abc352e56972c3487f2b620eac2b8ecba Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:46:12 -0700 Subject: [PATCH 07/64] fix: after hub login, show user success message and tutorial --- .../OnboardingCard/components/OnboardingCardLanding.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx index d9eae491c..40abbea5f 100644 --- a/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingCardLanding.tsx @@ -31,6 +31,9 @@ export function OnboardingCardLanding({ // A new assistant is created when the account is created // We want to switch to this immediately void dispatch(selectFirstHubProfile()); + + ideMessenger.post("showTutorial", undefined); + ideMessenger.post("showToast", ["info", "🎉 Welcome to Continue!"]); } }); } From da0335ab3282346c058b520de88f890bdea61bef Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:47:00 -0700 Subject: [PATCH 08/64] don't mention prompts in input placeholder --- gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 0cbb1e818..dd874e886 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -38,7 +38,7 @@ export function getPlaceholderText( } return historyLength === 0 - ? "Ask anything, '/' for prompts, '@' to add context" + ? "Ask anything, '@' to add context" : "Ask a follow-up"; } From ac96f3da03b0c59092e5ea9f595f4a894aff1474 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 11 Jul 2025 00:51:30 -0700 Subject: [PATCH 09/64] add padding to input box --- gui/src/components/mainInput/InputToolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index c58fc0eeb..b4ad6a860 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -74,7 +74,7 @@ function InputToolbar(props: InputToolbarProps) { <>
Date: Fri, 11 Jul 2025 01:00:53 -0700 Subject: [PATCH 10/64] feat: view config.yaml reference codelens --- .../DownloadYamlExtensionCodeLensProvider.ts | 30 ++++++++++++++----- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts b/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts index dd46ad401..58b167e66 100644 --- a/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts +++ b/extensions/vscode/src/lang-server/codeLens/providers/DownloadYamlExtensionCodeLensProvider.ts @@ -15,20 +15,34 @@ export class DownloadYamlExtensionCodeLensProvider if (!document.uri.fsPath.includes(".continue")) { return []; } - if (this.yamlExtensionDownloaded()) { - return []; - } - const codeLens: vscode.CodeLens = { + const codeLenses: vscode.CodeLens[] = []; + + // Always show documentation link + const docCodeLens: vscode.CodeLens = { range: new vscode.Range(0, 0, 0, 0), command: { - title: "Download YAML extension for Intellisense", - command: "workbench.extensions.installExtension", - arguments: ["redhat.vscode-yaml"], + title: "📖 View Continue Reference", + command: "vscode.open", + arguments: [vscode.Uri.parse("https://docs.continue.dev/reference")], }, isResolved: true, }; + codeLenses.push(docCodeLens); - return [codeLens]; + if (!this.yamlExtensionDownloaded()) { + const codeLens: vscode.CodeLens = { + range: new vscode.Range(0, 0, 0, 0), + command: { + title: "Download YAML extension for Intellisense", + command: "workbench.extensions.installExtension", + arguments: ["redhat.vscode-yaml"], + }, + isResolved: true, + }; + codeLenses.push(codeLens); + } + + return codeLenses; } } From f642b1c7cf138f2b24255799a91adb61a26e0702 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 14 Jul 2025 11:03:43 -0700 Subject: [PATCH 11/64] Revert "remove accountbutton" This reverts commit b96068408e65b2c5687b7736eba831febcc02fc8. --- .../AssistantAndOrgListbox/AccountOption.tsx | 51 ------------ .../AssistantAndOrgListbox/index.tsx | 23 +++++- gui/src/pages/config/AccountButton.tsx | 82 +++++++++++++++++++ gui/src/pages/config/index.tsx | 2 + gui/src/pages/history/index.tsx | 8 +- 5 files changed, 112 insertions(+), 54 deletions(-) delete mode 100644 gui/src/components/AssistantAndOrgListbox/AccountOption.tsx create mode 100644 gui/src/pages/config/AccountButton.tsx diff --git a/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx b/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx deleted file mode 100644 index 98e8adbc5..000000000 --- a/gui/src/components/AssistantAndOrgListbox/AccountOption.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { - ArrowRightEndOnRectangleIcon, - UserCircleIcon as UserCircleIconOutline, -} from "@heroicons/react/24/outline"; -import { isOnPremSession } from "core/control-plane/AuthTypes"; -import { useAuth } from "../../context/Auth"; -import { ListboxOption, useFontSize } from "../ui"; - -interface AccountOptionProps { - onClose: () => void; -} - -export function AccountOption({ onClose }: AccountOptionProps) { - const { session, logout, login } = useAuth(); - const tinyFont = useFontSize(-4); - - // No account option for on-prem deployments - if (session && isOnPremSession(session)) { - return null; - } - - async function handleClick() { - if (session) { - logout(); - } else { - await login(false); - } - onClose(); - } - - return ( - -
- {session ? ( - - ) : ( - - )} - {session ? "Log out" : "Sign in"} -
-
- ); -} diff --git a/gui/src/components/AssistantAndOrgListbox/index.tsx b/gui/src/components/AssistantAndOrgListbox/index.tsx index 65b9e6a81..40d15c709 100644 --- a/gui/src/components/AssistantAndOrgListbox/index.tsx +++ b/gui/src/components/AssistantAndOrgListbox/index.tsx @@ -18,7 +18,6 @@ import { Transition, useFontSize, } from "../ui"; -import { AccountOption } from "./AccountOption"; import { AssistantOptions } from "./AssistantOptions"; import { ScopeSelect } from "./ScopeSelect"; import { SelectedAssistantButton } from "./SelectedAssistantButton"; @@ -34,6 +33,7 @@ export function AssistantAndOrgListbox() { selectedProfile, session, login, + logout, organizations, refreshProfiles, } = useAuth(); @@ -57,6 +57,11 @@ export function AssistantAndOrgListbox() { close(); } + function onLogout() { + logout(); + close(); + } + useEffect(() => { let lastToggleTime = 0; const DEBOUNCE_MS = 800; @@ -184,7 +189,21 @@ export function AssistantAndOrgListbox() { - + {session && ( + +
+ Log out +
+
+ )}
login(false)} + > + Sign in + + ); + } + + // No login button for on-prem deployments + if (isOnPremSession(session)) { + return null; + } + + return ( + + {({ close }) => ( + <> + +
+ + {selectedOrg === null ? "Personal" : selectedOrg.name} + + +
+
+ + + +
+
+ {session.account.label} + + {session.account.id} + +
+ + {organizations.length > 0 && ( +
+ + +
+ )} + + +
+
+
+ + )} +
+ ); +} diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index d9939a2c8..ea5ccef44 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -9,6 +9,7 @@ import { useNavigate } from "react-router-dom"; import { PageHeader } from "../../components/PageHeader"; import { useNavigationListener } from "../../hooks/useNavigationListener"; import { fontSize } from "../../util"; +import { AccountButton } from "./AccountButton"; import { HelpCenterSection } from "./HelpCenterSection"; import { IndexingSettingsSection } from "./IndexingSettingsSection"; import KeyboardShortcuts from "./KeyboardShortcuts"; @@ -62,6 +63,7 @@ function ConfigPage() { showBorder onTitleClick={() => navigate("/")} title="Chat" + rightContent={} /> {/* Tab Headers */} diff --git a/gui/src/pages/history/index.tsx b/gui/src/pages/history/index.tsx index 86950ff24..a8be3d92f 100644 --- a/gui/src/pages/history/index.tsx +++ b/gui/src/pages/history/index.tsx @@ -2,6 +2,7 @@ import { useNavigate } from "react-router-dom"; import { History } from "../../components/History"; import { PageHeader } from "../../components/PageHeader"; import { getFontSize } from "../../util"; +import { AccountButton } from "../config/AccountButton"; export default function HistoryPage() { const navigate = useNavigate(); @@ -11,7 +12,12 @@ export default function HistoryPage() { className="flex flex-1 flex-col overflow-auto" style={{ fontSize: getFontSize() }} > - navigate("/")} title="Chat" /> + navigate("/")} + title="Chat" + rightContent={} + />
); From 4b4afe193eb17eddac68d0c9996d14494ad0a3e9 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Mon, 14 Jul 2025 12:48:36 -0700 Subject: [PATCH 12/64] perf: reduce redundant calculations, make window disappear immediately --- .../src/activation/NextEditWindowManager.ts | 87 +++++++++---------- 1 file changed, 43 insertions(+), 44 deletions(-) diff --git a/extensions/vscode/src/activation/NextEditWindowManager.ts b/extensions/vscode/src/activation/NextEditWindowManager.ts index 58d03239d..62ae5eaf5 100644 --- a/extensions/vscode/src/activation/NextEditWindowManager.ts +++ b/extensions/vscode/src/activation/NextEditWindowManager.ts @@ -117,6 +117,9 @@ export class NextEditWindowManager { // Track for logging purposes. private loggingService: NextEditLoggingService; private mostRecentCompletionId: string | null = null; + // Helps us skip redundant calculations. No need for cleanup because this always gets reassigned with new values at showNextEditWindow, and we don't reuse windows. + private editableRegionStartLine: number = 0; + private editableRegionEndLine: number = 0; // Disposables private disposables: vscode.Disposable[] = []; @@ -261,6 +264,7 @@ export class NextEditWindowManager { editor: vscode.TextEditor, currCursorPos: vscode.Position, editableRegionStartLine: number, + editableRegionEndLine: number, oldEditRangeSlice: string, newEditRangeSlice: string, diffLines: DiffLine[], @@ -272,11 +276,14 @@ export class NextEditWindowManager { // Clear any existing decorations first (very important to prevent overlapping). await this.hideAllNextEditWindows(); + this.editableRegionStartLine = editableRegionStartLine; + this.editableRegionEndLine = editableRegionEndLine; + // Store the current tooltip text for accepting later. this.currentTooltipText = newEditRangeSlice; // How far away is the current line from the start of the editable region? - const lineOffsetAtCursorPos = currCursorPos.line - editableRegionStartLine; + const lineOffsetAtCursorPos = currCursorPos.line - this.editableRegionStartLine; // How long is the line at the current cursor position? const lineContentAtCursorPos = @@ -291,7 +298,7 @@ export class NextEditWindowManager { // Calculate the actual line number in the editor by adding the startPos offset // to the line number from the diff calculation. this.finalCursorPos = new vscode.Position( - editableRegionStartLine + offset.line, + this.editableRegionStartLine + offset.line, offset.character, ); @@ -301,13 +308,13 @@ export class NextEditWindowManager { currCursorPos, oldEditRangeSlice, newEditRangeSlice, - editableRegionStartLine, + this.editableRegionStartLine, diffLines, ); const diffChars = myersCharDiff(oldEditRangeSlice, newEditRangeSlice); - this.renderDeletes(editor, editableRegionStartLine, diffChars); + this.renderDeletes(editor, diffChars); // Reserve tab and esc to either accept or reject the displayed next edit contents. await NextEditWindowManager.reserveTabAndEsc(); @@ -317,6 +324,8 @@ export class NextEditWindowManager { * Hide all tooltips in all editors. */ public async hideAllNextEditWindows() { + await NextEditWindowManager.freeTabAndEsc(); + if (this.currentDecoration) { vscode.window.visibleTextEditors.forEach((editor) => { editor.setDecorations(this.currentDecoration!, []); @@ -339,12 +348,10 @@ export class NextEditWindowManager { // Clear the current tooltip text. this.currentTooltipText = null; } - - await NextEditWindowManager.freeTabAndEsc(); } public async hideAllNextEditWindowsAndResetCompletionId() { - this.hideAllNextEditWindows(); + await this.hideAllNextEditWindows(); // Log with accept = false. await vscode.commands.executeCommand( @@ -352,6 +359,7 @@ export class NextEditWindowManager { this.mostRecentCompletionId, this.loggingService, ); + this.mostRecentCompletionId = null; } @@ -369,6 +377,10 @@ export class NextEditWindowManager { const position = editor.selection.active; let success = false; + + // Hide windows first for a snappier feel. + await this.hideAllNextEditWindows(); + if (this.textApplier) { success = await this.textApplier.applyText( editor, @@ -377,20 +389,12 @@ export class NextEditWindowManager { this.finalCursorPos, ); } else { - // Define the editable region. - const editableRegionStartLine = Math.max( - 0, - position.line - NEXT_EDIT_EDITABLE_REGION_TOP_MARGIN, - ); - const editableRegionEndLine = Math.min( - editor.document.lineCount - 1, - position.line + NEXT_EDIT_EDITABLE_REGION_BOTTOM_MARGIN, - ); - const startPos = new vscode.Position(editableRegionStartLine, 0); - const endPosChar = editor.document.lineAt(editableRegionEndLine).text + // Define the range to replace. + const startPos = new vscode.Position(this.editableRegionStartLine, 0); + const endPosChar = editor.document.lineAt(this.editableRegionEndLine).text .length; - const endPos = new vscode.Position(editableRegionEndLine, endPosChar); + const endPos = new vscode.Position(this.editableRegionEndLine, endPosChar); const editRange = new vscode.Range(startPos, endPos); success = await editor.edit((editBuilder) => { @@ -405,23 +409,19 @@ export class NextEditWindowManager { .update("editor.inlineSuggest.enabled", false, true); } - if (success) { + if (success && this.finalCursorPos) { // Move cursor to the final position if available. - if (this.finalCursorPos) { - editor.selection = new vscode.Selection( - this.finalCursorPos, - this.finalCursorPos, - ); - - // Reenable inline suggestions after we move the cursor. - await vscode.workspace - .getConfiguration() - .update("editor.inlineSuggest.enabled", true, true); - - await this.hideAllNextEditWindows(); - } + editor.selection = new vscode.Selection( + this.finalCursorPos, + this.finalCursorPos, + ); } + // Reenable inline suggestions. + await vscode.workspace + .getConfiguration() + .update("editor.inlineSuggest.enabled", true, true); + // Log with accept = true. await vscode.commands.executeCommand( "continue.logNextEditOutcomeAccept", @@ -454,7 +454,7 @@ export class NextEditWindowManager { */ private setupListeners() { // Theme change listener. - vscode.workspace.onDidChangeConfiguration((e) => { + vscode.workspace.onDidChangeConfiguration(async (e) => { if ( e.affectsConfiguration("workbench.colorTheme") || e.affectsConfiguration("editor.fontSize") || @@ -467,7 +467,7 @@ export class NextEditWindowManager { e.affectsConfiguration("workbench.preferredHighContrastLightColorTheme") ) { this.theme = getThemeString(); - this.codeRenderer.setTheme(this.theme); + await this.codeRenderer.setTheme(this.theme); console.log( "Theme updated:", this.theme ? "Theme exists" : "Theme is undefined", @@ -479,9 +479,9 @@ export class NextEditWindowManager { }); // Listen for active color theme changes. - vscode.window.onDidChangeActiveColorTheme(() => { + vscode.window.onDidChangeActiveColorTheme(async () => { this.theme = getThemeString(); - this.codeRenderer.setTheme(this.theme); + await this.codeRenderer.setTheme(this.theme); console.log( "Active theme changed:", this.theme ? "Theme exists" : "Theme is undefined", @@ -495,10 +495,11 @@ export class NextEditWindowManager { this.activeEditor && !vscode.window.visibleTextEditors.includes(this.activeEditor) ) { - if (this.mostRecentCompletionId) + if (this.mostRecentCompletionId) { this.loggingService.cancelRejectionTimeout( this.mostRecentCompletionId, ); + } await this.hideAllNextEditWindows(); } }); @@ -508,10 +509,11 @@ export class NextEditWindowManager { // If the selection changed in our active editor, hide the tooltip. if (this.activeEditor && e.textEditor === this.activeEditor) { // If the cursor moved because of something other than accepting next edit, stop logging it. - if (!this.accepted && this.mostRecentCompletionId) + if (!this.accepted && this.mostRecentCompletionId) { this.loggingService.cancelRejectionTimeout( this.mostRecentCompletionId, ); + } await this.hideAllNextEditWindows(); } }); @@ -788,9 +790,6 @@ export class NextEditWindowManager { private renderDeletes( editor: vscode.TextEditor, - editableRegionStartLine: number, - // oldEditRangeSlice: string, - // newEditRangeSlice: string, oldDiffChars: DiffChar[], ) { const charsToDelete: vscode.DecorationOptions[] = []; @@ -803,11 +802,11 @@ export class NextEditWindowManager { charsToDelete.push({ range: new vscode.Range( new vscode.Position( - editableRegionStartLine + diff.oldLineIndex!, + this.editableRegionStartLine + diff.oldLineIndex!, diff.oldCharIndexInLine!, ), new vscode.Position( - editableRegionStartLine + diff.oldLineIndex!, + this.editableRegionStartLine + diff.oldLineIndex!, diff.oldCharIndexInLine! + diff.char.length, ), ), From 5085c2f602cfc183511831cf8876d0fced937aac Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Mon, 14 Jul 2025 12:49:01 -0700 Subject: [PATCH 13/64] perf: pass editableRegionEndLine --- extensions/vscode/src/autocomplete/completionProvider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index 88131a3e8..39b82c1a0 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -420,6 +420,7 @@ export class ContinueCompletionProvider editor, currCursorPos, editableRegionStartLine, + editableRegionEndLine, oldEditRangeSlice, newEditRangeSlice, diffLines, From 4bc7f0ca262145f3aa9252f68efb4f095f085b47 Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Mon, 14 Jul 2025 14:21:47 -0700 Subject: [PATCH 14/64] feat: remove redundant hides --- .../src/activation/NextEditWindowManager.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/extensions/vscode/src/activation/NextEditWindowManager.ts b/extensions/vscode/src/activation/NextEditWindowManager.ts index 62ae5eaf5..5c432d0e6 100644 --- a/extensions/vscode/src/activation/NextEditWindowManager.ts +++ b/extensions/vscode/src/activation/NextEditWindowManager.ts @@ -6,10 +6,6 @@ import * as vscode from "vscode"; import { DiffChar, DiffLine } from "core"; import { CodeRenderer } from "core/codeRenderer/CodeRenderer"; import { myersCharDiff } from "core/diff/myers"; -import { - NEXT_EDIT_EDITABLE_REGION_BOTTOM_MARGIN, - NEXT_EDIT_EDITABLE_REGION_TOP_MARGIN, -} from "core/nextEdit/constants"; import { getOffsetPositionAtLastNewLine } from "core/nextEdit/diff/diff"; import { NextEditLoggingService } from "core/nextEdit/NextEditLoggingService"; import { getThemeString } from "../util/getTheme"; @@ -283,7 +279,8 @@ export class NextEditWindowManager { this.currentTooltipText = newEditRangeSlice; // How far away is the current line from the start of the editable region? - const lineOffsetAtCursorPos = currCursorPos.line - this.editableRegionStartLine; + const lineOffsetAtCursorPos = + currCursorPos.line - this.editableRegionStartLine; // How long is the line at the current cursor position? const lineContentAtCursorPos = @@ -394,7 +391,10 @@ export class NextEditWindowManager { const endPosChar = editor.document.lineAt(this.editableRegionEndLine).text .length; - const endPos = new vscode.Position(this.editableRegionEndLine, endPosChar); + const endPos = new vscode.Position( + this.editableRegionEndLine, + endPosChar, + ); const editRange = new vscode.Range(startPos, endPos); success = await editor.edit((editBuilder) => { @@ -749,7 +749,6 @@ export class NextEditWindowManager { } // Store the decoration and editor. - await this.hideAllNextEditWindows(); this.currentDecoration = decoration; // TODO: This might be redundant. this.disposables.push(decoration); this.activeEditor = editor; @@ -788,10 +787,7 @@ export class NextEditWindowManager { ); } - private renderDeletes( - editor: vscode.TextEditor, - oldDiffChars: DiffChar[], - ) { + private renderDeletes(editor: vscode.TextEditor, oldDiffChars: DiffChar[]) { const charsToDelete: vscode.DecorationOptions[] = []; // const diffChars = myersCharDiff(oldEditRangeSlice, newEditRangeSlice); From 2e46efaf9e0742d3eef4a74ea05f9cce6f834121 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 15 Jul 2025 10:34:52 -0700 Subject: [PATCH 15/64] add more routes to continue sdk --- packages/continue-sdk/openapi.yaml | 388 ++++ packages/continue-sdk/package-lock.json | 7 +- .../python/api/.openapi-generator/FILES | 30 + packages/continue-sdk/python/api/README.md | 61 +- .../python/api/docs/DefaultApi.md | 604 +++++- .../api/docs/GetAssistant200Response.md | 35 + .../api/docs/GetAssistant403Response.md | 29 + .../api/docs/GetAssistant404Response.md | 29 + .../api/docs/GetFreeTrialStatus200Response.md | 33 + .../GetModelsAddOnCheckoutUrl200Response.md | 29 + .../GetModelsAddOnCheckoutUrl500Response.md | 29 + .../python/api/docs/GetPolicy200Response.md | 30 + .../docs/ListAssistantFullSlugs429Response.md | 29 + .../docs/ListAssistants200ResponseInner.md | 22 +- ...tAssistants200ResponseInnerConfigResult.md | 14 +- .../api/docs/ListAssistants401Response.md | 10 +- .../api/docs/ListAssistants404Response.md | 10 +- .../api/docs/ListOrganizations200Response.md | 29 + ...anizations200ResponseOrganizationsInner.md | 32 + .../python/api/docs/SyncSecretsRequest.md | 31 + .../python/api/openapi_client/__init__.py | 11 + .../api/openapi_client/api/default_api.py | 1883 ++++++++++++++++- .../api/openapi_client/models/__init__.py | 11 + .../models/get_assistant200_response.py | 118 ++ .../models/get_assistant403_response.py | 87 + .../models/get_assistant404_response.py | 87 + .../get_free_trial_status200_response.py | 105 + ..._models_add_on_checkout_url200_response.py | 87 + ..._models_add_on_checkout_url500_response.py | 87 + .../models/get_policy200_response.py | 99 + .../list_assistant_full_slugs429_response.py | 87 + .../models/list_organizations200_response.py | 95 + ...zations200_response_organizations_inner.py | 98 + .../models/sync_secrets_request.py | 101 + .../test/test_get_assistant200_response.py | 70 + .../test/test_get_assistant403_response.py | 51 + .../test/test_get_assistant404_response.py | 51 + .../test_get_free_trial_status200_response.py | 58 + ..._models_add_on_checkout_url200_response.py | 52 + ..._models_add_on_checkout_url500_response.py | 51 + .../api/test/test_get_policy200_response.py | 52 + ...t_list_assistant_full_slugs429_response.py | 51 + .../test_list_organizations200_response.py | 64 + ...zations200_response_organizations_inner.py | 57 + .../api/test/test_sync_secrets_request.py | 58 + .../typescript/api/.openapi-generator/FILES | 11 + .../continue-sdk/typescript/api/README.md | 18 +- .../typescript/api/src/apis/DefaultApi.ts | 616 +++++- .../typescript/api/src/apis/index.ts | 2 +- .../continue-sdk/typescript/api/src/index.ts | 6 +- .../api/src/models/GetAssistant200Response.ts | 124 ++ .../api/src/models/GetAssistant403Response.ts | 65 + .../api/src/models/GetAssistant404Response.ts | 65 + .../models/GetFreeTrialStatus200Response.ts | 100 + .../GetModelsAddOnCheckoutUrl200Response.ts | 66 + .../GetModelsAddOnCheckoutUrl500Response.ts | 65 + .../api/src/models/GetPolicy200Response.ts | 73 + .../ListAssistantFullSlugs429Response.ts | 65 + .../models/ListAssistants200ResponseInner.ts | 197 +- ...tAssistants200ResponseInnerConfigResult.ts | 115 +- .../src/models/ListAssistants401Response.ts | 75 +- .../src/models/ListAssistants404Response.ts | 75 +- .../models/ListOrganizations200Response.ts | 74 + ...anizations200ResponseOrganizationsInner.ts | 92 + .../api/src/models/SyncSecretsRequest.ts | 82 + .../typescript/api/src/models/index.ts | 19 +- .../typescript/api/src/runtime.ts | 706 +++--- .../continue-sdk/typescript/api/tsconfig.json | 9 +- packages/continue-sdk/typescript/build.sh | 2 +- .../continue-sdk/typescript/package-lock.json | 4 +- .../continue-sdk/typescript/tsconfig.json | 1 - 71 files changed, 6947 insertions(+), 832 deletions(-) create mode 100644 packages/continue-sdk/python/api/docs/GetAssistant200Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetAssistant403Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetAssistant404Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetFreeTrialStatus200Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl200Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl500Response.md create mode 100644 packages/continue-sdk/python/api/docs/GetPolicy200Response.md create mode 100644 packages/continue-sdk/python/api/docs/ListAssistantFullSlugs429Response.md create mode 100644 packages/continue-sdk/python/api/docs/ListOrganizations200Response.md create mode 100644 packages/continue-sdk/python/api/docs/ListOrganizations200ResponseOrganizationsInner.md create mode 100644 packages/continue-sdk/python/api/docs/SyncSecretsRequest.md create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_assistant200_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_assistant403_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_assistant404_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_free_trial_status200_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url200_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url500_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/get_policy200_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/list_assistant_full_slugs429_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response_organizations_inner.py create mode 100644 packages/continue-sdk/python/api/openapi_client/models/sync_secrets_request.py create mode 100644 packages/continue-sdk/python/api/test/test_get_assistant200_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_assistant403_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_assistant404_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_free_trial_status200_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url200_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url500_response.py create mode 100644 packages/continue-sdk/python/api/test/test_get_policy200_response.py create mode 100644 packages/continue-sdk/python/api/test/test_list_assistant_full_slugs429_response.py create mode 100644 packages/continue-sdk/python/api/test/test_list_organizations200_response.py create mode 100644 packages/continue-sdk/python/api/test/test_list_organizations200_response_organizations_inner.py create mode 100644 packages/continue-sdk/python/api/test/test_sync_secrets_request.py create mode 100644 packages/continue-sdk/typescript/api/src/models/GetAssistant200Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetAssistant403Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetAssistant404Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetFreeTrialStatus200Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl200Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl500Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/GetPolicy200Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/ListAssistantFullSlugs429Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/ListOrganizations200Response.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/ListOrganizations200ResponseOrganizationsInner.ts create mode 100644 packages/continue-sdk/typescript/api/src/models/SyncSecretsRequest.ts diff --git a/packages/continue-sdk/openapi.yaml b/packages/continue-sdk/openapi.yaml index de3aee93e..7235e3879 100644 --- a/packages/continue-sdk/openapi.yaml +++ b/packages/continue-sdk/openapi.yaml @@ -114,6 +114,394 @@ paths: message: type: string example: "User not found" + + /ide/get-assistant/{ownerSlug}/{packageSlug}: + get: + summary: Get a specific assistant by slug + description: | + Returns a single assistant configuration by its owner and package slug. + This endpoint is useful when you need to retrieve or refresh a specific assistant + without fetching the entire list. + operationId: getAssistant + parameters: + - name: ownerSlug + in: path + description: Slug of the user or organization that owns the assistant + required: true + schema: + type: string + - name: packageSlug + in: path + description: Slug of the assistant package + required: true + schema: + type: string + - name: alwaysUseProxy + in: query + description: Whether to always use the Continue-managed proxy for model requests + required: false + schema: + type: string + enum: ["true", "false"] + - name: organizationId + in: query + description: ID of the organization to scope assistants to. If not provided, personal assistants are returned. + required: false + schema: + type: string + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully retrieved assistant + content: + application/json: + schema: + type: object + nullable: true + required: + - configResult + - ownerSlug + - packageSlug + properties: + configResult: + type: object + required: + - config + - configLoadInterrupted + properties: + config: + type: object + description: The unrolled assistant configuration + nullable: true + configLoadInterrupted: + type: boolean + description: Whether the configuration loading was interrupted + errors: + type: array + items: + type: string + nullable: true + description: Any errors that occurred during configuration loading + ownerSlug: + type: string + description: Slug of the user or organization that owns the assistant + packageSlug: + type: string + description: Slug of the assistant package + iconUrl: + type: string + nullable: true + description: Pre-signed URL for the assistant's icon + onPremProxyUrl: + type: string + nullable: true + description: URL of the on-premises proxy if the organization uses one + useOnPremProxy: + type: boolean + nullable: true + description: Whether the organization uses an on-premises proxy + rawYaml: + type: string + description: Raw YAML configuration of the assistant + "401": + description: Unauthorized - Authentication failed + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "Unauthorized" + "403": + description: Forbidden - Assistant not allowed in organization + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "This assistant is not allowed in this organization" + "404": + description: User or assistant not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "Assistant not found" + + /ide/free-trial-status: + get: + summary: Get free trial status for user + description: | + Returns the current free trial status for the authenticated user, including + usage counts and limits for chat and autocomplete features. + operationId: getFreeTrialStatus + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully retrieved free trial status + content: + application/json: + schema: + type: object + required: + - optedInToFreeTrial + - chatLimit + - autocompleteLimit + properties: + optedInToFreeTrial: + type: boolean + description: Whether the user has opted into the free trial + chatCount: + type: number + nullable: true + description: Current number of chat messages used + autocompleteCount: + type: number + nullable: true + description: Current number of autocomplete requests used + chatLimit: + type: number + description: Maximum number of chat messages allowed in free trial + autocompleteLimit: + type: number + description: Maximum number of autocomplete requests allowed in free trial + "404": + description: User not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "User not found" + + /ide/get-models-add-on-checkout-url: + get: + summary: Get Stripe checkout URL for models add-on + description: | + Creates a Stripe checkout session for the models add-on subscription + and returns the checkout URL. + operationId: getModelsAddOnCheckoutUrl + parameters: + - name: profile_id + in: query + description: Profile ID to include in the callback URL + required: false + schema: + type: string + - name: vscode_uri_scheme + in: query + description: VS Code URI scheme to include in the callback URL + required: false + schema: + type: string + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully created checkout session + content: + application/json: + schema: + type: object + required: + - url + properties: + url: + type: string + description: Stripe checkout session URL + "404": + description: User not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "User not found" + "500": + description: Failed to create checkout session + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "Failed to create checkout session" + + /ide/policy: + get: + summary: Get organization policy + description: | + Returns the policy configuration for the first organization + that the user belongs to which has a policy configured. + operationId: getPolicy + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully retrieved policy + content: + application/json: + schema: + type: object + properties: + policy: + type: object + nullable: true + description: Organization policy configuration + orgSlug: + type: string + nullable: true + description: Slug of the organization that has the policy + "404": + description: User not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "User not found" + + /ide/sync-secrets: + post: + summary: Synchronize secrets for user + description: | + Resolves and synchronizes secrets for the authenticated user based on + the provided Fully Qualified Secret Names (FQSNs). + operationId: syncSecrets + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - fqsns + properties: + fqsns: + type: array + items: + type: object + description: Array of Fully Qualified Secret Names to resolve + orgScopeId: + type: string + nullable: true + description: Organization ID to scope secret resolution to + orgScopeSlug: + type: string + nullable: true + description: Organization slug to scope secret resolution to + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully resolved secrets + content: + application/json: + schema: + type: array + items: + type: object + nullable: true + description: Resolved secret result or undefined if not found + "404": + description: User not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "User not found" + + /ide/list-assistant-full-slugs: + get: + summary: List assistant full slugs (currently returns 429) + description: | + This endpoint is temporarily disabled and returns a 429 status code + to prevent constant refreshes of the full assistant list until a + fixed client version can be deployed. + operationId: listAssistantFullSlugs + security: + - apiKeyAuth: [] + responses: + "429": + description: Too many requests - endpoint temporarily disabled + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "Too many requests" + + /ide/list-organizations: + get: + summary: List organizations for user + description: | + Returns a list of organizations that the authenticated user belongs to, + including organization metadata and pre-signed icon URLs. + operationId: listOrganizations + security: + - apiKeyAuth: [] + responses: + "200": + description: Successfully retrieved organizations + content: + application/json: + schema: + type: object + required: + - organizations + properties: + organizations: + type: array + items: + type: object + required: + - id + - name + - slug + properties: + id: + type: string + description: Organization ID + name: + type: string + description: Organization name + iconUrl: + type: string + nullable: true + description: Pre-signed URL for the organization's icon + slug: + type: string + description: Organization slug + "404": + description: User not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + example: "User not found" components: securitySchemes: diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index e95db526f..85d4ac59e 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -20,7 +20,7 @@ }, "../config-yaml": { "name": "@continuedev/config-yaml", - "version": "1.0.88", + "version": "1.0.96", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -31,10 +31,15 @@ "config-yaml": "dist/cli.js" }, "devDependencies": { + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.2.6", + "@semantic-release/npm": "^10.0.6", "@types/jest": "^29.5.14", "@types/node": "^20.0.0", "cross-env": "^7.0.3", "jest": "^29.7.0", + "semantic-release": "^21.1.2", "ts-jest": "^29.2.3", "ts-node": "^10.9.2", "zod-to-json-schema": "^3.24.5" diff --git a/packages/continue-sdk/python/api/.openapi-generator/FILES b/packages/continue-sdk/python/api/.openapi-generator/FILES index 641b0db00..f3e894c56 100644 --- a/packages/continue-sdk/python/api/.openapi-generator/FILES +++ b/packages/continue-sdk/python/api/.openapi-generator/FILES @@ -4,10 +4,21 @@ .travis.yml README.md docs/DefaultApi.md +docs/GetAssistant200Response.md +docs/GetAssistant403Response.md +docs/GetAssistant404Response.md +docs/GetFreeTrialStatus200Response.md +docs/GetModelsAddOnCheckoutUrl200Response.md +docs/GetModelsAddOnCheckoutUrl500Response.md +docs/GetPolicy200Response.md +docs/ListAssistantFullSlugs429Response.md docs/ListAssistants200ResponseInner.md docs/ListAssistants200ResponseInnerConfigResult.md docs/ListAssistants401Response.md docs/ListAssistants404Response.md +docs/ListOrganizations200Response.md +docs/ListOrganizations200ResponseOrganizationsInner.md +docs/SyncSecretsRequest.md git_push.sh openapi_client/__init__.py openapi_client/api/__init__.py @@ -17,10 +28,21 @@ openapi_client/api_response.py openapi_client/configuration.py openapi_client/exceptions.py openapi_client/models/__init__.py +openapi_client/models/get_assistant200_response.py +openapi_client/models/get_assistant403_response.py +openapi_client/models/get_assistant404_response.py +openapi_client/models/get_free_trial_status200_response.py +openapi_client/models/get_models_add_on_checkout_url200_response.py +openapi_client/models/get_models_add_on_checkout_url500_response.py +openapi_client/models/get_policy200_response.py +openapi_client/models/list_assistant_full_slugs429_response.py openapi_client/models/list_assistants200_response_inner.py openapi_client/models/list_assistants200_response_inner_config_result.py openapi_client/models/list_assistants401_response.py openapi_client/models/list_assistants404_response.py +openapi_client/models/list_organizations200_response.py +openapi_client/models/list_organizations200_response_organizations_inner.py +openapi_client/models/sync_secrets_request.py openapi_client/py.typed openapi_client/rest.py pyproject.toml @@ -29,4 +51,12 @@ setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_get_free_trial_status200_response.py +test/test_get_models_add_on_checkout_url200_response.py +test/test_get_models_add_on_checkout_url500_response.py +test/test_get_policy200_response.py +test/test_list_assistant_full_slugs429_response.py +test/test_list_organizations200_response.py +test/test_list_organizations200_response_organizations_inner.py +test/test_sync_secrets_request.py tox.ini diff --git a/packages/continue-sdk/python/api/README.md b/packages/continue-sdk/python/api/README.md index 67200c21e..faa81d2fe 100644 --- a/packages/continue-sdk/python/api/README.md +++ b/packages/continue-sdk/python/api/README.md @@ -1,22 +1,21 @@ # openapi-client - API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 - Package version: 1.0.0 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen - For more information, please visit [https://continue.dev](https://continue.dev) +For more information, please visit [https://continue.dev](https://continue.dev) ## Requirements. Python 3.8+ ## Installation & Usage - ### pip install If the python package is hosted on a repository, you can install directly using: @@ -24,11 +23,9 @@ If the python package is hosted on a repository, you can install directly using: ```sh pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git ``` - (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) Then import the package: - ```python import openapi_client ``` @@ -40,11 +37,9 @@ Install via [Setuptools](http://pypi.python.org/pypi/setuptools). ```sh python setup.py install --user ``` - (or `sudo python setup.py install` to install the package for all users) Then import the package: - ```python import openapi_client ``` @@ -84,16 +79,18 @@ configuration = openapi_client.Configuration( with openapi_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = openapi_client.DefaultApi(api_client) + owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the assistant + package_slug = 'package_slug_example' # str | Slug of the assistant package always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional) try: - # List assistants for IDE - api_response = api_instance.list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) - print("The response of DefaultApi->list_assistants:\n") + # Get a specific assistant by slug + api_response = api_instance.get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) + print("The response of DefaultApi->get_assistant:\n") pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_assistants: %s\n" % e) + print("Exception when calling DefaultApi->get_assistant: %s\n" % e) ``` @@ -101,26 +98,50 @@ with openapi_client.ApiClient(configuration) as api_client: All URIs are relative to *https://api.continue.dev* -| Class | Method | HTTP request | Description | -| ------------ | --------------------------------------------------------- | ---------------------------- | ----------------------- | -| _DefaultApi_ | [**list_assistants**](docs/DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE | +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**get_assistant**](docs/DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific assistant by slug +*DefaultApi* | [**get_free_trial_status**](docs/DefaultApi.md#get_free_trial_status) | **GET** /ide/free-trial-status | Get free trial status for user +*DefaultApi* | [**get_models_add_on_checkout_url**](docs/DefaultApi.md#get_models_add_on_checkout_url) | **GET** /ide/get-models-add-on-checkout-url | Get Stripe checkout URL for models add-on +*DefaultApi* | [**get_policy**](docs/DefaultApi.md#get_policy) | **GET** /ide/policy | Get organization policy +*DefaultApi* | [**list_assistant_full_slugs**](docs/DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List assistant full slugs (currently returns 429) +*DefaultApi* | [**list_assistants**](docs/DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE +*DefaultApi* | [**list_organizations**](docs/DefaultApi.md#list_organizations) | **GET** /ide/list-organizations | List organizations for user +*DefaultApi* | [**sync_secrets**](docs/DefaultApi.md#sync_secrets) | **POST** /ide/sync-secrets | Synchronize secrets for user + ## Documentation For Models -- [ListAssistants200ResponseInner](docs/ListAssistants200ResponseInner.md) -- [ListAssistants200ResponseInnerConfigResult](docs/ListAssistants200ResponseInnerConfigResult.md) -- [ListAssistants401Response](docs/ListAssistants401Response.md) -- [ListAssistants404Response](docs/ListAssistants404Response.md) + - [GetAssistant200Response](docs/GetAssistant200Response.md) + - [GetAssistant403Response](docs/GetAssistant403Response.md) + - [GetAssistant404Response](docs/GetAssistant404Response.md) + - [GetFreeTrialStatus200Response](docs/GetFreeTrialStatus200Response.md) + - [GetModelsAddOnCheckoutUrl200Response](docs/GetModelsAddOnCheckoutUrl200Response.md) + - [GetModelsAddOnCheckoutUrl500Response](docs/GetModelsAddOnCheckoutUrl500Response.md) + - [GetPolicy200Response](docs/GetPolicy200Response.md) + - [ListAssistantFullSlugs429Response](docs/ListAssistantFullSlugs429Response.md) + - [ListAssistants200ResponseInner](docs/ListAssistants200ResponseInner.md) + - [ListAssistants200ResponseInnerConfigResult](docs/ListAssistants200ResponseInnerConfigResult.md) + - [ListAssistants401Response](docs/ListAssistants401Response.md) + - [ListAssistants404Response](docs/ListAssistants404Response.md) + - [ListOrganizations200Response](docs/ListOrganizations200Response.md) + - [ListOrganizations200ResponseOrganizationsInner](docs/ListOrganizations200ResponseOrganizationsInner.md) + - [SyncSecretsRequest](docs/SyncSecretsRequest.md) + - ## Documentation For Authorization + Authentication schemes defined for the API: - ### apiKeyAuth - **Type**: Bearer authentication + ## Author + + + + diff --git a/packages/continue-sdk/python/api/docs/DefaultApi.md b/packages/continue-sdk/python/api/docs/DefaultApi.md index b5632904f..1a551ec97 100644 --- a/packages/continue-sdk/python/api/docs/DefaultApi.md +++ b/packages/continue-sdk/python/api/docs/DefaultApi.md @@ -2,12 +2,421 @@ All URIs are relative to *https://api.continue.dev* -| Method | HTTP request | Description | -| ---------------------------------------------------- | ---------------------------- | ----------------------- | -| [**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE | +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_assistant**](DefaultApi.md#get_assistant) | **GET** /ide/get-assistant/{ownerSlug}/{packageSlug} | Get a specific assistant by slug +[**get_free_trial_status**](DefaultApi.md#get_free_trial_status) | **GET** /ide/free-trial-status | Get free trial status for user +[**get_models_add_on_checkout_url**](DefaultApi.md#get_models_add_on_checkout_url) | **GET** /ide/get-models-add-on-checkout-url | Get Stripe checkout URL for models add-on +[**get_policy**](DefaultApi.md#get_policy) | **GET** /ide/policy | Get organization policy +[**list_assistant_full_slugs**](DefaultApi.md#list_assistant_full_slugs) | **GET** /ide/list-assistant-full-slugs | List assistant full slugs (currently returns 429) +[**list_assistants**](DefaultApi.md#list_assistants) | **GET** /ide/list-assistants | List assistants for IDE +[**list_organizations**](DefaultApi.md#list_organizations) | **GET** /ide/list-organizations | List organizations for user +[**sync_secrets**](DefaultApi.md#sync_secrets) | **POST** /ide/sync-secrets | Synchronize secrets for user + + +# **get_assistant** +> GetAssistant200Response get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) + +Get a specific assistant by slug + +Returns a single assistant configuration by its owner and package slug. +This endpoint is useful when you need to retrieve or refresh a specific assistant +without fetching the entire list. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.get_assistant200_response import GetAssistant200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + owner_slug = 'owner_slug_example' # str | Slug of the user or organization that owns the assistant + package_slug = 'package_slug_example' # str | Slug of the assistant package + always_use_proxy = 'always_use_proxy_example' # str | Whether to always use the Continue-managed proxy for model requests (optional) + organization_id = 'organization_id_example' # str | ID of the organization to scope assistants to. If not provided, personal assistants are returned. (optional) + + try: + # Get a specific assistant by slug + api_response = api_instance.get_assistant(owner_slug, package_slug, always_use_proxy=always_use_proxy, organization_id=organization_id) + print("The response of DefaultApi->get_assistant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->get_assistant: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **owner_slug** | **str**| Slug of the user or organization that owns the assistant | + **package_slug** | **str**| Slug of the assistant package | + **always_use_proxy** | **str**| Whether to always use the Continue-managed proxy for model requests | [optional] + **organization_id** | **str**| ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] + +### Return type + +[**GetAssistant200Response**](GetAssistant200Response.md) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully retrieved assistant | - | +**401** | Unauthorized - Authentication failed | - | +**403** | Forbidden - Assistant not allowed in organization | - | +**404** | User or assistant not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_free_trial_status** +> GetFreeTrialStatus200Response get_free_trial_status() + +Get free trial status for user + +Returns the current free trial status for the authenticated user, including +usage counts and limits for chat and autocomplete features. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + + try: + # Get free trial status for user + api_response = api_instance.get_free_trial_status() + print("The response of DefaultApi->get_free_trial_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->get_free_trial_status: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetFreeTrialStatus200Response**](GetFreeTrialStatus200Response.md) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully retrieved free trial status | - | +**404** | User not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_models_add_on_checkout_url** +> GetModelsAddOnCheckoutUrl200Response get_models_add_on_checkout_url(profile_id=profile_id, vscode_uri_scheme=vscode_uri_scheme) + +Get Stripe checkout URL for models add-on + +Creates a Stripe checkout session for the models add-on subscription +and returns the checkout URL. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + profile_id = 'profile_id_example' # str | Profile ID to include in the callback URL (optional) + vscode_uri_scheme = 'vscode_uri_scheme_example' # str | VS Code URI scheme to include in the callback URL (optional) + + try: + # Get Stripe checkout URL for models add-on + api_response = api_instance.get_models_add_on_checkout_url(profile_id=profile_id, vscode_uri_scheme=vscode_uri_scheme) + print("The response of DefaultApi->get_models_add_on_checkout_url:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->get_models_add_on_checkout_url: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **profile_id** | **str**| Profile ID to include in the callback URL | [optional] + **vscode_uri_scheme** | **str**| VS Code URI scheme to include in the callback URL | [optional] + +### Return type + +[**GetModelsAddOnCheckoutUrl200Response**](GetModelsAddOnCheckoutUrl200Response.md) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully created checkout session | - | +**404** | User not found | - | +**500** | Failed to create checkout session | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_policy** +> GetPolicy200Response get_policy() + +Get organization policy + +Returns the policy configuration for the first organization +that the user belongs to which has a policy configured. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.get_policy200_response import GetPolicy200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + + try: + # Get organization policy + api_response = api_instance.get_policy() + print("The response of DefaultApi->get_policy:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->get_policy: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**GetPolicy200Response**](GetPolicy200Response.md) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully retrieved policy | - | +**404** | User not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_assistant_full_slugs** +> list_assistant_full_slugs() + +List assistant full slugs (currently returns 429) + +This endpoint is temporarily disabled and returns a 429 status code +to prevent constant refreshes of the full assistant list until a +fixed client version can be deployed. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + + try: + # List assistant full slugs (currently returns 429) + api_instance.list_assistant_full_slugs() + except Exception as e: + print("Exception when calling DefaultApi->list_assistant_full_slugs: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**429** | Too many requests - endpoint temporarily disabled | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_assistants** - > List[ListAssistants200ResponseInner] list_assistants(always_use_proxy=always_use_proxy, organization_id=organization_id) List assistants for IDE @@ -18,9 +427,10 @@ icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. + ### Example -- Bearer Authentication (apiKeyAuth): +* Bearer Authentication (apiKeyAuth): ```python import openapi_client @@ -60,12 +470,15 @@ with openapi_client.ApiClient(configuration) as api_client: print("Exception when calling DefaultApi->list_assistants: %s\n" % e) ``` + + ### Parameters -| Name | Type | Description | Notes | -| -------------------- | ------- | ------------------------------------------------------------------------------------------------- | ---------- | -| **always_use_proxy** | **str** | Whether to always use the Continue-managed proxy for model requests | [optional] | -| **organization_id** | **str** | ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] | + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **always_use_proxy** | **str**| Whether to always use the Continue-managed proxy for model requests | [optional] + **organization_id** | **str**| ID of the organization to scope assistants to. If not provided, personal assistants are returned. | [optional] ### Return type @@ -77,15 +490,174 @@ with openapi_client.ApiClient(configuration) as api_client: ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json + - **Content-Type**: Not defined + - **Accept**: application/json ### HTTP response details -| Status code | Description | Response headers | -| ----------- | ------------------------------------ | ---------------- | -| **200** | Successfully retrieved assistants | - | -| **401** | Unauthorized - Authentication failed | - | -| **404** | User not found | - | +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully retrieved assistants | - | +**401** | Unauthorized - Authentication failed | - | +**404** | User not found | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **list_organizations** +> ListOrganizations200Response list_organizations() + +List organizations for user + +Returns a list of organizations that the authenticated user belongs to, +including organization metadata and pre-signed icon URLs. + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.list_organizations200_response import ListOrganizations200Response +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + + try: + # List organizations for user + api_response = api_instance.list_organizations() + print("The response of DefaultApi->list_organizations:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->list_organizations: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ListOrganizations200Response**](ListOrganizations200Response.md) + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully retrieved organizations | - | +**404** | User not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **sync_secrets** +> List[Optional[object]] sync_secrets(sync_secrets_request) + +Synchronize secrets for user + +Resolves and synchronizes secrets for the authenticated user based on +the provided Fully Qualified Secret Names (FQSNs). + + +### Example + +* Bearer Authentication (apiKeyAuth): + +```python +import openapi_client +from openapi_client.models.sync_secrets_request import SyncSecretsRequest +from openapi_client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.continue.dev +# See configuration.py for a list of all supported configuration parameters. +configuration = openapi_client.Configuration( + host = "https://api.continue.dev" +) + +# The client must configure the authentication and authorization parameters +# in accordance with the API server security policy. +# Examples for each auth method are provided below, use the example that +# satisfies your auth use case. + +# Configure Bearer authorization: apiKeyAuth +configuration = openapi_client.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with openapi_client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = openapi_client.DefaultApi(api_client) + sync_secrets_request = openapi_client.SyncSecretsRequest() # SyncSecretsRequest | + + try: + # Synchronize secrets for user + api_response = api_instance.sync_secrets(sync_secrets_request) + print("The response of DefaultApi->sync_secrets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DefaultApi->sync_secrets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sync_secrets_request** | [**SyncSecretsRequest**](SyncSecretsRequest.md)| | + +### Return type + +**List[Optional[object]]** + +### Authorization + +[apiKeyAuth](../README.md#apiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Successfully resolved secrets | - | +**404** | User not found | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/packages/continue-sdk/python/api/docs/GetAssistant200Response.md b/packages/continue-sdk/python/api/docs/GetAssistant200Response.md new file mode 100644 index 000000000..9718487aa --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetAssistant200Response.md @@ -0,0 +1,35 @@ +# GetAssistant200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | | +**owner_slug** | **str** | Slug of the user or organization that owns the assistant | +**package_slug** | **str** | Slug of the assistant package | +**icon_url** | **str** | Pre-signed URL for the assistant's icon | [optional] +**on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] +**use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] +**raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] + +## Example + +```python +from openapi_client.models.get_assistant200_response import GetAssistant200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAssistant200Response from a JSON string +get_assistant200_response_instance = GetAssistant200Response.from_json(json) +# print the JSON string representation of the object +print(GetAssistant200Response.to_json()) + +# convert the object into a dict +get_assistant200_response_dict = get_assistant200_response_instance.to_dict() +# create an instance of GetAssistant200Response from a dict +get_assistant200_response_from_dict = GetAssistant200Response.from_dict(get_assistant200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetAssistant403Response.md b/packages/continue-sdk/python/api/docs/GetAssistant403Response.md new file mode 100644 index 000000000..b6cc7c7f9 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetAssistant403Response.md @@ -0,0 +1,29 @@ +# GetAssistant403Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.get_assistant403_response import GetAssistant403Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAssistant403Response from a JSON string +get_assistant403_response_instance = GetAssistant403Response.from_json(json) +# print the JSON string representation of the object +print(GetAssistant403Response.to_json()) + +# convert the object into a dict +get_assistant403_response_dict = get_assistant403_response_instance.to_dict() +# create an instance of GetAssistant403Response from a dict +get_assistant403_response_from_dict = GetAssistant403Response.from_dict(get_assistant403_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetAssistant404Response.md b/packages/continue-sdk/python/api/docs/GetAssistant404Response.md new file mode 100644 index 000000000..2602256e8 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetAssistant404Response.md @@ -0,0 +1,29 @@ +# GetAssistant404Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.get_assistant404_response import GetAssistant404Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAssistant404Response from a JSON string +get_assistant404_response_instance = GetAssistant404Response.from_json(json) +# print the JSON string representation of the object +print(GetAssistant404Response.to_json()) + +# convert the object into a dict +get_assistant404_response_dict = get_assistant404_response_instance.to_dict() +# create an instance of GetAssistant404Response from a dict +get_assistant404_response_from_dict = GetAssistant404Response.from_dict(get_assistant404_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetFreeTrialStatus200Response.md b/packages/continue-sdk/python/api/docs/GetFreeTrialStatus200Response.md new file mode 100644 index 000000000..5ce22fbb7 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetFreeTrialStatus200Response.md @@ -0,0 +1,33 @@ +# GetFreeTrialStatus200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**opted_in_to_free_trial** | **bool** | Whether the user has opted into the free trial | +**chat_count** | **float** | Current number of chat messages used | [optional] +**autocomplete_count** | **float** | Current number of autocomplete requests used | [optional] +**chat_limit** | **float** | Maximum number of chat messages allowed in free trial | +**autocomplete_limit** | **float** | Maximum number of autocomplete requests allowed in free trial | + +## Example + +```python +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetFreeTrialStatus200Response from a JSON string +get_free_trial_status200_response_instance = GetFreeTrialStatus200Response.from_json(json) +# print the JSON string representation of the object +print(GetFreeTrialStatus200Response.to_json()) + +# convert the object into a dict +get_free_trial_status200_response_dict = get_free_trial_status200_response_instance.to_dict() +# create an instance of GetFreeTrialStatus200Response from a dict +get_free_trial_status200_response_from_dict = GetFreeTrialStatus200Response.from_dict(get_free_trial_status200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl200Response.md b/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl200Response.md new file mode 100644 index 000000000..548fb8408 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl200Response.md @@ -0,0 +1,29 @@ +# GetModelsAddOnCheckoutUrl200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | Stripe checkout session URL | + +## Example + +```python +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetModelsAddOnCheckoutUrl200Response from a JSON string +get_models_add_on_checkout_url200_response_instance = GetModelsAddOnCheckoutUrl200Response.from_json(json) +# print the JSON string representation of the object +print(GetModelsAddOnCheckoutUrl200Response.to_json()) + +# convert the object into a dict +get_models_add_on_checkout_url200_response_dict = get_models_add_on_checkout_url200_response_instance.to_dict() +# create an instance of GetModelsAddOnCheckoutUrl200Response from a dict +get_models_add_on_checkout_url200_response_from_dict = GetModelsAddOnCheckoutUrl200Response.from_dict(get_models_add_on_checkout_url200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl500Response.md b/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl500Response.md new file mode 100644 index 000000000..0bc34a0cc --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetModelsAddOnCheckoutUrl500Response.md @@ -0,0 +1,29 @@ +# GetModelsAddOnCheckoutUrl500Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.get_models_add_on_checkout_url500_response import GetModelsAddOnCheckoutUrl500Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetModelsAddOnCheckoutUrl500Response from a JSON string +get_models_add_on_checkout_url500_response_instance = GetModelsAddOnCheckoutUrl500Response.from_json(json) +# print the JSON string representation of the object +print(GetModelsAddOnCheckoutUrl500Response.to_json()) + +# convert the object into a dict +get_models_add_on_checkout_url500_response_dict = get_models_add_on_checkout_url500_response_instance.to_dict() +# create an instance of GetModelsAddOnCheckoutUrl500Response from a dict +get_models_add_on_checkout_url500_response_from_dict = GetModelsAddOnCheckoutUrl500Response.from_dict(get_models_add_on_checkout_url500_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/GetPolicy200Response.md b/packages/continue-sdk/python/api/docs/GetPolicy200Response.md new file mode 100644 index 000000000..e5c81128c --- /dev/null +++ b/packages/continue-sdk/python/api/docs/GetPolicy200Response.md @@ -0,0 +1,30 @@ +# GetPolicy200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**policy** | **object** | Organization policy configuration | [optional] +**org_slug** | **str** | Slug of the organization that has the policy | [optional] + +## Example + +```python +from openapi_client.models.get_policy200_response import GetPolicy200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPolicy200Response from a JSON string +get_policy200_response_instance = GetPolicy200Response.from_json(json) +# print the JSON string representation of the object +print(GetPolicy200Response.to_json()) + +# convert the object into a dict +get_policy200_response_dict = get_policy200_response_instance.to_dict() +# create an instance of GetPolicy200Response from a dict +get_policy200_response_from_dict = GetPolicy200Response.from_dict(get_policy200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListAssistantFullSlugs429Response.md b/packages/continue-sdk/python/api/docs/ListAssistantFullSlugs429Response.md new file mode 100644 index 000000000..e8425b13f --- /dev/null +++ b/packages/continue-sdk/python/api/docs/ListAssistantFullSlugs429Response.md @@ -0,0 +1,29 @@ +# ListAssistantFullSlugs429Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] + +## Example + +```python +from openapi_client.models.list_assistant_full_slugs429_response import ListAssistantFullSlugs429Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListAssistantFullSlugs429Response from a JSON string +list_assistant_full_slugs429_response_instance = ListAssistantFullSlugs429Response.from_json(json) +# print the JSON string representation of the object +print(ListAssistantFullSlugs429Response.to_json()) + +# convert the object into a dict +list_assistant_full_slugs429_response_dict = list_assistant_full_slugs429_response_instance.to_dict() +# create an instance of ListAssistantFullSlugs429Response from a dict +list_assistant_full_slugs429_response_from_dict = ListAssistantFullSlugs429Response.from_dict(list_assistant_full_slugs429_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md index 1fe63505b..f642b43c2 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md @@ -1,16 +1,17 @@ # ListAssistants200ResponseInner + ## Properties -| Name | Type | Description | Notes | -| --------------------- | ----------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ---------- | -| **config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | | -| **owner_slug** | **str** | Slug of the user or organization that owns the assistant | -| **package_slug** | **str** | Slug of the assistant package | -| **icon_url** | **str** | Pre-signed URL for the assistant's icon | [optional] | -| **on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] | -| **use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] | -| **raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] | +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config_result** | [**ListAssistants200ResponseInnerConfigResult**](ListAssistants200ResponseInnerConfigResult.md) | | +**owner_slug** | **str** | Slug of the user or organization that owns the assistant | +**package_slug** | **str** | Slug of the assistant package | +**icon_url** | **str** | Pre-signed URL for the assistant's icon | [optional] +**on_prem_proxy_url** | **str** | URL of the on-premises proxy if the organization uses one | [optional] +**use_on_prem_proxy** | **bool** | Whether the organization uses an on-premises proxy | [optional] +**raw_yaml** | **str** | Raw YAML configuration of the assistant | [optional] ## Example @@ -29,5 +30,6 @@ list_assistants200_response_inner_dict = list_assistants200_response_inner_insta # create an instance of ListAssistants200ResponseInner from a dict list_assistants200_response_inner_from_dict = ListAssistants200ResponseInner.from_dict(list_assistants200_response_inner_dict) ``` - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md index e12781d04..bcee818dd 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md @@ -1,12 +1,13 @@ # ListAssistants200ResponseInnerConfigResult + ## Properties -| Name | Type | Description | Notes | -| --------------------------- | ------------- | ----------------------------------------------------- | ---------- | -| **config** | **object** | The unrolled assistant configuration | -| **config_load_interrupted** | **bool** | Whether the configuration loading was interrupted | -| **errors** | **List[str]** | Any errors that occurred during configuration loading | [optional] | +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**config** | **object** | The unrolled assistant configuration | +**config_load_interrupted** | **bool** | Whether the configuration loading was interrupted | +**errors** | **List[str]** | Any errors that occurred during configuration loading | [optional] ## Example @@ -25,5 +26,6 @@ list_assistants200_response_inner_config_result_dict = list_assistants200_respon # create an instance of ListAssistants200ResponseInnerConfigResult from a dict list_assistants200_response_inner_config_result_from_dict = ListAssistants200ResponseInnerConfigResult.from_dict(list_assistants200_response_inner_config_result_dict) ``` - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListAssistants401Response.md b/packages/continue-sdk/python/api/docs/ListAssistants401Response.md index eb64e678d..f10de1a66 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants401Response.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants401Response.md @@ -1,10 +1,11 @@ # ListAssistants401Response + ## Properties -| Name | Type | Description | Notes | -| ----------- | ------- | ----------- | ---------- | -| **message** | **str** | | [optional] | +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] ## Example @@ -23,5 +24,6 @@ list_assistants401_response_dict = list_assistants401_response_instance.to_dict( # create an instance of ListAssistants401Response from a dict list_assistants401_response_from_dict = ListAssistants401Response.from_dict(list_assistants401_response_dict) ``` - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListAssistants404Response.md b/packages/continue-sdk/python/api/docs/ListAssistants404Response.md index a20b0f7b4..5752771ec 100644 --- a/packages/continue-sdk/python/api/docs/ListAssistants404Response.md +++ b/packages/continue-sdk/python/api/docs/ListAssistants404Response.md @@ -1,10 +1,11 @@ # ListAssistants404Response + ## Properties -| Name | Type | Description | Notes | -| ----------- | ------- | ----------- | ---------- | -| **message** | **str** | | [optional] | +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [optional] ## Example @@ -23,5 +24,6 @@ list_assistants404_response_dict = list_assistants404_response_instance.to_dict( # create an instance of ListAssistants404Response from a dict list_assistants404_response_from_dict = ListAssistants404Response.from_dict(list_assistants404_response_dict) ``` - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListOrganizations200Response.md b/packages/continue-sdk/python/api/docs/ListOrganizations200Response.md new file mode 100644 index 000000000..4f01cc94b --- /dev/null +++ b/packages/continue-sdk/python/api/docs/ListOrganizations200Response.md @@ -0,0 +1,29 @@ +# ListOrganizations200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**List[ListOrganizations200ResponseOrganizationsInner]**](ListOrganizations200ResponseOrganizationsInner.md) | | + +## Example + +```python +from openapi_client.models.list_organizations200_response import ListOrganizations200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOrganizations200Response from a JSON string +list_organizations200_response_instance = ListOrganizations200Response.from_json(json) +# print the JSON string representation of the object +print(ListOrganizations200Response.to_json()) + +# convert the object into a dict +list_organizations200_response_dict = list_organizations200_response_instance.to_dict() +# create an instance of ListOrganizations200Response from a dict +list_organizations200_response_from_dict = ListOrganizations200Response.from_dict(list_organizations200_response_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/ListOrganizations200ResponseOrganizationsInner.md b/packages/continue-sdk/python/api/docs/ListOrganizations200ResponseOrganizationsInner.md new file mode 100644 index 000000000..61b0338e7 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/ListOrganizations200ResponseOrganizationsInner.md @@ -0,0 +1,32 @@ +# ListOrganizations200ResponseOrganizationsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Organization ID | +**name** | **str** | Organization name | +**icon_url** | **str** | Pre-signed URL for the organization's icon | [optional] +**slug** | **str** | Organization slug | + +## Example + +```python +from openapi_client.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of ListOrganizations200ResponseOrganizationsInner from a JSON string +list_organizations200_response_organizations_inner_instance = ListOrganizations200ResponseOrganizationsInner.from_json(json) +# print the JSON string representation of the object +print(ListOrganizations200ResponseOrganizationsInner.to_json()) + +# convert the object into a dict +list_organizations200_response_organizations_inner_dict = list_organizations200_response_organizations_inner_instance.to_dict() +# create an instance of ListOrganizations200ResponseOrganizationsInner from a dict +list_organizations200_response_organizations_inner_from_dict = ListOrganizations200ResponseOrganizationsInner.from_dict(list_organizations200_response_organizations_inner_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/docs/SyncSecretsRequest.md b/packages/continue-sdk/python/api/docs/SyncSecretsRequest.md new file mode 100644 index 000000000..863cf2477 --- /dev/null +++ b/packages/continue-sdk/python/api/docs/SyncSecretsRequest.md @@ -0,0 +1,31 @@ +# SyncSecretsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fqsns** | **List[object]** | Array of Fully Qualified Secret Names to resolve | +**org_scope_id** | **str** | Organization ID to scope secret resolution to | [optional] +**org_scope_slug** | **str** | Organization slug to scope secret resolution to | [optional] + +## Example + +```python +from openapi_client.models.sync_secrets_request import SyncSecretsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of SyncSecretsRequest from a JSON string +sync_secrets_request_instance = SyncSecretsRequest.from_json(json) +# print the JSON string representation of the object +print(SyncSecretsRequest.to_json()) + +# convert the object into a dict +sync_secrets_request_dict = sync_secrets_request_instance.to_dict() +# create an instance of SyncSecretsRequest from a dict +sync_secrets_request_from_dict = SyncSecretsRequest.from_dict(sync_secrets_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/packages/continue-sdk/python/api/openapi_client/__init__.py b/packages/continue-sdk/python/api/openapi_client/__init__.py index c5b552747..e11cfb7eb 100644 --- a/packages/continue-sdk/python/api/openapi_client/__init__.py +++ b/packages/continue-sdk/python/api/openapi_client/__init__.py @@ -31,7 +31,18 @@ from openapi_client.exceptions import ApiAttributeError from openapi_client.exceptions import ApiException # import models into sdk package +from openapi_client.models.get_assistant200_response import GetAssistant200Response +from openapi_client.models.get_assistant403_response import GetAssistant403Response +from openapi_client.models.get_assistant404_response import GetAssistant404Response +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response +from openapi_client.models.get_models_add_on_checkout_url500_response import GetModelsAddOnCheckoutUrl500Response +from openapi_client.models.get_policy200_response import GetPolicy200Response +from openapi_client.models.list_assistant_full_slugs429_response import ListAssistantFullSlugs429Response from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner from openapi_client.models.list_assistants200_response_inner_config_result import ListAssistants200ResponseInnerConfigResult from openapi_client.models.list_assistants401_response import ListAssistants401Response from openapi_client.models.list_assistants404_response import ListAssistants404Response +from openapi_client.models.list_organizations200_response import ListOrganizations200Response +from openapi_client.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner +from openapi_client.models.sync_secrets_request import SyncSecretsRequest diff --git a/packages/continue-sdk/python/api/openapi_client/api/default_api.py b/packages/continue-sdk/python/api/openapi_client/api/default_api.py index cd1e05cdf..4e87fe17b 100644 --- a/packages/continue-sdk/python/api/openapi_client/api/default_api.py +++ b/packages/continue-sdk/python/api/openapi_client/api/default_api.py @@ -17,9 +17,15 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated from pydantic import Field, StrictStr, field_validator -from typing import List, Optional +from typing import Any, Dict, List, Optional from typing_extensions import Annotated +from openapi_client.models.get_assistant200_response import GetAssistant200Response +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response +from openapi_client.models.get_policy200_response import GetPolicy200Response from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner +from openapi_client.models.list_organizations200_response import ListOrganizations200Response +from openapi_client.models.sync_secrets_request import SyncSecretsRequest from openapi_client.api_client import ApiClient, RequestSerialized from openapi_client.api_response import ApiResponse @@ -39,6 +45,1355 @@ class DefaultApi: self.api_client = api_client + @validate_call + def get_assistant( + self, + owner_slug: Annotated[StrictStr, Field(description="Slug of the user or organization that owns the assistant")], + package_slug: Annotated[StrictStr, Field(description="Slug of the assistant package")], + always_use_proxy: Annotated[Optional[StrictStr], Field(description="Whether to always use the Continue-managed proxy for model requests")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="ID of the organization to scope assistants to. If not provided, personal assistants are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetAssistant200Response: + """Get a specific assistant by slug + + Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + + :param owner_slug: Slug of the user or organization that owns the assistant (required) + :type owner_slug: str + :param package_slug: Slug of the assistant package (required) + :type package_slug: str + :param always_use_proxy: Whether to always use the Continue-managed proxy for model requests + :type always_use_proxy: str + :param organization_id: ID of the organization to scope assistants to. If not provided, personal assistants are returned. + :type organization_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_assistant_serialize( + owner_slug=owner_slug, + package_slug=package_slug, + always_use_proxy=always_use_proxy, + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAssistant200Response", + '401': "ListAssistants401Response", + '403': "GetAssistant403Response", + '404': "GetAssistant404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_assistant_with_http_info( + self, + owner_slug: Annotated[StrictStr, Field(description="Slug of the user or organization that owns the assistant")], + package_slug: Annotated[StrictStr, Field(description="Slug of the assistant package")], + always_use_proxy: Annotated[Optional[StrictStr], Field(description="Whether to always use the Continue-managed proxy for model requests")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="ID of the organization to scope assistants to. If not provided, personal assistants are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetAssistant200Response]: + """Get a specific assistant by slug + + Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + + :param owner_slug: Slug of the user or organization that owns the assistant (required) + :type owner_slug: str + :param package_slug: Slug of the assistant package (required) + :type package_slug: str + :param always_use_proxy: Whether to always use the Continue-managed proxy for model requests + :type always_use_proxy: str + :param organization_id: ID of the organization to scope assistants to. If not provided, personal assistants are returned. + :type organization_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_assistant_serialize( + owner_slug=owner_slug, + package_slug=package_slug, + always_use_proxy=always_use_proxy, + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAssistant200Response", + '401': "ListAssistants401Response", + '403': "GetAssistant403Response", + '404': "GetAssistant404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_assistant_without_preload_content( + self, + owner_slug: Annotated[StrictStr, Field(description="Slug of the user or organization that owns the assistant")], + package_slug: Annotated[StrictStr, Field(description="Slug of the assistant package")], + always_use_proxy: Annotated[Optional[StrictStr], Field(description="Whether to always use the Continue-managed proxy for model requests")] = None, + organization_id: Annotated[Optional[StrictStr], Field(description="ID of the organization to scope assistants to. If not provided, personal assistants are returned.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get a specific assistant by slug + + Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + + :param owner_slug: Slug of the user or organization that owns the assistant (required) + :type owner_slug: str + :param package_slug: Slug of the assistant package (required) + :type package_slug: str + :param always_use_proxy: Whether to always use the Continue-managed proxy for model requests + :type always_use_proxy: str + :param organization_id: ID of the organization to scope assistants to. If not provided, personal assistants are returned. + :type organization_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_assistant_serialize( + owner_slug=owner_slug, + package_slug=package_slug, + always_use_proxy=always_use_proxy, + organization_id=organization_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetAssistant200Response", + '401': "ListAssistants401Response", + '403': "GetAssistant403Response", + '404': "GetAssistant404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_assistant_serialize( + self, + owner_slug, + package_slug, + always_use_proxy, + organization_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if owner_slug is not None: + _path_params['ownerSlug'] = owner_slug + if package_slug is not None: + _path_params['packageSlug'] = package_slug + # process the query parameters + if always_use_proxy is not None: + + _query_params.append(('alwaysUseProxy', always_use_proxy)) + + if organization_id is not None: + + _query_params.append(('organizationId', organization_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/get-assistant/{ownerSlug}/{packageSlug}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_free_trial_status( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetFreeTrialStatus200Response: + """Get free trial status for user + + Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_free_trial_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFreeTrialStatus200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_free_trial_status_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetFreeTrialStatus200Response]: + """Get free trial status for user + + Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_free_trial_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFreeTrialStatus200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_free_trial_status_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get free trial status for user + + Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_free_trial_status_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetFreeTrialStatus200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_free_trial_status_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/free-trial-status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_models_add_on_checkout_url( + self, + profile_id: Annotated[Optional[StrictStr], Field(description="Profile ID to include in the callback URL")] = None, + vscode_uri_scheme: Annotated[Optional[StrictStr], Field(description="VS Code URI scheme to include in the callback URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetModelsAddOnCheckoutUrl200Response: + """Get Stripe checkout URL for models add-on + + Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + + :param profile_id: Profile ID to include in the callback URL + :type profile_id: str + :param vscode_uri_scheme: VS Code URI scheme to include in the callback URL + :type vscode_uri_scheme: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_models_add_on_checkout_url_serialize( + profile_id=profile_id, + vscode_uri_scheme=vscode_uri_scheme, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetModelsAddOnCheckoutUrl200Response", + '404': "ListAssistants404Response", + '500': "GetModelsAddOnCheckoutUrl500Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_models_add_on_checkout_url_with_http_info( + self, + profile_id: Annotated[Optional[StrictStr], Field(description="Profile ID to include in the callback URL")] = None, + vscode_uri_scheme: Annotated[Optional[StrictStr], Field(description="VS Code URI scheme to include in the callback URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetModelsAddOnCheckoutUrl200Response]: + """Get Stripe checkout URL for models add-on + + Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + + :param profile_id: Profile ID to include in the callback URL + :type profile_id: str + :param vscode_uri_scheme: VS Code URI scheme to include in the callback URL + :type vscode_uri_scheme: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_models_add_on_checkout_url_serialize( + profile_id=profile_id, + vscode_uri_scheme=vscode_uri_scheme, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetModelsAddOnCheckoutUrl200Response", + '404': "ListAssistants404Response", + '500': "GetModelsAddOnCheckoutUrl500Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_models_add_on_checkout_url_without_preload_content( + self, + profile_id: Annotated[Optional[StrictStr], Field(description="Profile ID to include in the callback URL")] = None, + vscode_uri_scheme: Annotated[Optional[StrictStr], Field(description="VS Code URI scheme to include in the callback URL")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get Stripe checkout URL for models add-on + + Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + + :param profile_id: Profile ID to include in the callback URL + :type profile_id: str + :param vscode_uri_scheme: VS Code URI scheme to include in the callback URL + :type vscode_uri_scheme: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_models_add_on_checkout_url_serialize( + profile_id=profile_id, + vscode_uri_scheme=vscode_uri_scheme, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetModelsAddOnCheckoutUrl200Response", + '404': "ListAssistants404Response", + '500': "GetModelsAddOnCheckoutUrl500Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_models_add_on_checkout_url_serialize( + self, + profile_id, + vscode_uri_scheme, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if profile_id is not None: + + _query_params.append(('profile_id', profile_id)) + + if vscode_uri_scheme is not None: + + _query_params.append(('vscode_uri_scheme', vscode_uri_scheme)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/get-models-add-on-checkout-url', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_policy( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPolicy200Response: + """Get organization policy + + Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPolicy200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_policy_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPolicy200Response]: + """Get organization policy + + Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPolicy200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_policy_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get organization policy + + Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_policy_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPolicy200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_policy_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/policy', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def list_assistant_full_slugs( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> None: + """List assistant full slugs (currently returns 429) + + This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_assistant_full_slugs_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '429': "ListAssistantFullSlugs429Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_assistant_full_slugs_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[None]: + """List assistant full slugs (currently returns 429) + + This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_assistant_full_slugs_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '429': "ListAssistantFullSlugs429Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_assistant_full_slugs_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List assistant full slugs (currently returns 429) + + This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_assistant_full_slugs_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '429': "ListAssistantFullSlugs429Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_assistant_full_slugs_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/list-assistant-full-slugs', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call def list_assistants( self, @@ -323,3 +1678,529 @@ class DefaultApi: ) + + + @validate_call + def list_organizations( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ListOrganizations200Response: + """List organizations for user + + Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_organizations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrganizations200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def list_organizations_with_http_info( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ListOrganizations200Response]: + """List organizations for user + + Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_organizations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrganizations200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def list_organizations_without_preload_content( + self, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """List organizations for user + + Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._list_organizations_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ListOrganizations200Response", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _list_organizations_serialize( + self, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/ide/list-organizations', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def sync_secrets( + self, + sync_secrets_request: SyncSecretsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> List[Optional[object]]: + """Synchronize secrets for user + + Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + + :param sync_secrets_request: (required) + :type sync_secrets_request: SyncSecretsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_secrets_serialize( + sync_secrets_request=sync_secrets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Optional[object]]", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def sync_secrets_with_http_info( + self, + sync_secrets_request: SyncSecretsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[List[Optional[object]]]: + """Synchronize secrets for user + + Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + + :param sync_secrets_request: (required) + :type sync_secrets_request: SyncSecretsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_secrets_serialize( + sync_secrets_request=sync_secrets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Optional[object]]", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def sync_secrets_without_preload_content( + self, + sync_secrets_request: SyncSecretsRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Synchronize secrets for user + + Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + + :param sync_secrets_request: (required) + :type sync_secrets_request: SyncSecretsRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._sync_secrets_serialize( + sync_secrets_request=sync_secrets_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "List[Optional[object]]", + '404': "ListAssistants404Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _sync_secrets_serialize( + self, + sync_secrets_request, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if sync_secrets_request is not None: + _body_params = sync_secrets_request + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/ide/sync-secrets', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/__init__.py b/packages/continue-sdk/python/api/openapi_client/models/__init__.py index a26380850..4cee1e67b 100644 --- a/packages/continue-sdk/python/api/openapi_client/models/__init__.py +++ b/packages/continue-sdk/python/api/openapi_client/models/__init__.py @@ -14,7 +14,18 @@ # import models into model package +from openapi_client.models.get_assistant200_response import GetAssistant200Response +from openapi_client.models.get_assistant403_response import GetAssistant403Response +from openapi_client.models.get_assistant404_response import GetAssistant404Response +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response +from openapi_client.models.get_models_add_on_checkout_url500_response import GetModelsAddOnCheckoutUrl500Response +from openapi_client.models.get_policy200_response import GetPolicy200Response +from openapi_client.models.list_assistant_full_slugs429_response import ListAssistantFullSlugs429Response from openapi_client.models.list_assistants200_response_inner import ListAssistants200ResponseInner from openapi_client.models.list_assistants200_response_inner_config_result import ListAssistants200ResponseInnerConfigResult from openapi_client.models.list_assistants401_response import ListAssistants401Response from openapi_client.models.list_assistants404_response import ListAssistants404Response +from openapi_client.models.list_organizations200_response import ListOrganizations200Response +from openapi_client.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner +from openapi_client.models.sync_secrets_request import SyncSecretsRequest diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_assistant200_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_assistant200_response.py new file mode 100644 index 000000000..10a3b1392 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_assistant200_response.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from openapi_client.models.list_assistants200_response_inner_config_result import ListAssistants200ResponseInnerConfigResult +from typing import Optional, Set +from typing_extensions import Self + +class GetAssistant200Response(BaseModel): + """ + GetAssistant200Response + """ # noqa: E501 + config_result: ListAssistants200ResponseInnerConfigResult = Field(alias="configResult") + owner_slug: StrictStr = Field(description="Slug of the user or organization that owns the assistant", alias="ownerSlug") + package_slug: StrictStr = Field(description="Slug of the assistant package", alias="packageSlug") + icon_url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL for the assistant's icon", alias="iconUrl") + on_prem_proxy_url: Optional[StrictStr] = Field(default=None, description="URL of the on-premises proxy if the organization uses one", alias="onPremProxyUrl") + use_on_prem_proxy: Optional[StrictBool] = Field(default=None, description="Whether the organization uses an on-premises proxy", alias="useOnPremProxy") + raw_yaml: Optional[StrictStr] = Field(default=None, description="Raw YAML configuration of the assistant", alias="rawYaml") + __properties: ClassVar[List[str]] = ["configResult", "ownerSlug", "packageSlug", "iconUrl", "onPremProxyUrl", "useOnPremProxy", "rawYaml"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAssistant200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of config_result + if self.config_result: + _dict['configResult'] = self.config_result.to_dict() + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['iconUrl'] = None + + # set to None if on_prem_proxy_url (nullable) is None + # and model_fields_set contains the field + if self.on_prem_proxy_url is None and "on_prem_proxy_url" in self.model_fields_set: + _dict['onPremProxyUrl'] = None + + # set to None if use_on_prem_proxy (nullable) is None + # and model_fields_set contains the field + if self.use_on_prem_proxy is None and "use_on_prem_proxy" in self.model_fields_set: + _dict['useOnPremProxy'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAssistant200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "configResult": ListAssistants200ResponseInnerConfigResult.from_dict(obj["configResult"]) if obj.get("configResult") is not None else None, + "ownerSlug": obj.get("ownerSlug"), + "packageSlug": obj.get("packageSlug"), + "iconUrl": obj.get("iconUrl"), + "onPremProxyUrl": obj.get("onPremProxyUrl"), + "useOnPremProxy": obj.get("useOnPremProxy"), + "rawYaml": obj.get("rawYaml") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_assistant403_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_assistant403_response.py new file mode 100644 index 000000000..55de4c291 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_assistant403_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAssistant403Response(BaseModel): + """ + GetAssistant403Response + """ # noqa: E501 + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAssistant403Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAssistant403Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_assistant404_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_assistant404_response.py new file mode 100644 index 000000000..769319660 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_assistant404_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetAssistant404Response(BaseModel): + """ + GetAssistant404Response + """ # noqa: E501 + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetAssistant404Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetAssistant404Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_free_trial_status200_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_free_trial_status200_response.py new file mode 100644 index 000000000..f7e832668 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_free_trial_status200_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetFreeTrialStatus200Response(BaseModel): + """ + GetFreeTrialStatus200Response + """ # noqa: E501 + opted_in_to_free_trial: StrictBool = Field(description="Whether the user has opted into the free trial", alias="optedInToFreeTrial") + chat_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current number of chat messages used", alias="chatCount") + autocomplete_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current number of autocomplete requests used", alias="autocompleteCount") + chat_limit: Union[StrictFloat, StrictInt] = Field(description="Maximum number of chat messages allowed in free trial", alias="chatLimit") + autocomplete_limit: Union[StrictFloat, StrictInt] = Field(description="Maximum number of autocomplete requests allowed in free trial", alias="autocompleteLimit") + __properties: ClassVar[List[str]] = ["optedInToFreeTrial", "chatCount", "autocompleteCount", "chatLimit", "autocompleteLimit"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetFreeTrialStatus200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if chat_count (nullable) is None + # and model_fields_set contains the field + if self.chat_count is None and "chat_count" in self.model_fields_set: + _dict['chatCount'] = None + + # set to None if autocomplete_count (nullable) is None + # and model_fields_set contains the field + if self.autocomplete_count is None and "autocomplete_count" in self.model_fields_set: + _dict['autocompleteCount'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetFreeTrialStatus200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "optedInToFreeTrial": obj.get("optedInToFreeTrial"), + "chatCount": obj.get("chatCount"), + "autocompleteCount": obj.get("autocompleteCount"), + "chatLimit": obj.get("chatLimit"), + "autocompleteLimit": obj.get("autocompleteLimit") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url200_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url200_response.py new file mode 100644 index 000000000..db8dae468 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url200_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class GetModelsAddOnCheckoutUrl200Response(BaseModel): + """ + GetModelsAddOnCheckoutUrl200Response + """ # noqa: E501 + url: StrictStr = Field(description="Stripe checkout session URL") + __properties: ClassVar[List[str]] = ["url"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetModelsAddOnCheckoutUrl200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetModelsAddOnCheckoutUrl200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "url": obj.get("url") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url500_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url500_response.py new file mode 100644 index 000000000..fd408b4e9 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_models_add_on_checkout_url500_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetModelsAddOnCheckoutUrl500Response(BaseModel): + """ + GetModelsAddOnCheckoutUrl500Response + """ # noqa: E501 + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetModelsAddOnCheckoutUrl500Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetModelsAddOnCheckoutUrl500Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/get_policy200_response.py b/packages/continue-sdk/python/api/openapi_client/models/get_policy200_response.py new file mode 100644 index 000000000..77bd82dbd --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/get_policy200_response.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetPolicy200Response(BaseModel): + """ + GetPolicy200Response + """ # noqa: E501 + policy: Optional[Dict[str, Any]] = Field(default=None, description="Organization policy configuration") + org_slug: Optional[StrictStr] = Field(default=None, description="Slug of the organization that has the policy", alias="orgSlug") + __properties: ClassVar[List[str]] = ["policy", "orgSlug"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPolicy200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if policy (nullable) is None + # and model_fields_set contains the field + if self.policy is None and "policy" in self.model_fields_set: + _dict['policy'] = None + + # set to None if org_slug (nullable) is None + # and model_fields_set contains the field + if self.org_slug is None and "org_slug" in self.model_fields_set: + _dict['orgSlug'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPolicy200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "policy": obj.get("policy"), + "orgSlug": obj.get("orgSlug") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/list_assistant_full_slugs429_response.py b/packages/continue-sdk/python/api/openapi_client/models/list_assistant_full_slugs429_response.py new file mode 100644 index 000000000..58bc80b77 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/list_assistant_full_slugs429_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListAssistantFullSlugs429Response(BaseModel): + """ + ListAssistantFullSlugs429Response + """ # noqa: E501 + message: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["message"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListAssistantFullSlugs429Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListAssistantFullSlugs429Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "message": obj.get("message") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response.py b/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response.py new file mode 100644 index 000000000..077694169 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from openapi_client.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner +from typing import Optional, Set +from typing_extensions import Self + +class ListOrganizations200Response(BaseModel): + """ + ListOrganizations200Response + """ # noqa: E501 + organizations: List[ListOrganizations200ResponseOrganizationsInner] + __properties: ClassVar[List[str]] = ["organizations"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOrganizations200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in organizations (list) + _items = [] + if self.organizations: + for _item_organizations in self.organizations: + if _item_organizations: + _items.append(_item_organizations.to_dict()) + _dict['organizations'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOrganizations200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "organizations": [ListOrganizations200ResponseOrganizationsInner.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response_organizations_inner.py b/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response_organizations_inner.py new file mode 100644 index 000000000..b252db0c1 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/list_organizations200_response_organizations_inner.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ListOrganizations200ResponseOrganizationsInner(BaseModel): + """ + ListOrganizations200ResponseOrganizationsInner + """ # noqa: E501 + id: StrictStr = Field(description="Organization ID") + name: StrictStr = Field(description="Organization name") + icon_url: Optional[StrictStr] = Field(default=None, description="Pre-signed URL for the organization's icon", alias="iconUrl") + slug: StrictStr = Field(description="Organization slug") + __properties: ClassVar[List[str]] = ["id", "name", "iconUrl", "slug"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ListOrganizations200ResponseOrganizationsInner from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if icon_url (nullable) is None + # and model_fields_set contains the field + if self.icon_url is None and "icon_url" in self.model_fields_set: + _dict['iconUrl'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ListOrganizations200ResponseOrganizationsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": obj.get("id"), + "name": obj.get("name"), + "iconUrl": obj.get("iconUrl"), + "slug": obj.get("slug") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/openapi_client/models/sync_secrets_request.py b/packages/continue-sdk/python/api/openapi_client/models/sync_secrets_request.py new file mode 100644 index 000000000..d9fa54226 --- /dev/null +++ b/packages/continue-sdk/python/api/openapi_client/models/sync_secrets_request.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class SyncSecretsRequest(BaseModel): + """ + SyncSecretsRequest + """ # noqa: E501 + fqsns: List[Dict[str, Any]] = Field(description="Array of Fully Qualified Secret Names to resolve") + org_scope_id: Optional[StrictStr] = Field(default=None, description="Organization ID to scope secret resolution to", alias="orgScopeId") + org_scope_slug: Optional[StrictStr] = Field(default=None, description="Organization slug to scope secret resolution to", alias="orgScopeSlug") + __properties: ClassVar[List[str]] = ["fqsns", "orgScopeId", "orgScopeSlug"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SyncSecretsRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if org_scope_id (nullable) is None + # and model_fields_set contains the field + if self.org_scope_id is None and "org_scope_id" in self.model_fields_set: + _dict['orgScopeId'] = None + + # set to None if org_scope_slug (nullable) is None + # and model_fields_set contains the field + if self.org_scope_slug is None and "org_scope_slug" in self.model_fields_set: + _dict['orgScopeSlug'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SyncSecretsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "fqsns": obj.get("fqsns"), + "orgScopeId": obj.get("orgScopeId"), + "orgScopeSlug": obj.get("orgScopeSlug") + }) + return _obj + + diff --git a/packages/continue-sdk/python/api/test/test_get_assistant200_response.py b/packages/continue-sdk/python/api/test/test_get_assistant200_response.py new file mode 100644 index 000000000..78025e2e1 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_assistant200_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_assistant200_response import GetAssistant200Response + +class TestGetAssistant200Response(unittest.TestCase): + """GetAssistant200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAssistant200Response: + """Test GetAssistant200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAssistant200Response` + """ + model = GetAssistant200Response() + if include_optional: + return GetAssistant200Response( + config_result = openapi_client.models.list_assistants_200_response_inner_config_result.listAssistants_200_response_inner_configResult( + config = openapi_client.models.config.config(), + config_load_interrupted = True, + errors = [ + '' + ], ), + owner_slug = '', + package_slug = '', + icon_url = '', + on_prem_proxy_url = '', + use_on_prem_proxy = True, + raw_yaml = '' + ) + else: + return GetAssistant200Response( + config_result = openapi_client.models.list_assistants_200_response_inner_config_result.listAssistants_200_response_inner_configResult( + config = openapi_client.models.config.config(), + config_load_interrupted = True, + errors = [ + '' + ], ), + owner_slug = '', + package_slug = '', + ) + """ + + def testGetAssistant200Response(self): + """Test GetAssistant200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_assistant403_response.py b/packages/continue-sdk/python/api/test/test_get_assistant403_response.py new file mode 100644 index 000000000..370685042 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_assistant403_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_assistant403_response import GetAssistant403Response + +class TestGetAssistant403Response(unittest.TestCase): + """GetAssistant403Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAssistant403Response: + """Test GetAssistant403Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAssistant403Response` + """ + model = GetAssistant403Response() + if include_optional: + return GetAssistant403Response( + message = 'This assistant is not allowed in this organization' + ) + else: + return GetAssistant403Response( + ) + """ + + def testGetAssistant403Response(self): + """Test GetAssistant403Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_assistant404_response.py b/packages/continue-sdk/python/api/test/test_get_assistant404_response.py new file mode 100644 index 000000000..2b0c20477 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_assistant404_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_assistant404_response import GetAssistant404Response + +class TestGetAssistant404Response(unittest.TestCase): + """GetAssistant404Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAssistant404Response: + """Test GetAssistant404Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetAssistant404Response` + """ + model = GetAssistant404Response() + if include_optional: + return GetAssistant404Response( + message = 'Assistant not found' + ) + else: + return GetAssistant404Response( + ) + """ + + def testGetAssistant404Response(self): + """Test GetAssistant404Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_free_trial_status200_response.py b/packages/continue-sdk/python/api/test/test_get_free_trial_status200_response.py new file mode 100644 index 000000000..172e40b5c --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_free_trial_status200_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_free_trial_status200_response import GetFreeTrialStatus200Response + +class TestGetFreeTrialStatus200Response(unittest.TestCase): + """GetFreeTrialStatus200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetFreeTrialStatus200Response: + """Test GetFreeTrialStatus200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetFreeTrialStatus200Response` + """ + model = GetFreeTrialStatus200Response() + if include_optional: + return GetFreeTrialStatus200Response( + opted_in_to_free_trial = True, + chat_count = 1.337, + autocomplete_count = 1.337, + chat_limit = 1.337, + autocomplete_limit = 1.337 + ) + else: + return GetFreeTrialStatus200Response( + opted_in_to_free_trial = True, + chat_limit = 1.337, + autocomplete_limit = 1.337, + ) + """ + + def testGetFreeTrialStatus200Response(self): + """Test GetFreeTrialStatus200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url200_response.py b/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url200_response.py new file mode 100644 index 000000000..17a102e77 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_models_add_on_checkout_url200_response import GetModelsAddOnCheckoutUrl200Response + +class TestGetModelsAddOnCheckoutUrl200Response(unittest.TestCase): + """GetModelsAddOnCheckoutUrl200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetModelsAddOnCheckoutUrl200Response: + """Test GetModelsAddOnCheckoutUrl200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetModelsAddOnCheckoutUrl200Response` + """ + model = GetModelsAddOnCheckoutUrl200Response() + if include_optional: + return GetModelsAddOnCheckoutUrl200Response( + url = '' + ) + else: + return GetModelsAddOnCheckoutUrl200Response( + url = '', + ) + """ + + def testGetModelsAddOnCheckoutUrl200Response(self): + """Test GetModelsAddOnCheckoutUrl200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url500_response.py b/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url500_response.py new file mode 100644 index 000000000..1f665deb8 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_models_add_on_checkout_url500_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_models_add_on_checkout_url500_response import GetModelsAddOnCheckoutUrl500Response + +class TestGetModelsAddOnCheckoutUrl500Response(unittest.TestCase): + """GetModelsAddOnCheckoutUrl500Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetModelsAddOnCheckoutUrl500Response: + """Test GetModelsAddOnCheckoutUrl500Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetModelsAddOnCheckoutUrl500Response` + """ + model = GetModelsAddOnCheckoutUrl500Response() + if include_optional: + return GetModelsAddOnCheckoutUrl500Response( + message = 'Failed to create checkout session' + ) + else: + return GetModelsAddOnCheckoutUrl500Response( + ) + """ + + def testGetModelsAddOnCheckoutUrl500Response(self): + """Test GetModelsAddOnCheckoutUrl500Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_get_policy200_response.py b/packages/continue-sdk/python/api/test/test_get_policy200_response.py new file mode 100644 index 000000000..9a5c30e97 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_get_policy200_response.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.get_policy200_response import GetPolicy200Response + +class TestGetPolicy200Response(unittest.TestCase): + """GetPolicy200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPolicy200Response: + """Test GetPolicy200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPolicy200Response` + """ + model = GetPolicy200Response() + if include_optional: + return GetPolicy200Response( + policy = None, + org_slug = '' + ) + else: + return GetPolicy200Response( + ) + """ + + def testGetPolicy200Response(self): + """Test GetPolicy200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_list_assistant_full_slugs429_response.py b/packages/continue-sdk/python/api/test/test_list_assistant_full_slugs429_response.py new file mode 100644 index 000000000..2226cd3eb --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_list_assistant_full_slugs429_response.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.list_assistant_full_slugs429_response import ListAssistantFullSlugs429Response + +class TestListAssistantFullSlugs429Response(unittest.TestCase): + """ListAssistantFullSlugs429Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListAssistantFullSlugs429Response: + """Test ListAssistantFullSlugs429Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListAssistantFullSlugs429Response` + """ + model = ListAssistantFullSlugs429Response() + if include_optional: + return ListAssistantFullSlugs429Response( + message = 'Too many requests' + ) + else: + return ListAssistantFullSlugs429Response( + ) + """ + + def testListAssistantFullSlugs429Response(self): + """Test ListAssistantFullSlugs429Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_list_organizations200_response.py b/packages/continue-sdk/python/api/test/test_list_organizations200_response.py new file mode 100644 index 000000000..f7c9a68a8 --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_list_organizations200_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.list_organizations200_response import ListOrganizations200Response + +class TestListOrganizations200Response(unittest.TestCase): + """ListOrganizations200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOrganizations200Response: + """Test ListOrganizations200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListOrganizations200Response` + """ + model = ListOrganizations200Response() + if include_optional: + return ListOrganizations200Response( + organizations = [ + openapi_client.models.list_organizations_200_response_organizations_inner.listOrganizations_200_response_organizations_inner( + id = '', + name = '', + icon_url = '', + slug = '', ) + ] + ) + else: + return ListOrganizations200Response( + organizations = [ + openapi_client.models.list_organizations_200_response_organizations_inner.listOrganizations_200_response_organizations_inner( + id = '', + name = '', + icon_url = '', + slug = '', ) + ], + ) + """ + + def testListOrganizations200Response(self): + """Test ListOrganizations200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_list_organizations200_response_organizations_inner.py b/packages/continue-sdk/python/api/test/test_list_organizations200_response_organizations_inner.py new file mode 100644 index 000000000..7986b752f --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_list_organizations200_response_organizations_inner.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.list_organizations200_response_organizations_inner import ListOrganizations200ResponseOrganizationsInner + +class TestListOrganizations200ResponseOrganizationsInner(unittest.TestCase): + """ListOrganizations200ResponseOrganizationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ListOrganizations200ResponseOrganizationsInner: + """Test ListOrganizations200ResponseOrganizationsInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ListOrganizations200ResponseOrganizationsInner` + """ + model = ListOrganizations200ResponseOrganizationsInner() + if include_optional: + return ListOrganizations200ResponseOrganizationsInner( + id = '', + name = '', + icon_url = '', + slug = '' + ) + else: + return ListOrganizations200ResponseOrganizationsInner( + id = '', + name = '', + slug = '', + ) + """ + + def testListOrganizations200ResponseOrganizationsInner(self): + """Test ListOrganizations200ResponseOrganizationsInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/python/api/test/test_sync_secrets_request.py b/packages/continue-sdk/python/api/test/test_sync_secrets_request.py new file mode 100644 index 000000000..94c33700f --- /dev/null +++ b/packages/continue-sdk/python/api/test/test_sync_secrets_request.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + Continue Hub IDE API + + API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from openapi_client.models.sync_secrets_request import SyncSecretsRequest + +class TestSyncSecretsRequest(unittest.TestCase): + """SyncSecretsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SyncSecretsRequest: + """Test SyncSecretsRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SyncSecretsRequest` + """ + model = SyncSecretsRequest() + if include_optional: + return SyncSecretsRequest( + fqsns = [ + None + ], + org_scope_id = '', + org_scope_slug = '' + ) + else: + return SyncSecretsRequest( + fqsns = [ + None + ], + ) + """ + + def testSyncSecretsRequest(self): + """Test SyncSecretsRequest""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/packages/continue-sdk/typescript/api/.openapi-generator/FILES b/packages/continue-sdk/typescript/api/.openapi-generator/FILES index bd16b13fc..5784df41b 100644 --- a/packages/continue-sdk/typescript/api/.openapi-generator/FILES +++ b/packages/continue-sdk/typescript/api/.openapi-generator/FILES @@ -5,10 +5,21 @@ package.json src/apis/DefaultApi.ts src/apis/index.ts src/index.ts +src/models/GetAssistant200Response.ts +src/models/GetAssistant403Response.ts +src/models/GetAssistant404Response.ts +src/models/GetFreeTrialStatus200Response.ts +src/models/GetModelsAddOnCheckoutUrl200Response.ts +src/models/GetModelsAddOnCheckoutUrl500Response.ts +src/models/GetPolicy200Response.ts +src/models/ListAssistantFullSlugs429Response.ts src/models/ListAssistants200ResponseInner.ts src/models/ListAssistants200ResponseInnerConfigResult.ts src/models/ListAssistants401Response.ts src/models/ListAssistants404Response.ts +src/models/ListOrganizations200Response.ts +src/models/ListOrganizations200ResponseOrganizationsInner.ts +src/models/SyncSecretsRequest.ts src/models/index.ts src/runtime.ts tsconfig.esm.json diff --git a/packages/continue-sdk/typescript/api/README.md b/packages/continue-sdk/typescript/api/README.md index fd744e00b..ed367262b 100644 --- a/packages/continue-sdk/typescript/api/README.md +++ b/packages/continue-sdk/typescript/api/README.md @@ -3,27 +3,23 @@ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: Environment - -- Node.js -- Webpack -- Browserify +* Node.js +* Webpack +* Browserify Language level - -- ES5 - you must have a Promises/A+ library installed -- ES6 +* ES5 - you must have a Promises/A+ library installed +* ES6 Module system - -- CommonJS -- ES6 module system +* CommonJS +* ES6 module system It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html)) ### Building To build and compile the typescript sources to javascript use: - ``` npm install npm run build diff --git a/packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts b/packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts index 6bf466f23..0795d9438 100644 --- a/packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts +++ b/packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts @@ -2,136 +2,576 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import * as runtime from "../runtime"; + +import * as runtime from '../runtime'; import type { + GetAssistant200Response, + GetAssistant403Response, + GetAssistant404Response, + GetFreeTrialStatus200Response, + GetModelsAddOnCheckoutUrl200Response, + GetModelsAddOnCheckoutUrl500Response, + GetPolicy200Response, + ListAssistantFullSlugs429Response, ListAssistants200ResponseInner, ListAssistants401Response, ListAssistants404Response, -} from "../models/index"; + ListOrganizations200Response, + SyncSecretsRequest, +} from '../models/index'; import { - ListAssistants200ResponseInnerFromJSON, - ListAssistants200ResponseInnerToJSON, - ListAssistants401ResponseFromJSON, - ListAssistants401ResponseToJSON, - ListAssistants404ResponseFromJSON, - ListAssistants404ResponseToJSON, -} from "../models/index"; + GetAssistant200ResponseFromJSON, + GetAssistant200ResponseToJSON, + GetAssistant403ResponseFromJSON, + GetAssistant403ResponseToJSON, + GetAssistant404ResponseFromJSON, + GetAssistant404ResponseToJSON, + GetFreeTrialStatus200ResponseFromJSON, + GetFreeTrialStatus200ResponseToJSON, + GetModelsAddOnCheckoutUrl200ResponseFromJSON, + GetModelsAddOnCheckoutUrl200ResponseToJSON, + GetModelsAddOnCheckoutUrl500ResponseFromJSON, + GetModelsAddOnCheckoutUrl500ResponseToJSON, + GetPolicy200ResponseFromJSON, + GetPolicy200ResponseToJSON, + ListAssistantFullSlugs429ResponseFromJSON, + ListAssistantFullSlugs429ResponseToJSON, + ListAssistants200ResponseInnerFromJSON, + ListAssistants200ResponseInnerToJSON, + ListAssistants401ResponseFromJSON, + ListAssistants401ResponseToJSON, + ListAssistants404ResponseFromJSON, + ListAssistants404ResponseToJSON, + ListOrganizations200ResponseFromJSON, + ListOrganizations200ResponseToJSON, + SyncSecretsRequestFromJSON, + SyncSecretsRequestToJSON, +} from '../models/index'; + +export interface GetAssistantRequest { + ownerSlug: string; + packageSlug: string; + alwaysUseProxy?: GetAssistantAlwaysUseProxyEnum; + organizationId?: string; +} + +export interface GetModelsAddOnCheckoutUrlRequest { + profileId?: string; + vscodeUriScheme?: string; +} export interface ListAssistantsRequest { - alwaysUseProxy?: ListAssistantsAlwaysUseProxyEnum; - organizationId?: string; + alwaysUseProxy?: ListAssistantsAlwaysUseProxyEnum; + organizationId?: string; +} + +export interface SyncSecretsOperationRequest { + syncSecretsRequest: SyncSecretsRequest; } /** * DefaultApi - interface - * + * * @export * @interface DefaultApiInterface */ export interface DefaultApiInterface { - /** - * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. - * @summary List assistants for IDE - * @param {'true' | 'false'} [alwaysUseProxy] Whether to always use the Continue-managed proxy for model requests - * @param {string} [organizationId] ID of the organization to scope assistants to. If not provided, personal assistants are returned. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof DefaultApiInterface - */ - listAssistantsRaw( - requestParameters: ListAssistantsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>>; + /** + * Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + * @summary Get a specific assistant by slug + * @param {string} ownerSlug Slug of the user or organization that owns the assistant + * @param {string} packageSlug Slug of the assistant package + * @param {'true' | 'false'} [alwaysUseProxy] Whether to always use the Continue-managed proxy for model requests + * @param {string} [organizationId] ID of the organization to scope assistants to. If not provided, personal assistants are returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + getAssistantRaw(requestParameters: GetAssistantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + * Get a specific assistant by slug + */ + getAssistant(requestParameters: GetAssistantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + * @summary Get free trial status for user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + getFreeTrialStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + * Get free trial status for user + */ + getFreeTrialStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + * @summary Get Stripe checkout URL for models add-on + * @param {string} [profileId] Profile ID to include in the callback URL + * @param {string} [vscodeUriScheme] VS Code URI scheme to include in the callback URL + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + getModelsAddOnCheckoutUrlRaw(requestParameters: GetModelsAddOnCheckoutUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + * Get Stripe checkout URL for models add-on + */ + getModelsAddOnCheckoutUrl(requestParameters: GetModelsAddOnCheckoutUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + * @summary Get organization policy + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + getPolicyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + * Get organization policy + */ + getPolicy(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + * @summary List assistant full slugs (currently returns 429) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + listAssistantFullSlugsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + * List assistant full slugs (currently returns 429) + */ + listAssistantFullSlugs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. + * @summary List assistants for IDE + * @param {'true' | 'false'} [alwaysUseProxy] Whether to always use the Continue-managed proxy for model requests + * @param {string} [organizationId] ID of the organization to scope assistants to. If not provided, personal assistants are returned. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + listAssistantsRaw(requestParameters: ListAssistantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. + * List assistants for IDE + */ + listAssistants(requestParameters: ListAssistantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + * @summary List organizations for user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + + /** + * Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + * List organizations for user + */ + listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + + /** + * Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + * @summary Synchronize secrets for user + * @param {SyncSecretsRequest} syncSecretsRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApiInterface + */ + syncSecretsRaw(requestParameters: SyncSecretsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; + + /** + * Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + * Synchronize secrets for user + */ + syncSecrets(requestParameters: SyncSecretsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; - /** - * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. - * List assistants for IDE - */ - listAssistants( - requestParameters: ListAssistantsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>; } /** - * + * */ export class DefaultApi extends runtime.BaseAPI implements DefaultApiInterface { - /** - * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. - * List assistants for IDE - */ - async listAssistantsRaw( - requestParameters: ListAssistantsRequest, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise>> { - const queryParameters: any = {}; - if (requestParameters["alwaysUseProxy"] != null) { - queryParameters["alwaysUseProxy"] = requestParameters["alwaysUseProxy"]; + /** + * Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + * Get a specific assistant by slug + */ + async getAssistantRaw(requestParameters: GetAssistantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ownerSlug'] == null) { + throw new runtime.RequiredError( + 'ownerSlug', + 'Required parameter "ownerSlug" was null or undefined when calling getAssistant().' + ); + } + + if (requestParameters['packageSlug'] == null) { + throw new runtime.RequiredError( + 'packageSlug', + 'Required parameter "packageSlug" was null or undefined when calling getAssistant().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['alwaysUseProxy'] != null) { + queryParameters['alwaysUseProxy'] = requestParameters['alwaysUseProxy']; + } + + if (requestParameters['organizationId'] != null) { + queryParameters['organizationId'] = requestParameters['organizationId']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/get-assistant/{ownerSlug}/{packageSlug}`.replace(`{${"ownerSlug"}}`, encodeURIComponent(String(requestParameters['ownerSlug']))).replace(`{${"packageSlug"}}`, encodeURIComponent(String(requestParameters['packageSlug']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetAssistant200ResponseFromJSON(jsonValue)); } - if (requestParameters["organizationId"] != null) { - queryParameters["organizationId"] = requestParameters["organizationId"]; + /** + * Returns a single assistant configuration by its owner and package slug. This endpoint is useful when you need to retrieve or refresh a specific assistant without fetching the entire list. + * Get a specific assistant by slug + */ + async getAssistant(requestParameters: GetAssistantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getAssistantRaw(requestParameters, initOverrides); + return await response.value(); } - const headerParameters: runtime.HTTPHeaders = {}; + /** + * Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + * Get free trial status for user + */ + async getFreeTrialStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; - if (this.configuration && this.configuration.accessToken) { - const token = this.configuration.accessToken; - const tokenString = await token("apiKeyAuth", []); + const headerParameters: runtime.HTTPHeaders = {}; - if (tokenString) { - headerParameters["Authorization"] = `Bearer ${tokenString}`; - } + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/free-trial-status`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetFreeTrialStatus200ResponseFromJSON(jsonValue)); } - const response = await this.request( - { - path: `/ide/list-assistants`, - method: "GET", - headers: headerParameters, - query: queryParameters, - }, - initOverrides, - ); - return new runtime.JSONApiResponse(response, (jsonValue) => - jsonValue.map(ListAssistants200ResponseInnerFromJSON), - ); - } + /** + * Returns the current free trial status for the authenticated user, including usage counts and limits for chat and autocomplete features. + * Get free trial status for user + */ + async getFreeTrialStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getFreeTrialStatusRaw(initOverrides); + return await response.value(); + } + + /** + * Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + * Get Stripe checkout URL for models add-on + */ + async getModelsAddOnCheckoutUrlRaw(requestParameters: GetModelsAddOnCheckoutUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + if (requestParameters['profileId'] != null) { + queryParameters['profile_id'] = requestParameters['profileId']; + } + + if (requestParameters['vscodeUriScheme'] != null) { + queryParameters['vscode_uri_scheme'] = requestParameters['vscodeUriScheme']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/get-models-add-on-checkout-url`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetModelsAddOnCheckoutUrl200ResponseFromJSON(jsonValue)); + } + + /** + * Creates a Stripe checkout session for the models add-on subscription and returns the checkout URL. + * Get Stripe checkout URL for models add-on + */ + async getModelsAddOnCheckoutUrl(requestParameters: GetModelsAddOnCheckoutUrlRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getModelsAddOnCheckoutUrlRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + * Get organization policy + */ + async getPolicyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/policy`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => GetPolicy200ResponseFromJSON(jsonValue)); + } + + /** + * Returns the policy configuration for the first organization that the user belongs to which has a policy configured. + * Get organization policy + */ + async getPolicy(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getPolicyRaw(initOverrides); + return await response.value(); + } + + /** + * This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + * List assistant full slugs (currently returns 429) + */ + async listAssistantFullSlugsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/list-assistant-full-slugs`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + * This endpoint is temporarily disabled and returns a 429 status code to prevent constant refreshes of the full assistant list until a fixed client version can be deployed. + * List assistant full slugs (currently returns 429) + */ + async listAssistantFullSlugs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.listAssistantFullSlugsRaw(initOverrides); + } + + /** + * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. + * List assistants for IDE + */ + async listAssistantsRaw(requestParameters: ListAssistantsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + if (requestParameters['alwaysUseProxy'] != null) { + queryParameters['alwaysUseProxy'] = requestParameters['alwaysUseProxy']; + } + + if (requestParameters['organizationId'] != null) { + queryParameters['organizationId'] = requestParameters['organizationId']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/list-assistants`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ListAssistants200ResponseInnerFromJSON)); + } + + /** + * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. + * List assistants for IDE + */ + async listAssistants(requestParameters: ListAssistantsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.listAssistantsRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + * Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + * List organizations for user + */ + async listOrganizationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/list-organizations`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ListOrganizations200ResponseFromJSON(jsonValue)); + } + + /** + * Returns a list of organizations that the authenticated user belongs to, including organization metadata and pre-signed icon URLs. + * List organizations for user + */ + async listOrganizations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.listOrganizationsRaw(initOverrides); + return await response.value(); + } + + /** + * Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + * Synchronize secrets for user + */ + async syncSecretsRaw(requestParameters: SyncSecretsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + if (requestParameters['syncSecretsRequest'] == null) { + throw new runtime.RequiredError( + 'syncSecretsRequest', + 'Required parameter "syncSecretsRequest" was null or undefined when calling syncSecrets().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("apiKeyAuth", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/ide/sync-secrets`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: SyncSecretsRequestToJSON(requestParameters['syncSecretsRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response); + } + + /** + * Resolves and synchronizes secrets for the authenticated user based on the provided Fully Qualified Secret Names (FQSNs). + * Synchronize secrets for user + */ + async syncSecrets(requestParameters: SyncSecretsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.syncSecretsRaw(requestParameters, initOverrides); + return await response.value(); + } - /** - * Returns a complete list of assistants available to the user, with their full configurations, icons, and other metadata needed by the IDE to display and use them. This endpoint performs a full refresh of the list of assistants, including unrolling configurations and resolving secrets. - * List assistants for IDE - */ - async listAssistants( - requestParameters: ListAssistantsRequest = {}, - initOverrides?: RequestInit | runtime.InitOverrideFunction, - ): Promise> { - const response = await this.listAssistantsRaw( - requestParameters, - initOverrides, - ); - return await response.value(); - } } /** * @export */ -export const ListAssistantsAlwaysUseProxyEnum = { - TRUE: "true", - FALSE: "false", +export const GetAssistantAlwaysUseProxyEnum = { + TRUE: 'true', + FALSE: 'false' } as const; -export type ListAssistantsAlwaysUseProxyEnum = - (typeof ListAssistantsAlwaysUseProxyEnum)[keyof typeof ListAssistantsAlwaysUseProxyEnum]; +export type GetAssistantAlwaysUseProxyEnum = typeof GetAssistantAlwaysUseProxyEnum[keyof typeof GetAssistantAlwaysUseProxyEnum]; +/** + * @export + */ +export const ListAssistantsAlwaysUseProxyEnum = { + TRUE: 'true', + FALSE: 'false' +} as const; +export type ListAssistantsAlwaysUseProxyEnum = typeof ListAssistantsAlwaysUseProxyEnum[keyof typeof ListAssistantsAlwaysUseProxyEnum]; diff --git a/packages/continue-sdk/typescript/api/src/apis/index.ts b/packages/continue-sdk/typescript/api/src/apis/index.ts index f70f3d328..69c44c00f 100644 --- a/packages/continue-sdk/typescript/api/src/apis/index.ts +++ b/packages/continue-sdk/typescript/api/src/apis/index.ts @@ -1,3 +1,3 @@ /* tslint:disable */ /* eslint-disable */ -export * from "./DefaultApi"; +export * from './DefaultApi'; diff --git a/packages/continue-sdk/typescript/api/src/index.ts b/packages/continue-sdk/typescript/api/src/index.ts index ee2637724..bebe8bbbe 100644 --- a/packages/continue-sdk/typescript/api/src/index.ts +++ b/packages/continue-sdk/typescript/api/src/index.ts @@ -1,5 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -export * from "./runtime"; -export * from "./apis/index"; -export * from "./models/index"; +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; diff --git a/packages/continue-sdk/typescript/api/src/models/GetAssistant200Response.ts b/packages/continue-sdk/typescript/api/src/models/GetAssistant200Response.ts new file mode 100644 index 000000000..8b22c4fbb --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetAssistant200Response.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ListAssistants200ResponseInnerConfigResult } from './ListAssistants200ResponseInnerConfigResult'; +import { + ListAssistants200ResponseInnerConfigResultFromJSON, + ListAssistants200ResponseInnerConfigResultFromJSONTyped, + ListAssistants200ResponseInnerConfigResultToJSON, + ListAssistants200ResponseInnerConfigResultToJSONTyped, +} from './ListAssistants200ResponseInnerConfigResult'; + +/** + * + * @export + * @interface GetAssistant200Response + */ +export interface GetAssistant200Response { + /** + * + * @type {ListAssistants200ResponseInnerConfigResult} + * @memberof GetAssistant200Response + */ + configResult: ListAssistants200ResponseInnerConfigResult; + /** + * Slug of the user or organization that owns the assistant + * @type {string} + * @memberof GetAssistant200Response + */ + ownerSlug: string; + /** + * Slug of the assistant package + * @type {string} + * @memberof GetAssistant200Response + */ + packageSlug: string; + /** + * Pre-signed URL for the assistant's icon + * @type {string} + * @memberof GetAssistant200Response + */ + iconUrl?: string | null; + /** + * URL of the on-premises proxy if the organization uses one + * @type {string} + * @memberof GetAssistant200Response + */ + onPremProxyUrl?: string | null; + /** + * Whether the organization uses an on-premises proxy + * @type {boolean} + * @memberof GetAssistant200Response + */ + useOnPremProxy?: boolean | null; + /** + * Raw YAML configuration of the assistant + * @type {string} + * @memberof GetAssistant200Response + */ + rawYaml?: string; +} + +/** + * Check if a given object implements the GetAssistant200Response interface. + */ +export function instanceOfGetAssistant200Response(value: object): value is GetAssistant200Response { + if (!('configResult' in value) || value['configResult'] === undefined) return false; + if (!('ownerSlug' in value) || value['ownerSlug'] === undefined) return false; + if (!('packageSlug' in value) || value['packageSlug'] === undefined) return false; + return true; +} + +export function GetAssistant200ResponseFromJSON(json: any): GetAssistant200Response { + return GetAssistant200ResponseFromJSONTyped(json, false); +} + +export function GetAssistant200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAssistant200Response { + if (json == null) { + return json; + } + return { + + 'configResult': ListAssistants200ResponseInnerConfigResultFromJSON(json['configResult']), + 'ownerSlug': json['ownerSlug'], + 'packageSlug': json['packageSlug'], + 'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'], + 'onPremProxyUrl': json['onPremProxyUrl'] == null ? undefined : json['onPremProxyUrl'], + 'useOnPremProxy': json['useOnPremProxy'] == null ? undefined : json['useOnPremProxy'], + 'rawYaml': json['rawYaml'] == null ? undefined : json['rawYaml'], + }; +} + +export function GetAssistant200ResponseToJSON(json: any): GetAssistant200Response { + return GetAssistant200ResponseToJSONTyped(json, false); +} + +export function GetAssistant200ResponseToJSONTyped(value?: GetAssistant200Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'configResult': ListAssistants200ResponseInnerConfigResultToJSON(value['configResult']), + 'ownerSlug': value['ownerSlug'], + 'packageSlug': value['packageSlug'], + 'iconUrl': value['iconUrl'], + 'onPremProxyUrl': value['onPremProxyUrl'], + 'useOnPremProxy': value['useOnPremProxy'], + 'rawYaml': value['rawYaml'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetAssistant403Response.ts b/packages/continue-sdk/typescript/api/src/models/GetAssistant403Response.ts new file mode 100644 index 000000000..c074c4555 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetAssistant403Response.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetAssistant403Response + */ +export interface GetAssistant403Response { + /** + * + * @type {string} + * @memberof GetAssistant403Response + */ + message?: string; +} + +/** + * Check if a given object implements the GetAssistant403Response interface. + */ +export function instanceOfGetAssistant403Response(value: object): value is GetAssistant403Response { + return true; +} + +export function GetAssistant403ResponseFromJSON(json: any): GetAssistant403Response { + return GetAssistant403ResponseFromJSONTyped(json, false); +} + +export function GetAssistant403ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAssistant403Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; +} + +export function GetAssistant403ResponseToJSON(json: any): GetAssistant403Response { + return GetAssistant403ResponseToJSONTyped(json, false); +} + +export function GetAssistant403ResponseToJSONTyped(value?: GetAssistant403Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetAssistant404Response.ts b/packages/continue-sdk/typescript/api/src/models/GetAssistant404Response.ts new file mode 100644 index 000000000..15e60c01d --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetAssistant404Response.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetAssistant404Response + */ +export interface GetAssistant404Response { + /** + * + * @type {string} + * @memberof GetAssistant404Response + */ + message?: string; +} + +/** + * Check if a given object implements the GetAssistant404Response interface. + */ +export function instanceOfGetAssistant404Response(value: object): value is GetAssistant404Response { + return true; +} + +export function GetAssistant404ResponseFromJSON(json: any): GetAssistant404Response { + return GetAssistant404ResponseFromJSONTyped(json, false); +} + +export function GetAssistant404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAssistant404Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; +} + +export function GetAssistant404ResponseToJSON(json: any): GetAssistant404Response { + return GetAssistant404ResponseToJSONTyped(json, false); +} + +export function GetAssistant404ResponseToJSONTyped(value?: GetAssistant404Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetFreeTrialStatus200Response.ts b/packages/continue-sdk/typescript/api/src/models/GetFreeTrialStatus200Response.ts new file mode 100644 index 000000000..cd084b794 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetFreeTrialStatus200Response.ts @@ -0,0 +1,100 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetFreeTrialStatus200Response + */ +export interface GetFreeTrialStatus200Response { + /** + * Whether the user has opted into the free trial + * @type {boolean} + * @memberof GetFreeTrialStatus200Response + */ + optedInToFreeTrial: boolean; + /** + * Current number of chat messages used + * @type {number} + * @memberof GetFreeTrialStatus200Response + */ + chatCount?: number | null; + /** + * Current number of autocomplete requests used + * @type {number} + * @memberof GetFreeTrialStatus200Response + */ + autocompleteCount?: number | null; + /** + * Maximum number of chat messages allowed in free trial + * @type {number} + * @memberof GetFreeTrialStatus200Response + */ + chatLimit: number; + /** + * Maximum number of autocomplete requests allowed in free trial + * @type {number} + * @memberof GetFreeTrialStatus200Response + */ + autocompleteLimit: number; +} + +/** + * Check if a given object implements the GetFreeTrialStatus200Response interface. + */ +export function instanceOfGetFreeTrialStatus200Response(value: object): value is GetFreeTrialStatus200Response { + if (!('optedInToFreeTrial' in value) || value['optedInToFreeTrial'] === undefined) return false; + if (!('chatLimit' in value) || value['chatLimit'] === undefined) return false; + if (!('autocompleteLimit' in value) || value['autocompleteLimit'] === undefined) return false; + return true; +} + +export function GetFreeTrialStatus200ResponseFromJSON(json: any): GetFreeTrialStatus200Response { + return GetFreeTrialStatus200ResponseFromJSONTyped(json, false); +} + +export function GetFreeTrialStatus200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetFreeTrialStatus200Response { + if (json == null) { + return json; + } + return { + + 'optedInToFreeTrial': json['optedInToFreeTrial'], + 'chatCount': json['chatCount'] == null ? undefined : json['chatCount'], + 'autocompleteCount': json['autocompleteCount'] == null ? undefined : json['autocompleteCount'], + 'chatLimit': json['chatLimit'], + 'autocompleteLimit': json['autocompleteLimit'], + }; +} + +export function GetFreeTrialStatus200ResponseToJSON(json: any): GetFreeTrialStatus200Response { + return GetFreeTrialStatus200ResponseToJSONTyped(json, false); +} + +export function GetFreeTrialStatus200ResponseToJSONTyped(value?: GetFreeTrialStatus200Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'optedInToFreeTrial': value['optedInToFreeTrial'], + 'chatCount': value['chatCount'], + 'autocompleteCount': value['autocompleteCount'], + 'chatLimit': value['chatLimit'], + 'autocompleteLimit': value['autocompleteLimit'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl200Response.ts b/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl200Response.ts new file mode 100644 index 000000000..2c935ffda --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl200Response.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetModelsAddOnCheckoutUrl200Response + */ +export interface GetModelsAddOnCheckoutUrl200Response { + /** + * Stripe checkout session URL + * @type {string} + * @memberof GetModelsAddOnCheckoutUrl200Response + */ + url: string; +} + +/** + * Check if a given object implements the GetModelsAddOnCheckoutUrl200Response interface. + */ +export function instanceOfGetModelsAddOnCheckoutUrl200Response(value: object): value is GetModelsAddOnCheckoutUrl200Response { + if (!('url' in value) || value['url'] === undefined) return false; + return true; +} + +export function GetModelsAddOnCheckoutUrl200ResponseFromJSON(json: any): GetModelsAddOnCheckoutUrl200Response { + return GetModelsAddOnCheckoutUrl200ResponseFromJSONTyped(json, false); +} + +export function GetModelsAddOnCheckoutUrl200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelsAddOnCheckoutUrl200Response { + if (json == null) { + return json; + } + return { + + 'url': json['url'], + }; +} + +export function GetModelsAddOnCheckoutUrl200ResponseToJSON(json: any): GetModelsAddOnCheckoutUrl200Response { + return GetModelsAddOnCheckoutUrl200ResponseToJSONTyped(json, false); +} + +export function GetModelsAddOnCheckoutUrl200ResponseToJSONTyped(value?: GetModelsAddOnCheckoutUrl200Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'url': value['url'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl500Response.ts b/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl500Response.ts new file mode 100644 index 000000000..e548161ac --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetModelsAddOnCheckoutUrl500Response.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetModelsAddOnCheckoutUrl500Response + */ +export interface GetModelsAddOnCheckoutUrl500Response { + /** + * + * @type {string} + * @memberof GetModelsAddOnCheckoutUrl500Response + */ + message?: string; +} + +/** + * Check if a given object implements the GetModelsAddOnCheckoutUrl500Response interface. + */ +export function instanceOfGetModelsAddOnCheckoutUrl500Response(value: object): value is GetModelsAddOnCheckoutUrl500Response { + return true; +} + +export function GetModelsAddOnCheckoutUrl500ResponseFromJSON(json: any): GetModelsAddOnCheckoutUrl500Response { + return GetModelsAddOnCheckoutUrl500ResponseFromJSONTyped(json, false); +} + +export function GetModelsAddOnCheckoutUrl500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModelsAddOnCheckoutUrl500Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; +} + +export function GetModelsAddOnCheckoutUrl500ResponseToJSON(json: any): GetModelsAddOnCheckoutUrl500Response { + return GetModelsAddOnCheckoutUrl500ResponseToJSONTyped(json, false); +} + +export function GetModelsAddOnCheckoutUrl500ResponseToJSONTyped(value?: GetModelsAddOnCheckoutUrl500Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/GetPolicy200Response.ts b/packages/continue-sdk/typescript/api/src/models/GetPolicy200Response.ts new file mode 100644 index 000000000..e43e8c882 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/GetPolicy200Response.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface GetPolicy200Response + */ +export interface GetPolicy200Response { + /** + * Organization policy configuration + * @type {object} + * @memberof GetPolicy200Response + */ + policy?: object | null; + /** + * Slug of the organization that has the policy + * @type {string} + * @memberof GetPolicy200Response + */ + orgSlug?: string | null; +} + +/** + * Check if a given object implements the GetPolicy200Response interface. + */ +export function instanceOfGetPolicy200Response(value: object): value is GetPolicy200Response { + return true; +} + +export function GetPolicy200ResponseFromJSON(json: any): GetPolicy200Response { + return GetPolicy200ResponseFromJSONTyped(json, false); +} + +export function GetPolicy200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPolicy200Response { + if (json == null) { + return json; + } + return { + + 'policy': json['policy'] == null ? undefined : json['policy'], + 'orgSlug': json['orgSlug'] == null ? undefined : json['orgSlug'], + }; +} + +export function GetPolicy200ResponseToJSON(json: any): GetPolicy200Response { + return GetPolicy200ResponseToJSONTyped(json, false); +} + +export function GetPolicy200ResponseToJSONTyped(value?: GetPolicy200Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'policy': value['policy'], + 'orgSlug': value['orgSlug'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/ListAssistantFullSlugs429Response.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistantFullSlugs429Response.ts new file mode 100644 index 000000000..a16577260 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/ListAssistantFullSlugs429Response.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ListAssistantFullSlugs429Response + */ +export interface ListAssistantFullSlugs429Response { + /** + * + * @type {string} + * @memberof ListAssistantFullSlugs429Response + */ + message?: string; +} + +/** + * Check if a given object implements the ListAssistantFullSlugs429Response interface. + */ +export function instanceOfListAssistantFullSlugs429Response(value: object): value is ListAssistantFullSlugs429Response { + return true; +} + +export function ListAssistantFullSlugs429ResponseFromJSON(json: any): ListAssistantFullSlugs429Response { + return ListAssistantFullSlugs429ResponseFromJSONTyped(json, false); +} + +export function ListAssistantFullSlugs429ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssistantFullSlugs429Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; +} + +export function ListAssistantFullSlugs429ResponseToJSON(json: any): ListAssistantFullSlugs429Response { + return ListAssistantFullSlugs429ResponseToJSONTyped(json, false); +} + +export function ListAssistantFullSlugs429ResponseToJSONTyped(value?: ListAssistantFullSlugs429Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'message': value['message'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts index 015aeb3ba..9f572de3e 100644 --- a/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts +++ b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts @@ -2,140 +2,123 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from "../runtime"; -import type { ListAssistants200ResponseInnerConfigResult } from "./ListAssistants200ResponseInnerConfigResult"; +import { mapValues } from '../runtime'; +import type { ListAssistants200ResponseInnerConfigResult } from './ListAssistants200ResponseInnerConfigResult'; import { - ListAssistants200ResponseInnerConfigResultFromJSON, - ListAssistants200ResponseInnerConfigResultFromJSONTyped, - ListAssistants200ResponseInnerConfigResultToJSON, - ListAssistants200ResponseInnerConfigResultToJSONTyped, -} from "./ListAssistants200ResponseInnerConfigResult"; + ListAssistants200ResponseInnerConfigResultFromJSON, + ListAssistants200ResponseInnerConfigResultFromJSONTyped, + ListAssistants200ResponseInnerConfigResultToJSON, + ListAssistants200ResponseInnerConfigResultToJSONTyped, +} from './ListAssistants200ResponseInnerConfigResult'; /** - * + * * @export * @interface ListAssistants200ResponseInner */ export interface ListAssistants200ResponseInner { - /** - * - * @type {ListAssistants200ResponseInnerConfigResult} - * @memberof ListAssistants200ResponseInner - */ - configResult: ListAssistants200ResponseInnerConfigResult; - /** - * Slug of the user or organization that owns the assistant - * @type {string} - * @memberof ListAssistants200ResponseInner - */ - ownerSlug: string; - /** - * Slug of the assistant package - * @type {string} - * @memberof ListAssistants200ResponseInner - */ - packageSlug: string; - /** - * Pre-signed URL for the assistant's icon - * @type {string} - * @memberof ListAssistants200ResponseInner - */ - iconUrl?: string | null; - /** - * URL of the on-premises proxy if the organization uses one - * @type {string} - * @memberof ListAssistants200ResponseInner - */ - onPremProxyUrl?: string | null; - /** - * Whether the organization uses an on-premises proxy - * @type {boolean} - * @memberof ListAssistants200ResponseInner - */ - useOnPremProxy?: boolean | null; - /** - * Raw YAML configuration of the assistant - * @type {string} - * @memberof ListAssistants200ResponseInner - */ - rawYaml?: string; + /** + * + * @type {ListAssistants200ResponseInnerConfigResult} + * @memberof ListAssistants200ResponseInner + */ + configResult: ListAssistants200ResponseInnerConfigResult; + /** + * Slug of the user or organization that owns the assistant + * @type {string} + * @memberof ListAssistants200ResponseInner + */ + ownerSlug: string; + /** + * Slug of the assistant package + * @type {string} + * @memberof ListAssistants200ResponseInner + */ + packageSlug: string; + /** + * Pre-signed URL for the assistant's icon + * @type {string} + * @memberof ListAssistants200ResponseInner + */ + iconUrl?: string | null; + /** + * URL of the on-premises proxy if the organization uses one + * @type {string} + * @memberof ListAssistants200ResponseInner + */ + onPremProxyUrl?: string | null; + /** + * Whether the organization uses an on-premises proxy + * @type {boolean} + * @memberof ListAssistants200ResponseInner + */ + useOnPremProxy?: boolean | null; + /** + * Raw YAML configuration of the assistant + * @type {string} + * @memberof ListAssistants200ResponseInner + */ + rawYaml?: string; } /** * Check if a given object implements the ListAssistants200ResponseInner interface. */ -export function instanceOfListAssistants200ResponseInner( - value: object, -): value is ListAssistants200ResponseInner { - if (!("configResult" in value) || value["configResult"] === undefined) - return false; - if (!("ownerSlug" in value) || value["ownerSlug"] === undefined) return false; - if (!("packageSlug" in value) || value["packageSlug"] === undefined) - return false; - return true; +export function instanceOfListAssistants200ResponseInner(value: object): value is ListAssistants200ResponseInner { + if (!('configResult' in value) || value['configResult'] === undefined) return false; + if (!('ownerSlug' in value) || value['ownerSlug'] === undefined) return false; + if (!('packageSlug' in value) || value['packageSlug'] === undefined) return false; + return true; } -export function ListAssistants200ResponseInnerFromJSON( - json: any, -): ListAssistants200ResponseInner { - return ListAssistants200ResponseInnerFromJSONTyped(json, false); +export function ListAssistants200ResponseInnerFromJSON(json: any): ListAssistants200ResponseInner { + return ListAssistants200ResponseInnerFromJSONTyped(json, false); } -export function ListAssistants200ResponseInnerFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ListAssistants200ResponseInner { - if (json == null) { - return json; - } - return { - configResult: ListAssistants200ResponseInnerConfigResultFromJSON( - json["configResult"], - ), - ownerSlug: json["ownerSlug"], - packageSlug: json["packageSlug"], - iconUrl: json["iconUrl"] == null ? undefined : json["iconUrl"], - onPremProxyUrl: - json["onPremProxyUrl"] == null ? undefined : json["onPremProxyUrl"], - useOnPremProxy: - json["useOnPremProxy"] == null ? undefined : json["useOnPremProxy"], - rawYaml: json["rawYaml"] == null ? undefined : json["rawYaml"], - }; +export function ListAssistants200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssistants200ResponseInner { + if (json == null) { + return json; + } + return { + + 'configResult': ListAssistants200ResponseInnerConfigResultFromJSON(json['configResult']), + 'ownerSlug': json['ownerSlug'], + 'packageSlug': json['packageSlug'], + 'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'], + 'onPremProxyUrl': json['onPremProxyUrl'] == null ? undefined : json['onPremProxyUrl'], + 'useOnPremProxy': json['useOnPremProxy'] == null ? undefined : json['useOnPremProxy'], + 'rawYaml': json['rawYaml'] == null ? undefined : json['rawYaml'], + }; } -export function ListAssistants200ResponseInnerToJSON( - json: any, -): ListAssistants200ResponseInner { - return ListAssistants200ResponseInnerToJSONTyped(json, false); +export function ListAssistants200ResponseInnerToJSON(json: any): ListAssistants200ResponseInner { + return ListAssistants200ResponseInnerToJSONTyped(json, false); } -export function ListAssistants200ResponseInnerToJSONTyped( - value?: ListAssistants200ResponseInner | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } +export function ListAssistants200ResponseInnerToJSONTyped(value?: ListAssistants200ResponseInner | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } - return { - configResult: ListAssistants200ResponseInnerConfigResultToJSON( - value["configResult"], - ), - ownerSlug: value["ownerSlug"], - packageSlug: value["packageSlug"], - iconUrl: value["iconUrl"], - onPremProxyUrl: value["onPremProxyUrl"], - useOnPremProxy: value["useOnPremProxy"], - rawYaml: value["rawYaml"], - }; + return { + + 'configResult': ListAssistants200ResponseInnerConfigResultToJSON(value['configResult']), + 'ownerSlug': value['ownerSlug'], + 'packageSlug': value['packageSlug'], + 'iconUrl': value['iconUrl'], + 'onPremProxyUrl': value['onPremProxyUrl'], + 'useOnPremProxy': value['useOnPremProxy'], + 'rawYaml': value['rawYaml'], + }; } + diff --git a/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts index a3a9e9522..fd2e6ea8c 100644 --- a/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts +++ b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts @@ -2,95 +2,82 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from "../runtime"; +import { mapValues } from '../runtime'; /** - * + * * @export * @interface ListAssistants200ResponseInnerConfigResult */ export interface ListAssistants200ResponseInnerConfigResult { - /** - * The unrolled assistant configuration - * @type {object} - * @memberof ListAssistants200ResponseInnerConfigResult - */ - config: object | null; - /** - * Whether the configuration loading was interrupted - * @type {boolean} - * @memberof ListAssistants200ResponseInnerConfigResult - */ - configLoadInterrupted: boolean; - /** - * Any errors that occurred during configuration loading - * @type {Array} - * @memberof ListAssistants200ResponseInnerConfigResult - */ - errors?: Array | null; + /** + * The unrolled assistant configuration + * @type {object} + * @memberof ListAssistants200ResponseInnerConfigResult + */ + config: object | null; + /** + * Whether the configuration loading was interrupted + * @type {boolean} + * @memberof ListAssistants200ResponseInnerConfigResult + */ + configLoadInterrupted: boolean; + /** + * Any errors that occurred during configuration loading + * @type {Array} + * @memberof ListAssistants200ResponseInnerConfigResult + */ + errors?: Array | null; } /** * Check if a given object implements the ListAssistants200ResponseInnerConfigResult interface. */ -export function instanceOfListAssistants200ResponseInnerConfigResult( - value: object, -): value is ListAssistants200ResponseInnerConfigResult { - if (!("config" in value) || value["config"] === undefined) return false; - if ( - !("configLoadInterrupted" in value) || - value["configLoadInterrupted"] === undefined - ) - return false; - return true; +export function instanceOfListAssistants200ResponseInnerConfigResult(value: object): value is ListAssistants200ResponseInnerConfigResult { + if (!('config' in value) || value['config'] === undefined) return false; + if (!('configLoadInterrupted' in value) || value['configLoadInterrupted'] === undefined) return false; + return true; } -export function ListAssistants200ResponseInnerConfigResultFromJSON( - json: any, -): ListAssistants200ResponseInnerConfigResult { - return ListAssistants200ResponseInnerConfigResultFromJSONTyped(json, false); +export function ListAssistants200ResponseInnerConfigResultFromJSON(json: any): ListAssistants200ResponseInnerConfigResult { + return ListAssistants200ResponseInnerConfigResultFromJSONTyped(json, false); } -export function ListAssistants200ResponseInnerConfigResultFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ListAssistants200ResponseInnerConfigResult { - if (json == null) { - return json; - } - return { - config: json["config"], - configLoadInterrupted: json["configLoadInterrupted"], - errors: json["errors"] == null ? undefined : json["errors"], - }; +export function ListAssistants200ResponseInnerConfigResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssistants200ResponseInnerConfigResult { + if (json == null) { + return json; + } + return { + + 'config': json['config'], + 'configLoadInterrupted': json['configLoadInterrupted'], + 'errors': json['errors'] == null ? undefined : json['errors'], + }; } -export function ListAssistants200ResponseInnerConfigResultToJSON( - json: any, -): ListAssistants200ResponseInnerConfigResult { - return ListAssistants200ResponseInnerConfigResultToJSONTyped(json, false); +export function ListAssistants200ResponseInnerConfigResultToJSON(json: any): ListAssistants200ResponseInnerConfigResult { + return ListAssistants200ResponseInnerConfigResultToJSONTyped(json, false); } -export function ListAssistants200ResponseInnerConfigResultToJSONTyped( - value?: ListAssistants200ResponseInnerConfigResult | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } +export function ListAssistants200ResponseInnerConfigResultToJSONTyped(value?: ListAssistants200ResponseInnerConfigResult | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } - return { - config: value["config"], - configLoadInterrupted: value["configLoadInterrupted"], - errors: value["errors"], - }; + return { + + 'config': value['config'], + 'configLoadInterrupted': value['configLoadInterrupted'], + 'errors': value['errors'], + }; } + diff --git a/packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts index 9c4a961a5..a8d7d10b1 100644 --- a/packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts +++ b/packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts @@ -2,73 +2,64 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from "../runtime"; +import { mapValues } from '../runtime'; /** - * + * * @export * @interface ListAssistants401Response */ export interface ListAssistants401Response { - /** - * - * @type {string} - * @memberof ListAssistants401Response - */ - message?: string; + /** + * + * @type {string} + * @memberof ListAssistants401Response + */ + message?: string; } /** * Check if a given object implements the ListAssistants401Response interface. */ -export function instanceOfListAssistants401Response( - value: object, -): value is ListAssistants401Response { - return true; +export function instanceOfListAssistants401Response(value: object): value is ListAssistants401Response { + return true; } -export function ListAssistants401ResponseFromJSON( - json: any, -): ListAssistants401Response { - return ListAssistants401ResponseFromJSONTyped(json, false); +export function ListAssistants401ResponseFromJSON(json: any): ListAssistants401Response { + return ListAssistants401ResponseFromJSONTyped(json, false); } -export function ListAssistants401ResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ListAssistants401Response { - if (json == null) { - return json; - } - return { - message: json["message"] == null ? undefined : json["message"], - }; +export function ListAssistants401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssistants401Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; } -export function ListAssistants401ResponseToJSON( - json: any, -): ListAssistants401Response { - return ListAssistants401ResponseToJSONTyped(json, false); +export function ListAssistants401ResponseToJSON(json: any): ListAssistants401Response { + return ListAssistants401ResponseToJSONTyped(json, false); } -export function ListAssistants401ResponseToJSONTyped( - value?: ListAssistants401Response | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } +export function ListAssistants401ResponseToJSONTyped(value?: ListAssistants401Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } - return { - message: value["message"], - }; + return { + + 'message': value['message'], + }; } + diff --git a/packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts index 8483c508b..b90a21824 100644 --- a/packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts +++ b/packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts @@ -2,73 +2,64 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { mapValues } from "../runtime"; +import { mapValues } from '../runtime'; /** - * + * * @export * @interface ListAssistants404Response */ export interface ListAssistants404Response { - /** - * - * @type {string} - * @memberof ListAssistants404Response - */ - message?: string; + /** + * + * @type {string} + * @memberof ListAssistants404Response + */ + message?: string; } /** * Check if a given object implements the ListAssistants404Response interface. */ -export function instanceOfListAssistants404Response( - value: object, -): value is ListAssistants404Response { - return true; +export function instanceOfListAssistants404Response(value: object): value is ListAssistants404Response { + return true; } -export function ListAssistants404ResponseFromJSON( - json: any, -): ListAssistants404Response { - return ListAssistants404ResponseFromJSONTyped(json, false); +export function ListAssistants404ResponseFromJSON(json: any): ListAssistants404Response { + return ListAssistants404ResponseFromJSONTyped(json, false); } -export function ListAssistants404ResponseFromJSONTyped( - json: any, - ignoreDiscriminator: boolean, -): ListAssistants404Response { - if (json == null) { - return json; - } - return { - message: json["message"] == null ? undefined : json["message"], - }; +export function ListAssistants404ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAssistants404Response { + if (json == null) { + return json; + } + return { + + 'message': json['message'] == null ? undefined : json['message'], + }; } -export function ListAssistants404ResponseToJSON( - json: any, -): ListAssistants404Response { - return ListAssistants404ResponseToJSONTyped(json, false); +export function ListAssistants404ResponseToJSON(json: any): ListAssistants404Response { + return ListAssistants404ResponseToJSONTyped(json, false); } -export function ListAssistants404ResponseToJSONTyped( - value?: ListAssistants404Response | null, - ignoreDiscriminator: boolean = false, -): any { - if (value == null) { - return value; - } +export function ListAssistants404ResponseToJSONTyped(value?: ListAssistants404Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } - return { - message: value["message"], - }; + return { + + 'message': value['message'], + }; } + diff --git a/packages/continue-sdk/typescript/api/src/models/ListOrganizations200Response.ts b/packages/continue-sdk/typescript/api/src/models/ListOrganizations200Response.ts new file mode 100644 index 000000000..812178a90 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/ListOrganizations200Response.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ListOrganizations200ResponseOrganizationsInner } from './ListOrganizations200ResponseOrganizationsInner'; +import { + ListOrganizations200ResponseOrganizationsInnerFromJSON, + ListOrganizations200ResponseOrganizationsInnerFromJSONTyped, + ListOrganizations200ResponseOrganizationsInnerToJSON, + ListOrganizations200ResponseOrganizationsInnerToJSONTyped, +} from './ListOrganizations200ResponseOrganizationsInner'; + +/** + * + * @export + * @interface ListOrganizations200Response + */ +export interface ListOrganizations200Response { + /** + * + * @type {Array} + * @memberof ListOrganizations200Response + */ + organizations: Array; +} + +/** + * Check if a given object implements the ListOrganizations200Response interface. + */ +export function instanceOfListOrganizations200Response(value: object): value is ListOrganizations200Response { + if (!('organizations' in value) || value['organizations'] === undefined) return false; + return true; +} + +export function ListOrganizations200ResponseFromJSON(json: any): ListOrganizations200Response { + return ListOrganizations200ResponseFromJSONTyped(json, false); +} + +export function ListOrganizations200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrganizations200Response { + if (json == null) { + return json; + } + return { + + 'organizations': ((json['organizations'] as Array).map(ListOrganizations200ResponseOrganizationsInnerFromJSON)), + }; +} + +export function ListOrganizations200ResponseToJSON(json: any): ListOrganizations200Response { + return ListOrganizations200ResponseToJSONTyped(json, false); +} + +export function ListOrganizations200ResponseToJSONTyped(value?: ListOrganizations200Response | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'organizations': ((value['organizations'] as Array).map(ListOrganizations200ResponseOrganizationsInnerToJSON)), + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/ListOrganizations200ResponseOrganizationsInner.ts b/packages/continue-sdk/typescript/api/src/models/ListOrganizations200ResponseOrganizationsInner.ts new file mode 100644 index 000000000..454de1ca0 --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/ListOrganizations200ResponseOrganizationsInner.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ListOrganizations200ResponseOrganizationsInner + */ +export interface ListOrganizations200ResponseOrganizationsInner { + /** + * Organization ID + * @type {string} + * @memberof ListOrganizations200ResponseOrganizationsInner + */ + id: string; + /** + * Organization name + * @type {string} + * @memberof ListOrganizations200ResponseOrganizationsInner + */ + name: string; + /** + * Pre-signed URL for the organization's icon + * @type {string} + * @memberof ListOrganizations200ResponseOrganizationsInner + */ + iconUrl?: string | null; + /** + * Organization slug + * @type {string} + * @memberof ListOrganizations200ResponseOrganizationsInner + */ + slug: string; +} + +/** + * Check if a given object implements the ListOrganizations200ResponseOrganizationsInner interface. + */ +export function instanceOfListOrganizations200ResponseOrganizationsInner(value: object): value is ListOrganizations200ResponseOrganizationsInner { + if (!('id' in value) || value['id'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + if (!('slug' in value) || value['slug'] === undefined) return false; + return true; +} + +export function ListOrganizations200ResponseOrganizationsInnerFromJSON(json: any): ListOrganizations200ResponseOrganizationsInner { + return ListOrganizations200ResponseOrganizationsInnerFromJSONTyped(json, false); +} + +export function ListOrganizations200ResponseOrganizationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListOrganizations200ResponseOrganizationsInner { + if (json == null) { + return json; + } + return { + + 'id': json['id'], + 'name': json['name'], + 'iconUrl': json['iconUrl'] == null ? undefined : json['iconUrl'], + 'slug': json['slug'], + }; +} + +export function ListOrganizations200ResponseOrganizationsInnerToJSON(json: any): ListOrganizations200ResponseOrganizationsInner { + return ListOrganizations200ResponseOrganizationsInnerToJSONTyped(json, false); +} + +export function ListOrganizations200ResponseOrganizationsInnerToJSONTyped(value?: ListOrganizations200ResponseOrganizationsInner | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'name': value['name'], + 'iconUrl': value['iconUrl'], + 'slug': value['slug'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/SyncSecretsRequest.ts b/packages/continue-sdk/typescript/api/src/models/SyncSecretsRequest.ts new file mode 100644 index 000000000..d3504056f --- /dev/null +++ b/packages/continue-sdk/typescript/api/src/models/SyncSecretsRequest.ts @@ -0,0 +1,82 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Continue Hub IDE API + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface SyncSecretsRequest + */ +export interface SyncSecretsRequest { + /** + * Array of Fully Qualified Secret Names to resolve + * @type {Array} + * @memberof SyncSecretsRequest + */ + fqsns: Array; + /** + * Organization ID to scope secret resolution to + * @type {string} + * @memberof SyncSecretsRequest + */ + orgScopeId?: string | null; + /** + * Organization slug to scope secret resolution to + * @type {string} + * @memberof SyncSecretsRequest + */ + orgScopeSlug?: string | null; +} + +/** + * Check if a given object implements the SyncSecretsRequest interface. + */ +export function instanceOfSyncSecretsRequest(value: object): value is SyncSecretsRequest { + if (!('fqsns' in value) || value['fqsns'] === undefined) return false; + return true; +} + +export function SyncSecretsRequestFromJSON(json: any): SyncSecretsRequest { + return SyncSecretsRequestFromJSONTyped(json, false); +} + +export function SyncSecretsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncSecretsRequest { + if (json == null) { + return json; + } + return { + + 'fqsns': json['fqsns'], + 'orgScopeId': json['orgScopeId'] == null ? undefined : json['orgScopeId'], + 'orgScopeSlug': json['orgScopeSlug'] == null ? undefined : json['orgScopeSlug'], + }; +} + +export function SyncSecretsRequestToJSON(json: any): SyncSecretsRequest { + return SyncSecretsRequestToJSONTyped(json, false); +} + +export function SyncSecretsRequestToJSONTyped(value?: SyncSecretsRequest | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'fqsns': value['fqsns'], + 'orgScopeId': value['orgScopeId'], + 'orgScopeSlug': value['orgScopeSlug'], + }; +} + diff --git a/packages/continue-sdk/typescript/api/src/models/index.ts b/packages/continue-sdk/typescript/api/src/models/index.ts index ccbb2cafa..da68ee7ca 100644 --- a/packages/continue-sdk/typescript/api/src/models/index.ts +++ b/packages/continue-sdk/typescript/api/src/models/index.ts @@ -1,6 +1,17 @@ /* tslint:disable */ /* eslint-disable */ -export * from "./ListAssistants200ResponseInner"; -export * from "./ListAssistants200ResponseInnerConfigResult"; -export * from "./ListAssistants401Response"; -export * from "./ListAssistants404Response"; +export * from './GetAssistant200Response'; +export * from './GetAssistant403Response'; +export * from './GetAssistant404Response'; +export * from './GetFreeTrialStatus200Response'; +export * from './GetModelsAddOnCheckoutUrl200Response'; +export * from './GetModelsAddOnCheckoutUrl500Response'; +export * from './GetPolicy200Response'; +export * from './ListAssistantFullSlugs429Response'; +export * from './ListAssistants200ResponseInner'; +export * from './ListAssistants200ResponseInnerConfigResult'; +export * from './ListAssistants401Response'; +export * from './ListAssistants404Response'; +export * from './ListOrganizations200Response'; +export * from './ListOrganizations200ResponseOrganizationsInner'; +export * from './SyncSecretsRequest'; diff --git a/packages/continue-sdk/typescript/api/src/runtime.ts b/packages/continue-sdk/typescript/api/src/runtime.ts index 3679049f8..759761f32 100644 --- a/packages/continue-sdk/typescript/api/src/runtime.ts +++ b/packages/continue-sdk/typescript/api/src/runtime.ts @@ -2,97 +2,86 @@ /* eslint-disable */ /** * Continue Hub IDE API - * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. + * API for Continue IDE to fetch assistants and other related information. These endpoints are primarily used by the Continue IDE extensions for VS Code and JetBrains. * * The version of the OpenAPI document: 1.0.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ + export const BASE_PATH = "https://api.continue.dev".replace(/\/+$/, ""); export interface ConfigurationParameters { - basePath?: string; // override base path - fetchApi?: FetchAPI; // override for fetch implementation - middleware?: Middleware[]; // middleware to apply before/after fetch requests - queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings - username?: string; // parameter for basic security - password?: string; // parameter for basic security - apiKey?: - | string - | Promise - | ((name: string) => string | Promise); // parameter for apiKey security - accessToken?: - | string - | Promise - | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security - headers?: HTTPHeaders; //header params we want to use on every request - credentials?: RequestCredentials; //value for the credentials param we want to use on each request + basePath?: string; // override base path + fetchApi?: FetchAPI; // override for fetch implementation + middleware?: Middleware[]; // middleware to apply before/after fetch requests + queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings + username?: string; // parameter for basic security + password?: string; // parameter for basic security + apiKey?: string | Promise | ((name: string) => string | Promise); // parameter for apiKey security + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); // parameter for oauth2 security + headers?: HTTPHeaders; //header params we want to use on every request + credentials?: RequestCredentials; //value for the credentials param we want to use on each request } export class Configuration { - constructor(private configuration: ConfigurationParameters = {}) {} + constructor(private configuration: ConfigurationParameters = {}) {} - set config(configuration: Configuration) { - this.configuration = configuration; - } - - get basePath(): string { - return this.configuration.basePath != null - ? this.configuration.basePath - : BASE_PATH; - } - - get fetchApi(): FetchAPI | undefined { - return this.configuration.fetchApi; - } - - get middleware(): Middleware[] { - return this.configuration.middleware || []; - } - - get queryParamsStringify(): (params: HTTPQuery) => string { - return this.configuration.queryParamsStringify || querystring; - } - - get username(): string | undefined { - return this.configuration.username; - } - - get password(): string | undefined { - return this.configuration.password; - } - - get apiKey(): ((name: string) => string | Promise) | undefined { - const apiKey = this.configuration.apiKey; - if (apiKey) { - return typeof apiKey === "function" ? apiKey : () => apiKey; + set config(configuration: Configuration) { + this.configuration = configuration; } - return undefined; - } - get accessToken(): - | ((name?: string, scopes?: string[]) => string | Promise) - | undefined { - const accessToken = this.configuration.accessToken; - if (accessToken) { - return typeof accessToken === "function" - ? accessToken - : async () => accessToken; + get basePath(): string { + return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH; } - return undefined; - } - get headers(): HTTPHeaders | undefined { - return this.configuration.headers; - } + get fetchApi(): FetchAPI | undefined { + return this.configuration.fetchApi; + } - get credentials(): RequestCredentials | undefined { - return this.configuration.credentials; - } + get middleware(): Middleware[] { + return this.configuration.middleware || []; + } + + get queryParamsStringify(): (params: HTTPQuery) => string { + return this.configuration.queryParamsStringify || querystring; + } + + get username(): string | undefined { + return this.configuration.username; + } + + get password(): string | undefined { + return this.configuration.password; + } + + get apiKey(): ((name: string) => string | Promise) | undefined { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + + get headers(): HTTPHeaders | undefined { + return this.configuration.headers; + } + + get credentials(): RequestCredentials | undefined { + return this.configuration.credentials; + } } export const DefaultConfig = new Configuration(); @@ -101,429 +90,342 @@ export const DefaultConfig = new Configuration(); * This is the base class for all generated API classes. */ export class BaseAPI { - private static readonly jsonRegex = new RegExp( - "^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", - "i", - ); - private middleware: Middleware[]; - constructor(protected configuration = DefaultConfig) { - this.middleware = configuration.middleware; - } + private static readonly jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + private middleware: Middleware[]; - withMiddleware(this: T, ...middlewares: Middleware[]) { - const next = this.clone(); - next.middleware = next.middleware.concat(...middlewares); - return next; - } - - withPreMiddleware( - this: T, - ...preMiddlewares: Array - ) { - const middlewares = preMiddlewares.map((pre) => ({ pre })); - return this.withMiddleware(...middlewares); - } - - withPostMiddleware( - this: T, - ...postMiddlewares: Array - ) { - const middlewares = postMiddlewares.map((post) => ({ post })); - return this.withMiddleware(...middlewares); - } - - /** - * Check if the given MIME is a JSON MIME. - * JSON MIME examples: - * application/json - * application/json; charset=UTF8 - * APPLICATION/JSON - * application/vnd.company+json - * @param mime - MIME (Multipurpose Internet Mail Extensions) - * @return True if the given MIME is JSON, false otherwise. - */ - protected isJsonMime(mime: string | null | undefined): boolean { - if (!mime) { - return false; - } - return BaseAPI.jsonRegex.test(mime); - } - - protected async request( - context: RequestOpts, - initOverrides?: RequestInit | InitOverrideFunction, - ): Promise { - const { url, init } = await this.createFetchParams(context, initOverrides); - const response = await this.fetchApi(url, init); - if (response && response.status >= 200 && response.status < 300) { - return response; - } - throw new ResponseError(response, "Response returned an error code"); - } - - private async createFetchParams( - context: RequestOpts, - initOverrides?: RequestInit | InitOverrideFunction, - ) { - let url = this.configuration.basePath + context.path; - if ( - context.query !== undefined && - Object.keys(context.query).length !== 0 - ) { - // only add the querystring to the URL if there are query parameters. - // this is done to avoid urls ending with a "?" character which buggy webservers - // do not handle correctly sometimes. - url += "?" + this.configuration.queryParamsStringify(context.query); + constructor(protected configuration = DefaultConfig) { + this.middleware = configuration.middleware; } - const headers = Object.assign( - {}, - this.configuration.headers, - context.headers, - ); - Object.keys(headers).forEach((key) => - headers[key] === undefined ? delete headers[key] : {}, - ); - - const initOverrideFn = - typeof initOverrides === "function" - ? initOverrides - : async () => initOverrides; - - const initParams = { - method: context.method, - headers, - body: context.body, - credentials: this.configuration.credentials, - }; - - const overriddenInit: RequestInit = { - ...initParams, - ...(await initOverrideFn({ - init: initParams, - context, - })), - }; - - let body: any; - if ( - isFormData(overriddenInit.body) || - overriddenInit.body instanceof URLSearchParams || - isBlob(overriddenInit.body) - ) { - body = overriddenInit.body; - } else if (this.isJsonMime(headers["Content-Type"])) { - body = JSON.stringify(overriddenInit.body); - } else { - body = overriddenInit.body; + withMiddleware(this: T, ...middlewares: Middleware[]) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; } - const init: RequestInit = { - ...overriddenInit, - body, - }; - - return { url, init }; - } - - private fetchApi = async (url: string, init: RequestInit) => { - let fetchParams = { url, init }; - for (const middleware of this.middleware) { - if (middleware.pre) { - fetchParams = - (await middleware.pre({ - fetch: this.fetchApi, - ...fetchParams, - })) || fetchParams; - } + withPreMiddleware(this: T, ...preMiddlewares: Array) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); } - let response: Response | undefined = undefined; - try { - response = await (this.configuration.fetchApi || fetch)( - fetchParams.url, - fetchParams.init, - ); - } catch (e) { - for (const middleware of this.middleware) { - if (middleware.onError) { - response = - (await middleware.onError({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - error: e, - response: response ? response.clone() : undefined, - })) || response; + + withPostMiddleware(this: T, ...postMiddlewares: Array) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean { + if (!mime) { + return false; } - } - if (response === undefined) { - if (e instanceof Error) { - throw new FetchError( - e, - "The request failed and the interceptors did not return an alternative response", - ); + return BaseAPI.jsonRegex.test(mime); + } + + protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + + private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + + const initOverrideFn = + typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + + const overriddenInit: RequestInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + + let body: any; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); } else { - throw e; + body = overriddenInit.body; } - } - } - for (const middleware of this.middleware) { - if (middleware.post) { - response = - (await middleware.post({ - fetch: this.fetchApi, - url: fetchParams.url, - init: fetchParams.init, - response: response.clone(), - })) || response; - } - } - return response; - }; - /** - * Create a shallow clone of `this` by constructing a new instance - * and then shallow cloning data members. - */ - private clone(this: T): T { - const constructor = this.constructor as any; - const next = new constructor(this.configuration); - next.middleware = this.middleware.slice(); - return next; - } -} + const init: RequestInit = { + ...overriddenInit, + body + }; + + return { url, init }; + } + + private fetchApi = async (url: string, init: RequestInit) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response: Response | undefined = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + } + + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone(this: T): T { + const constructor = this.constructor as any; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +}; function isBlob(value: any): value is Blob { - return typeof Blob !== "undefined" && value instanceof Blob; + return typeof Blob !== 'undefined' && value instanceof Blob; } function isFormData(value: any): value is FormData { - return typeof FormData !== "undefined" && value instanceof FormData; + return typeof FormData !== "undefined" && value instanceof FormData; } export class ResponseError extends Error { - override name: "ResponseError" = "ResponseError"; - constructor( - public response: Response, - msg?: string, - ) { - super(msg); - } + override name: "ResponseError" = "ResponseError"; + constructor(public response: Response, msg?: string) { + super(msg); + } } export class FetchError extends Error { - override name: "FetchError" = "FetchError"; - constructor( - public cause: Error, - msg?: string, - ) { - super(msg); - } + override name: "FetchError" = "FetchError"; + constructor(public cause: Error, msg?: string) { + super(msg); + } } export class RequiredError extends Error { - override name: "RequiredError" = "RequiredError"; - constructor( - public field: string, - msg?: string, - ) { - super(msg); - } + override name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } } export const COLLECTION_FORMATS = { - csv: ",", - ssv: " ", - tsv: "\t", - pipes: "|", + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", }; -export type FetchAPI = WindowOrWorkerGlobalScope["fetch"]; +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; export type Json = any; -export type HTTPMethod = - | "GET" - | "POST" - | "PUT" - | "PATCH" - | "DELETE" - | "OPTIONS" - | "HEAD"; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; export type HTTPHeaders = { [key: string]: string }; -export type HTTPQuery = { - [key: string]: - | string - | number - | null - | boolean - | Array - | Set - | HTTPQuery; -}; +export type HTTPQuery = { [key: string]: string | number | null | boolean | Array | Set | HTTPQuery }; export type HTTPBody = Json | FormData | URLSearchParams; -export type HTTPRequestInit = { - headers?: HTTPHeaders; - method: HTTPMethod; - credentials?: RequestCredentials; - body?: HTTPBody; -}; -export type ModelPropertyNaming = - | "camelCase" - | "snake_case" - | "PascalCase" - | "original"; +export type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody }; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; -export type InitOverrideFunction = (requestContext: { - init: HTTPRequestInit; - context: RequestOpts; -}) => Promise; +export type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise export interface FetchParams { - url: string; - init: RequestInit; + url: string; + init: RequestInit; } export interface RequestOpts { - path: string; - method: HTTPMethod; - headers: HTTPHeaders; - query?: HTTPQuery; - body?: HTTPBody; + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; } -export function querystring(params: HTTPQuery, prefix: string = ""): string { - return Object.keys(params) - .map((key) => querystringSingleKey(key, params[key], prefix)) - .filter((part) => part.length > 0) - .join("&"); +export function querystring(params: HTTPQuery, prefix: string = ''): string { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); } -function querystringSingleKey( - key: string, - value: - | string - | number - | null - | undefined - | boolean - | Array - | Set - | HTTPQuery, - keyPrefix: string = "", -): string { - const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); - if (value instanceof Array) { - const multiValue = value - .map((singleValue) => encodeURIComponent(String(singleValue))) - .join(`&${encodeURIComponent(fullKey)}=`); - return `${encodeURIComponent(fullKey)}=${multiValue}`; - } - if (value instanceof Set) { - const valueAsArray = Array.from(value); - return querystringSingleKey(key, valueAsArray, keyPrefix); - } - if (value instanceof Date) { - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; - } - if (value instanceof Object) { - return querystring(value as HTTPQuery, fullKey); - } - return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +function querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array | Set | HTTPQuery, keyPrefix: string = ''): string { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value as HTTPQuery, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; } export function exists(json: any, key: string) { - const value = json[key]; - return value !== null && value !== undefined; + const value = json[key]; + return value !== null && value !== undefined; } export function mapValues(data: any, fn: (item: any) => any) { return Object.keys(data).reduce( (acc, key) => ({ ...acc, [key]: fn(data[key]) }), - {}, + {} ); } export function canConsumeForm(consumes: Consume[]): boolean { - for (const consume of consumes) { - if ("multipart/form-data" === consume.contentType) { - return true; + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } } - } - return false; + return false; } export interface Consume { - contentType: string; + contentType: string; } export interface RequestContext { - fetch: FetchAPI; - url: string; - init: RequestInit; + fetch: FetchAPI; + url: string; + init: RequestInit; } export interface ResponseContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - response: Response; + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; } export interface ErrorContext { - fetch: FetchAPI; - url: string; - init: RequestInit; - error: unknown; - response?: Response; + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; } export interface Middleware { - pre?(context: RequestContext): Promise; - post?(context: ResponseContext): Promise; - onError?(context: ErrorContext): Promise; + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; } export interface ApiResponse { - raw: Response; - value(): Promise; + raw: Response; + value(): Promise; } export interface ResponseTransformer { - (json: any): T; + (json: any): T; } export class JSONApiResponse { - constructor( - public raw: Response, - private transformer: ResponseTransformer = (jsonValue: any) => jsonValue, - ) {} + constructor(public raw: Response, private transformer: ResponseTransformer = (jsonValue: any) => jsonValue) {} - async value(): Promise { - return this.transformer(await this.raw.json()); - } + async value(): Promise { + return this.transformer(await this.raw.json()); + } } export class VoidApiResponse { - constructor(public raw: Response) {} + constructor(public raw: Response) {} - async value(): Promise { - return undefined; - } + async value(): Promise { + return undefined; + } } export class BlobApiResponse { - constructor(public raw: Response) {} + constructor(public raw: Response) {} - async value(): Promise { - return await this.raw.blob(); - } + async value(): Promise { + return await this.raw.blob(); + }; } export class TextApiResponse { - constructor(public raw: Response) {} + constructor(public raw: Response) {} - async value(): Promise { - return await this.raw.text(); - } + async value(): Promise { + return await this.raw.text(); + }; } diff --git a/packages/continue-sdk/typescript/api/tsconfig.json b/packages/continue-sdk/typescript/api/tsconfig.json index e69c9c2f7..250280d9a 100644 --- a/packages/continue-sdk/typescript/api/tsconfig.json +++ b/packages/continue-sdk/typescript/api/tsconfig.json @@ -5,7 +5,12 @@ "module": "commonjs", "moduleResolution": "node", "outDir": "dist", - "typeRoots": ["node_modules/@types"] + "typeRoots": [ + "node_modules/@types" + ] }, - "exclude": ["dist", "node_modules"] + "exclude": [ + "dist", + "node_modules" + ] } diff --git a/packages/continue-sdk/typescript/build.sh b/packages/continue-sdk/typescript/build.sh index 17b564e35..af5c95441 100755 --- a/packages/continue-sdk/typescript/build.sh +++ b/packages/continue-sdk/typescript/build.sh @@ -4,7 +4,7 @@ cd api && npm run build cd .. # Build the SDK -tsc +npx tsc # Create the necessary directory structure in dist mkdir -p dist/api/dist diff --git a/packages/continue-sdk/typescript/package-lock.json b/packages/continue-sdk/typescript/package-lock.json index 5eb8e7999..0e5fb590f 100644 --- a/packages/continue-sdk/typescript/package-lock.json +++ b/packages/continue-sdk/typescript/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/sdk", - "version": "0.0.7", + "version": "0.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/sdk", - "version": "0.0.7", + "version": "0.0.12", "license": "Apache-2.0", "dependencies": { "openai": "^4.96.2" diff --git a/packages/continue-sdk/typescript/tsconfig.json b/packages/continue-sdk/typescript/tsconfig.json index 14c7265d1..a21b3f5b6 100644 --- a/packages/continue-sdk/typescript/tsconfig.json +++ b/packages/continue-sdk/typescript/tsconfig.json @@ -7,7 +7,6 @@ "strict": true, "outDir": "dist", "declaration": true, - "types": ["node", "jest"], "skipLibCheck": true, "isolatedModules": true }, From 107dae9c62cd2712088369c75d8ab07a9dda67bb Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 15 Jul 2025 18:01:56 -0700 Subject: [PATCH 16/64] bump sdk version --- packages/continue-sdk/typescript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/continue-sdk/typescript/package.json b/packages/continue-sdk/typescript/package.json index 1d0544e9d..7b67a3219 100644 --- a/packages/continue-sdk/typescript/package.json +++ b/packages/continue-sdk/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/sdk", - "version": "0.0.12", + "version": "0.0.13", "description": "SDK for Continue.dev", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", From f2c0357b2ffcde5c6caf93c29b1cf365e65d6773 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 16 Jul 2025 18:04:59 +0530 Subject: [PATCH 17/64] fix: double slash on opening hub urls --- core/core.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core.ts b/core/core.ts index 915099a3e..dc6651eaa 100644 --- a/core/core.ts +++ b/core/core.ts @@ -359,7 +359,10 @@ export class Core { on("controlPlane/openUrl", async (msg) => { const env = await getControlPlaneEnv(this.ide.getIdeSettings()); - let url = `${env.APP_URL}${msg.data.path}`; + const urlPath = msg.data.path.startsWith("/") + ? msg.data.path.slice(1) + : msg.data.path; + let url = `${env.APP_URL}${urlPath}`; if (msg.data.orgSlug) { url += `?org=${msg.data.orgSlug}`; } From 87d55c5b4d9e5ec662a19018ee2cb4bbeb433070 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 16 Jul 2025 16:08:06 -0700 Subject: [PATCH 18/64] fix: test fix for fetch package and publish version with improved error logging --- packages/fetch/package-lock.json | 4 ++-- packages/fetch/package.json | 2 +- packages/fetch/src/stream.test.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/fetch/package-lock.json b/packages/fetch/package-lock.json index b832b32fd..a9a4742ff 100644 --- a/packages/fetch/package-lock.json +++ b/packages/fetch/package-lock.json @@ -1,12 +1,12 @@ { "name": "@continuedev/fetch", - "version": "1.0.15", + "version": "1.0.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/fetch", - "version": "1.0.15", + "version": "1.0.16", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.5", diff --git a/packages/fetch/package.json b/packages/fetch/package.json index 5cd0a38e4..b50a7ce84 100644 --- a/packages/fetch/package.json +++ b/packages/fetch/package.json @@ -1,6 +1,6 @@ { "name": "@continuedev/fetch", - "version": "1.0.15", + "version": "1.0.16", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/fetch/src/stream.test.ts b/packages/fetch/src/stream.test.ts index eba47de26..d52221954 100644 --- a/packages/fetch/src/stream.test.ts +++ b/packages/fetch/src/stream.test.ts @@ -86,7 +86,7 @@ describe("parseDataLine", () => { test("parseDataLine should throw error when data contains error field", () => { const line = 'data: {"error":"something went wrong"}'; expect(() => parseDataLine(line)).toThrow( - "Error streaming response: something went wrong", + 'Error streaming response: "something went wrong"', ); }); From 0ecf32c37d1d94eefc6a07daaaac547f94e13662 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 16 Jul 2025 16:11:53 -0700 Subject: [PATCH 19/64] bump fetch version in openai-adapters, but don't publish a stable release of openai-adapters --- packages/openai-adapters/package-lock.json | 9 ++++----- packages/openai-adapters/package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/openai-adapters/package-lock.json b/packages/openai-adapters/package-lock.json index 97d95ef12..c168a46cd 100644 --- a/packages/openai-adapters/package-lock.json +++ b/packages/openai-adapters/package-lock.json @@ -13,7 +13,7 @@ "@aws-sdk/credential-providers": "^3.840.0", "@continuedev/config-types": "^1.0.5", "@continuedev/config-yaml": "^1.0.51", - "@continuedev/fetch": "^1.0.15", + "@continuedev/fetch": "^1.0.16", "dotenv": "^16.5.0", "json-schema": "^0.4.0", "node-fetch": "^3.3.2", @@ -1418,10 +1418,9 @@ } }, "node_modules/@continuedev/fetch": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.0.15.tgz", - "integrity": "sha512-49jLwAwAOczcFLfa2Og9+c+qxrq+Z6+p+B5BbXgHENrQIsuST1liKTXEiga5gSVAyHD+m+1Ftl4jqRq2oxMngw==", - "license": "Apache-2.0", + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.0.16.tgz", + "integrity": "sha512-LSjVbTKA+UwqCjV8x45sfJQGtG/iekkqCYpSJsakY0ruad807swwEuuui5luuYVUhJAZZpVfZzeJArHfjiJJSw==", "dependencies": { "@continuedev/config-types": "^1.0.5", "follow-redirects": "^1.15.6", diff --git a/packages/openai-adapters/package.json b/packages/openai-adapters/package.json index f7c7d3133..11aedc4c5 100644 --- a/packages/openai-adapters/package.json +++ b/packages/openai-adapters/package.json @@ -16,7 +16,7 @@ "@aws-sdk/credential-providers": "^3.840.0", "@continuedev/config-types": "^1.0.5", "@continuedev/config-yaml": "^1.0.51", - "@continuedev/fetch": "^1.0.15", + "@continuedev/fetch": "^1.0.16", "dotenv": "^16.5.0", "json-schema": "^0.4.0", "node-fetch": "^3.3.2", From eba3a3e65acb40aa837655635cee07d6a1c6f061 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 17 Jul 2025 16:57:38 +0200 Subject: [PATCH 20/64] remove duplicate getWorkspaceConfigs logic and only load for json --- core/config/load.ts | 30 ++++++++++++++++++- core/config/profile/doLoadConfig.ts | 21 ------------- core/config/types.ts | 2 -- core/index.d.ts | 2 -- core/protocol/ide.ts | 2 -- core/protocol/messenger/messageIde.ts | 5 ---- core/protocol/messenger/reverseMessageIde.ts | 4 --- core/util/filesystem.ts | 5 ---- .../constants/MessageTypes.kt | 1 - .../continue/IdeProtocolClient.kt | 5 ---- .../continue/IntelliJIde.kt | 23 -------------- .../continueintellijextension/types.kt | 12 -------- extensions/vscode/src/VsCodeIde.ts | 27 ----------------- .../vscode/src/extension/VsCodeMessenger.ts | 4 --- 14 files changed, 29 insertions(+), 114 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index a5da010f9..0836fc13b 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -19,6 +19,7 @@ import { ContinueRcJson, CustomContextProvider, EmbeddingsProviderDescription, + FileType, IContextProvider, IDE, IdeInfo, @@ -64,6 +65,7 @@ import { localPathToUri } from "../util/pathToUri"; import { getToolsForIde } from "../tools"; import { resolveRelativePathInDir } from "../util/ideUtils"; +import { joinPathsToUri } from "../util/uri"; import { modifyAnyConfigWithSharedConfig } from "./sharedConfig"; import { getModelByRole, @@ -72,6 +74,32 @@ import { } from "./util"; import { validateConfig } from "./validation.js"; +async function getWorkspaceRcConfigs(ide: IDE): Promise { + try { + const workspaces = await ide.getWorkspaceDirs(); + const rcFiles = await Promise.all( + workspaces.map(async (dir) => { + const ls = await ide.listDir(dir); + const rcFiles = ls + .filter( + (entry) => + (entry[1] === FileType.File || + entry[1] === FileType.SymbolicLink) && + entry[0].endsWith(".continuerc.json"), + ) + .map((entry) => joinPathsToUri(dir, entry[0])); + return await Promise.all(rcFiles.map(ide.readFile)); + }), + ); + return rcFiles + .flat() + .map((file) => JSONC.parse(file) as unknown as ContinueRcJson); + } catch (e) { + console.debug("Failed to load workspace configs: ", e); + return []; + } +} + export function resolveSerializedConfig( filepath: string, ): SerializedContinueConfig { @@ -876,7 +904,6 @@ async function buildConfigTsandReadConfigJs(ide: IDE, ideType: IdeType) { async function loadContinueConfigFromJson( ide: IDE, - workspaceConfigs: ContinueRcJson[], ideSettings: IdeSettings, ideInfo: IdeInfo, uniqueId: string, @@ -884,6 +911,7 @@ async function loadContinueConfigFromJson( workOsAccessToken: string | undefined, overrideConfigJson: SerializedContinueConfig | undefined, ): Promise> { + const workspaceConfigs = await getWorkspaceRcConfigs(ide); // Serialized config let { config: serialized, diff --git a/core/config/profile/doLoadConfig.ts b/core/config/profile/doLoadConfig.ts index 1a5d27ab9..8407154e7 100644 --- a/core/config/profile/doLoadConfig.ts +++ b/core/config/profile/doLoadConfig.ts @@ -10,7 +10,6 @@ import { import { ContinueConfig, - ContinueRcJson, IDE, IdeSettings, ILLMLogger, @@ -86,7 +85,6 @@ export default async function doLoadConfig(options: { packageIdentifier, } = options; - const workspaceConfigs = await getWorkspaceConfigs(ide); const ideInfo = await ide.getIdeInfo(); const uniqueId = await ide.getUniqueId(); const ideSettings = await ideSettingsPromise; @@ -126,7 +124,6 @@ export default async function doLoadConfig(options: { } else { const result = await loadContinueConfigFromJson( ide, - workspaceConfigs, ideSettings, ideInfo, uniqueId, @@ -366,21 +363,3 @@ async function injectControlPlaneProxyInfo( return config; } - -async function getWorkspaceConfigs(ide: IDE): Promise { - const ideInfo = await ide.getIdeInfo(); - let workspaceConfigs: ContinueRcJson[] = []; - - try { - workspaceConfigs = await ide.getWorkspaceConfigs(); - - // Config is sent over the wire from JB so we need to parse it - if (ideInfo.ideType === "jetbrains") { - workspaceConfigs = (workspaceConfigs as any).map(JSON.parse); - } - } catch (e) { - console.debug("Failed to load workspace configs: ", e); - } - - return workspaceConfigs; -} diff --git a/core/config/types.ts b/core/config/types.ts index 406f40ddd..c5ec3b45a 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -682,8 +682,6 @@ declare global { getWorkspaceDirs(): Promise; - getWorkspaceConfigs(): Promise; - fileExists(filepath: string): Promise; writeFile(path: string, contents: string): Promise; diff --git a/core/index.d.ts b/core/index.d.ts index a32e5532f..3358b6085 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -775,8 +775,6 @@ export interface IDE { getWorkspaceDirs(): Promise; - getWorkspaceConfigs(): Promise; - fileExists(fileUri: string): Promise; writeFile(path: string, contents: string): Promise; diff --git a/core/protocol/ide.ts b/core/protocol/ide.ts index ba4cf4f88..b3cfe1164 100644 --- a/core/protocol/ide.ts +++ b/core/protocol/ide.ts @@ -1,5 +1,4 @@ import type { - ContinueRcJson, FileStatsMap, FileType, IDE, @@ -51,7 +50,6 @@ export type ToIdeFromWebviewOrCoreProtocol = { showLines: [{ filepath: string; startLine: number; endLine: number }, void]; readRangeInFile: [{ filepath: string; range: Range }, string]; getDiff: [{ includeUnstaged: boolean }, string[]]; - getWorkspaceConfigs: [undefined, ContinueRcJson[]]; getTerminalContents: [undefined, string]; getDebugLocals: [{ threadIndex: number }, string]; getTopLevelCallStackSources: [ diff --git a/core/protocol/messenger/messageIde.ts b/core/protocol/messenger/messageIde.ts index 30d9b8177..5cc5d6787 100644 --- a/core/protocol/messenger/messageIde.ts +++ b/core/protocol/messenger/messageIde.ts @@ -2,7 +2,6 @@ import { FromIdeProtocol } from ".."; import { ToIdeFromWebviewOrCoreProtocol } from "../ide"; import type { - ContinueRcJson, FileStatsMap, FileType, IDE, @@ -114,10 +113,6 @@ export class MessageIde implements IDE { return this.request("getUniqueId", undefined); } - getWorkspaceConfigs(): Promise { - return this.request("getWorkspaceConfigs", undefined); - } - async getDiff(includeUnstaged: boolean) { return await this.request("getDiff", { includeUnstaged }); } diff --git a/core/protocol/messenger/reverseMessageIde.ts b/core/protocol/messenger/reverseMessageIde.ts index ba37c610d..9ce82db54 100644 --- a/core/protocol/messenger/reverseMessageIde.ts +++ b/core/protocol/messenger/reverseMessageIde.ts @@ -89,10 +89,6 @@ export class ReverseMessageIde { return this.ide.getUniqueId(); }); - this.on("getWorkspaceConfigs", () => { - return this.ide.getWorkspaceConfigs(); - }); - this.on("getIdeSettings", () => { return this.ide.getIdeSettings(); }); diff --git a/core/util/filesystem.ts b/core/util/filesystem.ts index f415e5e86..7075d75d5 100644 --- a/core/util/filesystem.ts +++ b/core/util/filesystem.ts @@ -2,7 +2,6 @@ import * as fs from "node:fs"; import { fileURLToPath } from "node:url"; import { - ContinueRcJson, FileStatsMap, FileType, IDE, @@ -135,10 +134,6 @@ class FileSystemIde implements IDE { return Promise.resolve("NOT_UNIQUE"); } - getWorkspaceConfigs(): Promise { - return Promise.resolve([]); - } - getDiff(includeUnstaged: boolean): Promise { return Promise.resolve([]); } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt index d9eb5f62d..55b39d344 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt @@ -6,7 +6,6 @@ class MessageTypes { "readRangeInFile", "isTelemetryEnabled", "getUniqueId", - "getWorkspaceConfigs", "getDiff", "getTerminalContents", "getWorkspaceDirs", diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt index 08a5e8d18..9a916a014 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IdeProtocolClient.kt @@ -192,11 +192,6 @@ class IdeProtocolClient( respond(tags) } - "getWorkspaceConfigs" -> { - val configs = ide.getWorkspaceConfigs() - respond(configs) - } - "getTerminalContents" -> { val contents = ide.getTerminalContents() respond(contents) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt index e1b6624d1..0d1cdd9a8 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt @@ -152,29 +152,6 @@ class IntelliJIDE( return workspaceDirectories().toList() } - override suspend fun getWorkspaceConfigs(): List { - val workspaceDirs = this.getWorkspaceDirs() - - val configs = mutableListOf() - - for (workspaceDir in workspaceDirs) { - val dir = VirtualFileManager.getInstance().findFileByUrl(workspaceDir) - if (dir != null) { - val contents = dir.children.mapNotNull { it.toUriOrNull() } - - // Find any .continuerc.json files - for (file in contents) { - if (file.endsWith(".continuerc.json")) { - val fileContent = UriUtils.uriToFile(file).readText() - configs.add(fileContent) - } - } - } - } - - return configs as List - } - override suspend fun fileExists(filepath: String): Boolean { val file = UriUtils.uriToFile(filepath) return file.exists() diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt index dae734881..852196bfa 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt @@ -16,11 +16,6 @@ enum class FileType(val value: Int) { SYMBOLIC_LINK(64) } -enum class ConfigMergeType { - MERGE, - OVERWRITE -} - data class Position(val line: Int, val character: Int) data class Range(val start: Position, val end: Position) @@ -86,11 +81,6 @@ data class IdeSettings( val continueTestEnvironment: String ) -data class ContinueRcJson( - val mergeBehavior: ConfigMergeType -) - - interface IDE { suspend fun getIdeInfo(): IdeInfo @@ -119,8 +109,6 @@ interface IDE { suspend fun getWorkspaceDirs(): List - suspend fun getWorkspaceConfigs(): List - suspend fun fileExists(filepath: String): Boolean suspend fun writeFile(path: String, contents: String) diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index 91fb6154b..ca49014cf 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -14,7 +14,6 @@ import { getExtensionUri, openEditorAndRevealRange } from "./util/vscode"; import { VsCodeWebviewProtocol } from "./webviewProtocol"; import type { - ContinueRcJson, FileStatsMap, FileType, IDE, @@ -240,32 +239,6 @@ class VsCodeIde implements IDE { return await this.ideUtils.getAvailableThreads(); } - async getWorkspaceConfigs() { - const workspaceDirs = - vscode.workspace.workspaceFolders?.map((folder) => folder.uri) || []; - const configs: ContinueRcJson[] = []; - for (const workspaceDir of workspaceDirs) { - const files = await this.ideUtils.readDirectory(workspaceDir); - if (files === null) { - //Unlikely, but just in case... - continue; - } - for (const [filename, type] of files) { - if ( - (type === vscode.FileType.File || - type === vscode.FileType.SymbolicLink) && - filename === ".continuerc.json" - ) { - const contents = await this.readFile( - vscode.Uri.joinPath(workspaceDir, filename).toString(), - ); - configs.push(JSON.parse(contents)); - } - } - } - return configs; - } - async getWorkspaceDirs(): Promise { return this.ideUtils.getWorkspaceDirectories().map((uri) => uri.toString()); } diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 430c4fff1..41336cd24 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -418,10 +418,6 @@ export class VsCodeMessenger { return await ide.isTelemetryEnabled(); }); - this.onWebviewOrCore("getWorkspaceConfigs", async (msg) => { - return await ide.getWorkspaceConfigs(); - }); - this.onWebviewOrCore("getUniqueId", async (msg) => { return await ide.getUniqueId(); }); From f1f4d1f09d7563546b98accc2763899c150909d2 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 18 Jul 2025 22:38:55 +0530 Subject: [PATCH 21/64] chore: add unit tests for file click on codeblock --- .../CodeBlock/CodeBlockPreview.test.tsx | 83 +++++++++++++++++++ .../extensions/CodeBlock/CodeBlockPreview.tsx | 2 +- 2 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.test.tsx diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.test.tsx b/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.test.tsx new file mode 100644 index 000000000..8478b56e5 --- /dev/null +++ b/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.test.tsx @@ -0,0 +1,83 @@ +import { screen } from "@testing-library/react"; +import { NodeViewProps } from "@tiptap/react"; +import { ContextItemWithId } from "core"; +import { beforeEach, describe, it, vi } from "vitest"; +import { renderWithProviders } from "../../../../../util/test/render"; +import { CodeBlockPreview } from "./CodeBlockPreview"; + +const postIde = vi.fn(); + +vi.mock("../../../../../context/MockIdeMessenger", async (importOriginal) => { + const original = (await importOriginal()) as any; + return { + ...original, + MockIdeMessenger: class MockedMockIdeMessenger extends original.MockIdeMessenger { + post(...args: any[]) { + postIde(...args); + } + }, + }; +}); + +describe("CodeBlockPreview", () => { + const createMockContextItem = ( + overrides: Partial = {}, + ): ContextItemWithId => ({ + content: "console.log('test');", + name: "test.ts", + description: "Test file", + id: { + providerTitle: "file", + itemId: "test-item-id", + }, + uri: { + type: "file", + value: "/test/test.ts", + }, + ...overrides, + }); + + const createMockNodeViewProps = ( + item: ContextItemWithId, + selected = false, + ): NodeViewProps => ({ + node: { + attrs: { + item, + }, + } as any, + view: {} as any, + getPos: vi.fn(() => 0), + innerDecorations: {} as any, + editor: {} as any, + extension: {} as any, + HTMLAttributes: {}, + decorations: [] as any, + selected, + updateAttributes: vi.fn(), + deleteNode: vi.fn(), + }); + + beforeEach(async () => { + vi.clearAllMocks(); + }); + + it("opens file when title is clicked", async () => { + const item = createMockContextItem({ + id: { providerTitle: "file", itemId: "test-id" }, + uri: { type: "file", value: "/test/file.ts" }, + name: "test.ts", + }); + const props = createMockNodeViewProps(item); + + await renderWithProviders(); + + const title = screen.getByText("test.ts"); + title.click(); + + expect(postIde).toHaveBeenCalled(); + expect(postIde).toHaveBeenCalledWith("showFile", { + filepath: "/test/file.ts", + }); + }); +}); diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.tsx b/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.tsx index b81a8c05f..f0a640a22 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.tsx +++ b/gui/src/components/mainInput/TipTapEditor/extensions/CodeBlock/CodeBlockPreview.tsx @@ -42,7 +42,7 @@ export const CodeBlockPreview = ({ }); } else if (item.id.providerTitle === "code") { const rif = ctxItemToRifWithContents(item, true); - ideMessenger.ide.showLines( + void ideMessenger.ide.showLines( rif.filepath, rif.range.start.line, rif.range.end.line, From ff5e7092dddd36ad746d1b5b524a0c9d5c47d0f2 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 20 Jul 2025 10:14:14 +0200 Subject: [PATCH 22/64] feat: onlyUseSystemMessageTools experimental setting --- core/config/sharedConfig.ts | 6 ++++++ core/config/types.ts | 1 - core/index.d.ts | 1 + gui/src/pages/config/UserSettingsForm.tsx | 12 ++++++++++++ gui/src/pages/gui/StreamError.tsx | 2 -- 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/core/config/sharedConfig.ts b/core/config/sharedConfig.ts index c720f4272..8412c71b7 100644 --- a/core/config/sharedConfig.ts +++ b/core/config/sharedConfig.ts @@ -21,6 +21,7 @@ export const sharedConfigSchema = z useCurrentFileAsContext: z.boolean(), optInNextEditFeature: z.boolean(), enableExperimentalTools: z.boolean(), + onlyUseSystemMessageTools: z.boolean(), codebaseToolCallingOnly: z.boolean(), // `ui` in `ContinueConfig` @@ -184,6 +185,11 @@ export function modifyAnyConfigWithSharedConfig< configCopy.experimental.optInNextEditFeature = sharedConfig.optInNextEditFeature; } + if (sharedConfig.onlyUseSystemMessageTools !== undefined) { + configCopy.experimental.onlyUseSystemMessageTools = + sharedConfig.onlyUseSystemMessageTools; + } + if (sharedConfig.codebaseToolCallingOnly !== undefined) { configCopy.experimental.codebaseToolCallingOnly = sharedConfig.codebaseToolCallingOnly; diff --git a/core/config/types.ts b/core/config/types.ts index 406f40ddd..0c2a7cd70 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -1122,7 +1122,6 @@ declare global { * This is needed to crawl a large number of documentation sites that are dynamically rendered. */ useChromiumForDocsCrawling?: boolean; - useTools?: boolean; modelContextProtocolServers?: MCPOptions[]; } diff --git a/core/index.d.ts b/core/index.d.ts index c2bc7487b..980048ef4 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1443,6 +1443,7 @@ export interface ExperimentalConfig { defaultContext?: DefaultContextProvider[]; promptPath?: string; enableExperimentalTools?: boolean; + onlyUseSystemMessageTools?: boolean; /** * Quick actions are a way to add custom commands to the Code Lens of diff --git a/gui/src/pages/config/UserSettingsForm.tsx b/gui/src/pages/config/UserSettingsForm.tsx index 9eea8003b..eb4d30d1f 100644 --- a/gui/src/pages/config/UserSettingsForm.tsx +++ b/gui/src/pages/config/UserSettingsForm.tsx @@ -88,6 +88,8 @@ export function UserSettingsForm() { config.experimental?.useCurrentFileAsContext ?? false; const enableExperimentalTools = config.experimental?.enableExperimentalTools ?? false; + const onlyUseSystemMessageTools = + config.experimental?.onlyUseSystemMessageTools ?? false; const optInNextEditFeature = config.experimental?.optInNextEditFeature ?? false; const codebaseToolCallingOnly = @@ -419,6 +421,16 @@ export function UserSettingsForm() { text="Enable experimental tools" /> + + handleUpdate({ + onlyUseSystemMessageTools: !onlyUseSystemMessageTools, + }) + } + text="Only use system message tools" + /> + diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index 58fcaf97b..a49e5f795 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -246,8 +246,6 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { ); } - console.log({ message }); - return (
{/* Concise error title */} From dde117e471299c34bab98b4e1c1ab06ee3e6034d Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Sun, 20 Jul 2025 10:22:43 +0200 Subject: [PATCH 23/64] feat: warning for models not great with tools --- core/llm/autodetect.ts | 20 +---- core/llm/toolSupport.ts | 29 +++++++ gui/src/components/ModeSelect/ModeSelect.tsx | 87 +++++++++++-------- .../StepContainer/ResponseActions.tsx | 4 +- gui/src/components/mainInput/InputToolbar.tsx | 6 +- gui/src/redux/thunks/streamNormalInput.ts | 4 +- 6 files changed, 86 insertions(+), 64 deletions(-) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index a220b5dbd..92693456d 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -1,9 +1,4 @@ -import { - ChatMessage, - ModelCapability, - ModelDescription, - TemplateType, -} from "../index.js"; +import { ChatMessage, ModelCapability, TemplateType } from "../index.js"; import { anthropicTemplateMessages, @@ -41,7 +36,6 @@ import { xWinCoderEditPrompt, zephyrEditPrompt, } from "./templates/edit.js"; -import { PROVIDER_TOOL_SUPPORT } from "./toolSupport.js"; const PROVIDER_HANDLES_TEMPLATING: string[] = [ "lmstudio", @@ -107,17 +101,6 @@ const MODEL_SUPPORTS_IMAGES: string[] = [ "granite-vision", ]; -function modelSupportsTools(modelDescription: ModelDescription) { - if (modelDescription.capabilities?.tools !== undefined) { - return modelDescription.capabilities.tools; - } - const providerSupport = PROVIDER_TOOL_SUPPORT[modelDescription.provider]; - if (!providerSupport) { - return false; - } - return providerSupport(modelDescription.model) ?? false; -} - function modelSupportsImages( provider: string, model: string, @@ -400,5 +383,4 @@ export { autodetectTemplateType, llmCanGenerateInParallel, modelSupportsImages, - modelSupportsTools, }; diff --git a/core/llm/toolSupport.ts b/core/llm/toolSupport.ts index ccaf906ce..f1eb14ad4 100644 --- a/core/llm/toolSupport.ts +++ b/core/llm/toolSupport.ts @@ -1,4 +1,5 @@ import { parseProxyModelName } from "@continuedev/config-yaml"; +import { ModelDescription } from ".."; export const PROVIDER_TOOL_SUPPORT: Record boolean> = { @@ -287,3 +288,31 @@ export const PROVIDER_TOOL_SUPPORT: Record boolean> = return false; }, }; + +export function isRecommendedAgentModel(modelName: string): boolean { + // AND behavior + const recs: RegExp[][] = [ + [/o[134]/], + [/deepseek/, /r1|reasoner/], + [/gemini/, /2\.5/, /pro/], + [/gpt/, /4/], + [/claude/, /sonnet/, /3\.5|3\.7|3-5|3-7|-4/], + [/claude/, /opus/, /-4/], + ]; + for (const combo of recs) { + if (combo.every((regex) => modelName.toLowerCase().match(regex))) { + return true; + } + } + return false; +} +export function modelSupportsNativeTools(modelDescription: ModelDescription) { + if (modelDescription.capabilities?.tools !== undefined) { + return modelDescription.capabilities.tools; + } + const providerSupport = PROVIDER_TOOL_SUPPORT[modelDescription.provider]; + if (!providerSupport) { + return false; + } + return providerSupport(modelDescription.model) ?? false; +} diff --git a/gui/src/components/ModeSelect/ModeSelect.tsx b/gui/src/components/ModeSelect/ModeSelect.tsx index b7bc81c2e..caffe9181 100644 --- a/gui/src/components/ModeSelect/ModeSelect.tsx +++ b/gui/src/components/ModeSelect/ModeSelect.tsx @@ -1,10 +1,12 @@ import { CheckIcon, ChevronDownIcon, + ExclamationCircleIcon, InformationCircleIcon, } from "@heroicons/react/24/outline"; import { MessageModes } from "core"; -import { modelSupportsTools } from "core/llm/autodetect"; +import { isRecommendedAgentModel } from "core/llm/toolSupport"; +import { capitalize } from "lodash"; import { useCallback, useEffect, useMemo } from "react"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; @@ -19,24 +21,17 @@ export function ModeSelect() { const dispatch = useAppDispatch(); const mode = useAppSelector((store) => store.session.mode); const selectedModel = useAppSelector(selectSelectedChatModel); - const agentModeSupported = useMemo(() => { - return selectedModel && modelSupportsTools(selectedModel); + const showAgentModeWarning = useMemo(() => { + if (!selectedModel || isRecommendedAgentModel(selectedModel.model)) { + return false; // no need to show warning if no model is selected + } + return true; }, [selectedModel]); const { mainEditor } = useMainEditor(); const metaKeyLabel = useMemo(() => { return getMetaKeyLabel(); }, []); - // Switch to chat mode if agent mode is selected but not supported - useEffect(() => { - if (!selectedModel) { - return; - } - if (mode !== "chat" && !agentModeSupported) { - dispatch(setMode("chat")); - } - }, [mode, agentModeSupported, dispatch, selectedModel]); - const cycleMode = useCallback(() => { if (mode === "chat") { dispatch(setMode("plan")); @@ -76,6 +71,37 @@ export function ModeSelect() { return () => document.removeEventListener("keydown", handleKeyDown); }, [cycleMode]); + const agentWarning = ( + <> + + + {`${capitalize(mode)} might not work well with this model.`} + {/* can't seem to make link in tooltip clickable. globalCloseEvents or closeEvents? */} + {/* { + ideMessenger.post( + "openUrl", + "https://docs.continue.dev/agent/model-setup", + ); + }} + className="text-link cursor-pointer" + > + See docs + */} + + + ); + return (
@@ -117,11 +143,7 @@ export function ModeSelect() {
{mode === "chat" && } - +
Plan @@ -138,19 +160,13 @@ export function ModeSelect() { Read-only/MCP tools available
- {agentModeSupported ? ( - - ) : ( - (Not supported) - )} + {showAgentModeWarning && agentWarning} +
- + +
Agent @@ -167,13 +183,10 @@ export function ModeSelect() { All tools available
- {agentModeSupported ? ( - - ) : ( - (Not supported) - )} + {showAgentModeWarning && agentWarning} +
diff --git a/gui/src/components/StepContainer/ResponseActions.tsx b/gui/src/components/StepContainer/ResponseActions.tsx index 068432792..0dc09a438 100644 --- a/gui/src/components/StepContainer/ResponseActions.tsx +++ b/gui/src/components/StepContainer/ResponseActions.tsx @@ -5,7 +5,7 @@ import { TrashIcon, } from "@heroicons/react/24/outline"; import { ChatHistoryItem } from "core"; -import { modelSupportsTools } from "core/llm/autodetect"; +import { modelSupportsNativeTools } from "core/llm/toolSupport"; import { renderChatMessage } from "core/util/messageContent"; import { useMemo } from "react"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; @@ -41,7 +41,7 @@ export default function ResponseActions({ ); const isPruned = useAppSelector((state) => state.session.isPruned); const ruleGenerationSupported = useMemo(() => { - return selectedModel && modelSupportsTools(selectedModel); + return selectedModel && modelSupportsNativeTools(selectedModel); }, [selectedModel]); const percent = Math.round((contextPercentage ?? 0) * 100); diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 9be9f25d9..f97c7d101 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -4,7 +4,7 @@ import { PhotoIcon, } from "@heroicons/react/24/outline"; import { InputModifiers } from "core"; -import { modelSupportsImages, modelSupportsTools } from "core/llm/autodetect"; +import { modelSupportsImages } from "core/llm/autodetect"; import { useContext, useRef } from "react"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; @@ -57,8 +57,6 @@ function InputToolbar(props: InputToolbarProps) { const isEnterDisabled = props.disabled || (isInEdit && codeToEdit.length === 0); - const toolsSupported = defaultModel && modelSupportsTools(defaultModel); - const supportsImages = defaultModel && modelSupportsImages( @@ -174,7 +172,7 @@ function InputToolbar(props: InputToolbarProps) { {!isInEdit && } {!props.toolbarOptions?.hideUseCodebase && !isInEdit && ( - {showAgentModeWarning && agentWarning} - + {isAgentSupported ? ( + <> + {!isGoodAtAgentMode && notGreatAtAgent} + + + ) : ( + notSupported + )} @@ -183,10 +201,16 @@ export function ModeSelect() { All tools available
- {showAgentModeWarning && agentWarning} - + {isAgentSupported ? ( + <> + {!isGoodAtAgentMode && notGreatAtAgent} + + + ) : ( + notSupported + )}
From 74dd75a15920d775f0b8cf7605deb72447a0e48a Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 23 Jul 2025 22:29:18 -0700 Subject: [PATCH 37/64] fix edit tool by adjusting prompt to say "diffs" instead of "diff" --- .../definitions/searchAndReplaceInFile.ts | 2 +- .../complexToolCall.vitest.ts | 304 ++++++++++++++++++ gui/src/util/clientTools/searchReplaceImpl.ts | 45 ++- 3 files changed, 346 insertions(+), 5 deletions(-) create mode 100644 core/tools/systemMessageTools/complexToolCall.vitest.ts diff --git a/core/tools/definitions/searchAndReplaceInFile.ts b/core/tools/definitions/searchAndReplaceInFile.ts index aa12e7c72..96dac65da 100644 --- a/core/tools/definitions/searchAndReplaceInFile.ts +++ b/core/tools/definitions/searchAndReplaceInFile.ts @@ -104,7 +104,7 @@ ${SEARCH_AND_REPLACE_RULES} [ ["filepath", "path/to/file.ts"], [ - "diff", + "diffs", `[ "------- SEARCH [exact content to find] diff --git a/core/tools/systemMessageTools/complexToolCall.vitest.ts b/core/tools/systemMessageTools/complexToolCall.vitest.ts new file mode 100644 index 000000000..954427ee2 --- /dev/null +++ b/core/tools/systemMessageTools/complexToolCall.vitest.ts @@ -0,0 +1,304 @@ +import { beforeEach, describe, expect, it } from "vitest"; +import { AssistantChatMessage, ChatMessage, PromptLog } from "../.."; +import { interceptSystemToolCalls } from "./interceptSystemToolCalls"; + +describe("interceptSystemToolCalls - Complex Tool Call Test", () => { + let abortController: AbortController; + + beforeEach(() => { + abortController = new AbortController(); + }); + + const createAsyncGenerator = async function* ( + messages: ChatMessage[][], + ): AsyncGenerator { + for (const messageGroup of messages) { + yield messageGroup; + } + return undefined; + }; + + function isAssistantMessageWithToolCalls( + message: ChatMessage, + ): message is AssistantChatMessage { + return ( + message.role === "assistant" && + "toolCalls" in message && + message.toolCalls !== undefined && + message.toolCalls.length > 0 + ); + } + + async function collectAllResults( + generator: AsyncGenerator, + ): Promise { + const results: ChatMessage[][] = []; + while (true) { + const result = await generator.next(); + if (result.done) break; + if (result.value) results.push(result.value); + } + return results; + } + + it("handles complex multi-line tool arguments with nested content and special characters", async () => { + // This test case is based on the example.txt which has complex nested content + // that includes JSON arrays, code blocks, escape characters, and the word "assistant" + const complexDiffContent = `I'll add an exp method to the Calculator class in test.js. This method will raise the current result to the power of a given number. + +\`\`\`tool +TOOL_NAME: search_and_replace_in_file +BEGIN_ARG: filepath +test.js +END_ARG +BEGIN_ARG: diff +[ +"------- SEARCH + /** + * Divide the current result by a number + * @param {number} number - The number to divide by + * @ +assistant +returns {Calculator} - Returns this instance for method chaining + * @throws {Error} - Throws error if attempting to divide by zero + */ + divide(number) { + if (number === 0) { + throw new Error(\"Cannot divide by zero\"); + } + this.result /= number; + return this; + } + +======= + /** + * Divide the current result by a number + * @param {number} number - The number to +assistant + divide by + * @returns {Calculator} - Returns this instance for method chaining + * @throws {Error} - Throws error if attempting to divide by zero + */ + divide(number) { + if (number === 0) { + throw new Error(\"Cannot divide by zero\"); + } + this.result /= number; + return this; + } + + /** + * Raise the current result to the power of a number + * +assistant + @param {number} number - The exponent to raise to + * @returns {Calculator} - Returns this instance for method chaining + */ + exp(number) { + this.result = Math.pow(this.result, number); + return this; + } + ++++++++ REPLACE" +] +END_ARG +\`\`\``; + + const messages: ChatMessage[][] = [ + [ + { + role: "assistant", + content: + "I'll add an exp method to the Calculator class in test.js.\n\n", + }, + ], + [{ role: "assistant", content: "```tool\n" }], + [ + { + role: "assistant", + content: "TOOL_NAME: search_and_replace_in_file\n", + }, + ], + [{ role: "assistant", content: "BEGIN_ARG: filepath\n" }], + [{ role: "assistant", content: "test.js\n" }], + [{ role: "assistant", content: "END_ARG\n" }], + [{ role: "assistant", content: "BEGIN_ARG: diffs\n" }], + [{ role: "assistant", content: complexDiffContent }], + [{ role: "assistant", content: "\nEND_ARG\n" }], + [{ role: "assistant", content: "```" }], + ]; + + const generator = interceptSystemToolCalls( + createAsyncGenerator(messages), + abortController, + ); + + const allResults = await collectAllResults(generator); + + // Should have processed intro text + expect(allResults[0]).toEqual([ + { + role: "assistant", + content: [ + { + type: "text", + text: "I'll add an exp method to the Calculator class in test.js.", + }, + ], + }, + ]); + + // Should have detected and parsed the tool call + const toolCallResults = allResults.filter( + (r): r is AssistantChatMessage[] => + r && r[0] && isAssistantMessageWithToolCalls(r[0]), + ); + + expect(toolCallResults.length).toBeGreaterThan(0); + + // Tool name should be correct + const toolNameResult = toolCallResults.find( + (r) => + r[0].toolCalls?.[0]?.function?.name === "search_and_replace_in_file", + ); + expect(toolNameResult).toBeTruthy(); + + // Reconstruct the full arguments from all deltas + let fullArgs = ""; + for (const toolResult of toolCallResults) { + fullArgs += toolResult[0].toolCalls?.[0]?.function?.arguments || ""; + } + + console.log("Full args reconstructed:", fullArgs); + + // Should be valid JSON + expect(() => JSON.parse(fullArgs)).not.toThrow(); + + const parsed = JSON.parse(fullArgs); + expect(parsed.filepath).toBe("test.js"); + expect(parsed.diffs).toBeTruthy(); + + // The diffs should contain the complex content including special markers + const diffContent1 = + typeof parsed.diffs === "string" + ? parsed.diffs + : JSON.stringify(parsed.diffs); + expect(diffContent1).toContain("SEARCH"); + expect(diffContent1).toContain("REPLACE"); + expect(diffContent1).toContain("Cannot divide by zero"); + expect(diffContent1).toContain("assistant"); // Word should be preserved in content + }); + + it("handles arguments with embedded JSON and special escape sequences", async () => { + // Test with JSON array containing embedded quotes and backslashes + const jsonArrayContent = `["first item", "second \\"quoted\\" item", "third\\nitem"]`; + + const messages: ChatMessage[][] = [ + [{ role: "assistant", content: "```tool\n" }], + [{ role: "assistant", content: "TOOL_NAME: test_tool\n" }], + [{ role: "assistant", content: "BEGIN_ARG: json_array\n" }], + [{ role: "assistant", content: jsonArrayContent }], + [{ role: "assistant", content: "\nEND_ARG\n" }], + [{ role: "assistant", content: "```" }], + ]; + + const generator = interceptSystemToolCalls( + createAsyncGenerator(messages), + abortController, + ); + + const allResults = await collectAllResults(generator); + + // Should have parsed the tool call + const toolCallResults = allResults.filter( + (r): r is AssistantChatMessage[] => + r && r[0] && isAssistantMessageWithToolCalls(r[0]), + ); + + expect(toolCallResults.length).toBeGreaterThan(0); + + // Reconstruct the full arguments + let fullArgs = ""; + for (const toolResult of toolCallResults) { + fullArgs += toolResult[0].toolCalls?.[0]?.function?.arguments || ""; + } + + // Should be valid JSON + expect(() => JSON.parse(fullArgs)).not.toThrow(); + + const parsed = JSON.parse(fullArgs); + expect(parsed.json_array).toBeTruthy(); + + // The parsed array should be correct + const arrayValue = + typeof parsed.json_array === "string" + ? JSON.parse(parsed.json_array) + : parsed.json_array; + + expect(Array.isArray(arrayValue)).toBe(true); + expect(arrayValue).toHaveLength(3); + expect(arrayValue[0]).toBe("first item"); + expect(arrayValue[1]).toBe('second "quoted" item'); + expect(arrayValue[2]).toBe("third\nitem"); + }); + + it("simulates the exact user scenario that causes parsing issues", async () => { + // This simulates the exact scenario from example.txt that was causing issues + const userProblemDiff = `[ +"------- SEARCH + /** + * Divide the current result by a number + * @param {number} number - The number to divide by + * @returns {Calculator} - Returns this instance for method chaining + * @throws {Error} - Throws error if attempting to divide by zero + */ + divide(number) { + if (number === 0) { + throw new Error(\"Cannot divide by zero\"); + } + this.result /= number; + return this; + } +======= + /** + * Divide the current result by a number + * @param {number} number - The number to divide by + * @returns {Calculator} - Returns this instance for method chaining + * @throws {Error} - Throws error if attempting to divide by zero + */ + divide(number) { + if (number === 0) { + throw new Error(\"Cannot divide by zero\"); + } + this.result /= number; + return this; + } + + /** + * Raise the current result to the power of a number + * @param {number} number - The exponent to raise to + * @returns {Calculator} - Returns this instance for method chaining + */ + exp(number) { + this.result = Math.pow(this.result, number); + return this; + } ++++++++ REPLACE" +]`; + + // Test that the JSON string can be properly parsed and used + let parsed; + expect(() => { + parsed = JSON.parse(userProblemDiff); + }).not.toThrow(); + + expect(Array.isArray(parsed)).toBe(true); + expect(parsed!.length).toBe(1); + + const diffContent = parsed![0]; + expect(diffContent).toContain("------- SEARCH"); + expect(diffContent).toContain("======="); + expect(diffContent).toContain("+++++++ REPLACE"); + expect(diffContent).toContain("Cannot divide by zero"); + }); +}); diff --git a/gui/src/util/clientTools/searchReplaceImpl.ts b/gui/src/util/clientTools/searchReplaceImpl.ts index 1fcf649e5..bdd04a5e7 100644 --- a/gui/src/util/clientTools/searchReplaceImpl.ts +++ b/gui/src/util/clientTools/searchReplaceImpl.ts @@ -10,13 +10,45 @@ export const searchReplaceToolImpl: ClientToolImpl = async ( toolCallId, extras, ) => { - const { filepath, diffs } = args; + const { filepath } = args; + let { diffs } = args; + + // Handle legacy parameter name and system message tools edge cases + if (!diffs && (args as any).diff) { + diffs = (args as any).diff; + } + + if (!diffs) { + throw new Error("Missing required parameter: diffs (or diff)"); + } const state = extras.getState(); const allowAnonymousTelemetry = state.config.config.allowAnonymousTelemetry; const streamId = uuid(); + // Handle the case where system message tools provide diffs as a JSON string + // instead of an actual array (due to JSON parsing/stringifying in system message tools) + let processedDiffs: string[]; + if (typeof diffs === "string") { + try { + const parsed = JSON.parse(diffs); + if (Array.isArray(parsed)) { + processedDiffs = parsed; + } else { + processedDiffs = [diffs]; + } + } catch (e) { + processedDiffs = [diffs]; + } + } else if (Array.isArray(diffs)) { + processedDiffs = diffs; + } else { + throw new Error( + "diffs parameter must be an array of strings or a JSON string representing an array", + ); + } + // Resolve the file path const resolvedFilepath = await resolveRelativePathInDir( filepath, @@ -28,11 +60,16 @@ export const searchReplaceToolImpl: ClientToolImpl = async ( // Parse all search/replace blocks from all diff strings const allBlocks = []; - for (let diffIndex = 0; diffIndex < diffs.length; diffIndex++) { - const blocks = parseAllSearchReplaceBlocks(diffs[diffIndex]); + for (let diffIndex = 0; diffIndex < processedDiffs.length; diffIndex++) { + const blocks = parseAllSearchReplaceBlocks(processedDiffs[diffIndex]); if (blocks.length === 0) { throw new Error( - `No complete search/replace blocks found in diff ${diffIndex + 1}`, + `No complete search/replace blocks found in diff ${diffIndex + 1}. Each diff must contain at least one complete SEARCH/REPLACE block with the format: +------- SEARCH +[content to find] +======= +[replacement content] ++++++++ REPLACE`, ); } allBlocks.push(...blocks); From 96780f5abf6437daccfb6d92bcfa1131ee912196 Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 23 Jul 2025 23:03:57 -0700 Subject: [PATCH 38/64] remove comments --- manual-testing-sandbox/test.js | 37 +--------------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/manual-testing-sandbox/test.js b/manual-testing-sandbox/test.js index 0e60af4e0..44c55402e 100644 --- a/manual-testing-sandbox/test.js +++ b/manual-testing-sandbox/test.js @@ -1,50 +1,23 @@ -/** - * Calculator class for performing basic arithmetic operations - * Uses method chaining to allow consecutive operations - */ class Calculator { - /** - * Initialize calculator with result set to 0 - */ constructor() { this.result = 0; } - /** - * Add a number to the current result - * @param {number} number - The number to add - * @returns {Calculator} - Returns this instance for method chaining - */ add(number) { this.result += number; return this; } - /** - * Subtract a number from the current result - * @param {number} number - The number to subtract - * @returns {Calculator} - Returns this instance for method chaining - */ subtract(number) { + this.result -= number; return this; } - /** - * Multiply the current result by a number - * @param {number} number - The number to multiply by - * @returns {Calculator} - Returns this instance for method chaining - */ multiply(number) { this.result *= number; return this; } - /** - * Divide the current result by a number - * @param {number} number - The number to divide by - * @returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ divide(number) { if (number === 0) { throw new Error("Cannot divide by zero"); @@ -53,18 +26,10 @@ class Calculator { return this; } - /** - * Get the current result value - * @returns {number} - The current result - */ getResult() { return this.result; } - /** - * Reset the result to 0 - * @returns {Calculator} - Returns this instance for method chaining - */ reset() { this.result = 0; return this; From 85ba04a4c7d8b4db19ffda4a5a6e66678bf534ea Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 23 Jul 2025 23:27:34 -0700 Subject: [PATCH 39/64] improve error message for failed read file tool --- core/tools/implementations/readFile.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/tools/implementations/readFile.ts b/core/tools/implementations/readFile.ts index a026d0f47..ae8964445 100644 --- a/core/tools/implementations/readFile.ts +++ b/core/tools/implementations/readFile.ts @@ -10,7 +10,9 @@ export const readFileImpl: ToolImpl = async (args, extras) => { const firstUriMatch = await resolveRelativePathInDir(filepath, extras.ide); if (!firstUriMatch) { - throw new Error(`Could not find file ${filepath}`); + throw new Error( + `File "${filepath}" does not exist. You might want to check the path and try again.`, + ); } const content = await extras.ide.readFile(firstUriMatch); From ec9d3157bb3d4413db982fd84eb3bb3d85301eab Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 24 Jul 2025 19:06:42 +0700 Subject: [PATCH 40/64] fix: system message tools array args for search and replace tool --- .../definitions/searchAndReplaceInFile.ts | 2 +- .../systemMessageTools/parseSystemToolCall.ts | 21 ++++++++++- .../parseSystemToolCall.vitest.ts | 32 ++++++++++++++++ manual-testing-sandbox/test.js | 37 ------------------- 4 files changed, 53 insertions(+), 39 deletions(-) diff --git a/core/tools/definitions/searchAndReplaceInFile.ts b/core/tools/definitions/searchAndReplaceInFile.ts index aa12e7c72..96dac65da 100644 --- a/core/tools/definitions/searchAndReplaceInFile.ts +++ b/core/tools/definitions/searchAndReplaceInFile.ts @@ -104,7 +104,7 @@ ${SEARCH_AND_REPLACE_RULES} [ ["filepath", "path/to/file.ts"], [ - "diff", + "diffs", `[ "------- SEARCH [exact content to find] diff --git a/core/tools/systemMessageTools/parseSystemToolCall.ts b/core/tools/systemMessageTools/parseSystemToolCall.ts index 74dc6f470..0300654d9 100644 --- a/core/tools/systemMessageTools/parseSystemToolCall.ts +++ b/core/tools/systemMessageTools/parseSystemToolCall.ts @@ -87,12 +87,31 @@ export function handleToolCallBuffer( if (isNewLine) { const isEndArgTag = line.match(/end_?arg/i); if (isEndArgTag) { - const trimmedValue = state.currentArgLines.join("").trim(); + let trimmedValue = state.currentArgLines.join("").trim(); state.currentArgLines.length = 0; state.processedArgNames.add(state.currentArgName); state.currentArgName = undefined; try { + if ( + trimmedValue.startsWith("[") || + trimmedValue.startsWith("{") + ) { + trimmedValue = trimmedValue.replace( + /"((?:\\[\s\S]|[^"\\])*?)"/g, + (match) => { + const content = match.slice(1, -1); + // Replace unescaped newlines + return ( + '"' + + content + .replace(/([^\\])\n/g, "$1\\n") + .replace(/^\n/g, "\\n") + + '"' + ); + }, + ); + } const parsed = JSON.parse(trimmedValue); const stringifiedArg = JSON.stringify(parsed); return createDelta("", stringifiedArg, state.toolCallId); diff --git a/core/tools/systemMessageTools/parseSystemToolCall.vitest.ts b/core/tools/systemMessageTools/parseSystemToolCall.vitest.ts index 436e3fa6e..2aeac2ce8 100644 --- a/core/tools/systemMessageTools/parseSystemToolCall.vitest.ts +++ b/core/tools/systemMessageTools/parseSystemToolCall.vitest.ts @@ -266,4 +266,36 @@ describe("handleToolCallBuffer", () => { }); expect(state.done).toBe(true); }); + + it("handles JSON array args", () => { + state.currentLineIndex = 3; + state.currentArgName = "test_arg"; + state.currentArgLines = [ + "[\n", + '"------- SEARCH\n', + " subtract(number) {\n", + " return this;\n", + " }\n", + "=======\n", + " subtract(number) {\n", + " this -= number\n", + " return this;\n", + " }\n", + '+++++++ REPLACE"\n', + "]\n", + ]; + + handleToolCallBuffer("END_ARG", state); + const newLineResult = handleToolCallBuffer("\n", state); + + expect(newLineResult).toEqual({ + type: "function", + function: { + name: "", + arguments: + '["------- SEARCH\\n subtract(number) {\\n return this;\\n }\\n=======\\n subtract(number) {\\n this -= number\\n return this;\\n }\\n+++++++ REPLACE"]', + }, + id: expect.any(String), + }); + }); }); diff --git a/manual-testing-sandbox/test.js b/manual-testing-sandbox/test.js index 0e60af4e0..d2920d6af 100644 --- a/manual-testing-sandbox/test.js +++ b/manual-testing-sandbox/test.js @@ -1,50 +1,21 @@ -/** - * Calculator class for performing basic arithmetic operations - * Uses method chaining to allow consecutive operations - */ class Calculator { - /** - * Initialize calculator with result set to 0 - */ constructor() { this.result = 0; } - /** - * Add a number to the current result - * @param {number} number - The number to add - * @returns {Calculator} - Returns this instance for method chaining - */ add(number) { this.result += number; return this; } - - /** - * Subtract a number from the current result - * @param {number} number - The number to subtract - * @returns {Calculator} - Returns this instance for method chaining - */ subtract(number) { return this; } - /** - * Multiply the current result by a number - * @param {number} number - The number to multiply by - * @returns {Calculator} - Returns this instance for method chaining - */ multiply(number) { this.result *= number; return this; } - /** - * Divide the current result by a number - * @param {number} number - The number to divide by - * @returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ divide(number) { if (number === 0) { throw new Error("Cannot divide by zero"); @@ -53,18 +24,10 @@ class Calculator { return this; } - /** - * Get the current result value - * @returns {number} - The current result - */ getResult() { return this.result; } - /** - * Reset the result to 0 - * @returns {Calculator} - Returns this instance for method chaining - */ reset() { this.result = 0; return this; From 3adf4b62a7019936f578cdcd1d72015827858b24 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 24 Jul 2025 19:12:21 +0700 Subject: [PATCH 41/64] chore: revert duplicate fix logic for search and replace array args --- .../complexToolCall.vitest.ts | 304 ------------------ gui/src/util/clientTools/searchReplaceImpl.ts | 45 +-- 2 files changed, 4 insertions(+), 345 deletions(-) delete mode 100644 core/tools/systemMessageTools/complexToolCall.vitest.ts diff --git a/core/tools/systemMessageTools/complexToolCall.vitest.ts b/core/tools/systemMessageTools/complexToolCall.vitest.ts deleted file mode 100644 index 954427ee2..000000000 --- a/core/tools/systemMessageTools/complexToolCall.vitest.ts +++ /dev/null @@ -1,304 +0,0 @@ -import { beforeEach, describe, expect, it } from "vitest"; -import { AssistantChatMessage, ChatMessage, PromptLog } from "../.."; -import { interceptSystemToolCalls } from "./interceptSystemToolCalls"; - -describe("interceptSystemToolCalls - Complex Tool Call Test", () => { - let abortController: AbortController; - - beforeEach(() => { - abortController = new AbortController(); - }); - - const createAsyncGenerator = async function* ( - messages: ChatMessage[][], - ): AsyncGenerator { - for (const messageGroup of messages) { - yield messageGroup; - } - return undefined; - }; - - function isAssistantMessageWithToolCalls( - message: ChatMessage, - ): message is AssistantChatMessage { - return ( - message.role === "assistant" && - "toolCalls" in message && - message.toolCalls !== undefined && - message.toolCalls.length > 0 - ); - } - - async function collectAllResults( - generator: AsyncGenerator, - ): Promise { - const results: ChatMessage[][] = []; - while (true) { - const result = await generator.next(); - if (result.done) break; - if (result.value) results.push(result.value); - } - return results; - } - - it("handles complex multi-line tool arguments with nested content and special characters", async () => { - // This test case is based on the example.txt which has complex nested content - // that includes JSON arrays, code blocks, escape characters, and the word "assistant" - const complexDiffContent = `I'll add an exp method to the Calculator class in test.js. This method will raise the current result to the power of a given number. - -\`\`\`tool -TOOL_NAME: search_and_replace_in_file -BEGIN_ARG: filepath -test.js -END_ARG -BEGIN_ARG: diff -[ -"------- SEARCH - /** - * Divide the current result by a number - * @param {number} number - The number to divide by - * @ -assistant -returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ - divide(number) { - if (number === 0) { - throw new Error(\"Cannot divide by zero\"); - } - this.result /= number; - return this; - } - -======= - /** - * Divide the current result by a number - * @param {number} number - The number to -assistant - divide by - * @returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ - divide(number) { - if (number === 0) { - throw new Error(\"Cannot divide by zero\"); - } - this.result /= number; - return this; - } - - /** - * Raise the current result to the power of a number - * -assistant - @param {number} number - The exponent to raise to - * @returns {Calculator} - Returns this instance for method chaining - */ - exp(number) { - this.result = Math.pow(this.result, number); - return this; - } - -+++++++ REPLACE" -] -END_ARG -\`\`\``; - - const messages: ChatMessage[][] = [ - [ - { - role: "assistant", - content: - "I'll add an exp method to the Calculator class in test.js.\n\n", - }, - ], - [{ role: "assistant", content: "```tool\n" }], - [ - { - role: "assistant", - content: "TOOL_NAME: search_and_replace_in_file\n", - }, - ], - [{ role: "assistant", content: "BEGIN_ARG: filepath\n" }], - [{ role: "assistant", content: "test.js\n" }], - [{ role: "assistant", content: "END_ARG\n" }], - [{ role: "assistant", content: "BEGIN_ARG: diffs\n" }], - [{ role: "assistant", content: complexDiffContent }], - [{ role: "assistant", content: "\nEND_ARG\n" }], - [{ role: "assistant", content: "```" }], - ]; - - const generator = interceptSystemToolCalls( - createAsyncGenerator(messages), - abortController, - ); - - const allResults = await collectAllResults(generator); - - // Should have processed intro text - expect(allResults[0]).toEqual([ - { - role: "assistant", - content: [ - { - type: "text", - text: "I'll add an exp method to the Calculator class in test.js.", - }, - ], - }, - ]); - - // Should have detected and parsed the tool call - const toolCallResults = allResults.filter( - (r): r is AssistantChatMessage[] => - r && r[0] && isAssistantMessageWithToolCalls(r[0]), - ); - - expect(toolCallResults.length).toBeGreaterThan(0); - - // Tool name should be correct - const toolNameResult = toolCallResults.find( - (r) => - r[0].toolCalls?.[0]?.function?.name === "search_and_replace_in_file", - ); - expect(toolNameResult).toBeTruthy(); - - // Reconstruct the full arguments from all deltas - let fullArgs = ""; - for (const toolResult of toolCallResults) { - fullArgs += toolResult[0].toolCalls?.[0]?.function?.arguments || ""; - } - - console.log("Full args reconstructed:", fullArgs); - - // Should be valid JSON - expect(() => JSON.parse(fullArgs)).not.toThrow(); - - const parsed = JSON.parse(fullArgs); - expect(parsed.filepath).toBe("test.js"); - expect(parsed.diffs).toBeTruthy(); - - // The diffs should contain the complex content including special markers - const diffContent1 = - typeof parsed.diffs === "string" - ? parsed.diffs - : JSON.stringify(parsed.diffs); - expect(diffContent1).toContain("SEARCH"); - expect(diffContent1).toContain("REPLACE"); - expect(diffContent1).toContain("Cannot divide by zero"); - expect(diffContent1).toContain("assistant"); // Word should be preserved in content - }); - - it("handles arguments with embedded JSON and special escape sequences", async () => { - // Test with JSON array containing embedded quotes and backslashes - const jsonArrayContent = `["first item", "second \\"quoted\\" item", "third\\nitem"]`; - - const messages: ChatMessage[][] = [ - [{ role: "assistant", content: "```tool\n" }], - [{ role: "assistant", content: "TOOL_NAME: test_tool\n" }], - [{ role: "assistant", content: "BEGIN_ARG: json_array\n" }], - [{ role: "assistant", content: jsonArrayContent }], - [{ role: "assistant", content: "\nEND_ARG\n" }], - [{ role: "assistant", content: "```" }], - ]; - - const generator = interceptSystemToolCalls( - createAsyncGenerator(messages), - abortController, - ); - - const allResults = await collectAllResults(generator); - - // Should have parsed the tool call - const toolCallResults = allResults.filter( - (r): r is AssistantChatMessage[] => - r && r[0] && isAssistantMessageWithToolCalls(r[0]), - ); - - expect(toolCallResults.length).toBeGreaterThan(0); - - // Reconstruct the full arguments - let fullArgs = ""; - for (const toolResult of toolCallResults) { - fullArgs += toolResult[0].toolCalls?.[0]?.function?.arguments || ""; - } - - // Should be valid JSON - expect(() => JSON.parse(fullArgs)).not.toThrow(); - - const parsed = JSON.parse(fullArgs); - expect(parsed.json_array).toBeTruthy(); - - // The parsed array should be correct - const arrayValue = - typeof parsed.json_array === "string" - ? JSON.parse(parsed.json_array) - : parsed.json_array; - - expect(Array.isArray(arrayValue)).toBe(true); - expect(arrayValue).toHaveLength(3); - expect(arrayValue[0]).toBe("first item"); - expect(arrayValue[1]).toBe('second "quoted" item'); - expect(arrayValue[2]).toBe("third\nitem"); - }); - - it("simulates the exact user scenario that causes parsing issues", async () => { - // This simulates the exact scenario from example.txt that was causing issues - const userProblemDiff = `[ -"------- SEARCH - /** - * Divide the current result by a number - * @param {number} number - The number to divide by - * @returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ - divide(number) { - if (number === 0) { - throw new Error(\"Cannot divide by zero\"); - } - this.result /= number; - return this; - } -======= - /** - * Divide the current result by a number - * @param {number} number - The number to divide by - * @returns {Calculator} - Returns this instance for method chaining - * @throws {Error} - Throws error if attempting to divide by zero - */ - divide(number) { - if (number === 0) { - throw new Error(\"Cannot divide by zero\"); - } - this.result /= number; - return this; - } - - /** - * Raise the current result to the power of a number - * @param {number} number - The exponent to raise to - * @returns {Calculator} - Returns this instance for method chaining - */ - exp(number) { - this.result = Math.pow(this.result, number); - return this; - } -+++++++ REPLACE" -]`; - - // Test that the JSON string can be properly parsed and used - let parsed; - expect(() => { - parsed = JSON.parse(userProblemDiff); - }).not.toThrow(); - - expect(Array.isArray(parsed)).toBe(true); - expect(parsed!.length).toBe(1); - - const diffContent = parsed![0]; - expect(diffContent).toContain("------- SEARCH"); - expect(diffContent).toContain("======="); - expect(diffContent).toContain("+++++++ REPLACE"); - expect(diffContent).toContain("Cannot divide by zero"); - }); -}); diff --git a/gui/src/util/clientTools/searchReplaceImpl.ts b/gui/src/util/clientTools/searchReplaceImpl.ts index bdd04a5e7..1fcf649e5 100644 --- a/gui/src/util/clientTools/searchReplaceImpl.ts +++ b/gui/src/util/clientTools/searchReplaceImpl.ts @@ -10,45 +10,13 @@ export const searchReplaceToolImpl: ClientToolImpl = async ( toolCallId, extras, ) => { - const { filepath } = args; - let { diffs } = args; - - // Handle legacy parameter name and system message tools edge cases - if (!diffs && (args as any).diff) { - diffs = (args as any).diff; - } - - if (!diffs) { - throw new Error("Missing required parameter: diffs (or diff)"); - } + const { filepath, diffs } = args; const state = extras.getState(); const allowAnonymousTelemetry = state.config.config.allowAnonymousTelemetry; const streamId = uuid(); - // Handle the case where system message tools provide diffs as a JSON string - // instead of an actual array (due to JSON parsing/stringifying in system message tools) - let processedDiffs: string[]; - if (typeof diffs === "string") { - try { - const parsed = JSON.parse(diffs); - if (Array.isArray(parsed)) { - processedDiffs = parsed; - } else { - processedDiffs = [diffs]; - } - } catch (e) { - processedDiffs = [diffs]; - } - } else if (Array.isArray(diffs)) { - processedDiffs = diffs; - } else { - throw new Error( - "diffs parameter must be an array of strings or a JSON string representing an array", - ); - } - // Resolve the file path const resolvedFilepath = await resolveRelativePathInDir( filepath, @@ -60,16 +28,11 @@ export const searchReplaceToolImpl: ClientToolImpl = async ( // Parse all search/replace blocks from all diff strings const allBlocks = []; - for (let diffIndex = 0; diffIndex < processedDiffs.length; diffIndex++) { - const blocks = parseAllSearchReplaceBlocks(processedDiffs[diffIndex]); + for (let diffIndex = 0; diffIndex < diffs.length; diffIndex++) { + const blocks = parseAllSearchReplaceBlocks(diffs[diffIndex]); if (blocks.length === 0) { throw new Error( - `No complete search/replace blocks found in diff ${diffIndex + 1}. Each diff must contain at least one complete SEARCH/REPLACE block with the format: -------- SEARCH -[content to find] -======= -[replacement content] -+++++++ REPLACE`, + `No complete search/replace blocks found in diff ${diffIndex + 1}`, ); } allBlocks.push(...blocks); From 8bc81c106b48179410b9a014e640bd62156e888d Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 24 Jul 2025 09:01:23 -0700 Subject: [PATCH 42/64] fix tool calls stopping after failure --- gui/src/redux/thunks/streamResponseAfterToolCall.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index ed16b5a5a..cd49cab0b 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -24,7 +24,7 @@ function areAllToolsDoneStreaming( // Only continue if all tool calls are complete const completedToolCalls = assistantMessage.toolCallStates.filter( - (tc) => tc.status === "done", + (tc) => tc.status === "done" || tc.status === "errored", ); return completedToolCalls.length === assistantMessage.toolCallStates.length; From 4d321345573468e9174b159e37c9deac1e339ed3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 24 Jul 2025 23:49:41 +0700 Subject: [PATCH 43/64] fix: broken types --- gui/src/components/mainInput/Lump/EditBlockButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/Lump/EditBlockButton.tsx b/gui/src/components/mainInput/Lump/EditBlockButton.tsx index 5705deba2..19780e875 100644 --- a/gui/src/components/mainInput/Lump/EditBlockButton.tsx +++ b/gui/src/components/mainInput/Lump/EditBlockButton.tsx @@ -11,7 +11,7 @@ type SectionKey = Exclude< interface EditBlockButtonProps { blockType: T; - block?: NonNullable[number]; + block?: NonNullable[T]>[number]; className?: string; sourceFile?: string; } From 173f9bf5bba4ebc323324bb1b072a4b1348c7398 Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Mon, 28 Jul 2025 08:22:58 -0700 Subject: [PATCH 44/64] chore: bump version numbers --- extensions/intellij/gradle.properties | 2 +- extensions/vscode/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index eba9d9a65..9f5727c17 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -3,7 +3,7 @@ pluginGroup=com.github.continuedev.continueintellijextension pluginName=continue-intellij-extension pluginRepositoryUrl=https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion=1.0.32 +pluginVersion=1.0.33 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=223 # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 84548ae67..a3ca3a6b7 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.1.68", + "version": "1.1.69", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 076ff3efc1bf2fa7f4908b15d014cccd7db87501 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 28 Jul 2025 09:04:13 -0700 Subject: [PATCH 46/64] chore: ignore `max-lines-per-function` in tests (#6825) * chore: ignore `max-lines-per-function` in tests * Update package-lock.json --- core/.eslintrc.json | 8 +++++++- extensions/vscode/package-lock.json | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/.eslintrc.json b/core/.eslintrc.json index 7b4563436..e028c1460 100644 --- a/core/.eslintrc.json +++ b/core/.eslintrc.json @@ -22,7 +22,13 @@ }, "overrides": [ { - "files": ["**/*.vitest.ts"], + "files": [ + "**/*.test.ts", + "**/*.test.tsx", + "**/*.spec.ts", + "**/*.spec.tsx", + "**/*.vitest.ts" + ], "rules": { "max-lines-per-function": "off" } diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 8780ab1e2..3768befe3 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.63", + "version": "1.1.68", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.63", + "version": "1.1.68", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", From 3b200458af809e1b90ea9fe866e902711281d99d Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Mon, 28 Jul 2025 10:18:47 -0700 Subject: [PATCH 47/64] refactor: rename renderDeletes to renderDeletions --- extensions/vscode/src/activation/NextEditWindowManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/vscode/src/activation/NextEditWindowManager.ts b/extensions/vscode/src/activation/NextEditWindowManager.ts index 5c432d0e6..89c3c1d57 100644 --- a/extensions/vscode/src/activation/NextEditWindowManager.ts +++ b/extensions/vscode/src/activation/NextEditWindowManager.ts @@ -311,7 +311,7 @@ export class NextEditWindowManager { const diffChars = myersCharDiff(oldEditRangeSlice, newEditRangeSlice); - this.renderDeletes(editor, diffChars); + this.renderDeletions(editor, diffChars); // Reserve tab and esc to either accept or reject the displayed next edit contents. await NextEditWindowManager.reserveTabAndEsc(); @@ -787,7 +787,7 @@ export class NextEditWindowManager { ); } - private renderDeletes(editor: vscode.TextEditor, oldDiffChars: DiffChar[]) { + private renderDeletions(editor: vscode.TextEditor, oldDiffChars: DiffChar[]) { const charsToDelete: vscode.DecorationOptions[] = []; // const diffChars = myersCharDiff(oldEditRangeSlice, newEditRangeSlice); From 685ff71a6cf2fbd965bd594c923ed4a9b5b4ac9e Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 10:40:43 -0700 Subject: [PATCH 48/64] Add Ollama OpenAI adapter support --- packages/openai-adapters/src/index.ts | 3 +++ packages/openai-adapters/src/types.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/packages/openai-adapters/src/index.ts b/packages/openai-adapters/src/index.ts index 07f849f33..588372229 100644 --- a/packages/openai-adapters/src/index.ts +++ b/packages/openai-adapters/src/index.ts @@ -28,6 +28,7 @@ function openAICompatible( return new OpenAIApi({ ...config, apiBase: config.apiBase ?? apiBase, + apiKey: config.apiKey ?? "api-key", }); } @@ -113,6 +114,8 @@ export function constructLlmApi(config: LLMConfig): BaseLlmApi | undefined { return openAICompatible("http://localhost:8000/", config); case "lmstudio": return openAICompatible("http://localhost:1234/", config); + case "ollama": + return openAICompatible("http://localhost:11434/v1/", config); case "mock": return new MockApi(); default: diff --git a/packages/openai-adapters/src/types.ts b/packages/openai-adapters/src/types.ts index 6786ec812..f8747653e 100644 --- a/packages/openai-adapters/src/types.ts +++ b/packages/openai-adapters/src/types.ts @@ -46,6 +46,7 @@ export const OpenAIConfigSchema = BasePlusConfig.extend({ z.literal("llama.cpp"), z.literal("llamafile"), z.literal("lmstudio"), + z.literal("ollama"), z.literal("cerebras"), z.literal("kindo"), z.literal("msty"), From 5f647afdf2f81a56a8c236746b1e0de39c925f3d Mon Sep 17 00:00:00 2001 From: Jakub Blach Date: Mon, 28 Jul 2025 18:47:53 +0200 Subject: [PATCH 49/64] fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tests use fixtures and operate on real files in a temp directory. This change will allow us to confidently migrate from java.io.File to VFS. Note: These tests are headless and starts the Continue binary. This gives us many possibilities because we can write fast and valuable tests without runIdeForUiTests. The IntelliJ Platform plugin already includes classes like BasePlatformTestCase written in JUnit 3, which we should be using for unit testing. We also have JUnit 5 for e2e testing. As a result, we had two different runners, which caused problems because we couldn’t use classes like UsefulTest since they required a different runner. In order to fix that, I had to add `org.junit.vintage:junit-vintage-engine` to enable running both JUnit 3 and JUnit 5 tests. Note: ideally, we should have a sourceSet named testIntegration with its own dependencies for E2E (robot, JUnit 5, video recorder). That would give us a clean separation between E2E tests and unit tests. That would prevent accidental use of JUnit 5 classes in unit tests. We should do that in the future. The new platform simplifies plugin config and allows us to remove some of the custom code. I left the original Qodana and Kover configs, but looking at our workflow, i think it's currently dead code. If we don’t plan to use them, I think we can remove these dependencies in the future. Note: along with this migration, I had to bump a wrapper to latest version. For some reason, we included the Kotlin standard library with the plugin, even though we had a property specifying we didn’t want to. I saw no objections to removing this dependency, so I decided to do that. From now on, we rely on older stdlib that's bundled with 2022.3+. More context: https://github.com/continuedev/continue/pull/6431#issuecomment-3031838189 This proves my point regarding the removal of the standard library dependency. I added plugin verification against versions 2022.3.3 (oldest) and 2025.1.4 (newest). Everything is working. Plugin can be verified with `./gradlew verifyPlugin`. We can consider adding this to CI later. I made a few small improvements that simplify the build scripts: * Some properties were removed because they duplicated content from `plugin.xml` (e.g., supported version numbers, plugin ID, and similar - all were unnecessarily overridden inside `intellij {}`/`intellijPlatform {}`). * I replaced `prepareSandbox` with a separate task that is now a dependency of all `runIde` tasks, so there is no need to declare each case individually. * From now on, properties are read via delegation instead of calling our custom `properties(...)` function. This is type-safe (if a property is not declared, the build will fail). * I removed the `kotlin("test")` dependency, which we were only using for `assertTrue`. The e2e Autocomplete tests are very flaky, and unfortunately, I haven’t been able to find a solution yet. I will try to address this in upcoming fixes. I believe that ultimately we should have max one e2e test describing the happy path, and the rest of the features should be tested with unit tests. Our e2e tests are very inconvenient, which results in no one running them (because we hijack the input), so they should be kept to a minimum. The rest of the e2e tests were already disabled (I assume I know why :D), so I didn't touch them. Fun fact: with the removal of the standard library, we managed to remove all unnecessary dependencies except for Sentry and PostHog (which are included for obvious reasons). --- .idea/kotlinc.xml | 2 +- extensions/intellij/CONTRIBUTING.md | 17 ++ extensions/intellij/build.gradle.kts | 179 ++++++++---------- extensions/intellij/gradle.properties | 17 -- .../gradle/wrapper/gradle-wrapper.jar | Bin 63721 -> 43462 bytes .../gradle/wrapper/gradle-wrapper.properties | 3 +- extensions/intellij/gradlew | 14 +- .../continue/IntelliJIde.kt | 62 +----- .../continue/file/FileUtils.kt | 69 +++++++ .../src/main/resources/META-INF/plugin.xml | 3 - .../unit/ApplyToFileHandlerTest.kt | 11 +- .../unit/CheckFimTest.kt | 23 +-- .../unit/FileUtilsTest.kt | 77 ++++++++ .../unit/UriUtilsTest.kt | 44 ++--- 14 files changed, 285 insertions(+), 236 deletions(-) create mode 100644 extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/file/FileUtils.kt create mode 100644 extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/FileUtilsTest.kt diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index fdf8d994a..2b8a50fc2 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,6 +1,6 @@ - \ No newline at end of file diff --git a/extensions/intellij/CONTRIBUTING.md b/extensions/intellij/CONTRIBUTING.md index b345af3a5..b0c436a1a 100644 --- a/extensions/intellij/CONTRIBUTING.md +++ b/extensions/intellij/CONTRIBUTING.md @@ -110,6 +110,23 @@ You can selectively increase the log granularity (e.g., debug-level logs) as fol You can find more information about this feature in [official docs](https://youtrack.jetbrains.com/articles/SUPPORT-A-43/How-to-enable-debug-logging-in-IntelliJ-IDEA). +### Developing `build.plugin.kts` + +If in doubt, check out the +official [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template). +These templates are the most up-to-date examples of how to correctly customize the plugin build scripts. + +Also, check out +the [useful recipes](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-recipes.html) +for common problems. + +### Adding new extensions in `plugin.xml` + +There's a tool called [JetBrains Platform Explorer](https://plugins.jetbrains.com/intellij-platform-explorer) that +aggregates plugin metadata and allows you to filter by specific +extension points. If you're having trouble implementing a feature that's not officially documented, +you can learn from other open source plugins. + ### Reloading changes - `extensions/intellij`: Attempt to reload changed classes by selecting diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts index 8dc8ce738..8692b35f4 100644 --- a/extensions/intellij/build.gradle.kts +++ b/extensions/intellij/build.gradle.kts @@ -1,77 +1,75 @@ import org.jetbrains.changelog.markdownToHTML - -fun properties(key: String) = providers.gradleProperty(key) +import org.jetbrains.intellij.platform.gradle.TestFrameworkType +import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask fun environment(key: String) = providers.environmentVariable(key) -fun Sync.prepareSandbox() { - from("../../binary/bin") { into("${intellij.pluginName.get()}/core/") } -} - val remoteRobotVersion = "0.11.23" +val platformType: String by project +val platformVersion: String by project +val pluginGroup: String by project +val pluginVersion: String by project +val pluginSinceBuild: String by project +val pluginRepositoryUrl: String by project val isEap get() = environment("RELEASE_CHANNEL").orNull == "eap" -val pluginVersion = properties("pluginVersion").get() plugins { - id("java") - kotlin("jvm") version "1.9.0" - id("org.jetbrains.intellij") version "1.15.0" + kotlin("jvm") version "1.8.0" + id("org.jetbrains.intellij.platform") version "2.6.0" id("org.jetbrains.changelog") version "2.1.2" id("org.jetbrains.qodana") version "0.1.13" id("org.jetbrains.kotlinx.kover") version "0.7.3" - kotlin("plugin.serialization") version "1.8.0" id("io.sentry.jvm.gradle") version "5.8.0" } -group = properties("pluginGroup").get() +group = pluginGroup version = if (isEap) "$pluginVersion-eap" else pluginVersion repositories { mavenCentral() - maven { url = uri("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies") } + intellijPlatform { + defaultRepositories() + } } dependencies { - implementation("org.jetbrains.kotlin:kotlin-stdlib:1.4.32") - implementation("com.posthog.java:posthog:1.+") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") + intellijPlatform { + create(platformType, platformVersion) + plugins(listOf("org.jetbrains.plugins.terminal:223.8214.6")) + testFramework(TestFrameworkType.Platform) + } + implementation("com.posthog.java:posthog:1.2.0") + testImplementation("com.intellij.remoterobot:remote-robot:$remoteRobotVersion") testImplementation("com.intellij.remoterobot:remote-fixtures:$remoteRobotVersion") testImplementation("io.mockk:mockk:1.14.2") - testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2") testImplementation("com.squareup.okhttp3:logging-interceptor:4.12.0") testImplementation("com.automation-remarks:video-recorder-junit5:2.0") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3") - testImplementation(kotlin("test")) + testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.10.0") // required to run both JUnit 5 and JUnit 3 } -// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for -// 2022.2+. kotlin { jvmToolchain(17) } -// Configure Gradle IntelliJ Plugin - read more: -// https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html -intellij { - pluginName = properties("pluginName") - version = properties("platformVersion") - type = properties("platformType") - - // Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file. - plugins = - properties("platformPlugins").map { - it.split(',').map(String::trim).filter(String::isNotEmpty) +intellijPlatform { + pluginConfiguration { + ideaVersion { + sinceBuild = pluginSinceBuild } + } + pluginVerification { + ides { + ide("IC", "2025.1.4") + ide("IC", "2022.3.3") + } + } } -// Configure Gradle Changelog Plugin - read more: -// https://github.com/JetBrains/gradle-changelog-plugin changelog { groups.empty() - repositoryUrl = properties("pluginRepositoryUrl") + repositoryUrl = pluginRepositoryUrl } -// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin qodana { cachePath = provider { file(".qodana").canonicalPath } reportPath = provider { file("build/reports/inspections").canonicalPath } @@ -79,75 +77,52 @@ qodana { showReport = environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false) } -// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration koverReport { defaults { xml { onCheck = true } } } +intellijPlatformTesting { + runIde { + register("runIdeForUiTests") { + task { + environment( + "CONTINUE_GLOBAL_DIR", + "${rootProject.projectDir}/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue" + ) + jvmArgumentProviders += CommandLineArgumentProvider { + listOf( + "-Drobot-server.port=8082", + "-Dide.mac.message.dialogs.as.sheets=false", + "-Djb.privacy.policy.text=", + "-Djb.consents.confirmation.enabled=false", + "-Dide.mac.file.chooser.native=false", + "-DjbScreenMenuBar.enabled=false", + "-Dapple.laf.useScreenMenuBar=false", + "-Didea.trust.all.projects=true", + "-Dide.show.tips.on.startup.default.value=false", + "-Dide.browser.jcef.jsQueryPoolSize=10000", + "-Dide.browser.jcef.contextMenu.devTools.enabled=true" + ) + } + } + plugins { + robotServerPlugin() + } + } + } +} + tasks { - downloadRobotServerPlugin { - version = remoteRobotVersion - } - - prepareSandbox { - prepareSandbox() - } - - prepareTestingSandbox { - prepareSandbox() - } - - prepareUiTestingSandbox { - prepareSandbox() - } - - wrapper { - gradleVersion = properties("gradleVersion").get() + withType { + from("../../binary/bin") { + into(pluginName.map { "$it/core" }) + } } patchPluginXml { - sinceBuild = properties("pluginSinceBuild") - untilBuild = properties("pluginUntilBuild") - pluginDescription = - providers.fileContents(layout.projectDirectory.file("README.md")).asText.map { - val start = "" - val end = "" - - with(it.lines()) { - if (!containsAll(listOf(start, end))) { - throw GradleException( - "Plugin description section not found in README.md:\n$start ... $end" - ) - } - subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML) - } - } - } - - // Configure UI tests plugin - // Read more: https://github.com/JetBrains/intellij-ui-test-robot - runIdeForUiTests { - environment( - "CONTINUE_GLOBAL_DIR", - "${rootProject.projectDir}/src/test/kotlin/com/github/continuedev/continueintellijextension/e2e/test-continue" - ) - systemProperty("robot-server.port", "8082") - systemProperty("ide.mac.message.dialogs.as.sheets", "false") - systemProperty("jb.privacy.policy.text", "") - systemProperty("jb.consents.confirmation.enabled", "false") - systemProperty("ide.mac.file.chooser.native", "false") - systemProperty("jbScreenMenuBar.enabled", "false") - systemProperty("apple.laf.useScreenMenuBar", "false") - systemProperty("idea.trust.all.projects", "true") - systemProperty("ide.show.tips.on.startup.default.value", "false") - systemProperty("ide.browser.jcef.jsQueryPoolSize", "10000") - systemProperty("ide.browser.jcef.contextMenu.devTools.enabled", "true") - - // This is to ensure we load the GUI with OSR enabled. We have logic that - // renders with OSR disabled below a particular IDE version. - // See ContinueExtensionSettingsService.kt for more info. - // Currently commented out however since test fail in CI with this version -// intellij { -// version = "2024.1" -// } + pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.get() + .substringAfter("") + .substringBefore("") + .let(::markdownToHTML) + check(pluginDescription.get().isNotEmpty()) { "Plugin description section not found in README.md" } } signPlugin { @@ -164,8 +139,10 @@ tasks { } runIde { - val dir = "${rootProject.projectDir.parentFile.parentFile.absolutePath}/manual-testing-sandbox" - args = listOf(dir, "$dir/test.kt") + val openProject = "$projectDir/../../manual-testing-sandbox" + argumentProviders += CommandLineArgumentProvider { + listOf(openProject, "$openProject/test.kt") + } } test { diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 9f5727c17..69bb623a6 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -1,26 +1,9 @@ -# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html pluginGroup=com.github.continuedev.continueintellijextension -pluginName=continue-intellij-extension pluginRepositoryUrl=https://github.com/continuedev/continue -# SemVer format -> https://semver.org pluginVersion=1.0.33 -# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild=223 -# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType=IC platformVersion=2022.3.3 -# org.gradle.java.home=/opt/homebrew/opt/openjdk@17 -#platformVersion = LATEST-EAP-SNAPSHOT -# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html -# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 -platformPlugins=org.jetbrains.plugins.terminal -# Gradle Releases -> https://github.com/gradle/gradle/releases -gradleVersion=8.3 -# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib kotlin.stdlib.default.dependency=false -# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html org.gradle.configuration-cache=true -# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html org.gradle.caching=true -# Enable Gradle Kotlin DSL Lazy Property Assignment -> https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:assignment -systemProp.org.gradle.unsafe.kotlin.assignment=true diff --git a/extensions/intellij/gradle/wrapper/gradle-wrapper.jar b/extensions/intellij/gradle/wrapper/gradle-wrapper.jar index 7f93135c49b765f8051ef9d0a6055ff8e46073d8..d64cd4917707c1f8861d8cb53dd15194d4248596 100644 GIT binary patch literal 43462 zcma&NWl&^owk(X(xVyW%ySuwf;qI=D6|RlDJ2cR^yEKh!@I- zp9QeisK*rlxC>+~7Dk4IxIRsKBHqdR9b3+fyL=ynHmIDe&|>O*VlvO+%z5;9Z$|DJ zb4dO}-R=MKr^6EKJiOrJdLnCJn>np?~vU-1sSFgPu;pthGwf}bG z(1db%xwr#x)r+`4AGu$j7~u2MpVs3VpLp|mx&;>`0p0vH6kF+D2CY0fVdQOZ@h;A` z{infNyvmFUiu*XG}RNMNwXrbec_*a3N=2zJ|Wh5z* z5rAX$JJR{#zP>KY**>xHTuw?|-Rg|o24V)74HcfVT;WtQHXlE+_4iPE8QE#DUm%x0 zEKr75ur~W%w#-My3Tj`hH6EuEW+8K-^5P62$7Sc5OK+22qj&Pd1;)1#4tKihi=~8C zHiQSst0cpri6%OeaR`PY>HH_;CPaRNty%WTm4{wDK8V6gCZlG@U3$~JQZ;HPvDJcT1V{ z?>H@13MJcCNe#5z+MecYNi@VT5|&UiN1D4ATT+%M+h4c$t;C#UAs3O_q=GxK0}8%8 z8J(_M9bayxN}69ex4d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XJ4sN8 zJLR7eeK(K8`2-}j(T7JsO`L!+CvbueT%izanm-^A1Dn{`1Nw`9P?cq;7no+XfC`K(GO9?O^5zNIt4M+M8LM0=7Gz8UA@Z0N+lg+cX)NfazRu z5D)~HA^(u%w^cz+@2@_#S|u>GpB+j4KzQ^&Wcl9f z&hG#bCA(Yk0D&t&aJE^xME^&E-&xGHhXn%}psEIj641H+Nl-}boj;)Zt*t(4wZ5DN z@GXF$bL=&pBq-#vkTkh>7hl%K5|3 z{`Vn9b$iR-SoGENp}bn4;fR3>9sA%X2@1L3aE9yTra;Wb#_`xWwLSLdfu+PAu+o3| zGVnpzPr=ch{uuoHjtw7+_!L_2;knQ!DuDl0R`|%jr+}jFzXtrHIKc323?JO{l&;VF z*L1+}JU7%QJOg|5|Tc|D8fN zJORAg=_vsy{ak|o);@)Yh8Lkcg@$FG3k@ep36BRa^>~UmnRPziS>Z=`Jb2x*Q#`%A zU*i3&Vg?TluO@X0O;r2Jl6LKLUOVhSqg1*qOt^|8*c7 zo(298@+r$k_wQNGHv{|$tW(T8L+4_`FQ{kEW5Jgg{yf7ey4ss_(SNKfz(N9lx&a;< je(UuV8hP?p&}TPdm1I$XmG#(RzlD&B2izSj9sl%y5~4qc diff --git a/extensions/intellij/gradle/wrapper/gradle-wrapper.properties b/extensions/intellij/gradle/wrapper/gradle-wrapper.properties index ab1b658ea..d4081da47 100644 --- a/extensions/intellij/gradle/wrapper/gradle-wrapper.properties +++ b/extensions/intellij/gradle/wrapper/gradle-wrapper.properties @@ -1,8 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -#org.gradle.java.home=/opt/homebrew/opt/openjdk@17 \ No newline at end of file diff --git a/extensions/intellij/gradlew b/extensions/intellij/gradlew index 0adc8e1a5..1aa94a426 100755 --- a/extensions/intellij/gradlew +++ b/extensions/intellij/gradlew @@ -145,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC2039,SC3045 MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac @@ -153,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then '' | soft) :;; #( *) # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. - # shellcheck disable=SC3045 + # shellcheck disable=SC2039,SC3045 ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac @@ -202,11 +202,11 @@ fi # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt index dc308d7de..8bdb7f964 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/IntelliJIde.kt @@ -3,6 +3,7 @@ package com.github.continuedev.continueintellijextension.`continue` import com.github.continuedev.continueintellijextension.* import com.github.continuedev.continueintellijextension.constants.ContinueConstants import com.github.continuedev.continueintellijextension.constants.getContinueGlobalPath +import com.github.continuedev.continueintellijextension.`continue`.file.FileUtils import com.github.continuedev.continueintellijextension.error.ContinueErrorService import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService @@ -38,9 +39,7 @@ import java.awt.Toolkit import java.awt.datatransfer.DataFlavor import java.io.BufferedReader import java.io.File -import java.io.FileInputStream import java.io.InputStreamReader -import java.nio.charset.Charset class IntelliJIDE( private val project: Project, @@ -49,7 +48,7 @@ class IntelliJIDE( ) : IDE { private val gitService = GitService(project, continuePluginService) - + private val fileUtils = FileUtils() private val ripgrep: String = getRipgrepPath() init { @@ -204,16 +203,11 @@ class IntelliJIDE( return configs as List } - override suspend fun fileExists(filepath: String): Boolean { - val file = UriUtils.uriToFile(filepath) - return file.exists() - } + override suspend fun fileExists(filepath: String): Boolean = + fileUtils.fileExists(filepath) - override suspend fun writeFile(path: String, contents: String) { - val file = UriUtils.uriToFile(path) - file.parentFile?.mkdirs() - file.writeText(contents) - } + override suspend fun writeFile(path: String, contents: String) = + fileUtils.writeFile(path, contents) override suspend fun showVirtualFile(title: String, contents: String) { val virtualFile = LightVirtualFile(title, contents) @@ -321,39 +315,8 @@ class IntelliJIDE( } } - override suspend fun readFile(filepath: String): String { - return try { - val content = ApplicationManager.getApplication().runReadAction { - val virtualFile = LocalFileSystem.getInstance().findFileByPath(UriUtils.parseUri(filepath).path) - if (virtualFile != null && FileDocumentManager.getInstance().isFileModified(virtualFile)) { - return@runReadAction FileDocumentManager.getInstance().getDocument(virtualFile)?.text - } - return@runReadAction null - } - - if (content != null) { - content - } else { - val file = UriUtils.uriToFile(filepath) - if (!file.exists() || file.isDirectory) return "" - withContext(Dispatchers.IO) { - FileInputStream(file).use { fis -> - val sizeToRead = minOf(100000, file.length()).toInt() - val buffer = ByteArray(sizeToRead) - val bytesRead = fis.read(buffer, 0, sizeToRead) - if (bytesRead <= 0) return@use "" - val content = String(buffer, 0, bytesRead, Charset.forName("UTF-8")) - // Remove `\r` characters but preserve trailing newlines to prevent line count discrepancies - val contentWithoutCR = content.replace("\r\n", "\n").replace("\r", "\n") - contentWithoutCR - } - } - } - } catch (e: Exception) { - e.printStackTrace() - "" - } - } + override suspend fun readFile(filepath: String): String = + fileUtils.readFile(filepath) override suspend fun readRangeInFile(filepath: String, range: Range): String { val fullContents = readFile(filepath) @@ -662,13 +625,8 @@ class IntelliJIDE( } } - override suspend fun listDir(dir: String): List> { - val files = UriUtils.uriToFile(dir).listFiles()?.map { - listOf(it.name, if (it.isDirectory) FileType.DIRECTORY.value else FileType.FILE.value) - } ?: emptyList() - - return files - } + override suspend fun listDir(dir: String): List> = + fileUtils.listDir(dir) override suspend fun getFileStats(files: List): Map { return files.associateWith { file -> diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/file/FileUtils.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/file/FileUtils.kt new file mode 100644 index 000000000..bfd60dfe2 --- /dev/null +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/file/FileUtils.kt @@ -0,0 +1,69 @@ +package com.github.continuedev.continueintellijextension.`continue`.file + +import com.github.continuedev.continueintellijextension.FileType +import com.github.continuedev.continueintellijextension.`continue`.UriUtils +import com.intellij.openapi.application.ApplicationManager +import com.intellij.openapi.fileEditor.FileDocumentManager +import com.intellij.openapi.vfs.LocalFileSystem +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.withContext +import java.io.FileInputStream +import java.nio.charset.Charset + +class FileUtils { + // todo: use VFS (it's moved from IntellijIde) + + fun fileExists(uri: String): Boolean { + val file = UriUtils.uriToFile(uri) + return file.exists() + } + + fun writeFile(uri: String, contents: String) { + val file = UriUtils.uriToFile(uri) + file.parentFile?.mkdirs() + file.writeText(contents) + } + + fun listDir(dir: String): List> { + val files = UriUtils.uriToFile(dir).listFiles()?.map { + listOf(it.name, if (it.isDirectory) FileType.DIRECTORY.value else FileType.FILE.value) + } ?: emptyList() + + return files + } + + fun readFile(uri: String): String { + return try { + val content = ApplicationManager.getApplication().runReadAction { + val virtualFile = LocalFileSystem.getInstance().findFileByPath(UriUtils.parseUri(uri).path) + if (virtualFile != null && FileDocumentManager.getInstance().isFileModified(virtualFile)) { + return@runReadAction FileDocumentManager.getInstance().getDocument(virtualFile)?.text + } + return@runReadAction null + } + + if (content != null) { + content + } else { + val file = UriUtils.uriToFile(uri) + if (!file.exists() || file.isDirectory) return "" + FileInputStream(file).use { fis -> + val sizeToRead = minOf(100000, file.length()).toInt() + val buffer = ByteArray(sizeToRead) + val bytesRead = fis.read(buffer, 0, sizeToRead) + if (bytesRead <= 0) return@use "" + val content = String(buffer, 0, bytesRead, Charset.forName("UTF-8")) + // Remove `\r` characters but preserve trailing newlines to prevent line count discrepancies + val contentWithoutCR = content.replace("\r\n", "\n").replace("\r", "\n") + contentWithoutCR + } + } + } catch (e: Exception) { + e.printStackTrace() + "" + } + + } + + +} \ No newline at end of file diff --git a/extensions/intellij/src/main/resources/META-INF/plugin.xml b/extensions/intellij/src/main/resources/META-INF/plugin.xml index 22ceb6772..0191d8f60 100644 --- a/extensions/intellij/src/main/resources/META-INF/plugin.xml +++ b/extensions/intellij/src/main/resources/META-INF/plugin.xml @@ -14,9 +14,6 @@ com.intellij.modules.json - - - diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/ApplyToFileHandlerTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/ApplyToFileHandlerTest.kt index 4e12e270e..0a018a18f 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/ApplyToFileHandlerTest.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/ApplyToFileHandlerTest.kt @@ -12,13 +12,12 @@ import com.github.continuedev.continueintellijextension.services.ContinuePluginS import com.intellij.openapi.editor.Editor import com.intellij.openapi.project.Project import io.mockk.* +import junit.framework.TestCase import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.runTest -import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.Test @ExperimentalCoroutinesApi -class ApplyToFileHandlerTest { +class ApplyToFileHandlerTest : TestCase() { // Mock all dependencies private val mockProject = mockk(relaxed = true) private val mockContinuePluginService = mockk(relaxed = true) @@ -39,8 +38,7 @@ class ApplyToFileHandlerTest { "tool-call-123" ) - @BeforeEach - fun setUp() { + override fun setUp() { // Common setup every { mockEditorUtils.editor } returns mockEditor every { mockContinuePluginService.coreMessenger } returns mockCoreMessenger @@ -56,8 +54,7 @@ class ApplyToFileHandlerTest { ) } - @Test - fun `should insert text directly when document is empty`() = runTest { + fun `test should insert text directly when document is empty`() = runTest { // Given every { mockEditorUtils.isDocumentEmpty() } returns true diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/CheckFimTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/CheckFimTest.kt index b23bcf7ec..da819ad67 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/CheckFimTest.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/CheckFimTest.kt @@ -1,48 +1,39 @@ package com.github.continuedev.continueintellijextension.unit import com.github.continuedev.continueintellijextension.FimResult -import com.github.continuedev.continueintellijextension.`continue`.UriUtils import com.github.continuedev.continueintellijextension.utils.checkFim -import org.junit.jupiter.api.Disabled -import org.junit.jupiter.api.Test -import java.io.File -import kotlin.test.assertEquals +import junit.framework.TestCase -class CheckFimTest { - @Test - fun testFim() { +class CheckFimTest : TestCase() { + fun `test FIM`() { val oldEditRange = "hello world" val newEditRange = "hello this world" val cursorPosition = Pair(0, 6) assertEquals(checkFim(oldEditRange, newEditRange, cursorPosition), FimResult.FimEdit("this ")) } - @Test - fun testMultilineFim() { + fun `test multiline FIM`() { val oldEditRange = "hello {\n world\n}" val newEditRange = "hello {\n print()\n world\n}" val cursorPosition = Pair(1, 2) assertEquals(checkFim(oldEditRange, newEditRange, cursorPosition), FimResult.FimEdit("print()\n ")) } - @Test - fun testNotFim() { + fun `test not FIM`() { val oldEditRange = "hello world" val newEditRange = "hello this world" val cursorPosition = Pair(0, 8) assertEquals(checkFim(oldEditRange, newEditRange, cursorPosition), FimResult.NotFimEdit) } - @Test - fun testMultilineNotFim() { + fun `test multiline not FIM`() { val oldEditRange = "hello {\n world\n}" val newEditRange = "hello {\n world\n}\nprint()" val cursorPosition = Pair(1, 2) assertEquals(checkFim(oldEditRange, newEditRange, cursorPosition), FimResult.NotFimEdit) } - @Test - fun testFimEdge() { + fun `test FIM edge`() { val oldEditRange = "" val newEditRange = "" val cursorPosition = Pair(0, 0) diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/FileUtilsTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/FileUtilsTest.kt new file mode 100644 index 000000000..3ec25afba --- /dev/null +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/FileUtilsTest.kt @@ -0,0 +1,77 @@ +package com.github.continuedev.continueintellijextension.unit + +import com.github.continuedev.continueintellijextension.FileType +import com.github.continuedev.continueintellijextension.`continue`.file.FileUtils +import com.intellij.testFramework.UsefulTestCase +import com.intellij.testFramework.fixtures.CodeInsightTestFixture +import com.intellij.testFramework.fixtures.IdeaTestFixtureFactory + +class FileUtilsTest : UsefulTestCase() { + val fileUtils = FileUtils() + val myFixture = setupRealFilesFixture() + val tmpFixture get() = myFixture.tempDirFixture + val tmpDir get() = myFixture.tempDirPath + + override fun setUp() = + myFixture.setUp() + + override fun tearDown() = + myFixture.tearDown() + + fun `test fileExists`() { + val file = tmpFixture.createFile("test.txt", "") + val uri = "file://${file.path}" + assertTrue(fileUtils.fileExists(uri)) + } + + fun `test fileExists inside directory`() { + val file = tmpFixture.createFile("dir/dir2/file.txt", "") + val uri = "file://${file.path}" + assertTrue(fileUtils.fileExists(uri)) + } + + fun `test fileExists fails when file doesn't exists`() { + val uri = "file:///tmp/aaaa.txt" + assertFalse(fileUtils.fileExists(uri)) + } + + fun `test readFile`() { + val uri = "file://$tmpDir/bbbb.txt" + tmpFixture.createFile("bbbb.txt", "contents") + val text = fileUtils.readFile(uri) + assertEquals("contents", text) + } + + fun `test listDir`() { + tmpFixture.createFile("a.txt", "a") + tmpFixture.createFile("b.txt", "b") + tmpFixture.createFile("c.txt", "c") + tmpFixture.createFile("dir/invisibleA.txt", "d") + tmpFixture.createFile("dir/invisibleB.txt", "e") + + val result = fileUtils.listDir("file://$tmpDir") + + assertTrue(result.any { it[0] == "a.txt" && it[1] == FileType.FILE.value }) + assertTrue(result.any { it[0] == "b.txt" && it[1] == FileType.FILE.value }) + assertTrue(result.any { it[0] == "c.txt" && it[1] == FileType.FILE.value }) + assertTrue(result.any { it[0] == "dir" && it[1] == FileType.DIRECTORY.value }) + assertTrue(result.any { it[0] == "dir" && it[1] == FileType.DIRECTORY.value }) + assertFalse(result.any { it[0] == "invisibleA.txt" }) + assertFalse(result.any { it[0] == "invisibleB.txt" }) + assertEquals(4, result.size) + } + + private companion object { + + // note: with this, files will actually exist inside /tmp/unitTest/ dir, otherwise it's virtual + fun setupRealFilesFixture(): CodeInsightTestFixture { + val factory = IdeaTestFixtureFactory.getFixtureFactory() + return factory.createCodeInsightFixture( + factory.createLightFixtureBuilder("my_continue_project").fixture, + factory.createTempDirTestFixture() + ) + } + + } + +} \ No newline at end of file diff --git a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt index 9b4690d79..170446f61 100644 --- a/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt +++ b/extensions/intellij/src/test/kotlin/com/github/continuedev/continueintellijextension/unit/UriUtilsTest.kt @@ -1,64 +1,48 @@ package com.github.continuedev.continueintellijextension.unit import com.github.continuedev.continueintellijextension.`continue`.UriUtils -import org.junit.jupiter.api.Disabled -import org.junit.jupiter.api.Test +import junit.framework.TestCase import java.io.File -import kotlin.test.assertEquals -class UriUtilsTest { - @Test - fun testUriToFile() { +class UriUtilsTest : TestCase() { + fun `test URI to File`() { val uri = "file:///path/to/file" val file = UriUtils.uriToFile(uri) assertEquals(File("/path/to/file"), file) } - @Disabled("Not working") - @Test - fun testUriToFileWithWindowsPath() { - val uri = "file:///C:/path/to/file" - val file = UriUtils.uriToFile(uri) - assertEquals(File("C:/path/to/file"), file) - } + // fixme it's not working + // fun `test Windows path`() { + // val uri = "file:///C:/path/to/file" + // val file = UriUtils.uriToFile(uri) + // assertEquals(File("C:/path/to/file"), file) + // } - @Test - fun shouldHandleAuthorityComponent() { - val uri = "file://C:/path/to/file" - val file = UriUtils.uriToFile(uri) - assertEquals(File("/C:/path/to/file"), file) - } - - @Test - fun testUriToFileWithSpaces() { + fun `test spaces`() { val uri = "file:///path/to/file%20with%20spaces" val file = UriUtils.uriToFile(uri) assertEquals(File("/path/to/file with spaces"), file) } - @Test - fun testUriToFileWithSpecialCharacters() { + fun `test special characters`() { val uri = "file:///path/to/file%23with%25special%26chars" val file = UriUtils.uriToFile(uri) assertEquals(File("/path/to/file#with%special&chars"), file) } - @Test - fun testUriToFileWithQueryParams() { + fun `test query params`() { val uri = "file:///path/to/file?param=value" val file = UriUtils.uriToFile(uri) assertEquals(File("/path/to/file"), file) } - @Test - fun testUriToFileWithWSLPath() { + fun `test WSL path`() { val uri = "file:///wsl$/Ubuntu/home/user/file.txt" val file = UriUtils.uriToFile(uri) assertEquals(File("/wsl$/Ubuntu/home/user/file.txt"), file) } - @Test - fun testUriToFileWithWSLLocalhostPath() { + fun `test WSL localhost path`() { val uri = "file:///wsl.localhost/Ubuntu/home/user/file.txt" val file = UriUtils.uriToFile(uri) assertEquals(File("/wsl.localhost/Ubuntu/home/user/file.txt"), file) From 4ef45d3173f2e1b9c092d1ad3843ded0cd9948d9 Mon Sep 17 00:00:00 2001 From: Jakub Blach Date: Mon, 28 Jul 2025 20:48:20 +0200 Subject: [PATCH 50/64] fix formatting --- extensions/intellij/CONTRIBUTING.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/intellij/CONTRIBUTING.md b/extensions/intellij/CONTRIBUTING.md index b0c436a1a..fc1fdaa24 100644 --- a/extensions/intellij/CONTRIBUTING.md +++ b/extensions/intellij/CONTRIBUTING.md @@ -116,15 +116,15 @@ If in doubt, check out the official [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template). These templates are the most up-to-date examples of how to correctly customize the plugin build scripts. -Also, check out -the [useful recipes](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-recipes.html) +Also, check out +the [useful recipes](https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-recipes.html) for common problems. ### Adding new extensions in `plugin.xml` -There's a tool called [JetBrains Platform Explorer](https://plugins.jetbrains.com/intellij-platform-explorer) that -aggregates plugin metadata and allows you to filter by specific -extension points. If you're having trouble implementing a feature that's not officially documented, +There's a tool called [JetBrains Platform Explorer](https://plugins.jetbrains.com/intellij-platform-explorer) that +aggregates plugin metadata and allows you to filter by specific +extension points. If you're having trouble implementing a feature that's not officially documented, you can learn from other open source plugins. ### Reloading changes From a521117e8f8d6dfef8095baadba8f82cf25ee2c3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Jul 2025 01:57:00 +0700 Subject: [PATCH 51/64] fix: merge main --- .../github/continuedev/continueintellijextension/types.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt index df46b9c42..b3718661f 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/types.kt @@ -144,19 +144,12 @@ data class IdeSettings( val continueTestEnvironment: String ) -<<<<<<< HEAD -======= -data class ContinueRcJson( - val mergeBehavior: ConfigMergeType -) - data class TerminalOptions( val reuseTerminal: Boolean?, val terminalName: String?, val waitForCompletion: Boolean? ) ->>>>>>> 3f6eba29474d2956e4e73193ffd49f3a4194a693 interface IDE { suspend fun getIdeInfo(): IdeInfo From 70bc314502e1a77d5b8f1d09d27d8041231b30c2 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 12:52:19 -0700 Subject: [PATCH 52/64] fix: refactor, add comment --- packages/openai-adapters/src/apis/OpenAI.ts | 3 ++- packages/openai-adapters/src/index.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/openai-adapters/src/apis/OpenAI.ts b/packages/openai-adapters/src/apis/OpenAI.ts index 83c7f38c6..c1e356fa5 100644 --- a/packages/openai-adapters/src/apis/OpenAI.ts +++ b/packages/openai-adapters/src/apis/OpenAI.ts @@ -28,7 +28,8 @@ export class OpenAIApi implements BaseLlmApi { constructor(protected config: z.infer) { this.apiBase = config.apiBase ?? this.apiBase; this.openai = new OpenAI({ - apiKey: config.apiKey, + // Necessary because `new OpenAI()` will throw an error if there is no API Key + apiKey: config.apiKey ?? "", baseURL: this.apiBase, fetch: customFetch(config.requestOptions), }); diff --git a/packages/openai-adapters/src/index.ts b/packages/openai-adapters/src/index.ts index 588372229..f067fac64 100644 --- a/packages/openai-adapters/src/index.ts +++ b/packages/openai-adapters/src/index.ts @@ -28,7 +28,6 @@ function openAICompatible( return new OpenAIApi({ ...config, apiBase: config.apiBase ?? apiBase, - apiKey: config.apiKey ?? "api-key", }); } From 89320f8fc0de9b627b78ca2c0575e2247a594fef Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 12:58:47 -0700 Subject: [PATCH 53/64] fix: don't fail if no usage --- packages/openai-adapters/src/apis/Anthropic.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/openai-adapters/src/apis/Anthropic.ts b/packages/openai-adapters/src/apis/Anthropic.ts index 2b986d1d5..9771ce97d 100644 --- a/packages/openai-adapters/src/apis/Anthropic.ts +++ b/packages/openai-adapters/src/apis/Anthropic.ts @@ -191,18 +191,19 @@ export class AnthropicApi implements BaseLlmApi { } const completion = (await response.json()) as any; + + const usage: Record | undefined = completion.usage; return { id: completion.id, object: "chat.completion", model: body.model, created: Date.now(), usage: { - total_tokens: - completion.usage.input_tokens + completion.usage.output_tokens, - completion_tokens: completion.usage.output_tokens, - prompt_tokens: completion.usage.input_tokens, + total_tokens: (usage?.input_tokens ?? 0) + (usage?.output_tokens ?? 0), + completion_tokens: usage?.output_tokens ?? 0, + prompt_tokens: usage?.input_tokens ?? 0, prompt_tokens_details: { - cached_tokens: completion.usage.cache_read_input_tokens || 0, + cached_tokens: usage?.cache_read_input_tokens ?? 0, }, }, choices: [ @@ -240,13 +241,13 @@ export class AnthropicApi implements BaseLlmApi { } break; case "message_start": - usage.prompt_tokens = value.message.usage.input_tokens; + usage.prompt_tokens = value.message.usage?.input_tokens ?? 0; usage.prompt_tokens_details = { - cached_tokens: value.message.usage.cache_read_input_tokens || 0, + cached_tokens: value.message.usage?.cache_read_input_tokens ?? 0, }; break; case "message_delta": - usage.completion_tokens = value.usage.output_tokens; + usage.completion_tokens = value.usage?.output_tokens ?? 0; break; case "content_block_delta": // https://docs.anthropic.com/en/api/messages-streaming#delta-types From ae04dec8768c28245adde3f320021dc49c55e9f0 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 28 Jul 2025 13:39:49 -0700 Subject: [PATCH 54/64] chore: remove unused workflow --- .github/auto_assign.yml | 10 ---------- .github/workflows/auto-assign-pr.yaml | 10 ---------- 2 files changed, 20 deletions(-) delete mode 100644 .github/auto_assign.yml delete mode 100644 .github/workflows/auto-assign-pr.yaml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml deleted file mode 100644 index ed05df6f9..000000000 --- a/.github/auto_assign.yml +++ /dev/null @@ -1,10 +0,0 @@ -# Reference: https://github.com/marketplace/actions/auto-assign-action -addAssignees: true - -assignees: - - sestinj - - Patrick-Erichsen - - tomasz-stefaniak - - RomneyDa - -numberOfAssignees: 2 diff --git a/.github/workflows/auto-assign-pr.yaml b/.github/workflows/auto-assign-pr.yaml deleted file mode 100644 index 4fd701a15..000000000 --- a/.github/workflows/auto-assign-pr.yaml +++ /dev/null @@ -1,10 +0,0 @@ -name: PR assignment -on: - pull_request: - types: [opened, ready_for_review] - -jobs: - add-reviews: - runs-on: ubuntu-latest - steps: - - uses: kentaro-m/auto-assign-action@v2.0.0 From 3dfe00dd272868adbc3ca0f1ea7b883987ecda03 Mon Sep 17 00:00:00 2001 From: Nate Sesti <33237525+sestinj@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:38:04 -0700 Subject: [PATCH 55/64] Nate/oneper-main (#6838) * update oneper to by default download build from man * republish instead of rebuilding * deafult to a pr * undo auto-release for now * force install in oneper * update oneper * don't run on this branch * feat: setup-cron and remove-cron --- .github/workflows/auto-release.yml | 5 +- .github/workflows/main-build.yaml | 105 +++++++++ .github/workflows/vscode-version-bump.yml | 7 +- package-lock.json | 2 +- scripts/oneper | 264 +++++++++++++++++++++- 5 files changed, 368 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/main-build.yaml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 43d65d5b5..031ed1fbe 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -4,8 +4,9 @@ on: push: branches: - nate/auto-main-release-draft - schedule: - - cron: "0 17 * * 1,3,5" # Run at 9am PST (17:00 UTC) on Monday, Wednesday, Friday + # Not using this now because making drafts was just noisy. Will be useful when we are ready for automated releases. + # schedule: + # - cron: "0 17 * * 1,3,5" # Run at 9am PST (17:00 UTC) on Monday, Wednesday, Friday workflow_dispatch: # Keep manual trigger option jobs: diff --git a/.github/workflows/main-build.yaml b/.github/workflows/main-build.yaml new file mode 100644 index 000000000..75e4104ab --- /dev/null +++ b/.github/workflows/main-build.yaml @@ -0,0 +1,105 @@ +name: Main Branch Build + +# Download and republish VS Code extension artifacts when code is merged to main +on: + push: + branches: + - main + workflow_dispatch: + inputs: + test_pr_number: + description: "PR number to test with" + required: true + +jobs: + republish-pr-artifacts: + runs-on: ubuntu-latest + strategy: + matrix: + platform: [Linux, macOS] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 2 # Get the last 2 commits to find the merge commit + + - name: Get merged PR number + id: get-pr + run: | + # Get the commit message of the merge commit + COMMIT_MSG=$(git log --format=%B -n 1 HEAD) + echo "Commit message: $COMMIT_MSG" + + # Extract PR number from merge commit message (format: "Merge pull request #123 from...") + PR_NUMBER=$(echo "$COMMIT_MSG" | grep -o "Merge pull request #[0-9]*" | grep -o "[0-9]*" || echo "6723") + + if [ -z "$PR_NUMBER" ]; then + echo "❌ Could not extract PR number from commit message. This might not be a PR merge." + echo "Commit message was: $COMMIT_MSG" + exit 1 + fi + + echo "Found PR number: $PR_NUMBER" + echo "pr_number=$PR_NUMBER" >> $GITHUB_OUTPUT + + - name: Find PR workflow run + id: find-run + env: + PR_NUMBER: ${{ steps.get-pr.outputs.pr_number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "🔍 Getting branch name for PR #$PR_NUMBER..." + + # Get the branch name for the PR + BRANCH_NAME=$(gh pr view "$PR_NUMBER" --repo "${{ github.repository }}" --json headRefName --jq '.headRefName') + + if [ -z "$BRANCH_NAME" ]; then + echo "❌ Could not find PR #$PR_NUMBER" + exit 1 + fi + + echo "Branch name: $BRANCH_NAME" + + # Get the latest successful workflow run for the branch + RUN_ID=$(gh run list \ + --repo "${{ github.repository }}" \ + --workflow="pr_checks.yaml" \ + --branch="$BRANCH_NAME" \ + --json databaseId,status,conclusion \ + --jq ".[] | select(.status == \"completed\" and .conclusion == \"success\") | .databaseId" \ + | head -1) + + if [ -z "$RUN_ID" ]; then + echo "❌ No successful workflow run found for PR #$PR_NUMBER (branch: $BRANCH_NAME)" + exit 1 + fi + + echo "Found successful workflow run: $RUN_ID" + echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT + + - name: Download PR artifact + env: + RUN_ID: ${{ steps.find-run.outputs.run_id }} + PLATFORM: ${{ matrix.platform }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + echo "đŸ“Ĩ Downloading vscode-extension-build-$PLATFORM artifact from run $RUN_ID..." + + # Create temporary directory for download + mkdir -p ./temp-download + + # Download the artifact from the PR workflow run + if ! gh run download "$RUN_ID" \ + --repo "${{ github.repository }}" \ + --name "vscode-extension-build-$PLATFORM" \ + --dir "./temp-download"; then + echo "❌ Failed to download artifact vscode-extension-build-$PLATFORM from run $RUN_ID" + exit 1 + fi + + echo "✅ Successfully downloaded artifact" + + - name: Republish as main branch artifact + uses: actions/upload-artifact@v4 + with: + name: vscode-extension-build-${{ matrix.platform }} + path: ./temp-download/* diff --git a/.github/workflows/vscode-version-bump.yml b/.github/workflows/vscode-version-bump.yml index c05da185f..a7aaee3d5 100644 --- a/.github/workflows/vscode-version-bump.yml +++ b/.github/workflows/vscode-version-bump.yml @@ -1,8 +1,9 @@ name: Create VS Code main release draft on: - schedule: - # Runs at 7 AM PST (15:00 UTC) every Friday - - cron: "0 15 * * 5" + # Not using this now because making drafts was just noisy. Will be useful when we are ready for automated releases. + # schedule: + # # Runs at 7 AM PST (15:00 UTC) every Friday + # - cron: "0 15 * * 5" workflow_dispatch: # Allows manual triggering diff --git a/package-lock.json b/package-lock.json index 0a2538840..b4289d422 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "wt-openai-adapters-tests", + "name": "continue", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/scripts/oneper b/scripts/oneper index 52ad8623a..d9945f2a5 100755 --- a/scripts/oneper +++ b/scripts/oneper @@ -10,26 +10,33 @@ REPO="continuedev/continue" ONEPER_DIR="$HOME/.continue/.utils/oneper" show_help() { - echo "oneper - Install Continue VS Code extension from PR builds or latest pre-release" + echo "oneper - Install Continue VS Code extension from builds or latest pre-release" echo "" echo "Usage: oneper [options]" echo " oneper -h | --help" + echo " oneper install # Install latest build from main branch (default)" echo "" echo "Commands:" + echo " install Download and install VSIX from latest main branch build (default)" echo " install --pr [--platform ]" echo " Download and install VSIX from specified PR number" echo " Platform options: macos, linux (auto-detected by default)" echo " install --latest Install latest pre-release from VS Code marketplace" + echo " setup-cron Set up automatic updates every 10 minutes" + echo " remove-cron Remove automatic updates" echo " clean Remove all downloaded VSIX files from oneper cache" echo "" echo "Options:" echo " -h, --help Show this help message" - echo " --platform Specify platform for PR builds (macos, linux)" + echo " --platform Specify platform for builds (macos, linux)" echo "" echo "Examples:" + echo " oneper install # Install latest build from main branch" echo " oneper install --pr 123 # Install VSIX from PR #123" echo " oneper install --pr 123 --platform linux # Install Linux VSIX from PR #123" echo " oneper install --latest # Install latest pre-release" + echo " oneper setup-cron # Auto-update every 10 minutes" + echo " oneper remove-cron # Stop auto-updates" echo " oneper clean # Clear cached VSIX files" echo " oneper -h # Show help" echo "" @@ -74,6 +81,115 @@ ensure_oneper_dir() { fi } +install_from_main() { + local platform=${1:-$(detect_os)} # Auto-detect OS if not specified + + # Map platform names to GitHub runner OS names + local artifact_suffix + case "$platform" in + "macos") + artifact_suffix="macOS" + ;; + "linux") + artifact_suffix="Linux" + ;; + *) + echo "❌ Unknown platform: $platform" + echo " Supported platforms: macos, linux" + exit 1 + ;; + esac + + echo "🔍 Finding latest main branch build..." + + # Get the latest successful workflow run for main branch + local run_id=$(gh run list \ + --repo "$REPO" \ + --workflow="main-build.yaml" \ + --branch="main" \ + --json databaseId,status,conclusion \ + --jq ".[] | select(.status == \"completed\" and .conclusion == \"success\") | .databaseId" \ + | head -1) + + if [ -z "$run_id" ]; then + echo "❌ No successful main branch build found" + echo " Make sure there are recent commits to main with successful builds" + exit 1 + fi + + echo "✅ Found workflow run: https://github.com/$REPO/actions/runs/$run_id" + + # Try to get the original PR number from the workflow run + local original_pr=$(gh run view "$run_id" --repo "$REPO" --json displayTitle --jq '.displayTitle' | grep -o "pull request #[0-9]*" | grep -o "[0-9]*" || echo "") + + if [ -n "$original_pr" ]; then + echo "đŸ“Ļ This contains artifacts originally from PR #$original_pr" + fi + + echo "đŸ“Ĩ Downloading vscode-extension-build-$artifact_suffix artifact..." + + # Create temporary directory for download + local temp_dir=$(mktemp -d) + + # Download the artifact + if ! gh run download "$run_id" \ + --repo "$REPO" \ + --name "vscode-extension-build-$artifact_suffix" \ + --dir "$temp_dir"; then + echo "❌ Failed to download artifact vscode-extension-build-$artifact_suffix" + echo " Make sure the workflow run completed successfully for $platform" + rm -rf "$temp_dir" + exit 1 + fi + + # Find the VSIX file in the downloaded artifact + local vsix_file=$(find "$temp_dir" -name "*.vsix" | head -1) + + if [ -z "$vsix_file" ]; then + echo "❌ No VSIX file found in artifact" + rm -rf "$temp_dir" + exit 1 + fi + + # Extract version from the original VSIX filename (e.g., continue-1.1.66.vsix -> 1.1.66) + local original_filename=$(basename "$vsix_file") + local version=$(echo "$original_filename" | sed 's/continue-\(.*\)\.vsix/\1/') + + if [ -z "$version" ]; then + echo "âš ī¸ Could not extract version from filename: $original_filename" + version="unknown" + fi + + # Create new VSIX name with version and "main" suffix + local target_path="$ONEPER_DIR/continue-${version}-main.vsix" + + # Check if file already exists and notify about overwrite + if [ -f "$target_path" ]; then + echo "âš ī¸ Overwriting existing VSIX: $target_path" + fi + + echo "đŸ“Ļ Moving VSIX to: $target_path" + mv "$vsix_file" "$target_path" + + # Clean up temp directory + rm -rf "$temp_dir" + + # Install the extension + echo "🚀 Installing VS Code extension..." + if code --install-extension "$target_path" --force; then + echo "✅ Successfully installed Continue extension from main branch" + echo "📄 VSIX file saved to: $target_path" + echo "" + echo "💡 To use the new extension version, reload your VS Code window:" + echo " â€ĸ Press Ctrl+Shift+P (Cmd+Shift+P on Mac)" + echo " â€ĸ Type 'Developer: Reload Window' and press Enter" + echo " â€ĸ Or restart VS Code entirely" + else + echo "❌ Failed to install extension" + exit 1 + fi +} + install_from_pr() { local pr_number=$1 local platform=${2:-$(detect_os)} # Auto-detect OS if not specified @@ -194,7 +310,7 @@ install_from_pr() { install_latest() { echo "🚀 Installing latest pre-release Continue extension..." - if code --install-extension --pre-release Continue.continue; then + if code --install-extension --pre-release Continue.continue --force; then echo "✅ Successfully installed latest pre-release Continue extension" echo "" echo "💡 To use the new extension version, reload your VS Code window:" @@ -207,6 +323,112 @@ install_latest() { fi } +get_latest_main_run_id() { + gh run list \ + --repo "$REPO" \ + --workflow="main-build.yaml" \ + --branch="main" \ + --json databaseId,status,conclusion \ + --jq ".[] | select(.status == \"completed\" and .conclusion == \"success\") | .databaseId" \ + | head -1 +} + +check_and_install_if_new() { + local current_run_id=$(get_latest_main_run_id) + + if [ -z "$current_run_id" ]; then + echo "$(date): ❌ No successful main branch build found" >&2 + return 1 + fi + + local last_run_file="$ONEPER_DIR/last_installed_run" + local last_run_id="" + + if [ -f "$last_run_file" ]; then + last_run_id=$(cat "$last_run_file") + fi + + if [ "$current_run_id" != "$last_run_id" ]; then + echo "$(date): 🔄 New build detected (run $current_run_id), installing..." + + # Install from main silently + if install_from_main > /dev/null 2>&1; then + echo "$current_run_id" > "$last_run_file" + echo "$(date): ✅ Successfully installed new build from run $current_run_id" + else + echo "$(date): ❌ Failed to install new build" >&2 + return 1 + fi + else + echo "$(date): 🔍 No new builds (current: $current_run_id)" + fi +} + +setup_cron() { + echo "🔧 Setting up automatic updates every 10 minutes..." + + # Get the absolute path to this script + local script_path=$(realpath "$0") + + # Create a wrapper script that calls the check function + local cron_script="$ONEPER_DIR/oneper-cron.sh" + + cat > "$cron_script" << EOF +#!/bin/bash +# Auto-generated oneper cron script +export PATH="/usr/local/bin:/usr/bin:/bin:\$PATH" +cd "\$(dirname "$script_path")" +"$script_path" --cron-check +EOF + + chmod +x "$cron_script" + + # Create log file + local log_file="$ONEPER_DIR/oneper-cron.log" + touch "$log_file" + + # Add to crontab + local cron_line="*/10 * * * * $cron_script >> $log_file 2>&1" + + # Check if cron job already exists + if crontab -l 2>/dev/null | grep -q "oneper-cron.sh"; then + echo "âš ī¸ Oneper cron job already exists. Removing old one..." + crontab -l 2>/dev/null | grep -v "oneper-cron.sh" | crontab - + fi + + # Add new cron job + (crontab -l 2>/dev/null; echo "$cron_line") | crontab - + + echo "✅ Automatic updates configured!" + echo "📊 Logs will be written to: $log_file" + echo "🔍 Check status with: tail -f $log_file" + echo "" + echo "💡 To remove automatic updates: oneper remove-cron" +} + +remove_cron() { + echo "đŸ—‘ī¸ Removing automatic updates..." + + # Remove from crontab + if crontab -l 2>/dev/null | grep -q "oneper-cron.sh"; then + crontab -l 2>/dev/null | grep -v "oneper-cron.sh" | crontab - + echo "✅ Removed cron job" + else + echo "â„šī¸ No oneper cron job found" + fi + + # Clean up files + local cron_script="$ONEPER_DIR/oneper-cron.sh" + local log_file="$ONEPER_DIR/oneper-cron.log" + local last_run_file="$ONEPER_DIR/last_installed_run" + + [ -f "$cron_script" ] && rm "$cron_script" && echo "đŸ—‘ī¸ Removed cron script" + [ -f "$log_file" ] && rm "$log_file" && echo "đŸ—‘ī¸ Removed log file" + [ -f "$last_run_file" ] && rm "$last_run_file" && echo "đŸ—‘ī¸ Removed state file" + + echo "✅ Automatic updates removed successfully" +} + clean_cache() { if [ ! -d "$ONEPER_DIR" ]; then echo "📁 Oneper cache directory doesn't exist: $ONEPER_DIR" @@ -228,19 +450,28 @@ clean_cache() { } main() { - if [ $# -eq 0 ]; then - show_help - exit 1 - fi - - # Handle help flags first + # Handle special internal commands first case "$1" in + "--cron-check") + # Internal command used by cron job + ensure_oneper_dir + check_and_install_if_new + exit $? + ;; "-h"|"--help") show_help exit 0 ;; esac + # If no arguments, default to installing from main + if [ $# -eq 0 ]; then + check_dependencies + ensure_oneper_dir + install_from_main + exit 0 + fi + check_dependencies ensure_oneper_dir @@ -262,6 +493,15 @@ main() { "--latest") install_latest ;; + "--platform") + # Handle: oneper install --platform (install from main with specific platform) + local platform="$3" + install_from_main "$platform" + ;; + "") + # Handle: oneper install (install from main with auto-detected platform) + install_from_main + ;; *) echo "❌ Unknown install option: $2" show_help @@ -269,6 +509,12 @@ main() { ;; esac ;; + "setup-cron") + setup_cron + ;; + "remove-cron") + remove_cron + ;; "clean") clean_cache ;; From ec0d7deb5405fa8ac42300bf57273a8fe8a4c9d9 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 16:54:47 -0700 Subject: [PATCH 56/64] feat: use system message tools for default for openrouter, except with claude --- .../shouldAutoEnableSystemMessageTools.ts | 31 ++++++ ...ouldAutoEnableSystemMessageTools.vitest.ts | 85 ++++++++++++++ gui/src/components/ModeSelect/ModeSelect.tsx | 6 +- .../selectUseSystemMessageTools.test.ts | 105 ++++++++++++++++++ .../selectors/selectUseSystemMessageTools.ts | 37 ++++++ gui/src/redux/thunks/streamNormalInput.ts | 6 +- 6 files changed, 265 insertions(+), 5 deletions(-) create mode 100644 core/config/shouldAutoEnableSystemMessageTools.ts create mode 100644 core/config/shouldAutoEnableSystemMessageTools.vitest.ts create mode 100644 gui/src/redux/selectors/selectUseSystemMessageTools.test.ts create mode 100644 gui/src/redux/selectors/selectUseSystemMessageTools.ts diff --git a/core/config/shouldAutoEnableSystemMessageTools.ts b/core/config/shouldAutoEnableSystemMessageTools.ts new file mode 100644 index 000000000..bdebaab1c --- /dev/null +++ b/core/config/shouldAutoEnableSystemMessageTools.ts @@ -0,0 +1,31 @@ +import { ModelDescription } from "../index.d"; + +/** + * Determines if system message tools should be auto-enabled for the given model. + * This is used to automatically enable system message tools for certain provider/model combinations + * where we have a strong preference, taking priority over user manual settings. + * + * System message tools are an alternative to native tool calling where tool definitions and calls + * are embedded in the system message as text rather than using the provider's native tool calling API. + * This can be beneficial for providers/models that don't support native tool calling or have + * poor tool calling performance. + * + * Current auto-enable rules: + * - OpenRouter provider: true for all models except those containing "claude" (since Claude models + * generally have good native tool calling support) + * - All other providers: undefined (no auto-preference, use manual setting) + * + * @param model The model description to check + * @returns true to force enable, false to force disable, undefined for no auto-preference + */ +export function shouldAutoEnableSystemMessageTools( + model: ModelDescription, +): boolean | undefined { + // Auto-enable for OpenRouter, but exclude Claude models which have good native tool calling + if (model.provider === "openrouter") { + return !model.model.toLowerCase().includes("claude"); + } + + // No auto-preference for all other providers - use manual setting + return undefined; +} diff --git a/core/config/shouldAutoEnableSystemMessageTools.vitest.ts b/core/config/shouldAutoEnableSystemMessageTools.vitest.ts new file mode 100644 index 000000000..9e0e9c59c --- /dev/null +++ b/core/config/shouldAutoEnableSystemMessageTools.vitest.ts @@ -0,0 +1,85 @@ +import { describe, expect, test } from "vitest"; +import { ModelDescription } from "../index.d"; +import { shouldAutoEnableSystemMessageTools } from "./shouldAutoEnableSystemMessageTools"; + +describe("shouldAutoEnableSystemMessageTools", () => { + const createModel = (provider: string, model: string): ModelDescription => ({ + title: "Test Model", + provider, + underlyingProviderName: provider, + model, + }); + + test("should return true for OpenRouter models that don't contain 'claude'", () => { + expect( + shouldAutoEnableSystemMessageTools(createModel("openrouter", "gpt-4o")), + ).toBe(true); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "llama-3.3-70b-instruct"), + ), + ).toBe(true); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "qwen/qwen-2.5-72b-instruct"), + ), + ).toBe(true); + }); + + test("should return false for OpenRouter Claude models", () => { + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "anthropic/claude-3-sonnet"), + ), + ).toBe(false); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "anthropic/claude-3.5-sonnet"), + ), + ).toBe(false); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "claude-3-haiku"), + ), + ).toBe(false); + }); + + test("should return undefined for all other providers", () => { + expect( + shouldAutoEnableSystemMessageTools(createModel("openai", "gpt-4o")), + ).toBe(undefined); + expect( + shouldAutoEnableSystemMessageTools( + createModel("anthropic", "claude-3.5-sonnet"), + ), + ).toBe(undefined); + expect( + shouldAutoEnableSystemMessageTools( + createModel("groq", "llama-3.3-70b-versatile"), + ), + ).toBe(undefined); + expect( + shouldAutoEnableSystemMessageTools( + createModel("together", "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo"), + ), + ).toBe(undefined); + }); + + test("should be case insensitive for 'claude' detection", () => { + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "CLAUDE-models"), + ), + ).toBe(false); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "Claude-3.5"), + ), + ).toBe(false); + expect( + shouldAutoEnableSystemMessageTools( + createModel("openrouter", "some-model-Claude"), + ), + ).toBe(false); + }); +}); diff --git a/gui/src/components/ModeSelect/ModeSelect.tsx b/gui/src/components/ModeSelect/ModeSelect.tsx index 002e5dce2..07de26fe7 100644 --- a/gui/src/components/ModeSelect/ModeSelect.tsx +++ b/gui/src/components/ModeSelect/ModeSelect.tsx @@ -12,6 +12,7 @@ import { import { capitalize } from "lodash"; import { useCallback, useEffect, useMemo } from "react"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; +import { selectUseSystemMessageTools } from "../../redux/selectors/selectUseSystemMessageTools"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; import { setMode } from "../../redux/slices/sessionSlice"; import { getFontSize, getMetaKeyLabel } from "../../util"; @@ -24,9 +25,8 @@ export function ModeSelect() { const dispatch = useAppDispatch(); const mode = useAppSelector((store) => store.session.mode); const selectedModel = useAppSelector(selectSelectedChatModel); - const useSystemTools = useAppSelector( - (state) => state.config.config.experimental?.onlyUseSystemMessageTools, - ); + const useSystemTools = useAppSelector(selectUseSystemMessageTools); + const isAgentSupported = useMemo(() => { if (!selectedModel) { return undefined; diff --git a/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts new file mode 100644 index 000000000..a3100508e --- /dev/null +++ b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts @@ -0,0 +1,105 @@ +import { ModelDescription } from "core"; +import { describe, expect, test, vi } from "vitest"; +import { RootState } from "../store"; +import { selectUseSystemMessageTools } from "./selectUseSystemMessageTools"; + +// Mock the shouldAutoEnableSystemMessageTools function +vi.mock("core/config/shouldAutoEnableSystemMessageTools", () => ({ + shouldAutoEnableSystemMessageTools: vi.fn((model: ModelDescription) => { + if (model.provider === "openrouter") { + return !model.model.toLowerCase().includes("claude"); + } + return undefined; // No auto-preference for other providers + }), +})); + +// Mock the selectSelectedChatModel selector +vi.mock("../slices/configSlice", () => ({ + selectSelectedChatModel: vi.fn((state: RootState) => state.selectedModel), +})); + +describe("selectUseSystemMessageTools", () => { + const createMockState = ( + manualSetting?: boolean, + selectedModel?: ModelDescription, + ): RootState => + ({ + selectedModel, + config: { + config: { + experimental: { + onlyUseSystemMessageTools: manualSetting, + }, + }, + }, + }) as any; + + const createModel = (provider: string, model: string): ModelDescription => ({ + title: "Test Model", + provider, + underlyingProviderName: provider, + model, + }); + + test("auto-detection takes priority: OpenRouter non-Claude returns true even with manual false", () => { + const state = createMockState(false, createModel("openrouter", "gpt-4")); + expect(selectUseSystemMessageTools(state)).toBe(true); + }); + + test("auto-detection takes priority: OpenRouter Claude returns false even with manual true", () => { + const state = createMockState( + true, + createModel("openrouter", "claude-3.5-sonnet"), + ); + expect(selectUseSystemMessageTools(state)).toBe(false); + }); + + test("falls back to manual setting when no auto-preference: manual true", () => { + const state = createMockState(true, createModel("openai", "gpt-4")); + expect(selectUseSystemMessageTools(state)).toBe(true); + }); + + test("falls back to manual setting when no auto-preference: manual false", () => { + const state = createMockState( + false, + createModel("anthropic", "claude-3.5-sonnet"), + ); + expect(selectUseSystemMessageTools(state)).toBe(false); + }); + + test("defaults to false when no auto-preference and no manual setting", () => { + const state = createMockState( + undefined, + createModel("groq", "llama-3.3-70b"), + ); + expect(selectUseSystemMessageTools(state)).toBe(false); + }); + + test("handles missing selected model: uses manual setting", () => { + const state = createMockState(true, undefined); + expect(selectUseSystemMessageTools(state)).toBe(true); + }); + + test("handles missing selected model: defaults to false when no manual setting", () => { + const state = createMockState(undefined, undefined); + expect(selectUseSystemMessageTools(state)).toBe(false); + }); + + test("auto-enable works for various OpenRouter models", () => { + expect( + selectUseSystemMessageTools( + createMockState(false, createModel("openrouter", "gpt-4o")), + ), + ).toBe(true); + expect( + selectUseSystemMessageTools( + createMockState(false, createModel("openrouter", "llama-3.3-70b")), + ), + ).toBe(true); + expect( + selectUseSystemMessageTools( + createMockState(true, createModel("openrouter", "claude-haiku")), + ), + ).toBe(false); + }); +}); diff --git a/gui/src/redux/selectors/selectUseSystemMessageTools.ts b/gui/src/redux/selectors/selectUseSystemMessageTools.ts new file mode 100644 index 000000000..b5b09de0b --- /dev/null +++ b/gui/src/redux/selectors/selectUseSystemMessageTools.ts @@ -0,0 +1,37 @@ +import { shouldAutoEnableSystemMessageTools } from "core/config/shouldAutoEnableSystemMessageTools"; +import { selectSelectedChatModel } from "../slices/configSlice"; +import { RootState } from "../store"; + +/** + * Selector that determines if system message tools should be used. + * This prioritizes auto-detection over manual configuration where we have a strong preference. + * + * Priority order: + * 1. Auto-detection (if it returns true/false) + * 2. Manual user configuration (if auto-detection returns undefined) + * 3. Default to false + * + * @param state The Redux root state + * @returns true if system message tools should be used, false otherwise + */ +export function selectUseSystemMessageTools(state: RootState): boolean { + const selectedModel = selectSelectedChatModel(state); + const manualSetting = + state.config.config.experimental?.onlyUseSystemMessageTools; + + // If no model is selected, fall back to manual setting or default + if (!selectedModel) { + return manualSetting ?? false; + } + + // Check auto-detection first + const autoSetting = shouldAutoEnableSystemMessageTools(selectedModel); + + // If auto-detection has a preference, use it (takes priority) + if (autoSetting !== undefined) { + return autoSetting; + } + + // If no auto-preference, use manual setting or default to false + return manualSetting ?? false; +} diff --git a/gui/src/redux/thunks/streamNormalInput.ts b/gui/src/redux/thunks/streamNormalInput.ts index 62e6147db..fbff48d23 100644 --- a/gui/src/redux/thunks/streamNormalInput.ts +++ b/gui/src/redux/thunks/streamNormalInput.ts @@ -4,6 +4,7 @@ import { getRuleId } from "core/llm/rules/getSystemMessageWithRules"; import { ToCoreProtocol } from "core/protocol"; import { BuiltInToolNames } from "core/tools/builtIn"; import { selectActiveTools } from "../selectors/selectActiveTools"; +import { selectUseSystemMessageTools } from "../selectors/selectUseSystemMessageTools"; import { selectSelectedChatModel } from "../slices/configSlice"; import { abortStream, @@ -141,8 +142,9 @@ export const streamNormalInput = createAsyncThunk< const allActiveTools = selectActiveTools(state); const activeTools = filterToolsForModel(allActiveTools, selectedChatModel); const supportsNativeTools = modelSupportsNativeTools(selectedChatModel); - const useSystemTools = - !!state.config.config.experimental?.onlyUseSystemMessageTools; + + // Use the centralized selector to determine if system message tools should be used + const useSystemTools = selectUseSystemMessageTools(state); const useNativeTools = !useSystemTools && supportsNativeTools; // Construct completion options From ffb8b4bb0694b667bc10a601c17e7bf55eed0a37 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 17:11:43 -0700 Subject: [PATCH 57/64] fix: type error --- .../selectors/selectUseSystemMessageTools.test.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts index a3100508e..cec0d3459 100644 --- a/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts +++ b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts @@ -14,17 +14,20 @@ vi.mock("core/config/shouldAutoEnableSystemMessageTools", () => ({ })); // Mock the selectSelectedChatModel selector +const mockSelectSelectedChatModel = vi.fn(); vi.mock("../slices/configSlice", () => ({ - selectSelectedChatModel: vi.fn((state: RootState) => state.selectedModel), + selectSelectedChatModel: mockSelectSelectedChatModel, })); describe("selectUseSystemMessageTools", () => { const createMockState = ( manualSetting?: boolean, selectedModel?: ModelDescription, - ): RootState => - ({ - selectedModel, + ): RootState => { + // Set up the mock to return the selected model for this test + mockSelectSelectedChatModel.mockReturnValue(selectedModel); + + return { config: { config: { experimental: { @@ -32,7 +35,8 @@ describe("selectUseSystemMessageTools", () => { }, }, }, - }) as any; + } as any; + }; const createModel = (provider: string, model: string): ModelDescription => ({ title: "Test Model", From bdda704a601b43fc5bb312af52fbc259b4df0042 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 17:18:35 -0700 Subject: [PATCH 58/64] another fix --- .../selectUseSystemMessageTools.test.ts | 75 ++++++++++--------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts index cec0d3459..600d52532 100644 --- a/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts +++ b/gui/src/redux/selectors/selectUseSystemMessageTools.test.ts @@ -1,7 +1,6 @@ import { ModelDescription } from "core"; import { describe, expect, test, vi } from "vitest"; import { RootState } from "../store"; -import { selectUseSystemMessageTools } from "./selectUseSystemMessageTools"; // Mock the shouldAutoEnableSystemMessageTools function vi.mock("core/config/shouldAutoEnableSystemMessageTools", () => ({ @@ -13,20 +12,19 @@ vi.mock("core/config/shouldAutoEnableSystemMessageTools", () => ({ }), })); -// Mock the selectSelectedChatModel selector -const mockSelectSelectedChatModel = vi.fn(); +// Mock the selectSelectedChatModel selector - we'll control its return value in tests vi.mock("../slices/configSlice", () => ({ - selectSelectedChatModel: mockSelectSelectedChatModel, + selectSelectedChatModel: vi.fn(), })); -describe("selectUseSystemMessageTools", () => { - const createMockState = ( - manualSetting?: boolean, - selectedModel?: ModelDescription, - ): RootState => { - // Set up the mock to return the selected model for this test - mockSelectSelectedChatModel.mockReturnValue(selectedModel); +// Import after mocking +import { selectSelectedChatModel } from "../slices/configSlice"; +import { selectUseSystemMessageTools } from "./selectUseSystemMessageTools"; +describe("selectUseSystemMessageTools", () => { + const mockSelectSelectedChatModel = selectSelectedChatModel as any; + + const createMockState = (manualSetting?: boolean): RootState => { return { config: { config: { @@ -46,64 +44,69 @@ describe("selectUseSystemMessageTools", () => { }); test("auto-detection takes priority: OpenRouter non-Claude returns true even with manual false", () => { - const state = createMockState(false, createModel("openrouter", "gpt-4")); + mockSelectSelectedChatModel.mockReturnValue( + createModel("openrouter", "gpt-4"), + ); + const state = createMockState(false); expect(selectUseSystemMessageTools(state)).toBe(true); }); test("auto-detection takes priority: OpenRouter Claude returns false even with manual true", () => { - const state = createMockState( - true, + mockSelectSelectedChatModel.mockReturnValue( createModel("openrouter", "claude-3.5-sonnet"), ); + const state = createMockState(true); expect(selectUseSystemMessageTools(state)).toBe(false); }); test("falls back to manual setting when no auto-preference: manual true", () => { - const state = createMockState(true, createModel("openai", "gpt-4")); + mockSelectSelectedChatModel.mockReturnValue(createModel("openai", "gpt-4")); + const state = createMockState(true); expect(selectUseSystemMessageTools(state)).toBe(true); }); test("falls back to manual setting when no auto-preference: manual false", () => { - const state = createMockState( - false, + mockSelectSelectedChatModel.mockReturnValue( createModel("anthropic", "claude-3.5-sonnet"), ); + const state = createMockState(false); expect(selectUseSystemMessageTools(state)).toBe(false); }); test("defaults to false when no auto-preference and no manual setting", () => { - const state = createMockState( - undefined, + mockSelectSelectedChatModel.mockReturnValue( createModel("groq", "llama-3.3-70b"), ); + const state = createMockState(undefined); expect(selectUseSystemMessageTools(state)).toBe(false); }); test("handles missing selected model: uses manual setting", () => { - const state = createMockState(true, undefined); + mockSelectSelectedChatModel.mockReturnValue(undefined); + const state = createMockState(true); expect(selectUseSystemMessageTools(state)).toBe(true); }); test("handles missing selected model: defaults to false when no manual setting", () => { - const state = createMockState(undefined, undefined); + mockSelectSelectedChatModel.mockReturnValue(undefined); + const state = createMockState(undefined); expect(selectUseSystemMessageTools(state)).toBe(false); }); test("auto-enable works for various OpenRouter models", () => { - expect( - selectUseSystemMessageTools( - createMockState(false, createModel("openrouter", "gpt-4o")), - ), - ).toBe(true); - expect( - selectUseSystemMessageTools( - createMockState(false, createModel("openrouter", "llama-3.3-70b")), - ), - ).toBe(true); - expect( - selectUseSystemMessageTools( - createMockState(true, createModel("openrouter", "claude-haiku")), - ), - ).toBe(false); + mockSelectSelectedChatModel.mockReturnValue( + createModel("openrouter", "gpt-4o"), + ); + expect(selectUseSystemMessageTools(createMockState(false))).toBe(true); + + mockSelectSelectedChatModel.mockReturnValue( + createModel("openrouter", "llama-3.3-70b"), + ); + expect(selectUseSystemMessageTools(createMockState(false))).toBe(true); + + mockSelectSelectedChatModel.mockReturnValue( + createModel("openrouter", "claude-haiku"), + ); + expect(selectUseSystemMessageTools(createMockState(true))).toBe(false); }); }); From b9a390192078a6e4399b8fdd6a4625c83672016c Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 17:25:40 -0700 Subject: [PATCH 59/64] remove o1-preview (deprecated) from tests --- core/llm/llm.test.ts | 2 +- core/llm/llms/OpenAI.vitest.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/llm/llm.test.ts b/core/llm/llm.test.ts index c3acdb211..f3afd4c4b 100644 --- a/core/llm/llm.test.ts +++ b/core/llm/llm.test.ts @@ -213,7 +213,7 @@ describe("LLM", () => { testToolCall: true, }); testLLM( - new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o1-preview" }), + new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o3-mini" }), { skip: false, timeout: 60000 }, ); testLLM(new OpenAI({ apiKey: process.env.OPENAI_API_KEY, model: "o1" }), { diff --git a/core/llm/llms/OpenAI.vitest.ts b/core/llm/llms/OpenAI.vitest.ts index d48bbd403..c047a3b5e 100644 --- a/core/llm/llms/OpenAI.vitest.ts +++ b/core/llm/llms/OpenAI.vitest.ts @@ -275,7 +275,7 @@ describe("OpenAI", () => { test("should handle O1 models correctly", async () => { const openai = new OpenAI({ apiKey: "test-api-key", - model: "o1-preview", + model: "o1", apiBase: "https://api.openai.com/v1/", }); @@ -296,7 +296,7 @@ describe("OpenAI", () => { "api-key": "test-api-key", }, body: { - model: "o1-preview", + model: "o1", messages: [{ role: "user", content: "hello" }], stream: true, max_completion_tokens: 100, From 27396389ab52b0730e535f488377570bfcca000f Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 28 Jul 2025 17:48:37 -0700 Subject: [PATCH 60/64] docs: fix broken link to context in chat docs --- docs/features/chat/how-it-works.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/chat/how-it-works.mdx b/docs/features/chat/how-it-works.mdx index 43f3794d3..eeb35276f 100644 --- a/docs/features/chat/how-it-works.mdx +++ b/docs/features/chat/how-it-works.mdx @@ -51,8 +51,8 @@ View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting Learn more about how context providers work: -- [Codebase Context](/customization/overview#codebase-context) -- [Documentation Context](/customization/overview#documentation-context) +- [Codebase Context](/customize/context/codebase) +- [Documentation Context](/customize/context/documentation) --- From 2befbcd306a9e74663794559175f29faf9cb4ec5 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Mon, 28 Jul 2025 17:52:55 -0700 Subject: [PATCH 61/64] fix: adds redirect --- docs/docs.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs.json b/docs/docs.json index ec993cdb7..04fc66d35 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -988,6 +988,14 @@ { "source": "/agent/context-selection", "destination": "/features/agent/context-selection" + }, + { + "source": "/customization/overview#codebase-context", + "destination": "/customize/context/codebase" + }, + { + "source": "/customization/overview#documentation-context", + "destination": "/customize/context/documentation" } ] } From 763e5f87369684e9ba6ab6c70280dbfab3cb7a37 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 17:57:31 -0700 Subject: [PATCH 62/64] try to fix tests again --- core/llm/llms/OpenAI.vitest.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/llm/llms/OpenAI.vitest.ts b/core/llm/llms/OpenAI.vitest.ts index c047a3b5e..b07f05b15 100644 --- a/core/llm/llms/OpenAI.vitest.ts +++ b/core/llm/llms/OpenAI.vitest.ts @@ -275,7 +275,7 @@ describe("OpenAI", () => { test("should handle O1 models correctly", async () => { const openai = new OpenAI({ apiKey: "test-api-key", - model: "o1", + model: "o3-mini", apiBase: "https://api.openai.com/v1/", }); @@ -296,7 +296,7 @@ describe("OpenAI", () => { "api-key": "test-api-key", }, body: { - model: "o1", + model: "o3-mini", messages: [{ role: "user", content: "hello" }], stream: true, max_completion_tokens: 100, From 2fc7106c6f31e485740032bd52598d8b3abac41e Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 18:17:25 -0700 Subject: [PATCH 63/64] test: skip next edit e2e test due to flake --- .../vscode/e2e/tests/{NextEdit.test.ts => NextEdit.skip.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename extensions/vscode/e2e/tests/{NextEdit.test.ts => NextEdit.skip.ts} (100%) diff --git a/extensions/vscode/e2e/tests/NextEdit.test.ts b/extensions/vscode/e2e/tests/NextEdit.skip.ts similarity index 100% rename from extensions/vscode/e2e/tests/NextEdit.test.ts rename to extensions/vscode/e2e/tests/NextEdit.skip.ts From f659aa69bb94de0e37e30e1d941620f063193592 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 28 Jul 2025 18:36:22 -0700 Subject: [PATCH 64/64] Bump version to 1.1.70 --- extensions/vscode/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index a3ca3a6b7..2413c9ead 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "1.1.69", + "version": "1.1.70", "repository": { "type": "git", "url": "https://github.com/continuedev/continue"