From a1c97bc37c183d6fed50fed52574f624767a9bda Mon Sep 17 00:00:00 2001 From: liuk Date: Sat, 19 Apr 2025 21:32:03 +0800 Subject: [PATCH 001/110] refactor: simplify nested map access and improve readability --- .../continue/CoreMessengerManager.kt | 7 ++----- .../continue/IdeProtocolClient.kt | 12 ++---------- .../editor/InlineEditAction.kt | 9 ++++----- .../editor/VerticalDiffBlock.kt | 3 +-- .../continueintellijextension/utils/Utils.kt | 14 +++++++++++++- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt index 0ce128e5b..f3f7f557e 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/CoreMessengerManager.kt @@ -1,6 +1,7 @@ package com.github.continuedev.continueintellijextension.`continue` import com.github.continuedev.continueintellijextension.services.TelemetryService +import com.github.continuedev.continueintellijextension.utils.castNestedOrNull import com.github.continuedev.continueintellijextension.utils.getMachineUniqueID import com.intellij.ide.plugins.PluginManager import com.intellij.openapi.components.service @@ -59,12 +60,8 @@ class CoreMessengerManager( coreMessenger = CoreMessenger(project, continueCorePath, ideProtocolClient, coroutineScope) coreMessenger?.request("config/getSerializedProfileInfo", null, null) { response -> - val responseObject = response as Map<*, *> - val responseContent = responseObject["content"] as Map<*, *> - val result = responseContent["result"] as Map<*, *> - val config = result["config"] as Map + val allowAnonymousTelemetry = response.castNestedOrNull("content", "result", "config", "allowAnonymousTelemetry") - val allowAnonymousTelemetry = config?.get("allowAnonymousTelemetry") as? Boolean val telemetryService = service() if (allowAnonymousTelemetry == true || allowAnonymousTelemetry == null) { telemetryService.setup(getMachineUniqueID()) 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 f76a41574..acbcfae6d 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 @@ -486,18 +486,10 @@ class IdeProtocolClient( null ) { response -> try { - val responseObject = response as Map<*, *> - val responseContent = responseObject["content"] as Map<*, *> - val result = responseContent["result"] as Map<*, *> - val config = result["config"] as Map<*, *> + val selectedModels = response.castNestedOrNull>("content", "result", "config", "selectedModelByRole") - val selectedModels = config["selectedModelByRole"] as? Map<*, *> - var applyCodeBlockModel = selectedModels?.get("apply") as? Map<*, *> - // If "apply" role model is not found, try "chat" role - if (applyCodeBlockModel == null) { - applyCodeBlockModel = selectedModels?.get("chat") as? Map<*, *> - } + val applyCodeBlockModel = selectedModels?.get("apply") ?: selectedModels?.get("chat") if (applyCodeBlockModel != null) { continuation.resume(applyCodeBlockModel) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt index fd910308d..426c925ef 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt @@ -3,6 +3,7 @@ package com.github.continuedev.continueintellijextension.editor import com.github.continuedev.continueintellijextension.`continue`.GetTheme import com.github.continuedev.continueintellijextension.services.ContinueExtensionSettings import com.github.continuedev.continueintellijextension.services.ContinuePluginService +import com.github.continuedev.continueintellijextension.utils.castNestedOrNull import com.github.continuedev.continueintellijextension.utils.getMetaKeyLabel import com.github.continuedev.continueintellijextension.utils.getShiftKeyLabel import com.intellij.openapi.Disposable @@ -130,11 +131,9 @@ fun openInlineEdit(project: Project?, editor: Editor) { val modelTitles = mutableListOf() continuePluginService.coreMessenger?.request("config/getSerializedProfileInfo", null, null) { response -> - val content = (response as Map)["content"] as Map - val result = content["result"] as Map - val config = result["config"] as Map - val models = config["models"] as List> - modelTitles.addAll(models.map { it["title"] as String }) + response.castNestedOrNull>("content", "result", "config", "modelsByRole", "chat") + ?.mapNotNull { it.castNestedOrNull("title") } + ?.let(modelTitles::addAll) } // This is a hacky way to not complicate getting model titles with coroutines diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/VerticalDiffBlock.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/VerticalDiffBlock.kt index 035c52db8..20e8624ac 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/VerticalDiffBlock.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/VerticalDiffBlock.kt @@ -73,8 +73,7 @@ class VerticalDiffBlock( deletedLines.add(deletedText.trimEnd()) - // Unable to ensure that text length has not changed, so we need to get it again - editor.document.deleteString(startOffset, min(endOffset, editor.document.textLength)) + editor.document.deleteString(startOffset, endOffset) } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt index 7e90ba99e..a26695b4e 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/utils/Utils.kt @@ -80,4 +80,16 @@ fun uuid(): String { return UUID.randomUUID().toString() } -fun VirtualFile.toUriOrNull(): String? = fileSystem.getNioPath(this)?.toUri()?.toString()?.removeSuffix("/") \ No newline at end of file +fun VirtualFile.toUriOrNull(): String? = fileSystem.getNioPath(this)?.toUri()?.toString()?.removeSuffix("/") + +inline fun Any?.castNestedOrNull(vararg keys: String): T? { + return getNestedOrNull(*keys) as? T +} + +fun Any?.getNestedOrNull(vararg keys: String): Any? { + var result = this + for (key in keys) { + result = (result as? Map<*, *>)?.get(key) ?: return null + } + return result +} \ No newline at end of file From 0b185b1a3f6c509734ba75c713b596a6f982da0e Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:33:25 +0530 Subject: [PATCH 002/110] introduce separate agent system message --- core/config/load.ts | 4 +++- core/config/yaml/models.ts | 1 + core/index.d.ts | 2 ++ core/llm/constructMessages.ts | 4 ++-- core/llm/index.ts | 2 ++ gui/src/components/mainInput/Lump/sections/RulesSection.tsx | 2 +- gui/src/redux/thunks/streamResponse.ts | 3 ++- gui/src/redux/thunks/streamResponseAfterToolCall.ts | 3 ++- packages/config-yaml/src/schemas/models.ts | 1 + 9 files changed, 16 insertions(+), 6 deletions(-) diff --git a/core/config/load.ts b/core/config/load.ts index 683fd6e4a..e76a9d7b1 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -609,6 +609,7 @@ function llmToSerializedModelDescription(llm: ILLM): ModelDescription { contextLength: llm.contextLength, template: llm.template, completionOptions: llm.completionOptions, + baseAgentSystemMessage: llm.baseAgentSystemMessage, baseChatSystemMessage: llm.baseChatSystemMessage, requestOptions: llm.requestOptions, promptTemplates: serializePromptTemplates(llm.promptTemplates), @@ -951,5 +952,6 @@ export { finalToBrowserConfig, intermediateToFinalConfig, loadContinueConfigFromJson, - type BrowserSerializedContinueConfig, + type BrowserSerializedContinueConfig }; + diff --git a/core/config/yaml/models.ts b/core/config/yaml/models.ts index a6be3f033..143e0d348 100644 --- a/core/config/yaml/models.ts +++ b/core/config/yaml/models.ts @@ -61,6 +61,7 @@ async function modelConfigToBaseLLM({ uniqueId, title: model.name, promptTemplates: model.promptTemplates, + baseAgentSystemMessage: model.chatOptions?.baseAgentSystemMessage, baseChatSystemMessage: model.chatOptions?.baseSystemMessage, capabilities: { tools: model.capabilities?.includes("tool_use"), diff --git a/core/index.d.ts b/core/index.d.ts index c5ac2d62f..6a92ba285 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -565,6 +565,7 @@ export interface LLMOptions { title?: string; uniqueId?: string; + baseAgentSystemMessage?: string; baseChatSystemMessage?: string; contextLength?: number; maxStopWords?: number; @@ -1047,6 +1048,7 @@ export interface ModelDescription { maxStopWords?: number; template?: TemplateType; completionOptions?: BaseCompletionOptions; + baseAgentSystemMessage?: string; baseChatSystemMessage?: string; requestOptions?: RequestOptions; promptTemplates?: { [key: string]: string }; diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index 11701feb8..8a6382ca4 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -60,7 +60,7 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ export function constructMessages( history: ChatHistoryItem[], - baseChatSystemMessage: string | undefined, + baseChatOrAgentSystemMessage: string | undefined, rules: RuleWithSource[], ): ChatMessage[] { const filteredHistory = history.filter( @@ -100,7 +100,7 @@ export function constructMessages( | undefined; const systemMessage = getSystemMessageWithRules({ - baseSystemMessage: baseChatSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE, + baseSystemMessage: baseChatOrAgentSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE, rules, userMessage: lastUserMsg, }); diff --git a/core/llm/index.ts b/core/llm/index.ts index 9cb63d637..9df38fa20 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -126,6 +126,7 @@ export abstract class BaseLLM implements ILLM { title?: string; baseChatSystemMessage?: string; + baseAgentSystemMessage?: string; contextLength: number; maxStopWords?: number | undefined; completionOptions: CompletionOptions; @@ -192,6 +193,7 @@ export abstract class BaseLLM implements ILLM { this.title = options.title; this.uniqueId = options.uniqueId ?? "None"; + this.baseAgentSystemMessage = options.baseAgentSystemMessage; this.baseChatSystemMessage = options.baseChatSystemMessage; this.contextLength = options.contextLength ?? llmInfo?.contextLength ?? DEFAULT_CONTEXT_LENGTH; diff --git a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx index 77b6c4bd9..8a7107199 100644 --- a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx @@ -183,7 +183,7 @@ export function RulesSection() { // Add a displayed rule for the base system chat message when in chat mode if (mode === "chat" || mode === "agent") { const baseMessage = - config.selectedModelByRole.chat?.baseChatSystemMessage; + mode === 'agent' ? config.selectedModelByRole?.chat?.baseAgentSystemMessage : config.selectedModelByRole.chat?.baseChatSystemMessage; if (baseMessage) { rules.unshift({ rule: baseMessage, diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index dd00b86fb..587afaccb 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -85,9 +85,10 @@ export const streamResponseThunk = createAsyncThunk< // Construct messages from updated history const updatedHistory = getState().session.history; + const messageMode = getState().session.mode const messages = constructMessages( [...updatedHistory], - selectedChatModel?.baseChatSystemMessage, + messageMode === 'agent' ? selectedChatModel?.baseAgentSystemMessage : selectedChatModel?.baseChatSystemMessage, state.config.config.rules, ); diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 7ff0ee47e..53e491431 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -65,9 +65,10 @@ export const streamResponseAfterToolCall = createAsyncThunk< dispatch(setActive()); const updatedHistory = getState().session.history; + const messageMode = getState().session.mode const messages = constructMessages( [...updatedHistory], - selectedChatModel?.baseChatSystemMessage, + messageMode === 'agent' ? selectedChatModel?.baseAgentSystemMessage : selectedChatModel?.baseChatSystemMessage, state.config.config.rules, ); diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index 792cb383b..a0c914331 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -66,6 +66,7 @@ export type EmbedOptions = z.infer; export const chatOptionsSchema = z.object({ baseSystemMessage: z.string().optional(), + baseAgentSystemMessage: z.string().optional() }); export type ChatOptions = z.infer; From b11a18be1e5d288103e620333b4c607ada943cb5 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:36:22 +0530 Subject: [PATCH 003/110] update documentation --- docs/docs/reference.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/reference.md b/docs/docs/reference.md index dd8f7bc3b..96d1f69d3 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -169,7 +169,8 @@ The `models` section defines the language models used in your configuration. Mod - `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`. - `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [`apply`](./customize/model-roles/apply.mdx#prompt-templating) and [autocomplete](./customize/model-roles/autocomplete.md#prompt-templating) - `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: - - `baseSystemMessage`: Can be used to override the default system prompt. + - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. + - `baseAgentSystemMessage`: Can be used to override the default system prompt for **Agent** mode. - `embedOptions`: If the model includes role `embed`, these settings apply for embeddings: - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. From d749cce4a54e112ed3243558ef023d646c6ced26 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:23:36 +0530 Subject: [PATCH 004/110] update for json config --- core/config/load.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config/load.ts b/core/config/load.ts index e76a9d7b1..70bb07c93 100644 --- a/core/config/load.ts +++ b/core/config/load.ts @@ -609,7 +609,7 @@ function llmToSerializedModelDescription(llm: ILLM): ModelDescription { contextLength: llm.contextLength, template: llm.template, completionOptions: llm.completionOptions, - baseAgentSystemMessage: llm.baseAgentSystemMessage, + baseAgentSystemMessage: llm.baseChatSystemMessage, // JSON config does not have a key for agent system message baseChatSystemMessage: llm.baseChatSystemMessage, requestOptions: llm.requestOptions, promptTemplates: serializePromptTemplates(llm.promptTemplates), From e36bef8a16de0cb6ec5edbf42ab2ef69b3104007 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 15:24:49 -0700 Subject: [PATCH 005/110] edit mode state updates --- gui/src/components/AcceptRejectAllButtons.tsx | 23 +----- gui/src/components/Layout.tsx | 17 ++-- .../OnboardingLocalTab.tsx | 4 +- .../platform/PlatformOnboardingCard.tsx | 2 +- .../components/OnboardingCard/tabs/index.ts | 2 +- .../StepContainer/ResponseActions.tsx | 5 +- .../StepContainerPreToolbar/index.tsx | 10 +-- .../dialogs/FreeTrialOverDialog.tsx | 9 +-- .../components/mainInput/ContinueInputBox.tsx | 52 +++++++------ gui/src/components/mainInput/InputToolbar.tsx | 15 ++-- .../mainInput/TipTapEditor/TipTapEditor.tsx | 11 ++- .../useMainEditorWebviewListeners.ts | 6 +- .../TipTapEditor/utils/editorConfig.ts | 21 ++--- .../components/modelSelection/ModeSelect.tsx | 8 +- .../components/modelSelection/ModelSelect.tsx | 23 +++--- gui/src/pages/gui/Chat.tsx | 67 ++++++---------- gui/src/pages/gui/EmptyChatBody.tsx | 9 +-- gui/src/pages/gui/StreamError.tsx | 21 ++--- gui/src/redux/selectors/index.ts | 3 - gui/src/redux/slices/editModeState.ts | 72 ++++++++++++++++- gui/src/redux/slices/sessionSlice.ts | 77 +------------------ gui/src/redux/store.ts | 3 +- gui/src/redux/thunks/exitEditMode.ts | 21 ++--- gui/src/util/getMultifileEditPrompt.ts | 62 --------------- 24 files changed, 194 insertions(+), 349 deletions(-) rename gui/src/components/OnboardingCard/{tabs => components}/OnboardingLocalTab.tsx (97%) delete mode 100644 gui/src/util/getMultifileEditPrompt.ts diff --git a/gui/src/components/AcceptRejectAllButtons.tsx b/gui/src/components/AcceptRejectAllButtons.tsx index 7a9c28062..5ffbabbf1 100644 --- a/gui/src/components/AcceptRejectAllButtons.tsx +++ b/gui/src/components/AcceptRejectAllButtons.tsx @@ -2,8 +2,6 @@ import { CheckIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { ApplyState } from "core"; import { useContext } from "react"; import { IdeMessengerContext } from "../context/IdeMessenger"; -import { useAppSelector } from "../redux/hooks"; -import { selectIsSingleRangeEditOrInsertion } from "../redux/slices/sessionSlice"; import { getMetaKeyLabel } from "../util"; export interface AcceptRejectAllButtonsProps { @@ -18,7 +16,6 @@ export default function AcceptRejectAllButtons({ onAcceptOrReject, }: AcceptRejectAllButtonsProps) { const ideMessenger = useContext(IdeMessengerContext); - const isSingleRangeEdit = useAppSelector(selectIsSingleRangeEditOrInsertion); async function handleAcceptOrReject(status: AcceptOrRejectOutcome) { for (const { filepath = "", streamId } of pendingApplyStates) { @@ -41,15 +38,7 @@ export default function AcceptRejectAllButtons({ data-testid="edit-reject-button" > - {isSingleRangeEdit ? ( - Reject ({getMetaKeyLabel()}⇧⌫) - ) : ( - <> - Reject - Reject all - Reject all changes - - )} + Reject ({getMetaKeyLabel()}⇧⌫) ); diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 0c5acda83..7844a3e04 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -6,13 +6,12 @@ import { AuthProvider } from "../context/Auth"; import { LocalStorageProvider } from "../context/LocalStorage"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; -import { focusEdit, setEditStatus } from "../redux/slices/editModeState"; import { addCodeToEdit, - newSession, - selectIsInEditMode, - setMode, -} from "../redux/slices/sessionSlice"; + focusEdit, + setEditStatus, +} from "../redux/slices/editModeState"; +import { newSession, setMode } from "../redux/slices/sessionSlice"; import { setShowDialog } from "../redux/slices/uiSlice"; import { exitEditMode } from "../redux/thunks"; import { loadLastSession, saveCurrentSession } from "../redux/thunks/session"; @@ -172,7 +171,7 @@ const Layout = () => { async (payload) => { dispatch(addCodeToEdit(payload)); }, - [navigate], + [], ); useWebviewListener( @@ -183,11 +182,11 @@ const Layout = () => { [], ); - const isInEditMode = useAppSelector(selectIsInEditMode); + const mode = useAppSelector((store) => store.session.mode); useWebviewListener( "exitEditMode", async () => { - if (!isInEditMode) { + if (mode !== "edit") { return; } dispatch( @@ -197,7 +196,7 @@ const Layout = () => { ); dispatch(exitEditMode()); }, - [isInEditMode], + [mode], ); useEffect(() => { diff --git a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx b/gui/src/components/OnboardingCard/components/OnboardingLocalTab.tsx similarity index 97% rename from gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx rename to gui/src/components/OnboardingCard/components/OnboardingLocalTab.tsx index 7e99f430d..b0cc6f179 100644 --- a/gui/src/components/OnboardingCard/tabs/OnboardingLocalTab.tsx +++ b/gui/src/components/OnboardingCard/components/OnboardingLocalTab.tsx @@ -12,9 +12,9 @@ import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { useAppDispatch } from "../../../redux/hooks"; import { setDialogMessage, setShowDialog } from "../../../redux/slices/uiSlice"; import { updateSelectedModelByRole } from "../../../redux/thunks"; -import OllamaModelDownload from "../components/OllamaModelDownload"; -import { OllamaStatus } from "../components/OllamaStatus"; import { useSubmitOnboarding } from "../hooks"; +import OllamaModelDownload from "./OllamaModelDownload"; +import { OllamaStatus } from "./OllamaStatus"; const OLLAMA_CHECK_INTERVAL_MS = 3000; diff --git a/gui/src/components/OnboardingCard/platform/PlatformOnboardingCard.tsx b/gui/src/components/OnboardingCard/platform/PlatformOnboardingCard.tsx index 69eed3ffb..883ea66d1 100644 --- a/gui/src/components/OnboardingCard/platform/PlatformOnboardingCard.tsx +++ b/gui/src/components/OnboardingCard/platform/PlatformOnboardingCard.tsx @@ -5,8 +5,8 @@ import { getLocalStorage, setLocalStorage } from "../../../util/localStorage"; import Alert from "../../gui/Alert"; import { ReusableCard } from "../../ReusableCard"; import { TabTitle } from "../components/OnboardingCardTabs"; +import OnboardingLocalTab from "../components/OnboardingLocalTab"; import { useOnboardingCard } from "../hooks"; -import OnboardingLocalTab from "../tabs/OnboardingLocalTab"; import MainTab from "./tabs/main"; export interface OnboardingCardState { diff --git a/gui/src/components/OnboardingCard/tabs/index.ts b/gui/src/components/OnboardingCard/tabs/index.ts index 7e975a8ec..1e6aae37d 100644 --- a/gui/src/components/OnboardingCard/tabs/index.ts +++ b/gui/src/components/OnboardingCard/tabs/index.ts @@ -1,3 +1,3 @@ +export { default as Local } from "../components/OnboardingLocalTab"; export { default as Best } from "./OnboardingBestTab"; -export { default as Local } from "./OnboardingLocalTab"; export { default as Quickstart } from "./OnboardingQuickstartTab"; diff --git a/gui/src/components/StepContainer/ResponseActions.tsx b/gui/src/components/StepContainer/ResponseActions.tsx index dce39ea6f..c49daccda 100644 --- a/gui/src/components/StepContainer/ResponseActions.tsx +++ b/gui/src/components/StepContainer/ResponseActions.tsx @@ -2,7 +2,6 @@ import { BarsArrowDownIcon, TrashIcon } from "@heroicons/react/24/outline"; import { ChatHistoryItem } from "core"; import { renderChatMessage } from "core/util/messageContent"; import { useAppSelector } from "../../redux/hooks"; -import { selectIsInEditMode } from "../../redux/slices/sessionSlice"; import FeedbackButtons from "../FeedbackButtons"; import { CopyIconButton } from "../gui/CopyIconButton"; import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip"; @@ -23,9 +22,9 @@ export default function ResponseActions({ isTruncated, onDelete, }: ResponseActionsProps) { - const isInEditMode = useAppSelector(selectIsInEditMode); + const mode = useAppSelector((store) => store.session.mode); - if (isInEditMode) { + if (mode === "edit") { return ; } diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx index 6b299db18..44977514f 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/index.tsx @@ -11,10 +11,7 @@ import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { useIdeMessengerRequest } from "../../../hooks"; import { useWebviewListener } from "../../../hooks/useWebviewListener"; import { useAppSelector } from "../../../redux/hooks"; -import { - selectApplyStateByStreamId, - selectIsInEditMode, -} from "../../../redux/slices/sessionSlice"; +import { selectApplyStateByStreamId } from "../../../redux/slices/sessionSlice"; import { getFontSize } from "../../../util"; import { isTerminalCodeBlock } from "../utils"; import { ApplyActions } from "./ApplyActions"; @@ -74,10 +71,7 @@ export function StepContainerPreToolbar({ disableManualApply, }: StepContainerPreToolbarProps) { const ideMessenger = useContext(IdeMessengerContext); - const isInEditMode = useAppSelector(selectIsInEditMode); - const [isExpanded, setIsExpanded] = useState( - expanded ?? (isInEditMode ? false : true), - ); + const [isExpanded, setIsExpanded] = useState(expanded ?? true); const [relativeFilepathUri, setRelativeFilepathUri] = useState( null, diff --git a/gui/src/components/dialogs/FreeTrialOverDialog.tsx b/gui/src/components/dialogs/FreeTrialOverDialog.tsx index 107e351ce..a200b2f15 100644 --- a/gui/src/components/dialogs/FreeTrialOverDialog.tsx +++ b/gui/src/components/dialogs/FreeTrialOverDialog.tsx @@ -1,15 +1,12 @@ import { useEffect } from "react"; import { useDispatch } from "react-redux"; import { useAppSelector } from "../../redux/hooks"; -import { selectUseHub } from "../../redux/selectors"; import { setDialogMessage, setShowDialog } from "../../redux/slices/uiSlice"; -import { OnboardingCard } from "../OnboardingCard"; import { PlatformOnboardingCard } from "../OnboardingCard/platform/PlatformOnboardingCard"; function FreeTrialOverDialog() { const dispatch = useDispatch(); const history = useAppSelector((store) => store.session.history); - const usePlatform = useAppSelector(selectUseHub); useEffect(() => { if (history.length === 0) { @@ -20,11 +17,7 @@ function FreeTrialOverDialog() { return (
- {usePlatform ? ( - - ) : ( - - )} +
); } diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index 14d4816f4..7540dae8d 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -11,7 +11,6 @@ import { Lump } from "./Lump"; import { TipTapEditor } from "./TipTapEditor"; interface ContinueInputBoxProps { - isEditMode?: boolean; isLastUserInput: boolean; isMainInput?: boolean; onEnter: ( @@ -82,36 +81,41 @@ function ContinueInputBox(props: ContinueInputBoxProps) { const availableContextProviders = useAppSelector( (state) => state.config.config.contextProviders, ); + const mode = useAppSelector((store) => store.session.mode); const editModeState = useAppSelector((state) => state.editModeState); - const filteredSlashCommands = props.isEditMode ? [] : availableSlashCommands; + const filteredSlashCommands = useMemo(() => { + return mode === "edit" ? [] : availableSlashCommands; + }, [mode, availableSlashCommands]); + const filteredContextProviders = useMemo(() => { - if (!props.isEditMode) { - return availableContextProviders ?? []; + if (mode === "edit") { + return ( + availableContextProviders?.filter( + (provider) => + !EDIT_DISALLOWED_CONTEXT_PROVIDERS.includes(provider.title), + ) ?? [] + ); } - return ( - availableContextProviders?.filter( - (provider) => - !EDIT_DISALLOWED_CONTEXT_PROVIDERS.includes(provider.title), - ) ?? [] - ); - }, [availableContextProviders]); + return availableContextProviders ?? []; + }, [availableContextProviders, mode]); - const historyKey = props.isEditMode ? "edit" : "chat"; - const placeholder = props.isEditMode - ? "Describe changes, '#' to add files" - : undefined; + const historyKey = mode === "edit" ? "edit" : "chat"; + const placeholder = + mode === "edit" ? "Describe changes, '#' to add files" : undefined; - const toolbarOptions: ToolbarOptions = props.isEditMode - ? { - hideAddContext: false, - hideImageUpload: false, - hideUseCodebase: true, - hideSelectModel: false, - enterText: editModeState.editStatus === "accepting" ? "Retry" : "Edit", - } - : {}; + const toolbarOptions: ToolbarOptions = + mode === "edit" + ? { + hideAddContext: false, + hideImageUpload: false, + hideUseCodebase: true, + hideSelectModel: false, + enterText: + editModeState.editStatus === "accepting" ? "Retry" : "Edit", + } + : {}; return (
(null); const defaultModel = useAppSelector(selectSelectedChatModel); const useActiveFile = useAppSelector(selectUseActiveFile); - const isInEditMode = useAppSelector(selectIsInEditMode); - const hasCodeToEdit = useAppSelector(selectHasCodeToEdit); + const mode = useAppSelector((store) => store.session.mode); + const codeToEdit = useAppSelector((store) => store.editModeState.codeToEdit); const toolCallState = useAppSelector(selectCurrentToolCall); - const isEditModeAndNoCodeToEdit = isInEditMode && !hasCodeToEdit; const currentToolCallApplyState = useAppSelector( selectCurrentToolCallApplyState, ); const isEnterDisabled = props.disabled || - isEditModeAndNoCodeToEdit || + (mode === "edit" && codeToEdit.length === 0) || toolCallState?.status === "generated" || (currentToolCallApplyState && currentToolCallApplyState.status !== "closed"); @@ -158,7 +153,7 @@ function InputToolbar(props: InputToolbarProps) { fontSize: tinyFont, }} > - {!props.toolbarOptions?.hideUseCodebase && !isInEditMode && ( + {!props.toolbarOptions?.hideUseCodebase && mode !== "edit" && ( )} - {isInEditMode && ( + {mode === "edit" && ( { diff --git a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx index f5d172dc2..b9f341032 100644 --- a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx @@ -7,7 +7,6 @@ import useIsOSREnabled from "../../../hooks/useIsOSREnabled"; import useUpdatingRef from "../../../hooks/useUpdatingRef"; import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; import { selectSelectedChatModel } from "../../../redux/slices/configSlice"; -import { selectIsInEditMode } from "../../../redux/slices/sessionSlice"; import InputToolbar, { ToolbarOptions } from "../InputToolbar"; import { ComboBoxItem } from "../types"; import { DragOverlay, InputBoxDiv } from "./components"; @@ -48,9 +47,9 @@ export function TipTapEditor(props: TipTapEditorProps) { const defaultModel = useAppSelector(selectSelectedChatModel); const isStreaming = useAppSelector((state) => state.session.isStreaming); - const isInEditMode = useAppSelector(selectIsInEditMode); const historyLength = useAppSelector((store) => store.session.history.length); + const mode = useAppSelector((store) => store.session.mode); const { editor, onEnterRef } = createEditorConfig({ props, ideMessenger, @@ -82,13 +81,13 @@ export function TipTapEditor(props: TipTapEditorProps) { }, [editor, props.placeholder, historyLength]); useEffect(() => { - if (isInEditMode) { + if (mode === "edit") { setShouldHideToolbar(false); } if (props.isMainInput) { editor?.commands.clearContent(true); } - }, [editor, isInEditMode, props.isMainInput]); + }, [editor, mode, props.isMainInput]); const editorFocusedRef = useUpdatingRef(editor?.isFocused, [editor]); @@ -148,7 +147,7 @@ export function TipTapEditor(props: TipTapEditorProps) { const handleBlur = useCallback( (e: React.FocusEvent) => { - if (isInEditMode) { + if (mode === "edit") { return; } // Check if the new focus target is within our InputBoxDiv @@ -163,7 +162,7 @@ export function TipTapEditor(props: TipTapEditorProps) { setShouldHideToolbar(true); }, 100); }, - [isInEditMode, blurTimeout], + [mode, blurTimeout], ); const handleFocus = useCallback(() => { diff --git a/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts b/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts index 400f08019..15fd50a18 100644 --- a/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts +++ b/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts @@ -3,10 +3,8 @@ import { InputModifiers } from "core"; import { rifWithContentsToContextItem } from "core/commands/util"; import { MutableRefObject } from "react"; import { useWebviewListener } from "../../../hooks/useWebviewListener"; -import { - clearCodeToEdit, - setNewestToolbarPreviewForInput, -} from "../../../redux/slices/sessionSlice"; +import { clearCodeToEdit } from "../../../redux/slices/editModeState"; +import { setNewestToolbarPreviewForInput } from "../../../redux/slices/sessionSlice"; import { AppDispatch } from "../../../redux/store"; import { loadSession, saveCurrentSession } from "../../../redux/thunks/session"; import { CodeBlock, PromptBlock } from "./extensions"; diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index c4a70bb51..340190683 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -22,11 +22,7 @@ import useUpdatingRef from "../../../../hooks/useUpdatingRef"; import { useAppSelector } from "../../../../redux/hooks"; import { selectUseActiveFile } from "../../../../redux/selectors"; import { selectSelectedChatModel } from "../../../../redux/slices/configSlice"; -import { - addCodeToEdit, - selectHasCodeToEdit, - selectIsInEditMode, -} from "../../../../redux/slices/sessionSlice"; +import { addCodeToEdit } from "../../../../redux/slices/editModeState"; import { AppDispatch } from "../../../../redux/store"; import { exitEditMode } from "../../../../redux/thunks"; import { loadLastSession } from "../../../../redux/thunks/session"; @@ -87,15 +83,14 @@ export function createEditorConfig(options: { const isStreaming = useAppSelector((state) => state.session.isStreaming); const useActiveFile = useAppSelector(selectUseActiveFile); const historyLength = useAppSelector((store) => store.session.history.length); - const isInEditMode = useAppSelector(selectIsInEditMode); - const hasCodeToEdit = useAppSelector(selectHasCodeToEdit); - const isEditModeAndNoCodeToEdit = isInEditMode && !hasCodeToEdit; + const mode = useAppSelector((store) => store.session.mode); + const modeRef = useUpdatingRef(mode); + const codeToEdit = useAppSelector((store) => store.editModeState.codeToEdit); const inSubmenuRef = useRef(undefined); const inDropdownRef = useRef(false); const defaultModelRef = useUpdatingRef(defaultModel); const isStreamingRef = useUpdatingRef(isStreaming); - const isInEditModeRef = useUpdatingRef(isInEditMode); const getSubmenuContextItemsRef = useUpdatingRef(getSubmenuContextItems); const availableContextProvidersRef = useUpdatingRef( props.availableContextProviders, @@ -273,7 +268,7 @@ export function createEditorConfig(options: { return true; } - if (inDropdownRef.current || !isInEditModeRef.current) { + if (inDropdownRef.current || modeRef.current !== "edit") { ideMessenger.post("focusEditor", undefined); return true; } @@ -336,7 +331,7 @@ export function createEditorConfig(options: { inSubmenuRef, ideMessenger, ), - allow: () => isInEditModeRef.current, + allow: () => modeRef.current !== "edit", command: async ({ editor, range, props }) => { editor.chain().focus().insertContentAt(range, "").run(); const filepath = props.id; @@ -389,7 +384,7 @@ export function createEditorConfig(options: { if (!editor) { return; } - if (isStreaming || isEditModeAndNoCodeToEdit) { + if (isStreaming || (codeToEdit.length === 0 && mode === "edit")) { return; } @@ -406,7 +401,7 @@ export function createEditorConfig(options: { props.onEnter(json, modifiers, editor); }, - [props.onEnter, editor, props.isMainInput], + [props.onEnter, editor, props.isMainInput, codeToEdit, mode], ); return { editor, onEnterRef }; diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index b4cb94545..0ab3225f9 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -14,11 +14,7 @@ import { lightGray } from ".."; import { useWebviewListener } from "../../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { - cycleMode, - selectCurrentMode, - setMode, -} from "../../redux/slices/sessionSlice"; +import { cycleMode, setMode } from "../../redux/slices/sessionSlice"; import { exitEditMode } from "../../redux/thunks"; import { loadLastSession, @@ -40,7 +36,7 @@ const ShortcutText = styled.span` function ModeSelect() { const dispatch = useAppDispatch(); - const mode = useAppSelector(selectCurrentMode); + const mode = useAppSelector((store) => store.session.mode); const selectedModel = useAppSelector(selectSelectedChatModel); const currentSession = useAppSelector((state) => state.session); const [newSessionInitialized, setNewSessionInitialized] = useState(false); diff --git a/gui/src/components/modelSelection/ModelSelect.tsx b/gui/src/components/modelSelection/ModelSelect.tsx index 88e1e6829..3523a7d9f 100644 --- a/gui/src/components/modelSelection/ModelSelect.tsx +++ b/gui/src/components/modelSelection/ModelSelect.tsx @@ -12,9 +12,6 @@ import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import AddModelForm from "../../forms/AddModelForm"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { - selectIsInEditMode, -} from "../../redux/slices/sessionSlice"; import { setDialogMessage, setShowDialog } from "../../redux/slices/uiSlice"; import { updateSelectedModelByRole } from "../../redux/thunks"; import { getMetaKeyLabel, isMetaEquivalentKeyPressed } from "../../util"; @@ -123,12 +120,12 @@ function ModelOption({ function ModelSelect() { const dispatch = useAppDispatch(); - const isInEditMode = useAppSelector(selectIsInEditMode); + const mode = useAppSelector((store) => store.session.mode); const config = useAppSelector((state) => state.config.config); let selectedModel = null; let allModels = null; - if (isInEditMode) { + if (mode === "edit") { allModels = config.modelsByRole.edit; selectedModel = config.selectedModelByRole.edit; } @@ -158,14 +155,14 @@ function ModelSelect() { useEffect(() => { setOptions( allModels.map((model) => { - return { - value: model.title, - title: modelSelectTitle(model), - apiKey: model.apiKey, - }; - }), + return { + value: model.title, + title: modelSelectTitle(model), + apiKey: model.apiKey, + }; + }), ); - }, [isInEditMode, config]); + }, [config]); useEffect(() => { const handleKeyDown = (event: KeyboardEvent) => { @@ -225,7 +222,7 @@ function ModelSelect() { dispatch( updateSelectedModelByRole({ selectedProfile, - role: isInEditMode ? "edit" : "chat", + role: mode === "edit" ? "edit" : "chat", modelTitle: val, }), ); diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 4350ff56d..268e22e7a 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -29,7 +29,6 @@ import { TabBar } from "../../components/TabBar/TabBar"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useWebviewListener } from "../../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { selectUseHub } from "../../redux/selectors"; import { selectCurrentToolCall, selectCurrentToolCallApplyState, @@ -38,8 +37,6 @@ import { selectSelectedChatModel } from "../../redux/slices/configSlice"; import { submitEdit } from "../../redux/slices/editModeState"; import { newSession, - selectIsInEditMode, - selectIsSingleRangeEditOrInsertion, updateToolCallOutput, } from "../../redux/slices/sessionSlice"; import { @@ -56,7 +53,7 @@ import { FREE_TRIAL_LIMIT_REQUESTS, incrementFreeTrialCount, } from "../../util/freeTrial"; -import getMultifileEditPrompt from "../../util/getMultifileEditPrompt"; + import { getLocalStorage, setLocalStorage } from "../../util/localStorage"; import { EmptyChatBody } from "./EmptyChatBody"; import { ExploreDialogWatcher } from "./ExploreDialogWatcher"; @@ -115,7 +112,7 @@ export function Chat() { const showChatScrollbar = useAppSelector( (state) => state.config.config.ui?.showChatScrollbar, ); - const codeToEdit = useAppSelector((state) => state.session.codeToEdit); + const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); const toolCallState = useAppSelector(selectCurrentToolCall); const applyStates = useAppSelector( (state) => state.session.codeBlockApplyStates.states, @@ -124,12 +121,8 @@ export function Chat() { (state) => state.status === "done", ); const hasPendingApplies = pendingApplyStates.length > 0; - const isInEditMode = useAppSelector(selectIsInEditMode); - const isSingleRangeEditOrInsertion = useAppSelector( - selectIsSingleRangeEditOrInsertion, - ); + const mode = useAppSelector((store) => store.session.mode); const lastSessionId = useAppSelector((state) => state.session.lastSessionId); - const useHub = useAppSelector(selectUseHub); const hasDismissedExploreDialog = useAppSelector( (state) => state.ui.hasDismissedExploreDialog, ); @@ -206,18 +199,12 @@ export function Chat() { } } - if (isSingleRangeEditOrInsertion) { + if (mode === "edit") { handleSingleRangeEditOrInsertion(editorState); return; } - const promptPreamble = isInEditMode - ? getMultifileEditPrompt(codeToEdit) - : undefined; - - dispatch( - streamResponseThunk({ editorState, modifiers, promptPreamble, index }), - ); + dispatch(streamResponseThunk({ editorState, modifiers, index })); if (editorToClearOnSend) { editorToClearOnSend.commands.clearContent(); @@ -240,7 +227,7 @@ export function Chat() { history, selectedChatModel, streamResponse, - isSingleRangeEditOrInsertion, + mode, codeToEdit, toolCallState, ], @@ -314,8 +301,6 @@ export function Chat() { useAutoScroll(stepsDivRef, history); - const showPageHeader = isInEditMode || useHub; - return ( <> {widget} @@ -324,7 +309,7 @@ export function Chat() { 0 ? "flex-1" : ""}`} + className={`mt-3 overflow-y-scroll pt-[8px] ${showScrollbar ? "thin-scrollbar" : "no-scrollbar"} ${history.length > 0 ? "flex-1" : ""}`} > {highlights} {history.map((item, index: number) => ( @@ -342,14 +327,13 @@ export function Chat() { > {item.message.role === "user" ? ( <> - {isInEditMode && index === 0 && } + {mode === "edit" && } sendInput(editorState, modifiers, index) } isLastUserInput={isLastUserInput(index)} - isMainInput={false} + isMainInput={mode === "edit"} editorState={item.editorState} contextItems={item.contextItems} inputId={item.message.id} @@ -421,18 +405,18 @@ export function Chat() { ))}
- {isInEditMode && history.length === 0 && } - - {isInEditMode && history.length > 0 ? null : ( - - sendInput(editorState, modifiers, undefined, editor) - } - inputId={MAIN_EDITOR_INPUT_ID} - /> + {mode === "edit" && history.length > 0 ? null : ( + <> + {mode === "edit" && } + + sendInput(editorState, modifiers, undefined, editor) + } + inputId={MAIN_EDITOR_INPUT_ID} + /> + )}
- {history.length === 0 && lastSessionId && !isInEditMode && ( + {history.length === 0 && lastSessionId && mode !== "edit" && (
{ @@ -462,7 +446,7 @@ export function Chat() {
- {hasPendingApplies && isSingleRangeEditOrInsertion && ( + {hasPendingApplies && ( { @@ -481,10 +465,7 @@ export function Chat() { {!hasDismissedExploreDialog && } {history.length === 0 && ( - + )}
diff --git a/gui/src/pages/gui/EmptyChatBody.tsx b/gui/src/pages/gui/EmptyChatBody.tsx index dce70cdd5..ac8ba7631 100644 --- a/gui/src/pages/gui/EmptyChatBody.tsx +++ b/gui/src/pages/gui/EmptyChatBody.tsx @@ -4,18 +4,15 @@ import { OnboardingCard } from "../../components/OnboardingCard"; import { PlatformOnboardingCard } from "../../components/OnboardingCard/platform/PlatformOnboardingCard"; export interface EmptyChatBodyProps { - useHub: boolean; showOnboardingCard?: boolean; } -export function EmptyChatBody({ - useHub, - showOnboardingCard, -}: EmptyChatBodyProps) { +export function EmptyChatBody({ showOnboardingCard }: EmptyChatBodyProps) { if (showOnboardingCard) { return (
- {useHub ? ( + {true ? ( + // For now we are excluding local onboarding options other than ollama ) : ( diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index d098d2bc4..3d89a6245 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -11,7 +11,6 @@ import { useAuth } from "../../context/Auth"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { selectSelectedProfile } from "../../redux/"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { selectUseHub } from "../../redux/selectors"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; import { setDialogMessage, setShowDialog } from "../../redux/slices/uiSlice"; import { isLocalProfile } from "../../util"; @@ -36,7 +35,6 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { const dispatch = useAppDispatch(); const ideMessenger = useContext(IdeMessengerContext); const selectedModel = useAppSelector(selectSelectedChatModel); - const hubEnabled = useAppSelector(selectUseHub); const selectedProfile = useAppSelector(selectSelectedProfile); const { session, refreshProfiles } = useAuth(); @@ -180,17 +178,14 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { if (statusCode === 401) { errorContent = (
- {hubEnabled && - session && - selectedProfile && - !isLocalProfile(selectedProfile) && ( -
- {`If your hub secret values may have changed, refresh your assistants`} - - Refresh assistant secrets - -
- )} + {session && selectedProfile && !isLocalProfile(selectedProfile) && ( +
+ {`If your hub secret values may have changed, refresh your assistants`} + + Refresh assistant secrets + +
+ )} {`It's possible that your API key is invalid.`}
{checkKeysButton} diff --git a/gui/src/redux/selectors/index.ts b/gui/src/redux/selectors/index.ts index bbfea5364..aa24f87b3 100644 --- a/gui/src/redux/selectors/index.ts +++ b/gui/src/redux/selectors/index.ts @@ -46,6 +46,3 @@ export const selectUseActiveFile = createSelector( [(state: RootState) => state.config.config.experimental?.defaultContext], (defaultContext) => defaultContext?.includes("activeFile" as any), ); - -export const selectUseHub = (state: RootState) => - state.config.config.usePlatform; diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index b0283a0ab..391da9200 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -1,15 +1,19 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { EditStatus, MessageContent } from "core"; +import { CodeToEdit, EditStatus, MessageContent } from "core"; export interface EditModeState { + codeToEdit: CodeToEdit[]; editStatus: EditStatus; previousInputs: MessageContent[]; fileAfterEdit?: string; + enteredEditModeFromEditor: boolean; } const initialState: EditModeState = { editStatus: "not-started", previousInputs: [], + codeToEdit: [], + enteredEditModeFromEditor: false, }; export const editModeStateSlice = createSlice({ @@ -69,6 +73,36 @@ export const editModeStateSlice = createSlice({ state.editStatus = "done"; state.previousInputs = []; }, + addCodeToEdit: ( + state, + { payload }: PayloadAction, + ) => { + const entries = Array.isArray(payload) ? payload : [payload]; + + const newEntries = entries.filter( + (entry) => + !state.codeToEdit.some((existingEntry) => + isCodeToEditEqual(existingEntry, entry), + ), + ); + + if (newEntries.length > 0) { + state.codeToEdit.push(...newEntries); + } + }, + removeCodeToEdit: (state, { payload }: PayloadAction) => { + state.codeToEdit = state.codeToEdit.filter( + (entry) => !isCodeToEditEqual(entry, payload), + ); + }, + clearCodeToEdit: (state) => { + state.codeToEdit = []; + }, + }, + selectors: { + selectHasCodeToEdit: (state) => { + return state.codeToEdit.length > 0; + }, }, }); @@ -78,5 +112,41 @@ export const { setEditDone, submitEdit, focusEdit, + clearCodeToEdit, + addCodeToEdit, + removeCodeToEdit, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; + +function isCodeToEditEqual(a: CodeToEdit, b: CodeToEdit) { + if (a.filepath !== b.filepath || a.contents !== b.contents) { + return false; + } + + if ("range" in a && "range" in b) { + const rangeA = a.range; + const rangeB = b.range; + + return ( + rangeA.start.line === rangeB.start.line && + rangeA.end.line === rangeB.end.line + ); + } + + // If neither has a range, they are considered equal in this context + return !("range" in a) && !("range" in b); +} + +export const { selectHasCodeToEdit } = editModeStateSlice.selectors; + +// selectIsSingleRangeEditOrInsertion: (state) => { +// if (state.mode !== "edit") { +// return false; +// } + +// const isInsertion = state.codeToEdit.length === 0; +// const selectIsSingleRangeEdit = +// state.codeToEdit.length === 1 && "range" in state.codeToEdit[0]; + +// return selectIsSingleRangeEdit || isInsertion; +// }, diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 5f74e0c50..5ef58dfff 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -10,7 +10,6 @@ import { ApplyState, ChatHistoryItem, ChatMessage, - CodeToEdit, ContextItem, ContextItemWithId, FileSymbolMap, @@ -44,7 +43,6 @@ type SessionState = { title: string; id: string; streamAborter: AbortController; - codeToEdit: CodeToEdit[]; curCheckpointIndex: number; mainEditorContentTrigger?: JSONContent | undefined; symbols: FileSymbolMap; @@ -56,25 +54,6 @@ type SessionState = { newestToolbarPreviewForInput: Record; }; -function isCodeToEditEqual(a: CodeToEdit, b: CodeToEdit) { - if (a.filepath !== b.filepath || a.contents !== b.contents) { - return false; - } - - if ("range" in a && "range" in b) { - const rangeA = a.range; - const rangeB = b.range; - - return ( - rangeA.start.line === rangeB.start.line && - rangeA.end.line === rangeB.end.line - ); - } - - // If neither has a range, they are considered equal in this context - return !("range" in a) && !("range" in b); -} - const initialState: SessionState = { allSessionMetadata: [], history: [], @@ -83,7 +62,6 @@ const initialState: SessionState = { id: uuidv4(), curCheckpointIndex: 0, streamAborter: new AbortController(), - codeToEdit: [], symbols: {}, mode: "chat", codeBlockApplyStates: { @@ -584,31 +562,7 @@ export const sessionSlice = createSlice({ resetNextCodeBlockToApplyIndex: (state) => { state.codeBlockApplyStates.curIndex = 0; }, - addCodeToEdit: ( - state, - { payload }: PayloadAction, - ) => { - const entries = Array.isArray(payload) ? payload : [payload]; - const newEntries = entries.filter( - (entry) => - !state.codeToEdit.some((existingEntry) => - isCodeToEditEqual(existingEntry, entry), - ), - ); - - if (newEntries.length > 0) { - state.codeToEdit.push(...newEntries); - } - }, - removeCodeToEdit: (state, { payload }: PayloadAction) => { - state.codeToEdit = state.codeToEdit.filter( - (entry) => !isCodeToEditEqual(entry, payload), - ); - }, - clearCodeToEdit: (state) => { - state.codeToEdit = []; - }, // TOOL CALL STATE setToolGenerated: ( state, @@ -724,26 +678,6 @@ export const sessionSlice = createSlice({ const curHistoryItem = state.history.at(-1); return curHistoryItem?.isGatheringContext || false; }, - selectIsInEditMode: (state) => { - return state.mode === "edit"; - }, - selectCurrentMode: (state) => { - return state.mode; - }, - selectIsSingleRangeEditOrInsertion: (state) => { - if (state.mode !== "edit") { - return false; - } - - const isInsertion = state.codeToEdit.length === 0; - const selectIsSingleRangeEdit = - state.codeToEdit.length === 1 && "range" in state.codeToEdit[0]; - - return selectIsSingleRangeEdit || isInsertion; - }, - selectHasCodeToEdit: (state) => { - return state.codeToEdit.length > 0; - }, }, extraReducers: (builder) => { addPassthroughCases(builder, [streamResponseThunk]); @@ -811,9 +745,6 @@ export const { resetNextCodeBlockToApplyIndex, updateApplyState, abortStream, - clearCodeToEdit, - addCodeToEdit, - removeCodeToEdit, setToolCallCalling, cancelToolCall, errorToolCall, @@ -829,12 +760,6 @@ export const { cycleMode, } = sessionSlice.actions; -export const { - selectIsGatheringContext, - selectIsInEditMode, - selectCurrentMode, - selectIsSingleRangeEditOrInsertion, - selectHasCodeToEdit, -} = sessionSlice.selectors; +export const { selectIsGatheringContext } = sessionSlice.selectors; export default sessionSlice.reducer; diff --git a/gui/src/redux/store.ts b/gui/src/redux/store.ts index aa7c2bb5c..6a15431e0 100644 --- a/gui/src/redux/store.ts +++ b/gui/src/redux/store.ts @@ -47,7 +47,6 @@ const saveSubsetFilters = [ // Persist edit mode in case closes in middle "mode", - "codeToEdit", // higher risk to persist // codeBlockApplyStates @@ -55,7 +54,7 @@ const saveSubsetFilters = [ // curCheckpointIndex ]), // Don't persist any of the edit state for now - createFilter("editModeState", []), + createFilter("editModeState", ["codeToEdit"]), createFilter("config", ["defaultModelTitle"]), createFilter("ui", ["toolSettings", "toolGroupSettings"]), createFilter("indexing", []), diff --git a/gui/src/redux/thunks/exitEditMode.ts b/gui/src/redux/thunks/exitEditMode.ts index 438783499..9e5452e68 100644 --- a/gui/src/redux/thunks/exitEditMode.ts +++ b/gui/src/redux/thunks/exitEditMode.ts @@ -1,24 +1,17 @@ import { createAsyncThunk } from "@reduxjs/toolkit"; -import { - clearCodeToEdit, - selectIsInEditMode, - selectIsSingleRangeEditOrInsertion, - setMainEditorContentTrigger, - setMode, -} from "../slices/sessionSlice"; +import { clearCodeToEdit, setEditDone } from "../slices/editModeState"; +import { setMainEditorContentTrigger, setMode } from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; -import { setEditDone } from "../slices/editModeState"; export const exitEditMode = createAsyncThunk( "edit/complete", async (_, { dispatch, extra, getState }) => { const state = getState(); - const isInEditMode = selectIsInEditMode(state); - const codeToEdit = state.session.codeToEdit; - const isSingleRangeEditOrInsertion = - selectIsSingleRangeEditOrInsertion(state); + const codeToEdit = state.editModeState.codeToEdit; + const enteredEditModeFromEditor = + state.editModeState.enteredEditModeFromEditor; - if (!isInEditMode) { + if (state.session.mode !== "edit") { return; } @@ -35,7 +28,7 @@ export const exitEditMode = createAsyncThunk( dispatch(setMainEditorContentTrigger(undefined)); extra.ideMessenger.post("edit/exit", { - shouldFocusEditor: isSingleRangeEditOrInsertion, + shouldFocusEditor: enteredEditModeFromEditor, }); }, ); diff --git a/gui/src/util/getMultifileEditPrompt.ts b/gui/src/util/getMultifileEditPrompt.ts deleted file mode 100644 index 13ee8ac78..000000000 --- a/gui/src/util/getMultifileEditPrompt.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { CodeToEdit, IDE } from "core"; -import { findUriInDirs } from "core/util/uri"; - -export default function getMultifileEditPrompt( - codeToEdit: CodeToEdit[], - dirs?: string[], -): string { - const codeToEditStr = codeToEdit - .map((code) => { - const { relativePathOrBasename } = findUriInDirs( - code.filepath, - dirs ?? window.workspacePaths ?? [], - ); - return ` -\`\`\` ${relativePathOrBasename} -${code.contents} -\`\`\` - `; - }) - .join("\n"); - - return ` -You are an AI assistant designed to help software engineers make multi-file edits in their codebase. Your task is to generate the necessary code changes for multiple files based on the engineer's request. Follow these guidelines: - -1. Start with a brief introduction of the task you're about to perform. Do not start with any other preamble, such as "Certainly!" -2. When providing instructions, if a user needs to interact with a CLI, walk them through each step -2. Perform file edits in a logical, sequential ordering -3. For each file edit, provide a brief explanation of the changes -4. If the user submits a code block that contains a filename in the language specifier, always include the filename in any code block you generate based on that file. The filename should be on the same line as the language specifier in your code block. - a. When creating new files, also inlcude the filname in the language specifier of the code block. -6. After providing all file changes, include a brief, sequential overview of the most important 3-5 edits - -Remember to be concise and focus on the code changes and their impact. - -Here's an example of how your response should be structured: - - -I'll make the following changes to implement feature X: - -1. First, I'll modify file1.js to add a new function: -\`\`\`javascript /path/to/file1.js -// Entire content of file1.js or changes to be made -\`\`\` - -2. Next, let's create a new test file: -\`\`\`javascript /path/to/file1.test.js -# Entire content of file2.py or changes to be made -\`\`\` - -Summary: -- [Sequential overview of the most important 3-5 edits] - - -Here are the files to base your edits on: - - -${codeToEditStr} - - -Please provide the multi-file edit details based on the engineer's request below: - `; -} From 2b46bca508dd39e90fcd93dcc530456899148f69 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 15:31:47 -0700 Subject: [PATCH 006/110] type fixes --- gui/src/components/CodeToEditCard/AddFileButton.tsx | 2 +- .../components/CodeToEditCard/AddFileCombobox.tsx | 13 ++++++------- .../components/CodeToEditCard/CodeToEditCard.tsx | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/gui/src/components/CodeToEditCard/AddFileButton.tsx b/gui/src/components/CodeToEditCard/AddFileButton.tsx index d051f847f..412e6cb8f 100644 --- a/gui/src/components/CodeToEditCard/AddFileButton.tsx +++ b/gui/src/components/CodeToEditCard/AddFileButton.tsx @@ -2,7 +2,7 @@ import { ChevronDownIcon, PlusIcon } from "@heroicons/react/24/outline"; import { useContext, useRef } from "react"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppDispatch } from "../../redux/hooks"; -import { addCodeToEdit } from "../../redux/slices/sessionSlice"; +import { addCodeToEdit } from "../../redux/slices/editModeState"; import { Listbox, ListboxButton, diff --git a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx index 1d2e62942..6fea05292 100644 --- a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx +++ b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx @@ -28,7 +28,7 @@ export default function AddFileCombobox({ const buttonRef = useRef(null); const { getSubmenuContextItems } = useSubmenuContextProviders(); const allFiles = getSubmenuContextItems("file", ""); - const codeToEdit = useAppSelector((state) => state.session.codeToEdit); + const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); const remainingFiles = allFiles.filter( (file) => !codeToEdit.find((code) => code.filepath === file.id), ); @@ -41,12 +41,11 @@ export default function AddFileCombobox({ useEffect(() => { // update selectedFiles showing only the files that are in codeToEdit - setSelectedFiles( - (prevSelectedFiles) => - prevSelectedFiles.filter( - (file) => - codeToEdit.findIndex((code) => code.filepath === file.id) !== -1, - ), + setSelectedFiles((prevSelectedFiles) => + prevSelectedFiles.filter( + (file) => + codeToEdit.findIndex((code) => code.filepath === file.id) !== -1, + ), ); }, [codeToEdit]); diff --git a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx index 6e16d4d4f..629aa000b 100644 --- a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx +++ b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx @@ -7,7 +7,7 @@ import { useAppSelector } from "../../redux/hooks"; import { addCodeToEdit, removeCodeToEdit, -} from "../../redux/slices/sessionSlice"; +} from "../../redux/slices/editModeState"; import AddFileButton from "./AddFileButton"; import AddFileCombobox from "./AddFileCombobox"; import CodeToEditListItem from "./CodeToEditListItem"; @@ -16,7 +16,7 @@ export default function CodeToEditCard() { const dispatch = useDispatch(); const ideMessenger = useContext(IdeMessengerContext); const [showAddFileCombobox, setShowAddFileCombobox] = useState(false); - const codeToEdit = useAppSelector((state) => state.session.codeToEdit); + const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); const itemCount = codeToEdit.length === 0 From 961e45193f27fe236442b4d4adccc40ef67dd600 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 18:10:59 -0700 Subject: [PATCH 007/110] edit mode apply state --- core/config/types.ts | 7 -- core/edit/constants.ts | 1 + core/index.d.ts | 11 +-- core/protocol/ideWebview.ts | 2 - extensions/vscode/src/commands.ts | 6 +- .../vscode/src/extension/VsCodeMessenger.ts | 18 ++-- .../CodeToEditCard/AddFileButton.tsx | 7 +- .../CodeToEditCard/CodeToEditCard.tsx | 13 ++- gui/src/components/Layout.tsx | 21 ++--- .../components/mainInput/ContinueInputBox.tsx | 2 +- .../TipTapEditor/utils/editorConfig.ts | 7 +- gui/src/redux/slices/editModeState.ts | 86 +++++-------------- gui/src/redux/thunks/exitEditMode.ts | 5 +- 13 files changed, 62 insertions(+), 124 deletions(-) create mode 100644 core/edit/constants.ts diff --git a/core/config/types.ts b/core/config/types.ts index ee3e308f8..bd64c78fb 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -1051,13 +1051,6 @@ declare global { repoMapFileSelection?: string; } - export type EditStatus = - | "not-started" - | "streaming" - | "accepting" - | "accepting:full-diff" - | "done"; - export type ApplyStateStatus = | "streaming" // Changes are being applied to the file | "done" // All changes have been applied, awaiting user to accept/reject diff --git a/core/edit/constants.ts b/core/edit/constants.ts new file mode 100644 index 000000000..ecc3340ca --- /dev/null +++ b/core/edit/constants.ts @@ -0,0 +1 @@ +export const EDIT_MODE_STREAM_ID = "edit-mode"; diff --git a/core/index.d.ts b/core/index.d.ts index 7aa8d00ec..5f2abb9b1 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -158,9 +158,7 @@ export interface ModelInstaller { progressReporter?: (task: string, increment: number, total: number) => void, ): Promise; - isInstallingModel( - modelName: string - ): Promise; + isInstallingModel(modelName: string): Promise; } export type ContextProviderType = "normal" | "query" | "submenu"; @@ -1213,13 +1211,6 @@ export interface ExperimentalMCPOptions { faviconUrl?: string; } -export type EditStatus = - | "not-started" - | "streaming" - | "accepting" - | "accepting:full-diff" - | "done"; - export type ApplyStateStatus = | "not-started" // Apply state created but not necessarily streaming | "streaming" // Changes are being applied to the file diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index cc1191d92..24c25e7fa 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -4,7 +4,6 @@ import { ToWebviewFromIdeOrCoreProtocol } from "./webview"; import type { ApplyState, CodeToEdit, - EditStatus, MessageContent, RangeInFileWithContents, } from "../"; @@ -87,7 +86,6 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { openOnboardingCard: [undefined, void]; applyCodeFromChat: [undefined, void]; updateApplyState: [ApplyState, void]; - setEditStatus: [{ status: EditStatus; fileAfterEdit?: string }, void]; exitEditMode: [undefined, void]; focusEdit: [undefined, void]; focusEditWithoutClear: [undefined, void]; diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 1e39374c1..15e3d10d3 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -269,10 +269,6 @@ async function processDiff( // Clear vertical diffs depending on action verticalDiffManager.clearForfileUri(newOrCurrentUri, action === "accept"); - void sidebar.webviewProtocol.request("setEditStatus", { - status: "done", - }); - if (streamId) { const fileContent = await ide.readFile(newOrCurrentUri); @@ -951,7 +947,7 @@ const getCommandsMap: ( if (core.configHandler.currentProfile?.profileDescription.id) { core.invoke("config/updateSelectedModel", { profileId: - core.configHandler.currentProfile?.profileDescription.id, + core.configHandler.currentProfile?.profileDescription.id, role: "autocomplete", title: selectedOption, }); diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 49de7f758..7f63f4a02 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -15,6 +15,7 @@ import { import { stripImages } from "core/util/messageContent"; import * as vscode from "vscode"; +import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; import { ApplyManager } from "../apply"; import { VerticalDiffManager } from "../diff/vertical/manager"; import EditDecorationManager from "../quickEdit/EditDecorationManager"; @@ -210,18 +211,13 @@ export class VsCodeMessenger { const fileAfterEdit = await verticalDiffManager.streamEdit({ input: stripImages(prompt), llm: model, - streamId: "edit", + streamId: EDIT_MODE_STREAM_ID, range: new vscode.Range( new vscode.Position(start.line, start.character), new vscode.Position(end.line, end.character), ), rules: config.rules, }); - - void this.webviewProtocol.request("setEditStatus", { - status: "accepting", - fileAfterEdit, - }); }); this.onWebview("edit/exit", async (msg) => { if (msg.data.shouldFocusEditor) { @@ -238,11 +234,11 @@ export class VsCodeMessenger { /** PASS THROUGH FROM WEBVIEW TO CORE AND BACK **/ WEBVIEW_TO_CORE_PASS_THROUGH.forEach((messageType) => { this.onWebview(messageType, async (msg) => { - return await this.inProcessMessenger.externalRequest( - messageType, - msg.data, - msg.messageId, - ); + return await this.inProcessMessenger.externalRequest( + messageType, + msg.data, + msg.messageId, + ); }); }); diff --git a/gui/src/components/CodeToEditCard/AddFileButton.tsx b/gui/src/components/CodeToEditCard/AddFileButton.tsx index 412e6cb8f..585060b3f 100644 --- a/gui/src/components/CodeToEditCard/AddFileButton.tsx +++ b/gui/src/components/CodeToEditCard/AddFileButton.tsx @@ -28,7 +28,12 @@ export default function AddFileButton({ onClick }: AddFileButtonProps) { }), ); - dispatch(addCodeToEdit(filesData)); + dispatch( + addCodeToEdit({ + codeToEdit: filesData, + fromEditor: false, + }), + ); } return ( diff --git a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx index 629aa000b..1d50c4368 100644 --- a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx +++ b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx @@ -6,7 +6,7 @@ import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppSelector } from "../../redux/hooks"; import { addCodeToEdit, - removeCodeToEdit, + clearCodeToEdit, } from "../../redux/slices/editModeState"; import AddFileButton from "./AddFileButton"; import AddFileCombobox from "./AddFileCombobox"; @@ -25,8 +25,8 @@ export default function CodeToEditCard() { ? "(1 item)" : `(${codeToEdit.length} items)`; - function onDelete(rif: CodeToEdit) { - dispatch(removeCodeToEdit(rif)); + function onDelete() { + dispatch(clearCodeToEdit()); } async function onClickFilename(code: CodeToEdit) { @@ -50,7 +50,12 @@ export default function CodeToEditCard() { const fileResults = await Promise.all(filePromises); for (const file of fileResults) { - dispatch(addCodeToEdit(file)); + dispatch( + addCodeToEdit({ + codeToEdit: file, + fromEditor: false, + }), + ); } } diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 7844a3e04..bf1554475 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -6,11 +6,7 @@ import { AuthProvider } from "../context/Auth"; import { LocalStorageProvider } from "../context/LocalStorage"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; -import { - addCodeToEdit, - focusEdit, - setEditStatus, -} from "../redux/slices/editModeState"; +import { addCodeToEdit, focusEdit } from "../redux/slices/editModeState"; import { newSession, setMode } from "../redux/slices/sessionSlice"; import { setShowDialog } from "../redux/slices/uiSlice"; import { exitEditMode } from "../redux/thunks"; @@ -169,15 +165,12 @@ const Layout = () => { useWebviewListener( "addCodeToEdit", async (payload) => { - dispatch(addCodeToEdit(payload)); - }, - [], - ); - - useWebviewListener( - "setEditStatus", - async ({ status, fileAfterEdit }) => { - dispatch(setEditStatus({ status, fileAfterEdit })); + dispatch( + addCodeToEdit({ + codeToEdit: payload, + fromEditor: true, + }), + ); }, [], ); diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index 7540dae8d..c6ce86a3d 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -113,7 +113,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) { hideUseCodebase: true, hideSelectModel: false, enterText: - editModeState.editStatus === "accepting" ? "Retry" : "Edit", + editModeState.applyState.status === "done" ? "Retry" : "Edit", } : {}; diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 340190683..c2d19dde0 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -338,8 +338,11 @@ export function createEditorConfig(options: { const contents = await ideMessenger.ide.readFile(filepath); dispatch( addCodeToEdit({ - filepath, - contents, + codeToEdit: { + filepath, + contents, + }, + fromEditor: false, }), ); }, diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index 391da9200..7c1dfa6e4 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -1,16 +1,17 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { CodeToEdit, EditStatus, MessageContent } from "core"; - +import { ApplyState, CodeToEdit, MessageContent } from "core"; +import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; export interface EditModeState { codeToEdit: CodeToEdit[]; - editStatus: EditStatus; + applyState: ApplyState; previousInputs: MessageContent[]; - fileAfterEdit?: string; enteredEditModeFromEditor: boolean; } const initialState: EditModeState = { - editStatus: "not-started", + applyState: { + streamId: EDIT_MODE_STREAM_ID, + }, previousInputs: [], codeToEdit: [], enteredEditModeFromEditor: false, @@ -21,63 +22,30 @@ export const editModeStateSlice = createSlice({ initialState, reducers: { focusEdit: (state) => { - state.editStatus = "not-started"; + state.applyState.status = "not-started"; state.previousInputs = []; - state.fileAfterEdit = undefined; }, submitEdit: (state, { payload }: PayloadAction) => { state.previousInputs.push(payload); - state.editStatus = "streaming"; - }, - setEditStatus: ( - state, - { - payload, - }: PayloadAction<{ status: EditStatus; fileAfterEdit?: string }>, - ) => { - // Only allow valid transitions - const currentStatus = state.editStatus; - if (currentStatus === "not-started" && payload.status === "streaming") { - state.editStatus = payload.status; - } else if ( - currentStatus === "streaming" && - payload.status === "accepting" - ) { - state.editStatus = payload.status; - state.fileAfterEdit = payload.fileAfterEdit; - } else if (currentStatus === "accepting" && payload.status === "done") { - state.editStatus = payload.status; - } else if ( - currentStatus === "accepting:full-diff" && - payload.status === "done" - ) { - state.editStatus = payload.status; - } else if ( - currentStatus === "accepting" && - payload.status === "accepting:full-diff" - ) { - state.editStatus = payload.status; - } else if ( - currentStatus === "accepting:full-diff" && - payload.status === "accepting" - ) { - state.editStatus = payload.status; - } else if (currentStatus === "done" && payload.status === "not-started") { - state.editStatus = payload.status; - } - }, - addPreviousInput: (state, { payload }: PayloadAction) => { - state.previousInputs.push(payload); + state.applyState.status = "streaming"; }, setEditDone: (state) => { - state.editStatus = "done"; + state.applyState.status = "done"; state.previousInputs = []; }, addCodeToEdit: ( state, - { payload }: PayloadAction, + { + payload, + }: PayloadAction<{ + fromEditor: boolean; + codeToEdit: CodeToEdit | CodeToEdit[]; + }>, ) => { - const entries = Array.isArray(payload) ? payload : [payload]; + state.enteredEditModeFromEditor = payload.fromEditor; + const entries = Array.isArray(payload.codeToEdit) + ? payload.codeToEdit + : [payload.codeToEdit]; const newEntries = entries.filter( (entry) => @@ -90,31 +58,19 @@ export const editModeStateSlice = createSlice({ state.codeToEdit.push(...newEntries); } }, - removeCodeToEdit: (state, { payload }: PayloadAction) => { - state.codeToEdit = state.codeToEdit.filter( - (entry) => !isCodeToEditEqual(entry, payload), - ); - }, clearCodeToEdit: (state) => { state.codeToEdit = []; }, }, - selectors: { - selectHasCodeToEdit: (state) => { - return state.codeToEdit.length > 0; - }, - }, + selectors: {}, }); export const { - setEditStatus, - addPreviousInput, setEditDone, submitEdit, focusEdit, clearCodeToEdit, addCodeToEdit, - removeCodeToEdit, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; @@ -137,7 +93,7 @@ function isCodeToEditEqual(a: CodeToEdit, b: CodeToEdit) { return !("range" in a) && !("range" in b); } -export const { selectHasCodeToEdit } = editModeStateSlice.selectors; +// export const { } = editModeStateSlice.selectors; // selectIsSingleRangeEditOrInsertion: (state) => { // if (state.mode !== "edit") { diff --git a/gui/src/redux/thunks/exitEditMode.ts b/gui/src/redux/thunks/exitEditMode.ts index 9e5452e68..1e00b1b79 100644 --- a/gui/src/redux/thunks/exitEditMode.ts +++ b/gui/src/redux/thunks/exitEditMode.ts @@ -10,13 +10,12 @@ export const exitEditMode = createAsyncThunk( const codeToEdit = state.editModeState.codeToEdit; const enteredEditModeFromEditor = state.editModeState.enteredEditModeFromEditor; + // const editStreamId = state.editModeState.streamId; if (state.session.mode !== "edit") { return; } - dispatch(setMode("chat")); - for (const code of codeToEdit) { extra.ideMessenger.post("rejectDiff", { filepath: code.filepath, @@ -27,6 +26,8 @@ export const exitEditMode = createAsyncThunk( dispatch(setEditDone()); dispatch(setMainEditorContentTrigger(undefined)); + dispatch(setMode("chat")); + extra.ideMessenger.post("edit/exit", { shouldFocusEditor: enteredEditModeFromEditor, }); From 25e7b951e8d0b2a4aeec2f08714a255402ae4287 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 18:18:55 -0700 Subject: [PATCH 008/110] remove focus edit mode without clear command --- extensions/vscode/package-lock.json | 6 +-- extensions/vscode/src/commands.ts | 40 ------------------- gui/package-lock.json | 2 +- .../useMainEditorWebviewListeners.ts | 10 ----- gui/src/redux/slices/editModeState.ts | 10 +++-- gui/src/redux/thunks/exitEditMode.ts | 10 ++--- 6 files changed, 15 insertions(+), 63 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 69beb8be7..48690802a 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.28", + "version": "1.1.29", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.28", + "version": "1.1.29", "license": "Apache-2.0", "dependencies": { "@continuedev/fetch": "^1.0.3", @@ -107,7 +107,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.4", + "@continuedev/fetch": "^1.0.6", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.19", "@modelcontextprotocol/sdk": "^1.5.0", diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 15e3d10d3..e1ed76cf6 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -591,46 +591,6 @@ const getCommandsMap: ( ); } }, - "continue.focusEditWithoutClear": async () => { - captureCommandTelemetry("focusEditWithoutClear"); - focusGUI(); - - sidebar.webviewProtocol?.request("focusEditWithoutClear", undefined); - - const editor = vscode.window.activeTextEditor; - - if (!editor) { - return; - } - - const document = editor.document; - - const existingDiff = verticalDiffManager.getHandlerForFile( - document.fileName, - ); - - // If there's a diff currently being applied, then we just toggle focus back to the input - if (existingDiff) { - sidebar.webviewProtocol?.request("focusContinueInput", undefined); - return; - } - - const rangeInFileWithContents = getRangeInFileWithContents(false); - - if (rangeInFileWithContents) { - sidebar.webviewProtocol?.request( - "addCodeToEdit", - rangeInFileWithContents, - ); - } else { - const contents = document.getText(); - - sidebar.webviewProtocol?.request("addCodeToEdit", { - filepath: document.uri.toString(), - contents, - }); - } - }, "continue.exitEditMode": async () => { captureCommandTelemetry("exitEditMode"); editDecorationManager.clear(); diff --git a/gui/package-lock.json b/gui/package-lock.json index e4a7c0b67..e6e474377 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -111,7 +111,7 @@ "@aws-sdk/credential-providers": "^3.778.0", "@continuedev/config-types": "^1.0.13", "@continuedev/config-yaml": "file:../packages/config-yaml", - "@continuedev/fetch": "^1.0.4", + "@continuedev/fetch": "^1.0.6", "@continuedev/llm-info": "^1.0.8", "@continuedev/openai-adapters": "^1.0.19", "@modelcontextprotocol/sdk": "^1.5.0", diff --git a/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts b/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts index 15fd50a18..cd06d41cb 100644 --- a/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts +++ b/gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts @@ -166,16 +166,6 @@ export function useMainEditorWebviewListeners({ [editor], ); - useWebviewListener( - "focusEditWithoutClear", - async () => { - setTimeout(() => { - editor?.commands.focus("end"); - }, 2000); - }, - [editor], - ); - useWebviewListener( "isContinueInputFocused", async () => { diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index 7c1dfa6e4..08c613739 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -1,11 +1,12 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { ApplyState, CodeToEdit, MessageContent } from "core"; +import { ApplyState, CodeToEdit, MessageContent, MessageModes } from "core"; import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; export interface EditModeState { codeToEdit: CodeToEdit[]; applyState: ApplyState; previousInputs: MessageContent[]; - enteredEditModeFromEditor: boolean; + returnCursorToEditorAfterEdit: boolean; + returnToMode: MessageModes; } const initialState: EditModeState = { @@ -14,7 +15,8 @@ const initialState: EditModeState = { }, previousInputs: [], codeToEdit: [], - enteredEditModeFromEditor: false, + returnCursorToEditorAfterEdit: false, + returnToMode: "chat", }; export const editModeStateSlice = createSlice({ @@ -42,7 +44,7 @@ export const editModeStateSlice = createSlice({ codeToEdit: CodeToEdit | CodeToEdit[]; }>, ) => { - state.enteredEditModeFromEditor = payload.fromEditor; + state.returnCursorToEditorAfterEdit = payload.fromEditor; const entries = Array.isArray(payload.codeToEdit) ? payload.codeToEdit : [payload.codeToEdit]; diff --git a/gui/src/redux/thunks/exitEditMode.ts b/gui/src/redux/thunks/exitEditMode.ts index 1e00b1b79..07ba73db9 100644 --- a/gui/src/redux/thunks/exitEditMode.ts +++ b/gui/src/redux/thunks/exitEditMode.ts @@ -1,5 +1,5 @@ import { createAsyncThunk } from "@reduxjs/toolkit"; -import { clearCodeToEdit, setEditDone } from "../slices/editModeState"; +import { clearCodeToEdit, clearPreviousInputs } from "../slices/editModeState"; import { setMainEditorContentTrigger, setMode } from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; @@ -8,8 +8,8 @@ export const exitEditMode = createAsyncThunk( async (_, { dispatch, extra, getState }) => { const state = getState(); const codeToEdit = state.editModeState.codeToEdit; - const enteredEditModeFromEditor = - state.editModeState.enteredEditModeFromEditor; + const returnCursorToEditorAfterEdit = + state.editModeState.returnCursorToEditorAfterEdit; // const editStreamId = state.editModeState.streamId; if (state.session.mode !== "edit") { @@ -23,13 +23,13 @@ export const exitEditMode = createAsyncThunk( } dispatch(clearCodeToEdit()); - dispatch(setEditDone()); + dispatch(clearPreviousInputs()); dispatch(setMainEditorContentTrigger(undefined)); dispatch(setMode("chat")); extra.ideMessenger.post("edit/exit", { - shouldFocusEditor: enteredEditModeFromEditor, + shouldFocusEditor: returnCursorToEditorAfterEdit, }); }, ); From bd57476f1a179461e94240765e3c8f0c520cf500 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 19:58:52 -0700 Subject: [PATCH 009/110] edit mode toggle fixes --- core/protocol/ideWebview.ts | 1 - extensions/vscode/package.json | 5 - gui/src/components/Layout.tsx | 94 +++++------- .../components/StepContainer/EditActions.tsx | 4 +- gui/src/components/mainInput/InputToolbar.tsx | 10 +- .../TipTapEditor/utils/editorConfig.ts | 15 +- .../components/modelSelection/ModeSelect.tsx | 141 ++++++++++-------- gui/src/hooks/useSetup.ts | 53 ++++--- gui/src/pages/gui/Chat.tsx | 8 +- gui/src/redux/slices/editModeState.ts | 52 +++---- gui/src/redux/slices/sessionSlice.ts | 9 -- gui/src/redux/thunks/editMode.ts | 82 ++++++++++ gui/src/redux/thunks/exitEditMode.ts | 35 ----- gui/src/redux/thunks/index.ts | 2 +- 14 files changed, 265 insertions(+), 246 deletions(-) create mode 100644 gui/src/redux/thunks/editMode.ts delete mode 100644 gui/src/redux/thunks/exitEditMode.ts diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 24c25e7fa..7ee2bb9c3 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -88,5 +88,4 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { updateApplyState: [ApplyState, void]; exitEditMode: [undefined, void]; focusEdit: [undefined, void]; - focusEditWithoutClear: [undefined, void]; }; diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index f2f1fb54f..4464ec7fc 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -383,11 +383,6 @@ "mac": "cmd+i", "key": "ctrl+i" }, - { - "command": "continue.focusEditWithoutClear", - "mac": "cmd+shift+i", - "key": "ctrl+shift+i" - }, { "command": "continue.exitEditMode", "mac": "escape", diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index bf1554475..a5b3ba70e 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -6,11 +6,10 @@ import { AuthProvider } from "../context/Auth"; import { LocalStorageProvider } from "../context/LocalStorage"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; -import { addCodeToEdit, focusEdit } from "../redux/slices/editModeState"; -import { newSession, setMode } from "../redux/slices/sessionSlice"; +import { addCodeToEdit } from "../redux/slices/editModeState"; import { setShowDialog } from "../redux/slices/uiSlice"; -import { exitEditMode } from "../redux/thunks"; -import { loadLastSession, saveCurrentSession } from "../redux/thunks/session"; +import { enterEditMode, exitEditMode } from "../redux/thunks/editMode"; +import { saveCurrentSession } from "../redux/thunks/session"; import { fontSize, isMetaEquivalentKeyPressed } from "../util"; import { incrementFreeTrialCount } from "../util/freeTrial"; import { ROUTES } from "../util/navigation"; @@ -46,19 +45,24 @@ const Layout = () => { const showDialog = useAppSelector((state) => state.ui.showDialog); + const mode = useAppSelector((state) => state.session.mode); + useWebviewListener( "newSession", async () => { navigate(ROUTES.HOME); - await dispatch( - saveCurrentSession({ - openNewSession: true, - generateTitle: true, - }), - ); - dispatch(exitEditMode()); + if (mode === "edit") { + await dispatch(exitEditMode({})); + } else { + await dispatch( + saveCurrentSession({ + openNewSession: true, + generateTitle: true, + }), + ); + } }, - [], + [mode], ); useWebviewListener( @@ -74,13 +78,20 @@ const Layout = () => { "focusContinueInputWithNewSession", async () => { navigate(ROUTES.HOME); - await dispatch( - saveCurrentSession({ - openNewSession: true, - generateTitle: true, - }), - ); - dispatch(exitEditMode()); + if (mode === "edit") { + await dispatch( + exitEditMode({ + openNewSession: true, + }), + ); + } else { + await dispatch( + saveCurrentSession({ + openNewSession: true, + generateTitle: true, + }), + ); + } }, [location.pathname], location.pathname === ROUTES.HOME, @@ -133,31 +144,7 @@ const Layout = () => { useWebviewListener( "focusEdit", async () => { - await dispatch( - saveCurrentSession({ - openNewSession: false, - // Because this causes a lag before Edit mode is focused. TODO just have that happen in background - generateTitle: false, - }), - ); - dispatch(newSession()); - dispatch(focusEdit()); - dispatch(setMode("edit")); - }, - [], - ); - - useWebviewListener( - "focusEditWithoutClear", - async () => { - await dispatch( - saveCurrentSession({ - openNewSession: true, - generateTitle: true, - }), - ); - dispatch(focusEdit()); - dispatch(setMode("edit")); + dispatch(enterEditMode({})); }, [], ); @@ -171,23 +158,20 @@ const Layout = () => { fromEditor: true, }), ); + dispatch( + enterEditMode({ + returnCursorToEditor: true, + returnToMode: mode, + }), + ); }, - [], + [mode], ); - const mode = useAppSelector((store) => store.session.mode); useWebviewListener( "exitEditMode", async () => { - if (mode !== "edit") { - return; - } - dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); - dispatch(exitEditMode()); + dispatch(exitEditMode({})); }, [mode], ); diff --git a/gui/src/components/StepContainer/EditActions.tsx b/gui/src/components/StepContainer/EditActions.tsx index 08a61e2e3..4dec48d27 100644 --- a/gui/src/components/StepContainer/EditActions.tsx +++ b/gui/src/components/StepContainer/EditActions.tsx @@ -2,7 +2,7 @@ import { ChatHistoryItem } from "core"; import { renderChatMessage } from "core/util/messageContent"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { exitEditMode } from "../../redux/thunks/exitEditMode"; +import { exitEditMode } from "../../redux/thunks/editMode"; import { loadLastSession } from "../../redux/thunks/session"; import AcceptRejectAllButtons from "../AcceptRejectAllButtons"; import FeedbackButtons from "../FeedbackButtons"; @@ -64,7 +64,7 @@ export default function EditActions({ index, item }: EditActionsProps) { saveCurrentSession: false, }), ); - dispatch(exitEditMode()); + dispatch(exitEditMode({})); } }} /> diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index c2b6dac7d..d6f45d864 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -10,7 +10,6 @@ import { } from "../../redux/selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; import { exitEditMode } from "../../redux/thunks"; -import { loadLastSession } from "../../redux/thunks/session"; import { getAltKeyLabel, getMetaKeyLabel, @@ -186,13 +185,8 @@ function InputToolbar(props: InputToolbarProps) { {mode === "edit" && ( { - await dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); - dispatch(exitEditMode()); + onClick={async () => { + dispatch(exitEditMode({})); }} > diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index c2d19dde0..2212928d4 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -24,8 +24,6 @@ import { selectUseActiveFile } from "../../../../redux/selectors"; import { selectSelectedChatModel } from "../../../../redux/slices/configSlice"; import { addCodeToEdit } from "../../../../redux/slices/editModeState"; import { AppDispatch } from "../../../../redux/store"; -import { exitEditMode } from "../../../../redux/thunks"; -import { loadLastSession } from "../../../../redux/thunks/session"; import { getFontSize, isJetBrains } from "../../../../util"; import * as ContinueExtensions from "../extensions"; import { TipTapEditorProps } from "../TipTapEditor"; @@ -272,14 +270,11 @@ export function createEditorConfig(options: { ideMessenger.post("focusEditor", undefined); return true; } - (async () => { - await dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); - dispatch(exitEditMode()); - })(); + // dispatch( + // exitEditMode({ + // openNewSession: false, + // }), + // ); return true; }, diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 0ab3225f9..35acc2dd9 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -8,18 +8,14 @@ import { } from "@heroicons/react/24/outline"; import { MessageModes } from "core"; import { modelSupportsTools } from "core/llm/autodetect"; -import { useEffect, useMemo, useState } from "react"; +import { useCallback, useEffect, useMemo } from "react"; import styled from "styled-components"; import { lightGray } from ".."; -import { useWebviewListener } from "../../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { cycleMode, setMode } from "../../redux/slices/sessionSlice"; +import { setMode } from "../../redux/slices/sessionSlice"; import { exitEditMode } from "../../redux/thunks"; -import { - loadLastSession, - saveCurrentSession, -} from "../../redux/thunks/session"; +import { enterEditMode } from "../../redux/thunks/editMode"; import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; import { Listbox, @@ -38,8 +34,6 @@ function ModeSelect() { const dispatch = useAppDispatch(); const mode = useAppSelector((store) => store.session.mode); const selectedModel = useAppSelector(selectSelectedChatModel); - const currentSession = useAppSelector((state) => state.session); - const [newSessionInitialized, setNewSessionInitialized] = useState(false); const agentModeSupported = selectedModel && modelSupportsTools(selectedModel); const jetbrains = useMemo(() => { @@ -70,11 +64,66 @@ function ModeSelect() { } }, [mode, agentModeSupported, dispatch, selectedModel]); + const cycleMode = useCallback(async () => { + const modes: MessageModes[] = jetbrains + ? ["chat", "agent"] + : ["chat", "agent", "edit"]; + const currentIndex = modes.indexOf(mode); + const oneModeAhead = modes[(currentIndex + 1) % modes.length]; + // const twoModesAhead = modes[(currentIndex + 2) % modes.length]; + if (mode === "edit") { + await dispatch( + exitEditMode({ + goToMode: oneModeAhead, + }), + ); + } else { + if (oneModeAhead === "edit") { + await dispatch( + enterEditMode({ + returnToMode: mode, // twoModesAhead + returnCursorToEditor: false, + }), + ); + } else { + dispatch(setMode(oneModeAhead)); + } + } + }, [jetbrains, mode]); + + const selectMode = useCallback( + async (newMode: MessageModes) => { + if (newMode === mode) { + return; + } + + if (newMode === "edit") { + await dispatch( + enterEditMode({ + returnToMode: mode, + returnCursorToEditor: false, + }), + ); + } else { + if (mode === "edit") { + await dispatch( + exitEditMode({ + goToMode: newMode, + }), + ); + } else { + dispatch(setMode(newMode)); + } + } + }, + [mode], + ); + useEffect(() => { const handleKeyDown = (e: KeyboardEvent) => { if (e.key === "." && (e.metaKey || e.ctrlKey)) { e.preventDefault(); - dispatch(cycleMode({ isJetBrains: jetbrains })); + cycleMode(); } }; @@ -82,43 +131,8 @@ function ModeSelect() { return () => document.removeEventListener("keydown", handleKeyDown); }, [dispatch, mode, jetbrains]); - useWebviewListener("newSession", async () => { - setNewSessionInitialized(true); - }); - - useEffect(() => { - if (currentSession.history.length > 0) { - setNewSessionInitialized(false); - } - }, [currentSession.history]); - return ( - { - if (newMode === mode) { - return; - } - dispatch(setMode(newMode)); - if (newMode === "edit" || newSessionInitialized) { - // generate a new session for edit mode and if user opened a new session explicitly - await dispatch( - saveCurrentSession({ - generateTitle: false, - openNewSession: true, - }), - ); - } else if (mode === "edit") { - // load last session if the previous mode was edit - await dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); - dispatch(exitEditMode()); - } - }} - > +
- -
- - Agent -
- {mode === "agent" && } - {!agentModeSupported && (Not supported)} -
- - -
- - Chat - {getMetaKeyLabel()}L -
- {mode === "chat" && } -
- {!jetbrains && (
@@ -166,6 +162,23 @@ function ModeSelect() { {mode === "edit" && } )} + +
+ + Chat + {getMetaKeyLabel()}L +
+ {mode === "chat" && } +
+ + +
+ + Agent +
+ {mode === "agent" && } + {!agentModeSupported && (Not supported)} +
{metaKeyLabel}. for next mode diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index 98ba3c5cf..dcfab3e29 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -2,6 +2,7 @@ import { useCallback, useContext, useEffect, useRef } from "react"; import { VSC_THEME_COLOR_VARS } from "../components"; import { IdeMessengerContext } from "../context/IdeMessenger"; +import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; import { FromCoreProtocol } from "core/protocol"; import { initializeProfilePreferences, @@ -15,6 +16,7 @@ import { selectSelectedChatModel, setConfigResult, } from "../redux/slices/configSlice"; +import { setEditStateApplyState } from "../redux/slices/editModeState"; import { updateIndexingStatus } from "../redux/slices/indexingSlice"; import { acceptToolCall, @@ -259,30 +261,35 @@ function useSetup() { useWebviewListener( "updateApplyState", async (state) => { - dispatch(updateApplyState(state)); + if (state.streamId === EDIT_MODE_STREAM_ID) { + dispatch(setEditStateApplyState(state)); + } else { + // chat or agent + dispatch(updateApplyState(state)); - // Handle apply status updates that are associated with current tool call - if ( - state.status === "closed" && - currentToolCallApplyState && - currentToolCallApplyState.streamId === state.streamId - ) { - // const output: ContextItem = { - // name: "Edit tool output", - // content: "Completed edit", - // description: "", - // }; - dispatch( - acceptToolCall({ - toolCallId: currentToolCallApplyState.toolCallId!, - }), - ); - // dispatch(setToolCallOutput([])); - dispatch( - streamResponseAfterToolCall({ - toolCallId: currentToolCallApplyState.toolCallId!, - }), - ); + // Handle apply status updates that are associated with current tool call + if ( + state.status === "closed" && + currentToolCallApplyState && + currentToolCallApplyState.streamId === state.streamId + ) { + // const output: ContextItem = { + // name: "Edit tool output", + // content: "Completed edit", + // description: "", + // }; + dispatch( + acceptToolCall({ + toolCallId: currentToolCallApplyState.toolCallId!, + }), + ); + // dispatch(setToolCallOutput([])); + dispatch( + streamResponseAfterToolCall({ + toolCallId: currentToolCallApplyState.toolCallId!, + }), + ); + } } }, [currentToolCallApplyState, history], diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 268e22e7a..3a4ccf8f7 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -34,7 +34,7 @@ import { selectCurrentToolCallApplyState, } from "../../redux/selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { submitEdit } from "../../redux/slices/editModeState"; +import { setEditStateApplyStatus } from "../../redux/slices/editModeState"; import { newSession, updateToolCallOutput, @@ -45,7 +45,7 @@ import { setShowDialog, } from "../../redux/slices/uiSlice"; import { cancelStream } from "../../redux/thunks/cancelStream"; -import { exitEditMode } from "../../redux/thunks/exitEditMode"; +import { exitEditMode } from "../../redux/thunks/editMode"; import { loadLastSession } from "../../redux/thunks/session"; import { streamResponseThunk } from "../../redux/thunks/streamResponse"; import { isJetBrains, isMetaEquivalentKeyPressed } from "../../util"; @@ -261,7 +261,7 @@ export function Chat() { range: codeToEdit[0] as RangeInFileWithContents, }); - dispatch(submitEdit(prompt)); + dispatch(setEditStateApplyStatus("streaming")); } useWebviewListener( @@ -456,7 +456,7 @@ export function Chat() { saveCurrentSession: false, }), ); - dispatch(exitEditMode()); + dispatch(exitEditMode({})); } }} /> diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index 08c613739..68d22fded 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -1,10 +1,9 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { ApplyState, CodeToEdit, MessageContent, MessageModes } from "core"; +import { ApplyState, ApplyStateStatus, CodeToEdit, MessageModes } from "core"; import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; export interface EditModeState { codeToEdit: CodeToEdit[]; applyState: ApplyState; - previousInputs: MessageContent[]; returnCursorToEditorAfterEdit: boolean; returnToMode: MessageModes; } @@ -13,7 +12,6 @@ const initialState: EditModeState = { applyState: { streamId: EDIT_MODE_STREAM_ID, }, - previousInputs: [], codeToEdit: [], returnCursorToEditorAfterEdit: false, returnToMode: "chat", @@ -23,17 +21,26 @@ export const editModeStateSlice = createSlice({ name: "editModeState", initialState, reducers: { - focusEdit: (state) => { - state.applyState.status = "not-started"; - state.previousInputs = []; + setReturnCursorToEditorAfterEdit: ( + state, + { payload }: PayloadAction, + ) => { + state.returnCursorToEditorAfterEdit = payload; }, - submitEdit: (state, { payload }: PayloadAction) => { - state.previousInputs.push(payload); - state.applyState.status = "streaming"; + setReturnToModeAfterEdit: ( + state, + { payload }: PayloadAction, + ) => { + state.returnToMode = payload; }, - setEditDone: (state) => { - state.applyState.status = "done"; - state.previousInputs = []; + setEditStateApplyStatus: ( + state, + { payload }: PayloadAction, + ) => { + state.applyState.status = payload; + }, + setEditStateApplyState: (state, { payload }: PayloadAction) => { + state.applyState = payload; }, addCodeToEdit: ( state, @@ -68,11 +75,12 @@ export const editModeStateSlice = createSlice({ }); export const { - setEditDone, - submitEdit, - focusEdit, + setReturnToModeAfterEdit, + setReturnCursorToEditorAfterEdit, clearCodeToEdit, addCodeToEdit, + setEditStateApplyStatus, + setEditStateApplyState, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; @@ -94,17 +102,3 @@ function isCodeToEditEqual(a: CodeToEdit, b: CodeToEdit) { // If neither has a range, they are considered equal in this context return !("range" in a) && !("range" in b); } - -// export const { } = editModeStateSlice.selectors; - -// selectIsSingleRangeEditOrInsertion: (state) => { -// if (state.mode !== "edit") { -// return false; -// } - -// const isInsertion = state.codeToEdit.length === 0; -// const selectIsSingleRangeEdit = -// state.codeToEdit.length === 1 && "range" in state.codeToEdit[0]; - -// return selectIsSingleRangeEdit || isInsertion; -// }, diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index 5ef58dfff..b20701ba2 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -652,14 +652,6 @@ export const sessionSlice = createSlice({ setMode: (state, action: PayloadAction) => { state.mode = action.payload; }, - cycleMode: (state, action: PayloadAction<{ isJetBrains: boolean }>) => { - const modes = action.payload.isJetBrains - ? ["chat", "agent"] - : ["chat", "edit", "agent"]; - const currentIndex = modes.indexOf(state.mode); - const nextIndex = (currentIndex + 1) % modes.length; - state.mode = modes[nextIndex] as MessageModes; - }, setNewestToolbarPreviewForInput: ( state, { @@ -757,7 +749,6 @@ export const { updateSessionMetadata, deleteSessionMetadata, setNewestToolbarPreviewForInput, - cycleMode, } = sessionSlice.actions; export const { selectIsGatheringContext } = sessionSlice.selectors; diff --git a/gui/src/redux/thunks/editMode.ts b/gui/src/redux/thunks/editMode.ts new file mode 100644 index 000000000..073eb1a18 --- /dev/null +++ b/gui/src/redux/thunks/editMode.ts @@ -0,0 +1,82 @@ +import { createAsyncThunk } from "@reduxjs/toolkit"; +import { MessageModes } from "core"; +import { + clearCodeToEdit, + setEditStateApplyStatus, + setReturnCursorToEditorAfterEdit, + setReturnToModeAfterEdit, +} from "../slices/editModeState"; +import { newSession, setMode } from "../slices/sessionSlice"; +import { ThunkApiType } from "../store"; +import { loadLastSession, saveCurrentSession } from "./session"; + +export const exitEditMode = createAsyncThunk< + void, + { goToMode?: MessageModes; openNewSession?: boolean }, + ThunkApiType +>( + "edit/exitMode", + async ({ goToMode, openNewSession }, { dispatch, extra, getState }) => { + const state = getState(); + const codeToEdit = state.editModeState.codeToEdit; + + if (state.session.mode !== "edit") { + return; + } + + for (const code of codeToEdit) { + extra.ideMessenger.post("rejectDiff", { + filepath: code.filepath, + }); + } + + dispatch(clearCodeToEdit()); + + if (openNewSession) { + dispatch(newSession()); + } else { + await dispatch( + loadLastSession({ + saveCurrentSession: false, + }), + ); + } + + dispatch(setMode(goToMode ?? state.editModeState.returnToMode)); + + extra.ideMessenger.post("edit/exit", { + shouldFocusEditor: state.editModeState.returnCursorToEditorAfterEdit, + }); + }, +); + +export const enterEditMode = createAsyncThunk< + void, + { returnToMode?: MessageModes; returnCursorToEditor?: boolean }, + ThunkApiType +>( + "edit/enterMode", + async ( + { returnCursorToEditor, returnToMode }, + { dispatch, extra, getState }, + ) => { + const state = getState(); + + dispatch(setReturnToModeAfterEdit(returnToMode ?? state.session.mode)); + dispatch(setReturnCursorToEditorAfterEdit(returnCursorToEditor ?? false)); + + if (state.session.mode === "edit") { + return; + } + + await dispatch( + saveCurrentSession({ + openNewSession: true, + // Because this causes a lag before Edit mode is focused. TODO just have that happen in background + generateTitle: false, + }), + ); + dispatch(setEditStateApplyStatus("not-started")); + dispatch(setMode("edit")); + }, +); diff --git a/gui/src/redux/thunks/exitEditMode.ts b/gui/src/redux/thunks/exitEditMode.ts deleted file mode 100644 index 07ba73db9..000000000 --- a/gui/src/redux/thunks/exitEditMode.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { createAsyncThunk } from "@reduxjs/toolkit"; -import { clearCodeToEdit, clearPreviousInputs } from "../slices/editModeState"; -import { setMainEditorContentTrigger, setMode } from "../slices/sessionSlice"; -import { ThunkApiType } from "../store"; - -export const exitEditMode = createAsyncThunk( - "edit/complete", - async (_, { dispatch, extra, getState }) => { - const state = getState(); - const codeToEdit = state.editModeState.codeToEdit; - const returnCursorToEditorAfterEdit = - state.editModeState.returnCursorToEditorAfterEdit; - // const editStreamId = state.editModeState.streamId; - - if (state.session.mode !== "edit") { - return; - } - - for (const code of codeToEdit) { - extra.ideMessenger.post("rejectDiff", { - filepath: code.filepath, - }); - } - - dispatch(clearCodeToEdit()); - dispatch(clearPreviousInputs()); - dispatch(setMainEditorContentTrigger(undefined)); - - dispatch(setMode("chat")); - - extra.ideMessenger.post("edit/exit", { - shouldFocusEditor: returnCursorToEditorAfterEdit, - }); - }, -); diff --git a/gui/src/redux/thunks/index.ts b/gui/src/redux/thunks/index.ts index ad987fafa..9c619d785 100644 --- a/gui/src/redux/thunks/index.ts +++ b/gui/src/redux/thunks/index.ts @@ -1,4 +1,4 @@ -export { exitEditMode } from "./exitEditMode"; +export { exitEditMode } from "./editMode"; export { gatherContext } from "./gatherContext"; export { resetStateForNewMessage } from "./resetStateForNewMessage"; export { streamNormalInput } from "./streamNormalInput"; From 654842a96e525fd14e02c15114d393c91e1fb221 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 20:30:13 -0700 Subject: [PATCH 010/110] working edit apply state --- core/protocol/ideWebview.ts | 2 +- extensions/vscode/src/commands.ts | 2 +- .../CodeToEditCard/AddFileButton.tsx | 71 ------- .../CodeToEditCard/AddFileCombobox.tsx | 142 ------------- .../CodeToEditCard/CodeToEditCard.tsx | 72 +------ gui/src/components/Layout.tsx | 6 +- .../components/StepContainer/EditActions.tsx | 48 +---- .../TipTapEditor/extensions/AddCodeToEdit.ts | 189 ------------------ .../TipTapEditor/extensions/index.ts | 1 - .../TipTapEditor/utils/editorConfig.ts | 51 +---- gui/src/redux/slices/editModeState.ts | 4 +- 11 files changed, 25 insertions(+), 563 deletions(-) delete mode 100644 gui/src/components/CodeToEditCard/AddFileButton.tsx delete mode 100644 gui/src/components/CodeToEditCard/AddFileCombobox.tsx delete mode 100644 gui/src/components/mainInput/TipTapEditor/extensions/AddCodeToEdit.ts diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 7ee2bb9c3..1549c0b26 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -70,7 +70,7 @@ export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { }, void, ]; - addCodeToEdit: [CodeToEdit, void]; + setCodeToEdit: [CodeToEdit, void]; navigateTo: [{ path: string; toggle?: boolean }, void]; addModel: [undefined, void]; diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index e1ed76cf6..7465eb2e2 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -580,7 +580,7 @@ const getCommandsMap: ( if (rangeInFileWithContents) { sidebar.webviewProtocol?.request( - "addCodeToEdit", + "setCodeToEdit", rangeInFileWithContents, ); diff --git a/gui/src/components/CodeToEditCard/AddFileButton.tsx b/gui/src/components/CodeToEditCard/AddFileButton.tsx deleted file mode 100644 index 585060b3f..000000000 --- a/gui/src/components/CodeToEditCard/AddFileButton.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import { ChevronDownIcon, PlusIcon } from "@heroicons/react/24/outline"; -import { useContext, useRef } from "react"; -import { IdeMessengerContext } from "../../context/IdeMessenger"; -import { useAppDispatch } from "../../redux/hooks"; -import { addCodeToEdit } from "../../redux/slices/editModeState"; -import { - Listbox, - ListboxButton, - ListboxOption, - ListboxOptions, -} from "../ui/Listbox"; - -export interface AddFileButtonProps { - onClick: () => void; -} - -export default function AddFileButton({ onClick }: AddFileButtonProps) { - const buttonRef = useRef(null); - const ideMessenger = useContext(IdeMessengerContext); - const dispatch = useAppDispatch(); - - async function handleAddAllOpenFiles() { - const openFiles = await ideMessenger.ide.getOpenFiles(); - const filesData = await Promise.all( - openFiles.map(async (filepath) => { - const contents = await ideMessenger.ide.readFile(filepath); - return { filepath, contents }; - }), - ); - - dispatch( - addCodeToEdit({ - codeToEdit: filesData, - fromEditor: false, - }), - ); - } - - return ( - -
- -
{ - e.preventDefault(); - e.stopPropagation(); - onClick(); - }} - > - - - Add file - -
- -
- - - - - - Add all open files - -
- - ); -} diff --git a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx b/gui/src/components/CodeToEditCard/AddFileCombobox.tsx deleted file mode 100644 index 6fea05292..000000000 --- a/gui/src/components/CodeToEditCard/AddFileCombobox.tsx +++ /dev/null @@ -1,142 +0,0 @@ -import { ContextSubmenuItemWithProvider } from "core"; -import { useEffect, useRef, useState } from "react"; -import { - Combobox, - ComboboxButton, - ComboboxInput, - ComboboxOption, - ComboboxOptions, -} from "../../components/ui/Combobox"; -import { useSubmenuContextProviders } from "../../context/SubmenuContextProviders"; -import { useAppSelector } from "../../redux/hooks"; -import FileIcon from "../FileIcon"; -export interface AddFileComboboxProps { - onSelect: (filepaths: string[]) => void | Promise; - onEscape: () => void | Promise; -} - -export default function AddFileCombobox({ - onSelect, - onEscape, -}: AddFileComboboxProps) { - const [query, setQuery] = useState(""); - const [selectedFiles, setSelectedFiles] = useState< - ContextSubmenuItemWithProvider[] - >([]); - - const inputRef = useRef(null); - const buttonRef = useRef(null); - const { getSubmenuContextItems } = useSubmenuContextProviders(); - const allFiles = getSubmenuContextItems("file", ""); - const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); - const remainingFiles = allFiles.filter( - (file) => !codeToEdit.find((code) => code.filepath === file.id), - ); - - useEffect(() => { - if (inputRef.current) { - inputRef.current.focus(); - } - }, []); - - useEffect(() => { - // update selectedFiles showing only the files that are in codeToEdit - setSelectedFiles((prevSelectedFiles) => - prevSelectedFiles.filter( - (file) => - codeToEdit.findIndex((code) => code.filepath === file.id) !== -1, - ), - ); - }, [codeToEdit]); - - const filteredFiles = - query === "" - ? remainingFiles - : remainingFiles.filter((file) => - file.title.toLowerCase().includes(query.toLowerCase()), - ); - - return ( -
- { - setSelectedFiles(files); - void onSelect(files.map((file) => file.id)); - buttonRef.current?.click(); - setQuery(""); - }} - > - {({ open }) => ( -
- - { - if (!open) { - buttonRef.current?.click(); - } - }} - onFocus={() => { - buttonRef.current?.click(); - }} - className="bg-vsc-background border-lightgray text-vsc-foreground box-border w-full rounded border border-solid py-0.5 pl-2 text-xs focus:outline-none" - onChange={(event) => setQuery(event.target.value)} - placeholder="Type to search files..." - onKeyDown={(e) => { - if (e.key === "Escape" && !open) { - void onEscape(); - } - }} - /> - - - {filteredFiles.length > 0 ? ( - filteredFiles.map((file) => ( - - `relative flex w-full cursor-pointer px-2 py-1 text-left text-xs ${ - active - ? "bg-list-active text-list-active-foreground" - : "" - }` - } - > - {({ active, selected }) => ( -
-
- - {file.title} -
- - - {file.description} - -
- )} -
- )) - ) : ( -
- No results -
- )} -
-
- )} -
-
- ); -} diff --git a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx index 1d50c4368..1bd310f20 100644 --- a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx +++ b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx @@ -1,30 +1,16 @@ -import { PlusIcon, XMarkIcon } from "@heroicons/react/24/outline"; import type { CodeToEdit } from "core"; -import { useContext, useState } from "react"; +import { useContext } from "react"; import { useDispatch } from "react-redux"; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppSelector } from "../../redux/hooks"; -import { - addCodeToEdit, - clearCodeToEdit, -} from "../../redux/slices/editModeState"; -import AddFileButton from "./AddFileButton"; -import AddFileCombobox from "./AddFileCombobox"; +import { clearCodeToEdit } from "../../redux/slices/editModeState"; import CodeToEditListItem from "./CodeToEditListItem"; export default function CodeToEditCard() { const dispatch = useDispatch(); const ideMessenger = useContext(IdeMessengerContext); - const [showAddFileCombobox, setShowAddFileCombobox] = useState(false); const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); - const itemCount = - codeToEdit.length === 0 - ? "" - : codeToEdit.length === 1 - ? "(1 item)" - : `(${codeToEdit.length} items)`; - function onDelete() { dispatch(clearCodeToEdit()); } @@ -41,35 +27,8 @@ export default function CodeToEditCard() { } } - async function onSelectFilesToAdd(uris: string[]) { - const filePromises = uris.map(async (uri) => { - const contents = await ideMessenger.ide.readFile(uri); - return { contents, filepath: uri }; - }); - - const fileResults = await Promise.all(filePromises); - - for (const file of fileResults) { - dispatch( - addCodeToEdit({ - codeToEdit: file, - fromEditor: false, - }), - ); - } - } - return (
-
-
- Code to edit - {itemCount} -
- - setShowAddFileCombobox(true)} /> -
- {codeToEdit.length > 0 ? (
    {codeToEdit.map((code, i) => ( @@ -82,32 +41,7 @@ export default function CodeToEditCard() { ))}
) : ( - !showAddFileCombobox && ( -
setShowAddFileCombobox(true)} - > - - Add a file to get started -
- ) - )} - - {showAddFileCombobox && ( -
-
- setShowAddFileCombobox(false)} - /> -
- { - setShowAddFileCombobox(false); - }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground mb-2 h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" - /> -
+
Highlight code and select Cmd + I to edit a file
)}
); diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index a5b3ba70e..0b07a7405 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -6,7 +6,7 @@ import { AuthProvider } from "../context/Auth"; import { LocalStorageProvider } from "../context/LocalStorage"; import { useWebviewListener } from "../hooks/useWebviewListener"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; -import { addCodeToEdit } from "../redux/slices/editModeState"; +import { setCodeToEdit } from "../redux/slices/editModeState"; import { setShowDialog } from "../redux/slices/uiSlice"; import { enterEditMode, exitEditMode } from "../redux/thunks/editMode"; import { saveCurrentSession } from "../redux/thunks/session"; @@ -150,10 +150,10 @@ const Layout = () => { ); useWebviewListener( - "addCodeToEdit", + "setCodeToEdit", async (payload) => { dispatch( - addCodeToEdit({ + setCodeToEdit({ codeToEdit: payload, fromEditor: true, }), diff --git a/gui/src/components/StepContainer/EditActions.tsx b/gui/src/components/StepContainer/EditActions.tsx index 4dec48d27..901b7ea00 100644 --- a/gui/src/components/StepContainer/EditActions.tsx +++ b/gui/src/components/StepContainer/EditActions.tsx @@ -3,7 +3,6 @@ import { ChatHistoryItem } from "core"; import { renderChatMessage } from "core/util/messageContent"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { exitEditMode } from "../../redux/thunks/editMode"; -import { loadLastSession } from "../../redux/thunks/session"; import AcceptRejectAllButtons from "../AcceptRejectAllButtons"; import FeedbackButtons from "../FeedbackButtons"; import { CopyIconButton } from "../gui/CopyIconButton"; @@ -14,62 +13,33 @@ export interface EditActionsProps { } export default function EditActions({ index, item }: EditActionsProps) { - // const curCheckpointIndex = useSelector( - // (store: RootState) => store.state.curCheckpointIndex, - // ); const dispatch = useAppDispatch(); - const isStreaming = useAppSelector((state) => state.session.isStreaming); - - const applyStates = useAppSelector( - (state) => state.session.codeBlockApplyStates.states, - ); - - const pendingApplyStates = applyStates.filter( - (state) => state.status === "done", - ); - - const hasClosedAllStreams = applyStates.every( - (state) => state.status === "closed", - ); - - // const isCurCheckpoint = Math.floor(index / 2) === curCheckpointIndex; - const hasPendingApplies = pendingApplyStates.length > 0; - - if (isStreaming) return null; + const applyState = useAppSelector((store) => store.editModeState.applyState); + if ( + applyState.status === "not-started" || + applyState.status === "streaming" + ) { + return null; + } return (
- {/* {isCurCheckpoint && ( -
- {hasPendingApplies && ( - - )} - {hasClosedAllStreams && } -
- )} */} -
- {hasPendingApplies && ( + {applyState.status === "done" && ( { if (outcome === "acceptDiff") { - await dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); dispatch(exitEditMode({})); } }} /> )} - {/* {hasClosedAllStreams && } */}
diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/AddCodeToEdit.ts b/gui/src/components/mainInput/TipTapEditor/extensions/AddCodeToEdit.ts deleted file mode 100644 index 87b524435..000000000 --- a/gui/src/components/mainInput/TipTapEditor/extensions/AddCodeToEdit.ts +++ /dev/null @@ -1,189 +0,0 @@ -import { mergeAttributes, Node } from "@tiptap/core"; -import { PluginKey } from "@tiptap/pm/state"; -import Suggestion from "@tiptap/suggestion"; -import { MentionOptions } from "./types"; - -export const AddCodeToEdit = Node.create({ - name: "add-code-to-edit", - - addOptions() { - return { - HTMLAttributes: { - class: "add-code-to-edit", - }, - renderHTML({ options, node }) { - return [ - "span", - this.HTMLAttributes, - `${options.suggestion.char}${node.attrs.label ?? node.attrs.id}`, - ]; - }, - suggestion: { - char: "#", - pluginKey: new PluginKey(this.name), - allow: ({ state, range }) => { - const $from = state.doc.resolve(range.from); - const type = state.schema.nodes[this.name]; - const allow = !!$from.parent.type.contentMatch.matchType(type); - - // Check if there's a space after the "#" - const textFrom = range.from; - const textTo = state.selection.$to.pos; - const text = state.doc.textBetween(textFrom, textTo); - const hasSpace = text.includes(" "); - - return allow && !hasSpace; - }, - }, - }; - }, - - group: "inline", - - inline: true, - - selectable: false, - - atom: true, - - addAttributes() { - return { - id: { - default: null, - parseHTML: (element) => element.getAttribute("data-id"), - renderHTML: (attributes) => { - if (!attributes.id) { - return {}; - } - - return { - "data-id": attributes.id, - }; - }, - }, - - label: { - default: null, - parseHTML: (element) => element.getAttribute("data-label"), - renderHTML: (attributes) => { - if (!attributes.label) { - return {}; - } - - return { - "data-label": attributes.label, - }; - }, - }, - - renderInlineAs: { - default: null, - parseHTML: (element) => element.getAttribute("data-renderInlineAs"), - renderHTML: (attributes) => { - if (typeof attributes.renderInlineAs !== "string") { - return {}; - } - - return { - "data-renderInlineAs": attributes.renderInlineAs, - }; - }, - }, - - query: { - default: null, - parseHTML: (element) => element.getAttribute("data-query"), - renderHTML: (attributes) => { - if (!attributes.query) { - return {}; - } - - return { - "data-query": attributes.query, - }; - }, - }, - - itemType: { - default: null, - parseHTML: (element) => element.getAttribute("data-itemType"), - renderHTML: (attributes) => { - if (!attributes.itemType) { - return {}; - } - - return { - "data-itemType": attributes.itemType, - }; - }, - }, - }; - }, - - parseHTML() { - return [ - { - tag: `span[data-type="${this.name}"]`, - }, - ]; - }, - - renderHTML({ node, HTMLAttributes }) { - const html = this.options.renderHTML({ - options: this.options, - node, - }); - - if (typeof html === "string") { - return [ - "span", - mergeAttributes( - { "data-type": this.name }, - this.options.HTMLAttributes, - HTMLAttributes, - ), - html, - ]; - } - return html; - }, - - addKeyboardShortcuts() { - return { - Backspace: () => - this.editor.commands.command(({ tr, state }) => { - let isMention = false; - const { selection } = state; - const { empty, anchor } = selection; - - if (!empty) { - return false; - } - - state.doc.nodesBetween(anchor - 1, anchor, (node, pos) => { - if (node.type.name === this.name) { - isMention = true; - tr.insertText( - this.options.suggestion.char || "", - pos, - pos + node.nodeSize, - ); - - return false; - } - }); - - return isMention; - }), - }; - }, - - addProseMirrorPlugins() { - return [ - Suggestion({ - editor: this.editor, - ...this.options.suggestion, - }), - ]; - }, -}); diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/index.ts b/gui/src/components/mainInput/TipTapEditor/extensions/index.ts index 06426b9c3..717557fdc 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/index.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/index.ts @@ -1,4 +1,3 @@ -export * from "./AddCodeToEdit"; export * from "./CodeBlock"; export * from "./Mention"; export * from "./Prompt"; diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 2212928d4..421130a29 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -22,8 +22,8 @@ import useUpdatingRef from "../../../../hooks/useUpdatingRef"; import { useAppSelector } from "../../../../redux/hooks"; import { selectUseActiveFile } from "../../../../redux/selectors"; import { selectSelectedChatModel } from "../../../../redux/slices/configSlice"; -import { addCodeToEdit } from "../../../../redux/slices/editModeState"; import { AppDispatch } from "../../../../redux/store"; +import { exitEditMode } from "../../../../redux/thunks"; import { getFontSize, isJetBrains } from "../../../../util"; import * as ContinueExtensions from "../extensions"; import { TipTapEditorProps } from "../TipTapEditor"; @@ -270,11 +270,11 @@ export function createEditorConfig(options: { ideMessenger.post("focusEditor", undefined); return true; } - // dispatch( - // exitEditMode({ - // openNewSession: false, - // }), - // ); + dispatch( + exitEditMode({ + openNewSession: false, + }), + ); return true; }, @@ -315,45 +315,6 @@ export function createEditorConfig(options: { ideMessenger, ), }), - ContinueExtensions.AddCodeToEdit.configure({ - suggestion: { - ...getContextProviderDropdownOptions( - availableContextProvidersRef, - getSubmenuContextItemsRef, - enterSubmenu, - onClose, - onOpen, - inSubmenuRef, - ideMessenger, - ), - allow: () => modeRef.current !== "edit", - command: async ({ editor, range, props }) => { - editor.chain().focus().insertContentAt(range, "").run(); - const filepath = props.id; - const contents = await ideMessenger.ide.readFile(filepath); - dispatch( - addCodeToEdit({ - codeToEdit: { - filepath, - contents, - }, - fromEditor: false, - }), - ); - }, - items: async ({ query }) => { - // Only display files in the dropdown - const results = getSubmenuContextItemsRef.current("file", query); - return results.map((result) => ({ - ...result, - label: result.title, - type: "file", - query: result.id, - icon: result.icon, - })); - }, - }, - }), ContinueExtensions.SlashCommand.configure({ suggestion: getSlashCommandDropdownOptions( availableSlashCommandsRef, diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index 68d22fded..01fd290cb 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -42,7 +42,7 @@ export const editModeStateSlice = createSlice({ setEditStateApplyState: (state, { payload }: PayloadAction) => { state.applyState = payload; }, - addCodeToEdit: ( + setCodeToEdit: ( state, { payload, @@ -78,7 +78,7 @@ export const { setReturnToModeAfterEdit, setReturnCursorToEditorAfterEdit, clearCodeToEdit, - addCodeToEdit, + setCodeToEdit, setEditStateApplyStatus, setEditStateApplyState, } = editModeStateSlice.actions; From 3d6cf7504bdb97d3a590660f1f72fef1a3c29193 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 21:28:17 -0700 Subject: [PATCH 011/110] WIP: code to edit progress --- extensions/vscode/src/commands.ts | 1 + .../CodeToEditCard/CodeToEditCard.tsx | 48 ----- .../CodeToEditCard/CodeToEditListItem.tsx | 142 ------------- gui/src/components/CodeToEditCard/index.ts | 1 - .../components/mainInput/CodeToEditCard.tsx | 201 ++++++++++++++++++ gui/src/components/mainInput/InputToolbar.tsx | 4 +- .../components/modelSelection/ModeSelect.tsx | 2 +- gui/src/pages/gui/Chat.tsx | 2 +- gui/src/redux/slices/editModeState.ts | 34 +-- 9 files changed, 209 insertions(+), 226 deletions(-) delete mode 100644 gui/src/components/CodeToEditCard/CodeToEditCard.tsx delete mode 100644 gui/src/components/CodeToEditCard/CodeToEditListItem.tsx delete mode 100644 gui/src/components/CodeToEditCard/index.ts create mode 100644 gui/src/components/mainInput/CodeToEditCard.tsx diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 7465eb2e2..af9c8a232 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -574,6 +574,7 @@ const getCommandsMap: ( const range = args?.range ?? new vscode.Range(startFromCharZero, endAtCharLast); + editDecorationManager.clear(); editDecorationManager.addDecorations(editor, [range]); const rangeInFileWithContents = getRangeInFileWithContents(true, range); diff --git a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx b/gui/src/components/CodeToEditCard/CodeToEditCard.tsx deleted file mode 100644 index 1bd310f20..000000000 --- a/gui/src/components/CodeToEditCard/CodeToEditCard.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import type { CodeToEdit } from "core"; -import { useContext } from "react"; -import { useDispatch } from "react-redux"; -import { IdeMessengerContext } from "../../context/IdeMessenger"; -import { useAppSelector } from "../../redux/hooks"; -import { clearCodeToEdit } from "../../redux/slices/editModeState"; -import CodeToEditListItem from "./CodeToEditListItem"; - -export default function CodeToEditCard() { - const dispatch = useDispatch(); - const ideMessenger = useContext(IdeMessengerContext); - const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); - - function onDelete() { - dispatch(clearCodeToEdit()); - } - - async function onClickFilename(code: CodeToEdit) { - if ("range" in code) { - await ideMessenger.ide.showLines( - code.filepath, - code.range.start.line, - code.range.end.line, - ); - } else { - await ideMessenger.ide.openFile(code.filepath); - } - } - - return ( -
- {codeToEdit.length > 0 ? ( -
    - {codeToEdit.map((code, i) => ( - - ))} -
- ) : ( -
Highlight code and select Cmd + I to edit a file
- )} -
- ); -} diff --git a/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx b/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx deleted file mode 100644 index 9651ec235..000000000 --- a/gui/src/components/CodeToEditCard/CodeToEditListItem.tsx +++ /dev/null @@ -1,142 +0,0 @@ -import { - ChevronDownIcon, - ChevronRightIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; -import { CodeToEdit } from "core"; -import { getMarkdownLanguageTagForFile } from "core/util"; -import { - getLastNUriRelativePathParts, - getUriPathBasename, -} from "core/util/uri"; -import { useState } from "react"; -import styled from "styled-components"; -import FileIcon from "../FileIcon"; -import StyledMarkdownPreview from "../StyledMarkdownPreview"; - -export interface CodeToEditListItemProps { - code: CodeToEdit; - onDelete: (codeToEdit: CodeToEdit) => void | Promise; - onClickFilename: (codeToEdit: CodeToEdit) => void | Promise; -} - -const NoPaddingWrapper = styled.div` - > * { - margin: 0 !important; - padding: 0 !important; - } - - pre { - margin: 0 !important; - padding: 0px 0px 0px 10px !important; - } -`; - -export default function CodeToEditListItem({ - code, - onDelete, - onClickFilename, -}: CodeToEditListItemProps) { - const [showCodeSnippet, setShowCodeSnippet] = useState(false); - - const fileName = getUriPathBasename(code.filepath); - const last2Parts = getLastNUriRelativePathParts( - window.workspacePaths ?? [], - code.filepath, - 2, - ); - - let isInsertion = false; - let title = fileName; - - if ("range" in code) { - const start = code.range.start.line + 1; - const end = code.range.end.line + 1; - - isInsertion = start === end; - - title += isInsertion - ? ` - Inserting at line ${start}` - : ` (${start} - ${end})`; - } - - const source = - "```" + - getMarkdownLanguageTagForFile(code.filepath) + - "\n" + - code.contents + - "\n" + - "```"; - - return ( -
  • { - if (!isInsertion) { - setShowCodeSnippet((showCodeSnippet) => !showCodeSnippet); - } - }} - > -
    -
    - -
    - { - e.stopPropagation(); - void onClickFilename(code); - }} - > - {title} - - - {last2Parts} - -
    -
    - -
    -
    - {showCodeSnippet ? ( - { - e.stopPropagation(); - setShowCodeSnippet(false); - }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" - /> - ) : ( - { - e.stopPropagation(); - setShowCodeSnippet(true); - }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" - /> - )} -
    -
    - { - e.stopPropagation(); - void onDelete(code); - }} - className="text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20" - /> -
    -
    -
    - - {showCodeSnippet && ( -
    - - - -
    - )} -
  • - ); -} diff --git a/gui/src/components/CodeToEditCard/index.ts b/gui/src/components/CodeToEditCard/index.ts deleted file mode 100644 index 2e7d342eb..000000000 --- a/gui/src/components/CodeToEditCard/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from "./CodeToEditCard"; diff --git a/gui/src/components/mainInput/CodeToEditCard.tsx b/gui/src/components/mainInput/CodeToEditCard.tsx new file mode 100644 index 000000000..5c00bcd8b --- /dev/null +++ b/gui/src/components/mainInput/CodeToEditCard.tsx @@ -0,0 +1,201 @@ +import { + ChevronDownIcon, + ChevronRightIcon, + CodeBracketIcon, + XMarkIcon, +} from "@heroicons/react/24/outline"; +import { CodeToEdit } from "core"; +import { getMarkdownLanguageTagForFile } from "core/util"; +import { getUriPathBasename } from "core/util/uri"; +import { useContext, useMemo, useState } from "react"; +import { useDispatch } from "react-redux"; +import styled from "styled-components"; +import { IdeMessengerContext } from "../../context/IdeMessenger"; +import { useAppSelector } from "../../redux/hooks"; +import { clearCodeToEdit } from "../../redux/slices/editModeState"; +import { getMetaKeyLabel } from "../../util"; +import FileIcon from "../FileIcon"; +import Shortcut from "../gui/Shortcut"; +import StyledMarkdownPreview from "../StyledMarkdownPreview"; +import { useFontSize } from "../ui/font"; + +const NoPaddingWrapper = styled.div` + > * { + margin: 0 !important; + padding: 0 !important; + } + + pre { + margin: 0 !important; + padding: 0px 0px 0px 10px !important; + } +`; + +interface CodeToEditItemProps { + code: CodeToEdit; +} + +function CodeToEditItem({ code }: CodeToEditItemProps) { + const dispatch = useDispatch(); + + function onDelete() { + dispatch(clearCodeToEdit()); + } + + const ideMessenger = useContext(IdeMessengerContext); + const [showCodeSnippet, setShowCodeSnippet] = useState(false); + + const fileName = getUriPathBasename(code.filepath); + + let isInsertion = false; + let title = fileName; + + if ("range" in code) { + const start = code.range.start.line + 1; + const end = code.range.end.line + 1; + + isInsertion = start === end; + + title += isInsertion + ? ` - Inserting at line ${start}` + : ` (${start} - ${end})`; + } + + const source = + "```" + + getMarkdownLanguageTagForFile(code.filepath) + + "\n" + + code.contents + + "\n" + + "```"; + + async function onClickFilename() { + if ("range" in code) { + await ideMessenger.ide.showLines( + code.filepath, + code.range.start.line, + code.range.end.line, + ); + } else { + await ideMessenger.ide.openFile(code.filepath); + } + } + + const smallFont = useFontSize(-3); + + const iconClass = + "text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20"; + + return ( +
    +
    + + Code to edit + + +
    { + if (!isInsertion) { + setShowCodeSnippet((showCodeSnippet) => !showCodeSnippet); + } + }} + > +
    + + { + e.stopPropagation(); + void onClickFilename(); + }} + > + {title} + +
    + +
    +
    + {showCodeSnippet ? ( + { + e.stopPropagation(); + setShowCodeSnippet(false); + }} + className={iconClass} + /> + ) : ( + { + e.stopPropagation(); + setShowCodeSnippet(true); + }} + className="" + /> + )} +
    +
    + { + e.stopPropagation(); + void onDelete(); + }} + className={iconClass} + /> +
    +
    +
    +
    + {showCodeSnippet && ( +
    + + + +
    + )} +
    + ); +} +export default function CodeToEditCard() { + // Array from previous multi-file edit + const codeToEditArray = useAppSelector( + (state) => state.editModeState.codeToEdit, + ); + const codeToEdit = useMemo(() => { + return codeToEditArray[0]; + }, [codeToEditArray]); + + const metaKeyLabel = useMemo(() => { + return getMetaKeyLabel(); + }, []); + + const tinyFont = useFontSize(-3); + + return ( +
    + {codeToEdit ? ( + + ) : ( + // + // Highlight code and select Cmd + I to edit a file + // + <> + + {`To edit code, highlight it and press`} + + meta I + + )} +
    + ); +} diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index d6f45d864..a937e0f59 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -85,13 +85,13 @@ function InputToolbar(props: InputToolbarProps) { }} >
    - + Select Mode - + Select Model diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 35acc2dd9..069f0dd96 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -136,7 +136,7 @@ function ModeSelect() {
    , ) => { state.returnCursorToEditorAfterEdit = payload.fromEditor; - const entries = Array.isArray(payload.codeToEdit) + state.codeToEdit = Array.isArray(payload.codeToEdit) ? payload.codeToEdit : [payload.codeToEdit]; - - const newEntries = entries.filter( - (entry) => - !state.codeToEdit.some((existingEntry) => - isCodeToEditEqual(existingEntry, entry), - ), - ); - - if (newEntries.length > 0) { - state.codeToEdit.push(...newEntries); - } }, clearCodeToEdit: (state) => { state.codeToEdit = []; @@ -83,22 +74,3 @@ export const { setEditStateApplyState, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; - -function isCodeToEditEqual(a: CodeToEdit, b: CodeToEdit) { - if (a.filepath !== b.filepath || a.contents !== b.contents) { - return false; - } - - if ("range" in a && "range" in b) { - const rangeA = a.range; - const rangeB = b.range; - - return ( - rangeA.start.line === rangeB.start.line && - rangeA.end.line === rangeB.end.line - ); - } - - // If neither has a range, they are considered equal in this context - return !("range" in a) && !("range" in b); -} From b0117f732b23c9f5291e28107789b215dd747232 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 22:22:32 -0700 Subject: [PATCH 012/110] notch toolbar fixes --- core/protocol/ideWebview.ts | 4 +- .../vscode/src/extension/VsCodeMessenger.ts | 3 +- .../components/mainInput/CodeToEditCard.tsx | 57 +++------ .../components/mainInput/ContinueInputBox.tsx | 3 +- .../Lump/BlockSettingsTopToolbar.tsx | 17 +-- gui/src/pages/error.tsx | 22 ++-- gui/src/pages/gui/Chat.tsx | 114 +++++++----------- gui/src/redux/thunks/editMode.ts | 53 +++++++- 8 files changed, 141 insertions(+), 132 deletions(-) diff --git a/core/protocol/ideWebview.ts b/core/protocol/ideWebview.ts index 1549c0b26..2c6b6a0ee 100644 --- a/core/protocol/ideWebview.ts +++ b/core/protocol/ideWebview.ts @@ -49,9 +49,9 @@ export type ToIdeFromWebviewProtocol = ToIdeFromWebviewOrCoreProtocol & { prompt: MessageContent; range: RangeInFileWithContents; }, - void, + string | undefined, ]; - "edit/exit": [{ shouldFocusEditor: boolean }, void]; + "edit/clearDecorations": [{ shouldFocusEditor: boolean }, void]; }; export type ToWebviewFromIdeProtocol = ToWebviewFromIdeOrCoreProtocol & { diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 7f63f4a02..7fde6fcb6 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -218,8 +218,9 @@ export class VsCodeMessenger { ), rules: config.rules, }); + return fileAfterEdit; }); - this.onWebview("edit/exit", async (msg) => { + this.onWebview("edit/clearDecorations", async (msg) => { if (msg.data.shouldFocusEditor) { const activeEditor = vscode.window.activeTextEditor; diff --git a/gui/src/components/mainInput/CodeToEditCard.tsx b/gui/src/components/mainInput/CodeToEditCard.tsx index 5c00bcd8b..0926fe53e 100644 --- a/gui/src/components/mainInput/CodeToEditCard.tsx +++ b/gui/src/components/mainInput/CodeToEditCard.tsx @@ -1,9 +1,4 @@ -import { - ChevronDownIcon, - ChevronRightIcon, - CodeBracketIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; +import { ChevronRightIcon, XMarkIcon } from "@heroicons/react/24/outline"; import { CodeToEdit } from "core"; import { getMarkdownLanguageTagForFile } from "core/util"; import { getUriPathBasename } from "core/util/uri"; @@ -15,7 +10,6 @@ import { useAppSelector } from "../../redux/hooks"; import { clearCodeToEdit } from "../../redux/slices/editModeState"; import { getMetaKeyLabel } from "../../util"; import FileIcon from "../FileIcon"; -import Shortcut from "../gui/Shortcut"; import StyledMarkdownPreview from "../StyledMarkdownPreview"; import { useFontSize } from "../ui/font"; @@ -37,14 +31,16 @@ interface CodeToEditItemProps { function CodeToEditItem({ code }: CodeToEditItemProps) { const dispatch = useDispatch(); + const ideMessenger = useContext(IdeMessengerContext); + const [showCodeSnippet, setShowCodeSnippet] = useState(false); function onDelete() { dispatch(clearCodeToEdit()); + ideMessenger.post("edit/clearDecorations", { + shouldFocusEditor: false, + }); } - const ideMessenger = useContext(IdeMessengerContext); - const [showCodeSnippet, setShowCodeSnippet] = useState(false); - const fileName = getUriPathBasename(code.filepath); let isInsertion = false; @@ -87,17 +83,17 @@ function CodeToEditItem({ code }: CodeToEditItemProps) { "text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20"; return ( -
    -
    +
    +
    Code to edit - + {/* */}
    { @@ -120,25 +116,13 @@ function CodeToEditItem({ code }: CodeToEditItemProps) {
    -
    - {showCodeSnippet ? ( - { - e.stopPropagation(); - setShowCodeSnippet(false); - }} - className={iconClass} - /> - ) : ( - { - e.stopPropagation(); - setShowCodeSnippet(true); - }} - className="" - /> - )} -
    + { + e.stopPropagation(); + setShowCodeSnippet((val) => !val); + }} + className={`text-lightgray hover:bg-lightgray hover:text-vsc-foreground h-3.5 w-3.5 cursor-pointer rounded-sm p-0.5 hover:bg-opacity-20 ${showCodeSnippet ? "rotate-90" : ""} ${isInsertion ? "hidden" : ""}`} + />
    { @@ -181,9 +165,6 @@ export default function CodeToEditCard() { {codeToEdit ? ( ) : ( - // - // Highlight code and select Cmd + I to edit a file - // <> - {`To edit code, highlight it and press`} + {`To edit code, highlight it and press `} + {metaKeyLabel} I - meta I )}
    diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index c6ce86a3d..c9a151079 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -102,8 +102,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) { }, [availableContextProviders, mode]); const historyKey = mode === "edit" ? "edit" : "chat"; - const placeholder = - mode === "edit" ? "Describe changes, '#' to add files" : undefined; + const placeholder = mode === "edit" ? "Describe changes" : undefined; const toolbarOptions: ToolbarOptions = mode === "edit" diff --git a/gui/src/components/mainInput/Lump/BlockSettingsTopToolbar.tsx b/gui/src/components/mainInput/Lump/BlockSettingsTopToolbar.tsx index b9b27aa92..eaf3771f8 100644 --- a/gui/src/components/mainInput/Lump/BlockSettingsTopToolbar.tsx +++ b/gui/src/components/mainInput/Lump/BlockSettingsTopToolbar.tsx @@ -12,9 +12,9 @@ import { import { ReactNode } from "react"; import { vscBadgeForeground } from "../.."; import { useAppSelector } from "../../../redux/hooks"; -import { fontSize } from "../../../util"; import { ToolTip } from "../../gui/Tooltip"; import AssistantSelect from "../../modelSelection/platform/AssistantSelect"; +import { useFontSize } from "../../ui/font"; import HoverItem from "../InputToolbar/HoverItem"; import { useLump } from "./LumpContext"; import { ErrorsSectionTooltip } from "./sections/errors/ErrorsSectionTooltip"; @@ -74,8 +74,9 @@ function BlockSettingsToolbarIcon( const isErrorSection = props.sectionId === "error"; const id = `block-settings-toolbar-icon-${props.sectionId}`; - return ( + const fontSize = useFontSize(-3); + return ( <>
    - {props.tooltip} @@ -156,7 +156,7 @@ export function BlockSettingsTopToolbar() { ); return ( -
    +
    - + Select Assistant diff --git a/gui/src/pages/error.tsx b/gui/src/pages/error.tsx index 92c064019..0738696a6 100644 --- a/gui/src/pages/error.tsx +++ b/gui/src/pages/error.tsx @@ -1,13 +1,13 @@ -import { useDispatch } from "react-redux"; -import { useNavigate, useRouteError } from "react-router-dom"; -import { newSession } from "../redux/slices/sessionSlice"; -import { GithubIcon } from "../components/svg/GithubIcon"; -import { DiscordIcon } from "../components/svg/DiscordIcon"; -import { useContext, useEffect, useState } from "react"; -import { IdeMessengerContext } from "../context/IdeMessenger"; -import { Button, SecondaryButton } from "../components"; import { ArrowPathIcon, FlagIcon } from "@heroicons/react/24/outline"; import { DISCORD_LINK, GITHUB_LINK } from "core/util/constants"; +import { useContext, useEffect, useState } from "react"; +import { useDispatch } from "react-redux"; +import { useNavigate, useRouteError } from "react-router-dom"; +import { Button, SecondaryButton } from "../components"; +import { DiscordIcon } from "../components/svg/DiscordIcon"; +import { GithubIcon } from "../components/svg/GithubIcon"; +import { IdeMessengerContext } from "../context/IdeMessenger"; +import { newSession } from "../redux/slices/sessionSlice"; const ErrorPage: React.FC = () => { const error: any = useRouteError(); @@ -61,16 +61,16 @@ const ErrorPage: React.FC = () => { Report the issue on GitHub or Discord:

    -
    +
    openUrl(GITHUB_LINK)} - className="flex w-full items-center justify-center space-x-2 rounded-lg px-4 py-2 text-base text-white" + className="flex items-center justify-center space-x-2 rounded-lg px-4 py-2 text-base text-white" > GitHub openUrl(DISCORD_LINK)} - className="flex w-full items-center justify-center rounded-lg text-base" + className="flex items-center justify-center rounded-lg text-base" > Discord diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index d6ef82413..43f37418f 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -5,9 +5,9 @@ import { ExclamationTriangleIcon, } from "@heroicons/react/24/outline"; import { Editor, JSONContent } from "@tiptap/react"; -import { InputModifiers, RangeInFileWithContents } from "core"; +import { InputModifiers } from "core"; import { streamResponse } from "core/llm/stream"; -import { renderChatMessage, stripImages } from "core/util/messageContent"; +import { renderChatMessage } from "core/util/messageContent"; import { usePostHog } from "posthog-js/react"; import { useCallback, useContext, useEffect, useRef, useState } from "react"; import { ErrorBoundary } from "react-error-boundary"; @@ -21,7 +21,6 @@ import TimelineItem from "../../components/gui/TimelineItem"; import { NewSessionButton } from "../../components/mainInput/belowMainInput/NewSessionButton"; import ThinkingBlockPeek from "../../components/mainInput/belowMainInput/ThinkingBlockPeek"; import ContinueInputBox from "../../components/mainInput/ContinueInputBox"; -import { resolveEditorContent } from "../../components/mainInput/TipTapEditor/utils"; import { useOnboardingCard } from "../../components/OnboardingCard"; import StepContainer from "../../components/StepContainer"; import { TabBar } from "../../components/TabBar/TabBar"; @@ -32,8 +31,6 @@ import { selectCurrentToolCall, selectCurrentToolCallApplyState, } from "../../redux/selectors/selectCurrentToolCall"; -import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { setEditStateApplyStatus } from "../../redux/slices/editModeState"; import { newSession, updateToolCallOutput, @@ -44,7 +41,7 @@ import { setShowDialog, } from "../../redux/slices/uiSlice"; import { cancelStream } from "../../redux/thunks/cancelStream"; -import { exitEditMode } from "../../redux/thunks/editMode"; +import { exitEditMode, streamEditThunk } from "../../redux/thunks/editMode"; import { loadLastSession } from "../../redux/thunks/session"; import { streamResponseThunk } from "../../redux/thunks/streamResponse"; import { isJetBrains, isMetaEquivalentKeyPressed } from "../../util"; @@ -103,7 +100,9 @@ export function Chat() { const showSessionTabs = useAppSelector( (store) => store.config.config.ui?.showSessionTabs, ); - const selectedChatModel = useAppSelector(selectSelectedChatModel); + const selectedModels = useAppSelector( + (store) => store.config?.config.selectedModelByRole, + ); const isStreaming = useAppSelector((state) => state.session.isStreaming); const [stepsOpen, setStepsOpen] = useState<(boolean | undefined)[]>([]); const mainTextInputRef = useRef(null); @@ -172,7 +171,20 @@ export function Chat() { "Cannot submit message while awaiting tool call apply", ); } - if (selectedChatModel?.provider === "free-trial") { + + const model = + mode === "edit" + ? (selectedModels?.edit ?? selectedModels?.chat) + : selectedModels?.chat; + if (!model) { + return; + } + + if (mode === "edit" && codeToEdit.length === 0) { + return; + } + + if (model.provider === "free-trial") { const newCount = incrementFreeTrialCount(); if (newCount === FREE_TRIAL_LIMIT_REQUESTS) { @@ -200,14 +212,18 @@ export function Chat() { } if (mode === "edit") { - handleSingleRangeEditOrInsertion(editorState); - return; - } + dispatch( + streamEditThunk({ + editorState, + codeToEdit, + }), + ); + } else { + dispatch(streamResponseThunk({ editorState, modifiers, index })); - dispatch(streamResponseThunk({ editorState, modifiers, index })); - - if (editorToClearOnSend) { - editorToClearOnSend.commands.clearContent(); + if (editorToClearOnSend) { + editorToClearOnSend.commands.clearContent(); + } } // Increment localstorage counter for popup @@ -223,47 +239,9 @@ export function Chat() { setLocalStorage("mainTextEntryCounter", 1); } }, - [ - history, - selectedChatModel, - streamResponse, - mode, - codeToEdit, - toolCallState, - ], + [history, selectedModels, streamResponse, mode, codeToEdit, toolCallState], ); - async function handleSingleRangeEditOrInsertion(editorState: JSONContent) { - if (!selectedChatModel) { - console.error("No selected chat model"); - return; - } - - const [contextItems, __, userInstructions, _] = await resolveEditorContent({ - editorState, - modifiers: { - noContext: true, - useCodebase: false, - }, - ideMessenger, - defaultContextProviders: [], - availableSlashCommands: [], - dispatch, - }); - - const prompt = [ - ...contextItems.map((item) => item.content), - stripImages(userInstructions), - ].join("\n\n"); - - ideMessenger.post("edit/sendPrompt", { - prompt, - range: codeToEdit[0] as RangeInFileWithContents, - }); - - dispatch(setEditStateApplyStatus("streaming")); - } - useWebviewListener( "newSession", async () => { @@ -327,13 +305,13 @@ export function Chat() { > {item.message.role === "user" ? ( <> - {mode === "edit" && } + {/* {mode === "edit" && } */} sendInput(editorState, modifiers, index) } isLastUserInput={isLastUserInput(index)} - isMainInput={mode === "edit"} + isMainInput={false} editorState={item.editorState} contextItems={item.contextItems} inputId={item.message.id} @@ -405,19 +383,17 @@ export function Chat() { ))}
    - {mode === "edit" && history.length > 0 ? null : ( - <> - {mode === "edit" && } - - sendInput(editorState, modifiers, undefined, editor) - } - inputId={MAIN_EDITOR_INPUT_ID} - /> - - )} + <> + {mode === "edit" && } + + sendInput(editorState, modifiers, undefined, editor) + } + inputId={MAIN_EDITOR_INPUT_ID} + /> +
    ( + "chat/streamResponse", + async ({ editorState, codeToEdit }, { dispatch, extra, getState }) => { + await dispatch( + streamThunkWrapper(async () => { + const [contextItems, __, userInstructions, _] = + await resolveEditorContent({ + editorState, + modifiers: { + noContext: true, + useCodebase: false, + }, + ideMessenger: extra.ideMessenger, + defaultContextProviders: [], + availableSlashCommands: [], + dispatch, + }); + + const prompt = [ + ...contextItems.map((item) => item.content), + stripImages(userInstructions), + ].join("\n\n"); + + const response = await extra.ideMessenger.request("edit/sendPrompt", { + prompt, + range: codeToEdit[0] as RangeInFileWithContents, + }); + + if (response.status === "error") { + throw new Error(response.error); + } + + dispatch(setEditStateApplyStatus("streaming")); + }), + ); + }, +); export const exitEditMode = createAsyncThunk< void, @@ -44,7 +93,7 @@ export const exitEditMode = createAsyncThunk< dispatch(setMode(goToMode ?? state.editModeState.returnToMode)); - extra.ideMessenger.post("edit/exit", { + extra.ideMessenger.post("edit/clearDecorations", { shouldFocusEditor: state.editModeState.returnCursorToEditorAfterEdit, }); }, From dfc57bef872d7264299c676a408b7bacdc1a79bc Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 23:21:21 -0700 Subject: [PATCH 013/110] progress on apply states --- gui/src/components/AcceptRejectAllButtons.tsx | 43 +++++++++++--- gui/src/components/Layout.tsx | 6 -- .../components/StepContainer/EditActions.tsx | 57 ------------------- .../StepContainer/ResponseActions.tsx | 8 --- .../components/mainInput/EditModeDetails.tsx | 28 +++++++++ gui/src/components/mainInput/InputToolbar.tsx | 2 +- .../TipTapEditor/utils/editorConfig.ts | 2 +- .../components/modelSelection/ModeSelect.tsx | 3 +- gui/src/hooks/useSetup.ts | 1 + gui/src/pages/gui/Chat.tsx | 51 ++++++++--------- gui/src/pages/gui/ToolCallDiv/EditFile.tsx | 11 +--- gui/src/redux/slices/editModeState.ts | 9 +-- gui/src/redux/thunks/editMode.ts | 23 +++++--- gui/src/redux/thunks/index.ts | 1 - 14 files changed, 107 insertions(+), 138 deletions(-) delete mode 100644 gui/src/components/StepContainer/EditActions.tsx create mode 100644 gui/src/components/mainInput/EditModeDetails.tsx diff --git a/gui/src/components/AcceptRejectAllButtons.tsx b/gui/src/components/AcceptRejectAllButtons.tsx index 5ffbabbf1..c85d97373 100644 --- a/gui/src/components/AcceptRejectAllButtons.tsx +++ b/gui/src/components/AcceptRejectAllButtons.tsx @@ -3,20 +3,25 @@ import { ApplyState } from "core"; import { useContext } from "react"; import { IdeMessengerContext } from "../context/IdeMessenger"; import { getMetaKeyLabel } from "../util"; +import { useFontSize } from "./ui/font"; export interface AcceptRejectAllButtonsProps { - pendingApplyStates: ApplyState[]; + applyStates: ApplyState[]; onAcceptOrReject?: (outcome: AcceptOrRejectOutcome) => void; } export type AcceptOrRejectOutcome = "acceptDiff" | "rejectDiff"; export default function AcceptRejectAllButtons({ - pendingApplyStates, + applyStates, onAcceptOrReject, }: AcceptRejectAllButtonsProps) { + const pendingApplyStates = applyStates.filter( + (state) => state.status === "done", + ); const ideMessenger = useContext(IdeMessengerContext); + const tinyFont = useFontSize(-3); async function handleAcceptOrReject(status: AcceptOrRejectOutcome) { for (const { filepath = "", streamId } of pendingApplyStates) { ideMessenger.post(status, { @@ -30,23 +35,45 @@ export default function AcceptRejectAllButtons({ } } + if (!pendingApplyStates.length) { + return null; + } + return ( -
    +
    ); diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 0b07a7405..20f28cc05 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -158,12 +158,6 @@ const Layout = () => { fromEditor: true, }), ); - dispatch( - enterEditMode({ - returnCursorToEditor: true, - returnToMode: mode, - }), - ); }, [mode], ); diff --git a/gui/src/components/StepContainer/EditActions.tsx b/gui/src/components/StepContainer/EditActions.tsx deleted file mode 100644 index 901b7ea00..000000000 --- a/gui/src/components/StepContainer/EditActions.tsx +++ /dev/null @@ -1,57 +0,0 @@ -import { ChatHistoryItem } from "core"; - -import { renderChatMessage } from "core/util/messageContent"; -import { useAppDispatch, useAppSelector } from "../../redux/hooks"; -import { exitEditMode } from "../../redux/thunks/editMode"; -import AcceptRejectAllButtons from "../AcceptRejectAllButtons"; -import FeedbackButtons from "../FeedbackButtons"; -import { CopyIconButton } from "../gui/CopyIconButton"; - -export interface EditActionsProps { - index: number; - item: ChatHistoryItem; -} - -export default function EditActions({ index, item }: EditActionsProps) { - const dispatch = useAppDispatch(); - - const applyState = useAppSelector((store) => store.editModeState.applyState); - - if ( - applyState.status === "not-started" || - applyState.status === "streaming" - ) { - return null; - } - return ( -
    -
    - -
    - {applyState.status === "done" && ( - { - if (outcome === "acceptDiff") { - dispatch(exitEditMode({})); - } - }} - /> - )} -
    - -
    - - - -
    -
    - ); -} diff --git a/gui/src/components/StepContainer/ResponseActions.tsx b/gui/src/components/StepContainer/ResponseActions.tsx index c49daccda..5bd7f3a54 100644 --- a/gui/src/components/StepContainer/ResponseActions.tsx +++ b/gui/src/components/StepContainer/ResponseActions.tsx @@ -1,11 +1,9 @@ import { BarsArrowDownIcon, TrashIcon } from "@heroicons/react/24/outline"; import { ChatHistoryItem } from "core"; import { renderChatMessage } from "core/util/messageContent"; -import { useAppSelector } from "../../redux/hooks"; import FeedbackButtons from "../FeedbackButtons"; import { CopyIconButton } from "../gui/CopyIconButton"; import HeaderButtonWithToolTip from "../gui/HeaderButtonWithToolTip"; -import EditActions from "./EditActions"; export interface ResponseActionsProps { isTruncated: boolean; @@ -22,12 +20,6 @@ export default function ResponseActions({ isTruncated, onDelete, }: ResponseActionsProps) { - const mode = useAppSelector((store) => store.session.mode); - - if (mode === "edit") { - return ; - } - return (
    {isTruncated && ( diff --git a/gui/src/components/mainInput/EditModeDetails.tsx b/gui/src/components/mainInput/EditModeDetails.tsx new file mode 100644 index 000000000..3ccddd691 --- /dev/null +++ b/gui/src/components/mainInput/EditModeDetails.tsx @@ -0,0 +1,28 @@ +import { useAppDispatch, useAppSelector } from "../../redux/hooks"; +import { exitEditMode } from "../../redux/thunks/editMode"; +import AcceptRejectAllButtons from "../AcceptRejectAllButtons"; + +const EditModeDetails = () => { + const isStreaming = useAppSelector((store) => store.session.isStreaming); + const mode = useAppSelector((store) => store.session.mode); + const dispatch = useAppDispatch(); + const editApplyState = useAppSelector( + (store) => store.editModeState.applyState, + ); + + if (isStreaming || mode !== "edit") { + return null; + } + return ( + { + if (outcome === "acceptDiff") { + dispatch(exitEditMode({})); + } + }} + /> + ); +}; + +export default EditModeDetails; diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index a937e0f59..981db1496 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -9,7 +9,7 @@ import { selectCurrentToolCallApplyState, } from "../../redux/selectors/selectCurrentToolCall"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { exitEditMode } from "../../redux/thunks"; +import { exitEditMode } from "../../redux/thunks/editMode"; import { getAltKeyLabel, getMetaKeyLabel, diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 421130a29..1b0ac93c9 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -23,7 +23,7 @@ import { useAppSelector } from "../../../../redux/hooks"; import { selectUseActiveFile } from "../../../../redux/selectors"; import { selectSelectedChatModel } from "../../../../redux/slices/configSlice"; import { AppDispatch } from "../../../../redux/store"; -import { exitEditMode } from "../../../../redux/thunks"; +import { exitEditMode } from "../../../../redux/thunks/editMode"; import { getFontSize, isJetBrains } from "../../../../util"; import * as ContinueExtensions from "../extensions"; import { TipTapEditorProps } from "../TipTapEditor"; diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 069f0dd96..99519d5bb 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -14,8 +14,7 @@ import { lightGray } from ".."; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; import { setMode } from "../../redux/slices/sessionSlice"; -import { exitEditMode } from "../../redux/thunks"; -import { enterEditMode } from "../../redux/thunks/editMode"; +import { enterEditMode, exitEditMode } from "../../redux/thunks/editMode"; import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; import { Listbox, diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index dcfab3e29..5b445952d 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -262,6 +262,7 @@ function useSetup() { "updateApplyState", async (state) => { if (state.streamId === EDIT_MODE_STREAM_ID) { + console.log(state); dispatch(setEditStateApplyState(state)); } else { // chat or agent diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 43f37418f..3c3abaf47 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -9,7 +9,14 @@ import { InputModifiers } from "core"; import { streamResponse } from "core/llm/stream"; import { renderChatMessage } from "core/util/messageContent"; import { usePostHog } from "posthog-js/react"; -import { useCallback, useContext, useEffect, useRef, useState } from "react"; +import { + useCallback, + useContext, + useEffect, + useMemo, + useRef, + useState, +} from "react"; import { ErrorBoundary } from "react-error-boundary"; import styled from "styled-components"; import { Button, lightGray, vscBackground } from "../../components"; @@ -41,7 +48,7 @@ import { setShowDialog, } from "../../redux/slices/uiSlice"; import { cancelStream } from "../../redux/thunks/cancelStream"; -import { exitEditMode, streamEditThunk } from "../../redux/thunks/editMode"; +import { streamEditThunk } from "../../redux/thunks/editMode"; import { loadLastSession } from "../../redux/thunks/session"; import { streamResponseThunk } from "../../redux/thunks/streamResponse"; import { isJetBrains, isMetaEquivalentKeyPressed } from "../../util"; @@ -51,6 +58,7 @@ import { } from "../../util/freeTrial"; import CodeToEditCard from "../../components/mainInput/CodeToEditCard"; +import EditModeDetails from "../../components/mainInput/EditModeDetails"; import { getLocalStorage, setLocalStorage } from "../../util/localStorage"; import { EmptyChatBody } from "./EmptyChatBody"; import { ExploreDialogWatcher } from "./ExploreDialogWatcher"; @@ -113,19 +121,18 @@ export function Chat() { ); const codeToEdit = useAppSelector((state) => state.editModeState.codeToEdit); const toolCallState = useAppSelector(selectCurrentToolCall); + const mode = useAppSelector((store) => store.session.mode); const applyStates = useAppSelector( (state) => state.session.codeBlockApplyStates.states, ); - const pendingApplyStates = applyStates.filter( - (state) => state.status === "done", - ); - const hasPendingApplies = pendingApplyStates.length > 0; - const mode = useAppSelector((store) => store.session.mode); + const lastSessionId = useAppSelector((state) => state.session.lastSessionId); const hasDismissedExploreDialog = useAppSelector( (state) => state.ui.hasDismissedExploreDialog, ); - const jetbrains = isJetBrains(); + const jetbrains = useMemo(() => { + return isJetBrains(); + }, []); useEffect(() => { // Cmd + Backspace to delete current step @@ -143,7 +150,7 @@ export function Chat() { return () => { window.removeEventListener("keydown", listener); }; - }, [isStreaming]); + }, [isStreaming, jetbrains]); const { widget, highlights } = useFindWidget(stepsDivRef); @@ -305,7 +312,6 @@ export function Chat() { > {item.message.role === "user" ? ( <> - {/* {mode === "edit" && } */} sendInput(editorState, modifiers, index) @@ -384,6 +390,12 @@ export function Chat() {
    <> + {!isStreaming && mode !== "edit" && ( + {}} + /> + )} {mode === "edit" && } +
    - - {hasPendingApplies && ( - { - if (outcome === "acceptDiff") { - await dispatch( - loadLastSession({ - saveCurrentSession: false, - }), - ); - dispatch(exitEditMode({})); - } - }} - /> - )} - {!hasDismissedExploreDialog && } - {history.length === 0 && ( )} diff --git a/gui/src/pages/gui/ToolCallDiv/EditFile.tsx b/gui/src/pages/gui/ToolCallDiv/EditFile.tsx index 35b9d1a5f..d6a13aead 100644 --- a/gui/src/pages/gui/ToolCallDiv/EditFile.tsx +++ b/gui/src/pages/gui/ToolCallDiv/EditFile.tsx @@ -1,7 +1,6 @@ import { getMarkdownLanguageTagForFile } from "core/util"; import { useEffect } from "react"; import { v4 as uuidv4 } from "uuid"; -import AcceptRejectAllButtons from "../../../components/AcceptRejectAllButtons"; import StyledMarkdownPreview from "../../../components/StyledMarkdownPreview"; import { useAppDispatch, useAppSelector } from "../../../redux/hooks"; import { @@ -50,20 +49,14 @@ export function EditFile(props: EditToolCallProps) { expandCodeblocks={false} itemIndex={props.historyIndex} /> - {/* TODO better indicator of generation at bottom */} - {/* {isStreaming && applyState?.status === "streaming" && ( -
    - Generating... -
    - )} */} - {!isStreaming && applyState?.status === "done" && ( + {/* {!isStreaming && applyState?.status === "done" && (
    {}} />
    - )} + )} */} ); } diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index fc8d6ab32..6e2c40e08 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -1,5 +1,5 @@ import { createSlice, PayloadAction } from "@reduxjs/toolkit"; -import { ApplyState, ApplyStateStatus, CodeToEdit, MessageModes } from "core"; +import { ApplyState, CodeToEdit, MessageModes } from "core"; import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; export interface EditModeState { // Array because of previous multi-file edit functionality @@ -35,12 +35,6 @@ export const editModeStateSlice = createSlice({ ) => { state.returnToMode = payload; }, - setEditStateApplyStatus: ( - state, - { payload }: PayloadAction, - ) => { - state.applyState.status = payload; - }, setEditStateApplyState: (state, { payload }: PayloadAction) => { state.applyState = payload; }, @@ -70,7 +64,6 @@ export const { setReturnCursorToEditorAfterEdit, clearCodeToEdit, setCodeToEdit, - setEditStateApplyStatus, setEditStateApplyState, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; diff --git a/gui/src/redux/thunks/editMode.ts b/gui/src/redux/thunks/editMode.ts index 150daf4f3..48d6c1ad5 100644 --- a/gui/src/redux/thunks/editMode.ts +++ b/gui/src/redux/thunks/editMode.ts @@ -1,15 +1,16 @@ import { createAsyncThunk } from "@reduxjs/toolkit"; import { JSONContent } from "@tiptap/core"; import { CodeToEdit, MessageModes, RangeInFileWithContents } from "core"; +import { EDIT_MODE_STREAM_ID } from "core/edit/constants"; import { stripImages } from "core/util/messageContent"; import { resolveEditorContent } from "../../components/mainInput/TipTapEditor"; import { clearCodeToEdit, - setEditStateApplyStatus, + setEditStateApplyState, setReturnCursorToEditorAfterEdit, setReturnToModeAfterEdit, } from "../slices/editModeState"; -import { newSession, setMode } from "../slices/sessionSlice"; +import { newSession, setActive, setMode } from "../slices/sessionSlice"; import { ThunkApiType } from "../store"; import { loadLastSession, saveCurrentSession } from "./session"; import { streamThunkWrapper } from "./streamThunkWrapper"; @@ -26,6 +27,7 @@ export const streamEditThunk = createAsyncThunk< async ({ editorState, codeToEdit }, { dispatch, extra, getState }) => { await dispatch( streamThunkWrapper(async () => { + dispatch(setActive()); const [contextItems, __, userInstructions, _] = await resolveEditorContent({ editorState, @@ -52,8 +54,6 @@ export const streamEditThunk = createAsyncThunk< if (response.status === "error") { throw new Error(response.error); } - - dispatch(setEditStateApplyStatus("streaming")); }), ); }, @@ -79,6 +79,10 @@ export const exitEditMode = createAsyncThunk< }); } + extra.ideMessenger.post("edit/clearDecorations", { + shouldFocusEditor: state.editModeState.returnCursorToEditorAfterEdit, + }); + dispatch(clearCodeToEdit()); if (openNewSession) { @@ -92,10 +96,6 @@ export const exitEditMode = createAsyncThunk< } dispatch(setMode(goToMode ?? state.editModeState.returnToMode)); - - extra.ideMessenger.post("edit/clearDecorations", { - shouldFocusEditor: state.editModeState.returnCursorToEditorAfterEdit, - }); }, ); @@ -125,7 +125,12 @@ export const enterEditMode = createAsyncThunk< generateTitle: false, }), ); - dispatch(setEditStateApplyStatus("not-started")); + dispatch( + setEditStateApplyState({ + streamId: EDIT_MODE_STREAM_ID, + status: "not-started", + }), + ); dispatch(setMode("edit")); }, ); diff --git a/gui/src/redux/thunks/index.ts b/gui/src/redux/thunks/index.ts index 9c619d785..7fe098e70 100644 --- a/gui/src/redux/thunks/index.ts +++ b/gui/src/redux/thunks/index.ts @@ -1,4 +1,3 @@ -export { exitEditMode } from "./editMode"; export { gatherContext } from "./gatherContext"; export { resetStateForNewMessage } from "./resetStateForNewMessage"; export { streamNormalInput } from "./streamNormalInput"; From 41791cd51fa6221f20e7766fa413624e7bfb72f9 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 29 Apr 2025 23:30:11 -0700 Subject: [PATCH 014/110] last chat or agent session empty --- gui/src/hooks/useSetup.ts | 17 ++++++++++++----- gui/src/redux/slices/editModeState.ts | 9 +++++++++ gui/src/redux/thunks/editMode.ts | 8 ++++---- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index 5b445952d..5d13d6583 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -12,11 +12,11 @@ import { } from "../redux"; import { useAppDispatch, useAppSelector } from "../redux/hooks"; import { selectCurrentToolCallApplyState } from "../redux/selectors/selectCurrentToolCall"; +import { setConfigResult } from "../redux/slices/configSlice"; import { - selectSelectedChatModel, - setConfigResult, -} from "../redux/slices/configSlice"; -import { setEditStateApplyState } from "../redux/slices/editModeState"; + setEditStateApplyState, + setLastNonEditSessionEmpty, +} from "../redux/slices/editModeState"; import { updateIndexingStatus } from "../redux/slices/indexingSlice"; import { acceptToolCall, @@ -37,7 +37,7 @@ function useSetup() { const dispatch = useAppDispatch(); const ideMessenger = useContext(IdeMessengerContext); const history = useAppSelector((store) => store.session.history); - const defaultModel = useAppSelector(selectSelectedChatModel); + const selectedProfileId = useAppSelector( (store) => store.profiles.selectedProfileId, ); @@ -295,6 +295,13 @@ function useSetup() { }, [currentToolCallApplyState, history], ); + + const mode = useAppSelector((store) => store.session.mode); + useEffect(() => { + if (mode !== "edit") { + dispatch(setLastNonEditSessionEmpty(history.length === 0)); + } + }, [mode, history]); } export default useSetup; diff --git a/gui/src/redux/slices/editModeState.ts b/gui/src/redux/slices/editModeState.ts index 6e2c40e08..a741db759 100644 --- a/gui/src/redux/slices/editModeState.ts +++ b/gui/src/redux/slices/editModeState.ts @@ -8,6 +8,7 @@ export interface EditModeState { applyState: ApplyState; returnCursorToEditorAfterEdit: boolean; returnToMode: MessageModes; + lastNonEditSessionWasEmpty: boolean; } const initialState: EditModeState = { @@ -17,6 +18,7 @@ const initialState: EditModeState = { codeToEdit: [], returnCursorToEditorAfterEdit: false, returnToMode: "chat", + lastNonEditSessionWasEmpty: false, }; export const editModeStateSlice = createSlice({ @@ -55,6 +57,12 @@ export const editModeStateSlice = createSlice({ clearCodeToEdit: (state) => { state.codeToEdit = []; }, + setLastNonEditSessionEmpty: ( + state, + { payload }: PayloadAction, + ) => { + state.lastNonEditSessionWasEmpty = payload; + }, }, selectors: {}, }); @@ -65,5 +73,6 @@ export const { clearCodeToEdit, setCodeToEdit, setEditStateApplyState, + setLastNonEditSessionEmpty, } = editModeStateSlice.actions; export default editModeStateSlice.reducer; diff --git a/gui/src/redux/thunks/editMode.ts b/gui/src/redux/thunks/editMode.ts index 48d6c1ad5..472dcc275 100644 --- a/gui/src/redux/thunks/editMode.ts +++ b/gui/src/redux/thunks/editMode.ts @@ -85,7 +85,7 @@ export const exitEditMode = createAsyncThunk< dispatch(clearCodeToEdit()); - if (openNewSession) { + if (openNewSession || state.editModeState.lastNonEditSessionWasEmpty) { dispatch(newSession()); } else { await dispatch( @@ -111,13 +111,13 @@ export const enterEditMode = createAsyncThunk< ) => { const state = getState(); - dispatch(setReturnToModeAfterEdit(returnToMode ?? state.session.mode)); - dispatch(setReturnCursorToEditorAfterEdit(returnCursorToEditor ?? false)); - if (state.session.mode === "edit") { return; } + dispatch(setReturnToModeAfterEdit(returnToMode ?? state.session.mode)); + dispatch(setReturnCursorToEditorAfterEdit(returnCursorToEditor ?? false)); + await dispatch( saveCurrentSession({ openNewSession: true, From 577af64909527a3bbebbcbe6ba776a53f5cc5d4e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 00:01:01 -0700 Subject: [PATCH 015/110] apply state fixes --- extensions/vscode/src/commands.ts | 2 +- gui/src/components/AcceptRejectAllButtons.tsx | 27 +++++++++++-------- .../components/mainInput/EditModeDetails.tsx | 27 ++++++++++++------- .../sections/errors/ErrorsSectionTooltip.tsx | 2 +- gui/src/hooks/useSetup.ts | 4 +-- gui/src/pages/gui/ToolCallDiv/EditFile.tsx | 26 ++++++------------ gui/src/redux/slices/editModeState.ts | 21 ++++++++++----- gui/src/redux/thunks/editMode.ts | 11 +++----- 8 files changed, 64 insertions(+), 56 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index af9c8a232..5241dc1dc 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -282,7 +282,7 @@ async function processDiff( }); } - await sidebar.webviewProtocol.request("exitEditMode", undefined); + // await sidebar.webviewProtocol.request("exitEditMode", undefined); // Save the file await ide.saveFile(newOrCurrentUri); diff --git a/gui/src/components/AcceptRejectAllButtons.tsx b/gui/src/components/AcceptRejectAllButtons.tsx index c85d97373..6f6147ad2 100644 --- a/gui/src/components/AcceptRejectAllButtons.tsx +++ b/gui/src/components/AcceptRejectAllButtons.tsx @@ -40,17 +40,20 @@ export default function AcceptRejectAllButtons({ } return ( -
    +
    - - {shouldRenderRedo && ( - - )} -
    - ); -} diff --git a/gui/src/redux/slices/sessionSlice.ts b/gui/src/redux/slices/sessionSlice.ts index b20701ba2..e81545d8b 100644 --- a/gui/src/redux/slices/sessionSlice.ts +++ b/gui/src/redux/slices/sessionSlice.ts @@ -43,7 +43,6 @@ type SessionState = { title: string; id: string; streamAborter: AbortController; - curCheckpointIndex: number; mainEditorContentTrigger?: JSONContent | undefined; symbols: FileSymbolMap; mode: MessageModes; @@ -60,7 +59,6 @@ const initialState: SessionState = { isStreaming: false, title: NEW_SESSION_TITLE, id: uuidv4(), - curCheckpointIndex: 0, streamAborter: new AbortController(), symbols: {}, mode: "chat", @@ -178,8 +176,6 @@ export const sessionSlice = createSlice({ }, contextItems: [], }); - - state.curCheckpointIndex = Math.floor(index / 2); } else { // New input/response messages state.history = state.history.concat([ @@ -201,8 +197,6 @@ export const sessionSlice = createSlice({ contextItems: [], }, ]); - - state.curCheckpointIndex = Math.floor((state.history.length - 1) / 2); // TODO this feels really fragile } state.isStreaming = true; @@ -432,12 +426,10 @@ export const sessionSlice = createSlice({ state.history = payload.history as any; state.title = payload.title; state.id = payload.sessionId; - state.curCheckpointIndex = 0; } else { state.history = []; state.title = NEW_SESSION_TITLE; state.id = uuidv4(); - state.curCheckpointIndex = 0; } }, updateSessionTitle: (state, { payload }: PayloadAction) => { @@ -529,19 +521,6 @@ export const sessionSlice = createSlice({ state.history[state.history.length - 1].contextItems = contextItems; }, - - updateCurCheckpoint: ( - state, - { payload }: PayloadAction<{ filepath: string; content: string }>, - ) => { - const checkpoint = state.history[state.curCheckpointIndex].checkpoint; - if (checkpoint) { - checkpoint[payload.filepath] = payload.content; - } - }, - setCurCheckpointIndex: (state, { payload }: PayloadAction) => { - state.curCheckpointIndex = payload; - }, updateApplyState: (state, { payload }: PayloadAction) => { const applyState = state.codeBlockApplyStates.states.find( (state) => state.streamId === payload.streamId, @@ -732,8 +711,6 @@ export const { setMainEditorContentTrigger, deleteMessage, setIsGatheringContext, - updateCurCheckpoint, - setCurCheckpointIndex, resetNextCodeBlockToApplyIndex, updateApplyState, abortStream, diff --git a/gui/src/redux/store.ts b/gui/src/redux/store.ts index 6591e72c5..983f7bb6c 100644 --- a/gui/src/redux/store.ts +++ b/gui/src/redux/store.ts @@ -51,7 +51,6 @@ const saveSubsetFilters = [ // higher risk to persist // codeBlockApplyStates // symbols - // curCheckpointIndex ]), createFilter("editModeState", [ "returnToMode", From fc3f7ac54ef7e3ea1c85582caee6c330170e0148 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 19:33:38 -0700 Subject: [PATCH 030/110] fix toggling focus and history -> edit mode --- extensions/vscode/src/commands.ts | 3 --- gui/src/components/History/HistoryTableRow.tsx | 2 ++ gui/src/components/Layout.tsx | 4 ++-- gui/src/components/modelSelection/ModeSelect.tsx | 2 +- gui/src/redux/thunks/editMode.ts | 4 ++-- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index c62a340b4..c651f1eb2 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -117,10 +117,7 @@ async function processDiff( return; } - // if (!currentFile || newOrCurrentUri !== currentFile.path) { await ide.openFile(newOrCurrentUri); - // focusGUI(); - // } // Clear vertical diffs depending on action verticalDiffManager.clearForfileUri(newOrCurrentUri, action === "accept"); diff --git a/gui/src/components/History/HistoryTableRow.tsx b/gui/src/components/History/HistoryTableRow.tsx index 8b7f3ba38..91854a274 100644 --- a/gui/src/components/History/HistoryTableRow.tsx +++ b/gui/src/components/History/HistoryTableRow.tsx @@ -6,6 +6,7 @@ import { useNavigate } from "react-router-dom"; import { Input } from ".."; import { IdeMessengerContext } from "../../context/IdeMessenger"; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; +import { exitEditMode } from "../../redux/thunks/editMode"; import { deleteSession, getSession, @@ -68,6 +69,7 @@ export function HistoryTableRow({ data-testid={`history-row-${index}`} className="hover:bg-vsc-editor-background relative box-border flex cursor-pointer overflow-hidden rounded-lg p-3" onClick={async () => { + await dispatch(exitEditMode({})); if (sessionMetadata.sessionId !== currentSessionId) { await dispatch( loadSession({ diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 381904afd..46d681c8d 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -164,7 +164,7 @@ const Layout = () => { }), ); }, - [mode], + [], ); useWebviewListener( @@ -172,7 +172,7 @@ const Layout = () => { async () => { await dispatch(exitEditMode({})); }, - [mode], + [], ); useEffect(() => { diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index ee6871298..21c0fbf68 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -128,7 +128,7 @@ function ModeSelect() { document.addEventListener("keydown", handleKeyDown); return () => document.removeEventListener("keydown", handleKeyDown); - }, [dispatch, mode, jetbrains]); + }, [cycleMode]); return ( diff --git a/gui/src/redux/thunks/editMode.ts b/gui/src/redux/thunks/editMode.ts index 8323ed7a5..4341b14a4 100644 --- a/gui/src/redux/thunks/editMode.ts +++ b/gui/src/redux/thunks/editMode.ts @@ -72,9 +72,9 @@ export const exitEditMode = createAsyncThunk< return; } - for (const code of codeToEdit) { + if (codeToEdit[0] && state.editModeState.applyState.numDiffs) { extra.ideMessenger.post("rejectDiff", { - filepath: code.filepath, + filepath: codeToEdit[0].filepath, }); } From d0cdb50d2893162cdcd1c1d0db0188462eb774f0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 19:46:17 -0700 Subject: [PATCH 031/110] fix clearing content --- gui/src/components/modelSelection/ModeSelect.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 21c0fbf68..8084e4791 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -13,7 +13,10 @@ import styled from "styled-components"; import { lightGray } from ".."; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { setMode } from "../../redux/slices/sessionSlice"; +import { + setMainEditorContentTrigger, + setMode, +} from "../../redux/slices/sessionSlice"; import { enterEditMode, exitEditMode } from "../../redux/thunks/editMode"; import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; import { useMainEditor } from "../mainInput/TipTapEditor"; @@ -34,7 +37,9 @@ function ModeSelect() { const dispatch = useAppDispatch(); const mode = useAppSelector((store) => store.session.mode); const selectedModel = useAppSelector(selectSelectedChatModel); - const agentModeSupported = selectedModel && modelSupportsTools(selectedModel); + const agentModeSupported = useMemo(() => { + return selectedModel && modelSupportsTools(selectedModel); + }, [selectedModel]); const { mainEditor } = useMainEditor(); const jetbrains = useMemo(() => { return isJetBrains(); @@ -70,6 +75,9 @@ function ModeSelect() { : ["chat", "agent", "edit"]; const currentIndex = modes.indexOf(mode); const nextMode = modes[(currentIndex + 1) % modes.length]; + + const mainEditorContent = mainEditor?.getJSON(); + if (mode === "edit") { await dispatch( exitEditMode({ @@ -87,6 +95,7 @@ function ModeSelect() { dispatch(setMode(nextMode)); } } + dispatch(setMainEditorContentTrigger(mainEditorContent)); mainEditor?.commands.focus(); }, [jetbrains, mode, mainEditor]); @@ -95,6 +104,7 @@ function ModeSelect() { if (newMode === mode) { return; } + const mainEditorContent = mainEditor?.getJSON(); if (newMode === "edit") { await dispatch( @@ -113,6 +123,7 @@ function ModeSelect() { dispatch(setMode(newMode)); } } + dispatch(setMainEditorContentTrigger(mainEditorContent)); mainEditor?.commands.focus(); }, [mode, mainEditor], From e00b98758ef435c4dc6d679454e78cd95747d9c9 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 20:14:26 -0700 Subject: [PATCH 032/110] ParallelListeners instead of useSetup --- gui/src/App.tsx | 13 ++++--------- gui/src/components/Layout.tsx | 3 +-- gui/src/components/mainInput/ContinueInputBox.tsx | 2 ++ gui/src/components/modelSelection/ModeSelect.tsx | 13 +++++-------- .../hooks/{useSetup.ts => ParallelListeners.tsx} | 9 +++------ 5 files changed, 15 insertions(+), 25 deletions(-) rename gui/src/hooks/{useSetup.ts => ParallelListeners.tsx} (98%) diff --git a/gui/src/App.tsx b/gui/src/App.tsx index 2f3a94dd8..03b6fb05a 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -3,7 +3,7 @@ import Layout from "./components/Layout"; import { MainEditorProvider } from "./components/mainInput/TipTapEditor"; import { SubmenuContextProvidersProvider } from "./context/SubmenuContextProviders"; import { VscThemeProvider } from "./context/VscTheme"; -import useSetup from "./hooks/useSetup"; +import ParallelListeners from "./hooks/ParallelListeners"; import ConfigPage from "./pages/config"; import ErrorPage from "./pages/error"; import Chat from "./pages/gui"; @@ -42,14 +42,9 @@ const router = createMemoryRouter([ ]); /* - Prevents entire app from rerendering continuously with useSetup in App - TODO - look into a more redux-esque way to do this + ParallelListeners prevents entire app from rerendering on any change in the listeners, + most of which interact with redux etc. */ -export function SetupListeners() { - useSetup(); - return <>; -} - function App() { return ( @@ -58,7 +53,7 @@ function App() { - + ); } diff --git a/gui/src/components/Layout.tsx b/gui/src/components/Layout.tsx index 46d681c8d..a6368eab4 100644 --- a/gui/src/components/Layout.tsx +++ b/gui/src/components/Layout.tsx @@ -48,7 +48,6 @@ const Layout = () => { const dialogMessage = useAppSelector((state) => state.ui.dialogMessage); const showDialog = useAppSelector((state) => state.ui.showDialog); - const mode = useAppSelector((state) => state.session.mode); useWebviewListener( @@ -97,7 +96,7 @@ const Layout = () => { ); } }, - [location.pathname], + [location.pathname, mode], location.pathname === ROUTES.HOME, ); diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index c9a151079..f00ab77b1 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -85,10 +85,12 @@ function ContinueInputBox(props: ContinueInputBoxProps) { const editModeState = useAppSelector((state) => state.editModeState); const filteredSlashCommands = useMemo(() => { + return availableSlashCommands; return mode === "edit" ? [] : availableSlashCommands; }, [mode, availableSlashCommands]); const filteredContextProviders = useMemo(() => { + return availableContextProviders; if (mode === "edit") { return ( availableContextProviders?.filter( diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 8084e4791..71f1a821d 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -13,10 +13,7 @@ import styled from "styled-components"; import { lightGray } from ".."; import { useAppDispatch, useAppSelector } from "../../redux/hooks"; import { selectSelectedChatModel } from "../../redux/slices/configSlice"; -import { - setMainEditorContentTrigger, - setMode, -} from "../../redux/slices/sessionSlice"; +import { setMode } from "../../redux/slices/sessionSlice"; import { enterEditMode, exitEditMode } from "../../redux/thunks/editMode"; import { getFontSize, getMetaKeyLabel, isJetBrains } from "../../util"; import { useMainEditor } from "../mainInput/TipTapEditor"; @@ -76,7 +73,7 @@ function ModeSelect() { const currentIndex = modes.indexOf(mode); const nextMode = modes[(currentIndex + 1) % modes.length]; - const mainEditorContent = mainEditor?.getJSON(); + // const mainEditorContent = mainEditor?.getJSON(); if (mode === "edit") { await dispatch( @@ -95,7 +92,7 @@ function ModeSelect() { dispatch(setMode(nextMode)); } } - dispatch(setMainEditorContentTrigger(mainEditorContent)); + // dispatch(setMainEditorContentTrigger(mainEditorContent)); mainEditor?.commands.focus(); }, [jetbrains, mode, mainEditor]); @@ -104,7 +101,7 @@ function ModeSelect() { if (newMode === mode) { return; } - const mainEditorContent = mainEditor?.getJSON(); + // const mainEditorContent = mainEditor?.getJSON(); if (newMode === "edit") { await dispatch( @@ -123,7 +120,7 @@ function ModeSelect() { dispatch(setMode(newMode)); } } - dispatch(setMainEditorContentTrigger(mainEditorContent)); + // dispatch(setMainEditorContentTrigger(mainEditorContent)); mainEditor?.commands.focus(); }, [mode, mainEditor], diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/ParallelListeners.tsx similarity index 98% rename from gui/src/hooks/useSetup.ts rename to gui/src/hooks/ParallelListeners.tsx index 6f7e129ff..a4ae832e9 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/ParallelListeners.tsx @@ -33,7 +33,7 @@ import { isJetBrains } from "../util"; import { setLocalStorage } from "../util/localStorage"; import { useWebviewListener } from "./useWebviewListener"; -function useSetup() { +function ParallelListeners() { const dispatch = useAppDispatch(); const ideMessenger = useContext(IdeMessengerContext); const history = useAppSelector((store) => store.session.history); @@ -83,10 +83,6 @@ function useSetup() { const initialLoadAuthAndConfig = useCallback( async (initial: boolean) => { - // const authResult = await ideMessenger.request( - // "auth/getState", - // undefined - // ) const result = await ideMessenger.request( "config/getSerializedProfileInfo", undefined, @@ -302,6 +298,7 @@ function useSetup() { dispatch(setLastNonEditSessionEmpty(history.length === 0)); } }, [mode, history]); + return <>; } -export default useSetup; +export default ParallelListeners; From 64522f9e49f3561f3a2235506d9fa712a5e64deb Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 20:38:34 -0700 Subject: [PATCH 033/110] cleanup --- gui/src/components/mainInput/ContinueInputBox.tsx | 2 -- .../mainInput/TipTapEditor/TipTapEditor.tsx | 14 ++++++++++---- .../mainInput/TipTapEditor/utils/editorConfig.ts | 3 +-- gui/src/components/modelSelection/ModeSelect.tsx | 7 +------ 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/gui/src/components/mainInput/ContinueInputBox.tsx b/gui/src/components/mainInput/ContinueInputBox.tsx index f00ab77b1..c9a151079 100644 --- a/gui/src/components/mainInput/ContinueInputBox.tsx +++ b/gui/src/components/mainInput/ContinueInputBox.tsx @@ -85,12 +85,10 @@ function ContinueInputBox(props: ContinueInputBoxProps) { const editModeState = useAppSelector((state) => state.editModeState); const filteredSlashCommands = useMemo(() => { - return availableSlashCommands; return mode === "edit" ? [] : availableSlashCommands; }, [mode, availableSlashCommands]); const filteredContextProviders = useMemo(() => { - return availableContextProviders; if (mode === "edit") { return ( availableContextProviders?.filter( diff --git a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx index b9f341032..435e4e05e 100644 --- a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx @@ -55,6 +55,9 @@ export function TipTapEditor(props: TipTapEditorProps) { ideMessenger, dispatch, }); + useEffect(() => { + console.log(editor); + }, [editor]); // Register the main editor with the provider useEffect(() => { @@ -81,13 +84,16 @@ export function TipTapEditor(props: TipTapEditorProps) { }, [editor, props.placeholder, historyLength]); useEffect(() => { - if (mode === "edit") { - setShouldHideToolbar(false); - } if (props.isMainInput) { editor?.commands.clearContent(true); } - }, [editor, mode, props.isMainInput]); + }, [editor, props.isMainInput]); + + useEffect(() => { + if (mode === "edit") { + setShouldHideToolbar(false); + } + }, [mode]); const editorFocusedRef = useUpdatingRef(editor?.isFocused, [editor]); diff --git a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts index 31ec450d8..3fea17ad4 100644 --- a/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts +++ b/gui/src/components/mainInput/TipTapEditor/utils/editorConfig.ts @@ -269,8 +269,7 @@ export function createEditorConfig(options: { return true; } - if (modeRef.current !== "edit") { - } else { + if (modeRef.current === "edit") { dispatch( exitEditMode({ openNewSession: false, diff --git a/gui/src/components/modelSelection/ModeSelect.tsx b/gui/src/components/modelSelection/ModeSelect.tsx index 71f1a821d..c1f1552ef 100644 --- a/gui/src/components/modelSelection/ModeSelect.tsx +++ b/gui/src/components/modelSelection/ModeSelect.tsx @@ -73,8 +73,6 @@ function ModeSelect() { const currentIndex = modes.indexOf(mode); const nextMode = modes[(currentIndex + 1) % modes.length]; - // const mainEditorContent = mainEditor?.getJSON(); - if (mode === "edit") { await dispatch( exitEditMode({ @@ -92,7 +90,6 @@ function ModeSelect() { dispatch(setMode(nextMode)); } } - // dispatch(setMainEditorContentTrigger(mainEditorContent)); mainEditor?.commands.focus(); }, [jetbrains, mode, mainEditor]); @@ -101,8 +98,6 @@ function ModeSelect() { if (newMode === mode) { return; } - // const mainEditorContent = mainEditor?.getJSON(); - if (newMode === "edit") { await dispatch( enterEditMode({ @@ -120,7 +115,7 @@ function ModeSelect() { dispatch(setMode(newMode)); } } - // dispatch(setMainEditorContentTrigger(mainEditorContent)); + mainEditor?.commands.focus(); }, [mode, mainEditor], From 71e55f57d857225edb8ca3ac2ffbbf5a3a1e4022 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 20:47:20 -0700 Subject: [PATCH 034/110] cleanup --- gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx | 3 --- gui/src/hooks/ParallelListeners.tsx | 1 - 2 files changed, 4 deletions(-) diff --git a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx index 435e4e05e..e9222bcbc 100644 --- a/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx +++ b/gui/src/components/mainInput/TipTapEditor/TipTapEditor.tsx @@ -55,9 +55,6 @@ export function TipTapEditor(props: TipTapEditorProps) { ideMessenger, dispatch, }); - useEffect(() => { - console.log(editor); - }, [editor]); // Register the main editor with the provider useEffect(() => { diff --git a/gui/src/hooks/ParallelListeners.tsx b/gui/src/hooks/ParallelListeners.tsx index a4ae832e9..1b609ce39 100644 --- a/gui/src/hooks/ParallelListeners.tsx +++ b/gui/src/hooks/ParallelListeners.tsx @@ -258,7 +258,6 @@ function ParallelListeners() { "updateApplyState", async (state) => { if (state.streamId === EDIT_MODE_STREAM_ID) { - console.log(state); dispatch(updateEditStateApplyState(state)); } else { // chat or agent From 08166402019d22f3812415b7f3f5d3ffdb65337b Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 30 Apr 2025 20:52:25 -0700 Subject: [PATCH 035/110] fix tests --- gui/src/util/test/render.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gui/src/util/test/render.tsx b/gui/src/util/test/render.tsx index 2b9ae5b29..21a7d7e67 100644 --- a/gui/src/util/test/render.tsx +++ b/gui/src/util/test/render.tsx @@ -1,17 +1,16 @@ import type { RenderOptions, RenderResult } from "@testing-library/react"; -import { render } from "@testing-library/react"; +import { act, render } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { PropsWithChildren } from "react"; import { Provider } from "react-redux"; import { MemoryRouter, RouterProps } from "react-router-dom"; +import { LumpProvider } from "../../components/mainInput/Lump/LumpContext"; +import { MainEditorProvider } from "../../components/mainInput/TipTapEditor"; import { AuthProvider } from "../../context/Auth"; import { IdeMessengerProvider } from "../../context/IdeMessenger"; import { MockIdeMessenger } from "../../context/MockIdeMessenger"; +import ParallelListeners from "../../hooks/ParallelListeners"; import { setupStore } from "../../redux/store"; -import { SetupListeners } from "../../App"; -import { act } from "@testing-library/react"; -import { LumpProvider } from "../../components/mainInput/Lump/LumpContext"; -import { MainEditorProvider } from "../../components/mainInput/TipTapEditor"; // As a basic setup, import your same slice reducers // This type interface extends the default options for render from RTL, as well @@ -55,7 +54,7 @@ export async function renderWithProviders( {children} - + From ab9a248572a46e00f0fa6441af861dd260c4cb65 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 30 Apr 2025 23:04:51 -0700 Subject: [PATCH 036/110] feat: add openai wrapper for sdk --- packages/continue-sdk/.env.example | 1 + packages/continue-sdk/jest.config.js | 16 + packages/continue-sdk/package-lock.json | 7099 ++++++++++++++++- packages/continue-sdk/package.json | 20 +- packages/continue-sdk/src/Assistant.ts | 61 + packages/continue-sdk/src/Continue.ts | 88 + .../continue-sdk/src/createOpenAIClient.ts | 103 + packages/continue-sdk/tests/continue.test.ts | 49 + packages/continue-sdk/tsconfig.json | 14 + 9 files changed, 7446 insertions(+), 5 deletions(-) create mode 100644 packages/continue-sdk/.env.example create mode 100644 packages/continue-sdk/jest.config.js create mode 100644 packages/continue-sdk/src/Assistant.ts create mode 100644 packages/continue-sdk/src/Continue.ts create mode 100644 packages/continue-sdk/src/createOpenAIClient.ts create mode 100644 packages/continue-sdk/tests/continue.test.ts create mode 100644 packages/continue-sdk/tsconfig.json diff --git a/packages/continue-sdk/.env.example b/packages/continue-sdk/.env.example new file mode 100644 index 000000000..74997013a --- /dev/null +++ b/packages/continue-sdk/.env.example @@ -0,0 +1 @@ +CONTINUE_API_KEY="" \ No newline at end of file diff --git a/packages/continue-sdk/jest.config.js b/packages/continue-sdk/jest.config.js new file mode 100644 index 000000000..924960d92 --- /dev/null +++ b/packages/continue-sdk/jest.config.js @@ -0,0 +1,16 @@ +export default { + preset: 'ts-jest', + testEnvironment: 'node', + extensionsToTreatAsEsm: ['.ts'], + moduleNameMapper: { + '^(\\.{1,2}/.*)\\.js$': '$1', + }, + transform: { + '^.+\\.tsx?$': [ + 'ts-jest', + { + useESM: true, + }, + ], + }, +}; \ No newline at end of file diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index 6250f87d2..47e579232 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -9,10 +9,500 @@ "version": "0.0.1", "license": "Apache-2.0", "dependencies": { + "@continuedev/config-yaml": "file:../config-yaml", "@openapitools/openapi-generator-cli": "^2.19.1", "express": "^4.18.2", - "js-yaml": "^4.1.0", + "openai": "^4.96.2", "swagger-ui-express": "^5.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.12", + "@types/js-yaml": "^4.0.9", + "dotenv": "^16.5.0", + "i": "^0.3.7", + "jest": "^29.7.0", + "js-yaml": "^4.1.0", + "npm": "^11.3.0", + "ts-jest": "^29.1.2", + "tsx": "^4.19.4", + "zod-openapi": "^4.2.4" + } + }, + "../config-yaml": { + "name": "@continuedev/config-yaml", + "version": "1.0.87", + "license": "Apache-2.0", + "dependencies": { + "@continuedev/config-types": "^1.0.14", + "yaml": "^2.6.1", + "zod": "^3.24.2" + }, + "bin": { + "config-yaml": "dist/cli.js" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "@types/node": "^20.0.0", + "cross-env": "^7.0.3", + "jest": "^29.7.0", + "ts-jest": "^29.2.3", + "ts-node": "^10.9.2", + "zod-to-json-schema": "^3.24.5" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.1.tgz", + "integrity": "sha512-Q+E+rd/yBzNQhXkG+zQnF58e4zoZfBedaxwzPmicKsiK3nt8iJYrSrDbjwFFDGC4f+rPafqRaPH6TsDoSvMf7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.1.tgz", + "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helpers": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.1.tgz", + "integrity": "sha512-UnJfnIpc/+JO0/+KRVQNGU+y5taA5vCbwN8+azkX6beii/ZF+enZJSOKo11ZSzGJjlNfJHfQtmQT8H+9TXPG2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.27.1", + "@babel/types": "^7.27.1", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.1.tgz", + "integrity": "sha512-2YaDd/Rd9E598B5+WIc8wJPmWETiiJXFYVE60oX8FDohv7rAUU3CQj+A1MgeEmcsk2+dQuEjIe/GDvig0SqL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.1.tgz", + "integrity": "sha512-9yHn519/8KvTU5BjTVEEeIM3w9/2yXNKoD82JifINImhpKkARMJKPP59kLo+BafpdN5zgNeIcS4jsGDmd3l58g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.1.tgz", + "integrity": "sha512-FCvFTm0sWV8Fxhpp2McP5/W53GPllQ9QeQ7SiqGWjMf/LVG07lFa5+pgK05IRhVwtvafT22KF+ZSnM9I545CvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.1.tgz", + "integrity": "sha512-I0dZ3ZpCrJ1c04OqlNsQcKiZlsrXf/kkE4FXzID9rIOYICsAbA8mMDzhW/luRNAHdCNt7os/u8wenklZDlUVUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.1" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, "node_modules/@babel/runtime": { @@ -26,6 +516,939 @@ "node": ">=6.9.0" } }, + "node_modules/@babel/template": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.1.tgz", + "integrity": "sha512-Fyo3ghWMqkHHpHQCoBs2VnYjR4iWFFjguTDEqA5WgZDOrFesVjMhMM2FSqTKSoUSDO1VQtavj8NFpdRBEvJTtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.1.tgz", + "integrity": "sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.1.tgz", + "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@continuedev/config-yaml": { + "resolved": "../config-yaml", + "link": true + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz", + "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz", + "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz", + "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz", + "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz", + "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz", + "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz", + "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz", + "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz", + "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz", + "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz", + "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz", + "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz", + "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz", + "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz", + "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz", + "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz", + "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz", + "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz", + "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz", + "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz", + "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz", + "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz", + "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz", + "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz", + "integrity": "sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@jest/reporters/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@jest/reporters/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, "node_modules/@lukeed/csprng": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", @@ -193,6 +1616,33 @@ "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", "hasInstallScript": true }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, "node_modules/@tokenizer/inflate": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.2.7.tgz", @@ -220,6 +1670,161 @@ "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", "integrity": "sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==" }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/js-yaml": { + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", + "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", + "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -240,6 +1845,18 @@ "node": ">= 14" } }, + "node_modules/agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -276,10 +1893,25 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true }, "node_modules/array-flatten": { "version": "1.1.1", @@ -297,6 +1929,13 @@ "node": ">=4" } }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, + "license": "MIT" + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -312,6 +1951,122 @@ "proxy-from-env": "^1.1.0" } }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", + "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -398,6 +2153,75 @@ "balanced-match": "^1.0.0" } }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, "node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -421,6 +2245,13 @@ "ieee754": "^1.1.13" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -456,6 +2287,47 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001716", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz", + "integrity": "sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -471,11 +2343,44 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/chardet": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" + }, "node_modules/cli-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", @@ -540,6 +2445,24 @@ "node": ">=0.8" } }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true, + "license": "MIT" + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -580,6 +2503,13 @@ "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-4.1.4.tgz", "integrity": "sha512-FemMreK9xNyL8gQevsdRMrvO4lFCkQP7qbuktn1q8ndcNk1+0mz7lgE7b/sNvbhVgY4w6tMN1FDp6aADjqw2rw==" }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, "node_modules/concurrently": { "version": "6.5.1", "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-6.5.1.tgz", @@ -669,6 +2599,13 @@ "node": ">= 0.6" } }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, "node_modules/cookie": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", @@ -682,6 +2619,43 @@ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/data-uri-to-buffer": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", @@ -721,6 +2695,31 @@ } } }, + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/defaults": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", @@ -770,6 +2769,39 @@ "npm": "1.2.8000 || >= 1.4.16" } }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", + "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", @@ -796,6 +2828,42 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.145", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.145.tgz", + "integrity": "sha512-pZ5EcTWRq/055MvSBgoFEyKf2i4apwfoqJbK/ak2jnFq8oHjZ+vzc3AhRcz37Xn+ZJfL58R666FLJx0YOK9yTw==", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -809,6 +2877,16 @@ "node": ">= 0.8" } }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", @@ -850,6 +2928,47 @@ "node": ">= 0.4" } }, + "node_modules/esbuild": { + "version": "0.25.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz", + "integrity": "sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.3", + "@esbuild/android-arm": "0.25.3", + "@esbuild/android-arm64": "0.25.3", + "@esbuild/android-x64": "0.25.3", + "@esbuild/darwin-arm64": "0.25.3", + "@esbuild/darwin-x64": "0.25.3", + "@esbuild/freebsd-arm64": "0.25.3", + "@esbuild/freebsd-x64": "0.25.3", + "@esbuild/linux-arm": "0.25.3", + "@esbuild/linux-arm64": "0.25.3", + "@esbuild/linux-ia32": "0.25.3", + "@esbuild/linux-loong64": "0.25.3", + "@esbuild/linux-mips64el": "0.25.3", + "@esbuild/linux-ppc64": "0.25.3", + "@esbuild/linux-riscv64": "0.25.3", + "@esbuild/linux-s390x": "0.25.3", + "@esbuild/linux-x64": "0.25.3", + "@esbuild/netbsd-arm64": "0.25.3", + "@esbuild/netbsd-x64": "0.25.3", + "@esbuild/openbsd-arm64": "0.25.3", + "@esbuild/openbsd-x64": "0.25.3", + "@esbuild/sunos-x64": "0.25.3", + "@esbuild/win32-arm64": "0.25.3", + "@esbuild/win32-ia32": "0.25.3", + "@esbuild/win32-x64": "0.25.3" + } + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -927,6 +3046,65 @@ "node": ">= 0.6" } }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/express": { "version": "4.21.2", "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", @@ -1003,11 +3181,28 @@ "node": ">=4" } }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, "node_modules/fast-safe-stringify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, "node_modules/fflate": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", @@ -1044,6 +3239,42 @@ "url": "https://github.com/sindresorhus/file-type?sponsor=1" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/finalhandler": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", @@ -1074,6 +3305,20 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -1107,6 +3352,25 @@ "node": ">= 6" } }, + "node_modules/form-data-encoder": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", + "license": "MIT" + }, + "node_modules/formdata-node": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", + "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "license": "MIT", + "dependencies": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.3" + }, + "engines": { + "node": ">= 12.20" + } + }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -1141,6 +3405,21 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -1149,6 +3428,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -1180,6 +3469,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", @@ -1192,6 +3491,32 @@ "node": ">= 0.4" } }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-tsconfig": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", + "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, "node_modules/get-uri": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz", @@ -1222,6 +3547,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -1282,6 +3617,13 @@ "node": ">= 0.4" } }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -1321,6 +3663,34 @@ "node": ">= 14" } }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/i": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", + "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -1351,6 +3721,48 @@ } ] }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", @@ -1401,6 +3813,29 @@ "node": ">= 0.10" } }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -1409,6 +3844,16 @@ "node": ">=8" } }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/is-interactive": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", @@ -1417,6 +3862,29 @@ "node": ">=8" } }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", @@ -1428,6 +3896,97 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/iterare": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", @@ -1436,10 +3995,812 @@ "node": ">=6" } }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jake/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jest-config/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jest-config/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/jest-runtime/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/jest-runtime/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -1452,6 +4813,39 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==" }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/jsonfile": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", @@ -1463,6 +4857,33 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, "node_modules/load-esm": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/load-esm/-/load-esm-1.0.2.tgz", @@ -1481,11 +4902,31 @@ "node": ">=13.2.0" } }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, + "license": "MIT" + }, "node_modules/log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -1506,6 +4947,52 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", @@ -1530,6 +5017,13 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -1538,6 +5032,20 @@ "node": ">= 0.6" } }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -1608,6 +5116,13 @@ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", @@ -1624,6 +5139,26 @@ "node": ">= 0.4.0" } }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -1643,6 +5178,2717 @@ } } }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-11.3.0.tgz", + "integrity": "sha512-luthFIP0nFX3+nTfYbWI3p4hP4CiVnKOZ5jdxnF2x7B+Shz8feiSJCLLzgJUNxQ2cDdTaVUiH6RRsMT++vIMZg==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/fs", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/promise-spawn", + "@npmcli/redact", + "@npmcli/run-script", + "@sigstore/tuf", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "normalize-package-data", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "semver", + "spdx-expression-parse", + "ssri", + "supports-color", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which" + ], + "dev": true, + "license": "Artistic-2.0", + "workspaces": [ + "docs", + "smoke-tests", + "mock-globals", + "mock-registry", + "workspaces/*" + ], + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^9.0.2", + "@npmcli/config": "^10.2.0", + "@npmcli/fs": "^4.0.0", + "@npmcli/map-workspaces": "^4.0.2", + "@npmcli/package-json": "^6.1.1", + "@npmcli/promise-spawn": "^8.0.2", + "@npmcli/redact": "^3.1.1", + "@npmcli/run-script": "^9.1.0", + "@sigstore/tuf": "^3.0.0", + "abbrev": "^3.0.0", + "archy": "~1.0.0", + "cacache": "^19.0.1", + "chalk": "^5.4.1", + "ci-info": "^4.2.0", + "cli-columns": "^4.0.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.4.5", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^8.0.2", + "ini": "^5.0.0", + "init-package-json": "^8.0.0", + "is-cidr": "^5.1.1", + "json-parse-even-better-errors": "^4.0.0", + "libnpmaccess": "^10.0.0", + "libnpmdiff": "^8.0.2", + "libnpmexec": "^10.1.1", + "libnpmfund": "^7.0.2", + "libnpmorg": "^8.0.0", + "libnpmpack": "^9.0.2", + "libnpmpublish": "^11.0.0", + "libnpmsearch": "^9.0.0", + "libnpmteam": "^8.0.0", + "libnpmversion": "^8.0.0", + "make-fetch-happen": "^14.0.3", + "minimatch": "^9.0.5", + "minipass": "^7.1.1", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^11.2.0", + "nopt": "^8.1.0", + "normalize-package-data": "^7.0.0", + "npm-audit-report": "^6.0.0", + "npm-install-checks": "^7.1.1", + "npm-package-arg": "^12.0.2", + "npm-pick-manifest": "^10.0.0", + "npm-profile": "^11.0.1", + "npm-registry-fetch": "^18.0.2", + "npm-user-validate": "^3.0.0", + "p-map": "^7.0.3", + "pacote": "^21.0.0", + "parse-conflict-json": "^4.0.0", + "proc-log": "^5.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^4.1.0", + "semver": "^7.7.1", + "spdx-expression-parse": "^4.0.0", + "ssri": "^12.0.0", + "supports-color": "^10.0.0", + "tar": "^6.2.1", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^6.0.0", + "which": "^5.0.0" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/agent": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.3" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "9.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^4.0.0", + "@npmcli/installed-package-contents": "^3.0.0", + "@npmcli/map-workspaces": "^4.0.1", + "@npmcli/metavuln-calculator": "^9.0.0", + "@npmcli/name-from-folder": "^3.0.0", + "@npmcli/node-gyp": "^4.0.0", + "@npmcli/package-json": "^6.0.1", + "@npmcli/query": "^4.0.0", + "@npmcli/redact": "^3.0.0", + "@npmcli/run-script": "^9.0.1", + "bin-links": "^5.0.0", + "cacache": "^19.0.1", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^8.0.0", + "json-stringify-nice": "^1.1.4", + "lru-cache": "^10.2.2", + "minimatch": "^9.0.4", + "nopt": "^8.0.0", + "npm-install-checks": "^7.1.0", + "npm-package-arg": "^12.0.0", + "npm-pick-manifest": "^10.0.0", + "npm-registry-fetch": "^18.0.1", + "pacote": "^21.0.0", + "parse-conflict-json": "^4.0.0", + "proc-log": "^5.0.0", + "proggy": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^3.0.1", + "read-package-json-fast": "^4.0.0", + "semver": "^7.3.7", + "ssri": "^12.0.0", + "treeverse": "^3.0.0", + "walk-up-path": "^4.0.0" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "10.2.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^4.0.1", + "@npmcli/package-json": "^6.0.1", + "ci-info": "^4.0.0", + "ini": "^5.0.0", + "nopt": "^8.1.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5", + "walk-up-path": "^4.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "6.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^8.0.0", + "ini": "^5.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^10.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^4.0.0", + "npm-normalize-package-bin": "^4.0.0" + }, + "bin": { + "installed-package-contents": "bin/index.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^3.0.0", + "@npmcli/package-json": "^6.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "9.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^19.0.0", + "json-parse-even-better-errors": "^4.0.0", + "pacote": "^21.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "6.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^8.0.0", + "json-parse-even-better-errors": "^4.0.0", + "proc-log": "^5.0.0", + "semver": "^7.5.3", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.1.2" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/redact": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "9.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^4.0.0", + "@npmcli/package-json": "^6.0.0", + "@npmcli/promise-spawn": "^8.0.0", + "node-gyp": "^11.0.0", + "proc-log": "^5.0.0", + "which": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/@sigstore/bundle": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.4.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@sigstore/core": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@sigstore/protobuf-specs": { + "version": "0.4.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@sigstore/sign": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.0", + "make-fetch-happen": "^14.0.2", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@sigstore/tuf": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.4.0", + "tuf-js": "^3.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@sigstore/verify": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tufjs/models": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.5" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "7.1.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "6.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^7.0.0", + "npm-normalize-package-bin": "^4.0.0", + "proc-log": "^5.0.0", + "read-cmd-shim": "^5.0.0", + "write-file-atomic": "^6.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=18.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "19.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^4.0.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^10.0.1", + "minipass": "^7.0.3", + "minipass-collect": "^2.0.1", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^7.0.2", + "ssri": "^12.0.0", + "tar": "^7.4.3", + "unique-filename": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/cacache/node_modules/chownr": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/cacache/node_modules/minizlib": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/npm/node_modules/cacache/node_modules/mkdirp": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/cacache/node_modules/tar": { + "version": "7.4.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.0.1", + "mkdirp": "^3.0.1", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/cacache/node_modules/yallist": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "5.4.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "4.2.0", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "4.1.3", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^5.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "7.0.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.4.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/diff": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/eastasianwidth": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/exponential-backoff": { + "version": "3.1.2", + "dev": true, + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/foreground-child": { + "version": "3.3.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "3.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "10.4.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.11", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "7.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "7.0.6", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/ini": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/package-json": "^6.1.0", + "npm-package-arg": "^12.0.0", + "promzard": "^2.0.0", + "read": "^4.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/ip-address": { + "version": "9.0.5", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "5.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^4.1.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jackspeak": { + "version": "3.4.3", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/npm/node_modules/jsbn": { + "version": "1.1.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "dev": true, + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "6.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "10.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^12.0.0", + "npm-registry-fetch": "^18.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "8.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^9.0.2", + "@npmcli/installed-package-contents": "^3.0.0", + "binary-extensions": "^3.0.0", + "diff": "^7.0.0", + "minimatch": "^9.0.4", + "npm-package-arg": "^12.0.0", + "pacote": "^21.0.0", + "tar": "^6.2.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "10.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^9.0.2", + "@npmcli/package-json": "^6.1.1", + "@npmcli/run-script": "^9.0.1", + "ci-info": "^4.0.0", + "npm-package-arg": "^12.0.0", + "pacote": "^21.0.0", + "proc-log": "^5.0.0", + "read": "^4.0.0", + "read-package-json-fast": "^4.0.0", + "semver": "^7.3.7", + "walk-up-path": "^4.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "7.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^9.0.2" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^18.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "9.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^9.0.2", + "@npmcli/run-script": "^9.0.1", + "npm-package-arg": "^12.0.0", + "pacote": "^21.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "11.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^4.0.0", + "normalize-package-data": "^7.0.0", + "npm-package-arg": "^12.0.0", + "npm-registry-fetch": "^18.0.1", + "proc-log": "^5.0.0", + "semver": "^7.3.7", + "sigstore": "^3.0.0", + "ssri": "^12.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "9.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^18.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^18.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "8.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.1", + "@npmcli/run-script": "^9.0.1", + "json-parse-even-better-errors": "^4.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "10.4.3", + "dev": true, + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "14.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/agent": "^3.0.0", + "cacache": "^19.0.1", + "http-cache-semantics": "^4.1.1", + "minipass": "^7.0.2", + "minipass-fetch": "^4.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^1.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "ssri": "^12.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/make-fetch-happen/node_modules/negotiator": { + "version": "1.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "9.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "7.1.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "4.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^3.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-fetch/node_modules/minizlib": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "11.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^14.0.3", + "nopt": "^8.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5", + "tar": "^7.4.3", + "tinyglobby": "^0.2.12", + "which": "^5.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/chownr": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minizlib": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/mkdirp": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/tar": { + "version": "7.4.3", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.0.1", + "mkdirp": "^3.0.1", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/yallist": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^3.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^8.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "7.1.1", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "12.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^8.0.0", + "proc-log": "^5.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^6.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "10.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^7.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "10.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^7.1.0", + "npm-normalize-package-bin": "^4.0.0", + "npm-package-arg": "^12.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "11.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^18.0.0", + "proc-log": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "18.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/redact": "^3.0.0", + "jsonparse": "^1.3.1", + "make-fetch-happen": "^14.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^4.0.0", + "minizlib": "^3.0.1", + "npm-package-arg": "^12.0.0", + "proc-log": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch/node_modules/minizlib": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "7.0.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/package-json-from-dist": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0" + }, + "node_modules/npm/node_modules/pacote": { + "version": "21.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^6.0.0", + "@npmcli/installed-package-contents": "^3.0.0", + "@npmcli/package-json": "^6.0.0", + "@npmcli/promise-spawn": "^8.0.0", + "@npmcli/run-script": "^9.0.0", + "cacache": "^19.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^12.0.0", + "npm-packlist": "^10.0.0", + "npm-pick-manifest": "^10.0.0", + "npm-registry-fetch": "^18.0.0", + "proc-log": "^5.0.0", + "promise-retry": "^2.0.1", + "sigstore": "^3.0.0", + "ssri": "^12.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "bin/index.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^4.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/path-key": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/path-scurry": { + "version": "1.11.1", + "dev": true, + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/proggy": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "3.0.2", + "dev": true, + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "^2.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^4.0.0", + "npm-normalize-package-bin": "^4.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.7.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/shebang-command": { + "version": "2.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/shebang-regex": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "4.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/sigstore": { + "version": "3.1.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^3.1.0", + "@sigstore/core": "^2.0.0", + "@sigstore/protobuf-specs": "^0.4.0", + "@sigstore/sign": "^3.1.0", + "@sigstore/tuf": "^3.1.0", + "@sigstore/verify": "^2.1.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.8.4", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "8.0.5", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.2.0", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-correct/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.5.0", + "dev": true, + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.21", + "dev": true, + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/sprintf-js": { + "version": "1.1.3", + "dev": true, + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ssri": { + "version": "12.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "10.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.2.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tinyglobby": { + "version": "0.2.12", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.4.3", + "picomatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/npm/node_modules/tinyglobby/node_modules/fdir": { + "version": "6.4.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "3.0.1", + "debug": "^4.3.6", + "make-fetch-happen": "^14.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^5.0.0" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "dev": true, + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/npm/node_modules/which": { + "version": "5.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/which/node_modules/isexe": { + "version": "3.1.1", + "dev": true, + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16" + } + }, + "node_modules/npm/node_modules/wrap-ansi": { + "version": "8.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "dev": true, + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "dev": true, + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "6.0.0", + "dev": true, + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "dev": true, + "inBundle": true, + "license": "ISC" + }, "node_modules/object-inspect": { "version": "1.13.4", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", @@ -1665,6 +7911,16 @@ "node": ">= 0.8" } }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, "node_modules/onetime": { "version": "5.1.2", "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", @@ -1679,6 +7935,51 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/openai": { + "version": "4.96.2", + "resolved": "https://registry.npmjs.org/openai/-/openai-4.96.2.tgz", + "integrity": "sha512-R2XnxvMsizkROr7BV3uNp1q/3skwPZ7fmPjO1bXLnfB4Tu5xKxrT1EVwzjhxn0MZKBKAvOaGWS63jTMN6KrIXA==", + "license": "Apache-2.0", + "dependencies": { + "@types/node": "^18.11.18", + "@types/node-fetch": "^2.6.4", + "abort-controller": "^3.0.0", + "agentkeepalive": "^4.2.1", + "form-data-encoder": "1.7.2", + "formdata-node": "^4.3.2", + "node-fetch": "^2.6.7" + }, + "bin": { + "openai": "bin/cli" + }, + "peerDependencies": { + "ws": "^8.18.0", + "zod": "^3.23.8" + }, + "peerDependenciesMeta": { + "ws": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/openai/node_modules/@types/node": { + "version": "18.19.87", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.87.tgz", + "integrity": "sha512-OIAAu6ypnVZHmsHCeJ+7CCSub38QNBS9uceMQeg7K5Ur0Jr+wG9wEOEvvMbhp09pxD5czIUy/jND7s7Tb6Nw7A==", + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/openai/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "license": "MIT" + }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -1709,6 +8010,61 @@ "node": ">=0.10.0" } }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/pac-proxy-agent": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-7.2.0.tgz", @@ -1739,6 +8095,25 @@ "node": ">= 14" } }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", @@ -1747,6 +8122,43 @@ "node": ">= 0.8" } }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, "node_modules/path-scurry": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", @@ -1790,6 +8202,91 @@ "url": "https://github.com/sponsors/Borewit" } }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", @@ -1833,6 +8330,23 @@ "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, "node_modules/qs": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", @@ -1869,6 +8383,13 @@ "node": ">= 0.8" } }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, "node_modules/readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", @@ -1900,6 +8421,70 @@ "node": ">=0.10.0" } }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/restore-cursor": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", @@ -1952,6 +8537,16 @@ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, "node_modules/send": { "version": "0.19.0", "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", @@ -2015,6 +8610,29 @@ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/side-channel": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", @@ -2088,6 +8706,23 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", @@ -2127,11 +8762,22 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true, + "devOptional": true, "engines": { "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/spawn-command": { "version": "0.0.2", "resolved": "https://registry.npmjs.org/spawn-command/-/spawn-command-0.0.2.tgz", @@ -2142,6 +8788,29 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==" }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", @@ -2158,6 +8827,20 @@ "safe-buffer": "~5.2.0" } }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -2182,6 +8865,39 @@ "node": ">=8" } }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/strtok3": { "version": "10.2.2", "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.2.2.tgz", @@ -2209,6 +8925,19 @@ "node": ">=8" } }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/swagger-ui-dist": { "version": "5.21.0", "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-5.21.0.tgz", @@ -2231,6 +8960,67 @@ "express": ">=4.0.0 || >=5.0.0-beta" } }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/test-exclude/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/test-exclude/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", @@ -2247,6 +9037,26 @@ "node": ">=0.6.0" } }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", @@ -2284,11 +9094,127 @@ "tree-kill": "cli.js" } }, + "node_modules/ts-jest": { + "version": "29.3.2", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.2.tgz", + "integrity": "sha512-bJJkrWc6PjFVz5g2DGCNUo8z7oFEYaz1xP1NpeDU7KNLMWPpEyV8Chbpkn8xjzgRDpQhnGMyvyldoL7h8JXyug==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "ejs": "^3.1.10", + "fast-json-stable-stringify": "^2.1.0", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.1", + "type-fest": "^4.39.1", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.40.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.40.1.tgz", + "integrity": "sha512-9YvLNnORDpI+vghLU/Nf+zSv0kL47KbVJ1o3sKgoTefl6i+zebxbiDQWoe/oWWqPhIgQdRZRT1KA9sCPL810SA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ts-jest/node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, + "node_modules/tsx": { + "version": "4.19.4", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.4.tgz", + "integrity": "sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.25.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/type-fest": { "version": "0.21.3", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", @@ -2312,6 +9238,21 @@ "node": ">= 0.6" } }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/uid": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", @@ -2334,6 +9275,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -2350,6 +9297,37 @@ "node": ">= 0.8" } }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -2363,6 +9341,21 @@ "node": ">= 0.4.0" } }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -2371,6 +9364,16 @@ "node": ">= 0.8" } }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, "node_modules/wcwidth": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", @@ -2379,6 +9382,15 @@ "defaults": "^1.0.3" } }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0-beta.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", + "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -2393,6 +9405,22 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -2406,6 +9434,27 @@ "node": ">=8" } }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -2414,6 +9463,13 @@ "node": ">=10" } }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -2438,6 +9494,43 @@ "engines": { "node": ">=10" } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "3.24.3", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz", + "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==", + "devOptional": true, + "license": "MIT", + "peer": true, + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-openapi": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/zod-openapi/-/zod-openapi-4.2.4.tgz", + "integrity": "sha512-tsrQpbpqFCXqVXUzi3TPwFhuMtLN3oNZobOtYnK6/5VkXsNdnIgyNr4r8no4wmYluaxzN3F7iS+8xCW8BmMQ8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "zod": "^3.21.4" + } } } } diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index cebac4474..c307e6927 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -6,15 +6,31 @@ "scripts": { "generate-client:typescript": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-fetch -o ./clients/typescript -c ./openapi-generator-config.json", "generate-client:python": "openapi-generator-cli generate -i ./openapi.yaml -g python -o ./clients/python -c ./openapi-generator-config.json", + "generate-openapi": "tsx src/api/generate-openapi.ts", "generate-client:ALL": "npm run generate-client:typescript && npm run generate-client:python", - "swagger-ui": "node swagger-ui-server.js" + "swagger-ui": "node swagger-ui-server.js", + "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", + "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch" }, "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { + "@continuedev/config-yaml": "file:../config-yaml", "@openapitools/openapi-generator-cli": "^2.19.1", "express": "^4.18.2", - "js-yaml": "^4.1.0", + "openai": "^4.96.2", "swagger-ui-express": "^5.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.12", + "@types/js-yaml": "^4.0.9", + "dotenv": "^16.5.0", + "i": "^0.3.7", + "jest": "^29.7.0", + "js-yaml": "^4.1.0", + "npm": "^11.3.0", + "ts-jest": "^29.1.2", + "tsx": "^4.19.4", + "zod-openapi": "^4.2.4" } } diff --git a/packages/continue-sdk/src/Assistant.ts b/packages/continue-sdk/src/Assistant.ts new file mode 100644 index 000000000..c1d2519e5 --- /dev/null +++ b/packages/continue-sdk/src/Assistant.ts @@ -0,0 +1,61 @@ +import { AssistantUnrolled } from "@continuedev/config-yaml"; + +/** + * Class that wraps an assistant configuration with utility methods + */ +export class Assistant { + /** + * The assistant configuration object + */ + config: AssistantUnrolled; + + /** + * Create a new Assistant instance + * + * @param config - The raw assistant configuration + */ + constructor(config: any) { + this.config = config; + } + + /** + * Get a model from the assistant by name + * + * @param modelName - The name of the model to find + * @returns The model configuration or the first model if no name is provided + */ + getModel(modelName: string): any { + if (!this.config.models || !this.config.models.length) { + throw new Error("No models available in assistant configuration"); + } + + // Look for a model matching the provided name + const model = this.config.models.find( + (m: any) => + m.model === modelName || + m.model.includes(modelName) || + m.model.endsWith(`/${modelName}`), + ); + + if (!model) { + throw new Error( + `Model ${modelName} not found in assistant configuration`, + ); + } + + return model.model; + } + + /** + * Get the system message from the assistant rules + * + * @returns The concatenated rules as a single string + */ + get systemMessage(): string { + if (!this.config.rules || !Array.isArray(this.config.rules)) { + return ""; + } + + return this.config.rules.join("\n"); + } +} diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts new file mode 100644 index 000000000..aca99e053 --- /dev/null +++ b/packages/continue-sdk/src/Continue.ts @@ -0,0 +1,88 @@ +import { decodePackageSlug } from "@continuedev/config-yaml"; +import type { OpenAI } from "openai"; +import { Configuration } from "../clients/typescript/src"; +import { DefaultApi } from "../clients/typescript/src/apis/DefaultApi"; +import { Assistant } from "./Assistant"; +import { createOpenAIClient } from "./createOpenAIClient"; + +export interface ContinueClientOptions { + apiKey?: string; + organizationId?: string; + assistant?: string; + baseURL?: string; +} + +/** + * Result from Continue.from() containing configured clients + */ +export type ContinueResult = { + /** + * The Continue API client + */ + api: DefaultApi; +} & ( + | { + client: OpenAI; + assistant: Assistant; + } + | { + client?: undefined; + assistant?: undefined; + } +); + +export class Continue { + /** + * Create a Continue instance with pre-configured OpenAI client and assistant + * + * @param options - Configuration options + * @returns Object containing Continue client, OpenAI client, and assistant config + */ + static async from(options: ContinueClientOptions): Promise { + const baseURL = options.baseURL || "https://api.continue.dev/"; + const api = new DefaultApi( + new Configuration({ + basePath: baseURL, + accessToken: options.apiKey + ? async () => options.apiKey as string + : undefined, + }), + ); + + if (!options.assistant) { + return { + api, + }; + } + + const assistants = await api.listAssistants({ + organizationId: options.organizationId, + alwaysUseProxy: "true", + }); + + const { ownerSlug, packageSlug } = decodePackageSlug(options.assistant); + + const assistantRes = assistants.find( + (a) => a.ownerSlug === ownerSlug && a.packageSlug === packageSlug, + ); + + if (!assistantRes) { + throw new Error(`Assistant ${options.assistant} not found`); + } + + const assistant = new Assistant(assistantRes.configResult.config); + + const client = createOpenAIClient({ + models: assistant.config.models, + organizationId: options.organizationId || null, + apiKey: options.apiKey, + baseURL: baseURL, + }); + + return { + api, + client, + assistant, + }; + } +} diff --git a/packages/continue-sdk/src/createOpenAIClient.ts b/packages/continue-sdk/src/createOpenAIClient.ts new file mode 100644 index 000000000..35dbed03a --- /dev/null +++ b/packages/continue-sdk/src/createOpenAIClient.ts @@ -0,0 +1,103 @@ +import { + AssistantUnrolled, + ContinueProperties, +} from "@continuedev/config-yaml"; +import fetch from "node-fetch"; +import OpenAI from "openai"; + +/** + * Interface for OpenAI client options with assistant models + */ +interface OpenAIClientOptions extends Record { + /** + * Models from the assistant configuration + */ + models: AssistantUnrolled["models"]; + + /** + * Optional organization ID + */ + organizationId?: string | null; + + /** + * Whether to always use the Continue-managed proxy for model requests + */ + alwaysUseProxy?: boolean; + + /** + * API key for Continue Hub + */ + apiKey?: string; + + /** + * Base URL for the Continue API + */ + baseURL?: string; +} + +/** + * Create and configure an OpenAI client that uses Continue Hub for authentication + * + * @param options - OpenAI client options with assistant models + * @returns Configured OpenAI client + */ +export function createOpenAIClient({ + models: assistantModels, + organizationId, + apiKey, + baseURL = "https://api.continue.dev/", +}: OpenAIClientOptions): OpenAI { + const proxyBaseURL = new URL("model-proxy/v1/", baseURL).toString(); + + return new OpenAI({ + apiKey, + baseURL: proxyBaseURL, + fetch: async (url: RequestInfo, init?: RequestInit): Promise => { + // Clone the init object to avoid modifying the original + const modifiedInit = init ? { ...init } : {}; + + if (init?.method === "POST" && init?.body) { + try { + const body = JSON.parse(init.body as string); + + const modelName = body.model; + + // Look up the model in the assistant's models + const modelConfig = assistantModels?.find( + (m) => m?.model === modelName || m?.model.endsWith(modelName), + ); + + if (!modelConfig) { + throw new Error( + `Model ${modelName} not found in assistant configuration`, + ); + } + + if (!("apiKeyLocation" in modelConfig)) { + throw new Error( + `Model ${modelName} does not have an apiKeyLocation defined`, + ); + } + + const continueProperties: ContinueProperties = { + apiKeyLocation: modelConfig.apiKeyLocation, + orgScopeId: organizationId ?? null, + }; + + // Update the request with the modified body + modifiedInit.body = JSON.stringify({ + ...body, + continueProperties, + }); + } catch (e) { + // If parsing fails, proceed with the original body + } + } + + // Using node-fetch explicitly, otherwise `fetch` has shadowing issues + const response = await fetch(url.toString(), modifiedInit as any); + + return response as unknown as Response; + }, + }); +} diff --git a/packages/continue-sdk/tests/continue.test.ts b/packages/continue-sdk/tests/continue.test.ts new file mode 100644 index 000000000..31039ea61 --- /dev/null +++ b/packages/continue-sdk/tests/continue.test.ts @@ -0,0 +1,49 @@ +import { expect } from "@jest/globals"; +import dotenv from "dotenv"; +import { Continue } from "../src/Continue"; + +dotenv.config(); + +test("should make a real API call to the Continue service", async () => { + const apiKey = process.env.CONTINUE_API_KEY; + + if (!apiKey) { + throw new Error("CONTINUE_API_KEY not found in environment variables"); + } + + /* + * This assumes you are running the control plane API locally, + * are using the e2e test user, have an assistant with slug + * `assistant1`, and that assistant is using a valid Claude + * 3.7 Sonnet block with a valid API key. + */ + const assistantSlug = "peter-parker/assistant1"; + const modelName = "claude-3-7-sonnet-latest"; + + const { client, assistant } = await Continue.from({ + apiKey, + assistant: assistantSlug, + baseURL: "http://localhost:3001", + }); + + const response = await client?.chat.completions.create({ + model: assistant.getModel(modelName), + messages: [ + { role: "system", content: assistant.systemMessage }, + { role: "user", content: "Hello!" }, + ], + }); + + if (!response) { + throw new Error("No response from the API"); + } + + console.log("Response:", response.choices[0].message); + + // Verify we got a meaningful response + expect(response).toBeDefined(); + expect(response.choices).toBeDefined(); + expect(response.choices.length).toBeGreaterThan(0); + expect(response.choices[0].message).toBeDefined(); + expect(response.choices[0].message.content).toBeTruthy(); +}); diff --git a/packages/continue-sdk/tsconfig.json b/packages/continue-sdk/tsconfig.json new file mode 100644 index 000000000..ea9a79ab1 --- /dev/null +++ b/packages/continue-sdk/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "outDir": "dist", + "declaration": true, + "types": ["node", "jest"] + }, + "include": ["src/**/*", "tests/**/*"], + "exclude": ["node_modules", "dist"] +} \ No newline at end of file From 48bc95bd8c32999fb2e3048292b03c00dfbbd92b Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 30 Apr 2025 23:22:21 -0700 Subject: [PATCH 037/110] chore: remove unused packages --- packages/continue-sdk/package-lock.json | 566 +----------------------- packages/continue-sdk/package.json | 8 +- 2 files changed, 3 insertions(+), 571 deletions(-) diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index 47e579232..1b6876453 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -17,15 +17,10 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/js-yaml": "^4.0.9", "dotenv": "^16.5.0", - "i": "^0.3.7", "jest": "^29.7.0", - "js-yaml": "^4.1.0", "npm": "^11.3.0", - "ts-jest": "^29.1.2", - "tsx": "^4.19.4", - "zod-openapi": "^4.2.4" + "ts-jest": "^29.1.2" } }, "../config-yaml": { @@ -575,431 +570,6 @@ "resolved": "../config-yaml", "link": true }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.3.tgz", - "integrity": "sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.3.tgz", - "integrity": "sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.3.tgz", - "integrity": "sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.3.tgz", - "integrity": "sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.3.tgz", - "integrity": "sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.3.tgz", - "integrity": "sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.3.tgz", - "integrity": "sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.3.tgz", - "integrity": "sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.3.tgz", - "integrity": "sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.3.tgz", - "integrity": "sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.3.tgz", - "integrity": "sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.3.tgz", - "integrity": "sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.3.tgz", - "integrity": "sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.3.tgz", - "integrity": "sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.3.tgz", - "integrity": "sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.3.tgz", - "integrity": "sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.3.tgz", - "integrity": "sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.3.tgz", - "integrity": "sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.3.tgz", - "integrity": "sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.3.tgz", - "integrity": "sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.3.tgz", - "integrity": "sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.3.tgz", - "integrity": "sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.3.tgz", - "integrity": "sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.3.tgz", - "integrity": "sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.3.tgz", - "integrity": "sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -1763,13 +1333,6 @@ "pretty-format": "^29.0.0" } }, - "node_modules/@types/js-yaml": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", - "dev": true, - "license": "MIT" - }, "node_modules/@types/node": { "version": "22.15.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", @@ -1907,12 +1470,6 @@ "node": ">= 8" } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", @@ -2928,47 +2485,6 @@ "node": ">= 0.4" } }, - "node_modules/esbuild": { - "version": "0.25.3", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.3.tgz", - "integrity": "sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.3", - "@esbuild/android-arm": "0.25.3", - "@esbuild/android-arm64": "0.25.3", - "@esbuild/android-x64": "0.25.3", - "@esbuild/darwin-arm64": "0.25.3", - "@esbuild/darwin-x64": "0.25.3", - "@esbuild/freebsd-arm64": "0.25.3", - "@esbuild/freebsd-x64": "0.25.3", - "@esbuild/linux-arm": "0.25.3", - "@esbuild/linux-arm64": "0.25.3", - "@esbuild/linux-ia32": "0.25.3", - "@esbuild/linux-loong64": "0.25.3", - "@esbuild/linux-mips64el": "0.25.3", - "@esbuild/linux-ppc64": "0.25.3", - "@esbuild/linux-riscv64": "0.25.3", - "@esbuild/linux-s390x": "0.25.3", - "@esbuild/linux-x64": "0.25.3", - "@esbuild/netbsd-arm64": "0.25.3", - "@esbuild/netbsd-x64": "0.25.3", - "@esbuild/openbsd-arm64": "0.25.3", - "@esbuild/openbsd-x64": "0.25.3", - "@esbuild/sunos-x64": "0.25.3", - "@esbuild/win32-arm64": "0.25.3", - "@esbuild/win32-ia32": "0.25.3", - "@esbuild/win32-x64": "0.25.3" - } - }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -3504,19 +3020,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/get-tsconfig": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz", - "integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" - } - }, "node_modules/get-uri": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.4.tgz", @@ -3682,15 +3185,6 @@ "ms": "^2.0.0" } }, - "node_modules/i": { - "version": "0.3.7", - "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", - "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", - "dev": true, - "engines": { - "node": ">=0.4" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -4795,19 +4289,6 @@ "dev": true, "license": "MIT" }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/jsbn": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", @@ -8465,16 +7946,6 @@ "node": ">=8" } }, - "node_modules/resolve-pkg-maps": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } - }, "node_modules/resolve.exports": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", @@ -9185,26 +8656,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" }, - "node_modules/tsx": { - "version": "4.19.4", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.4.tgz", - "integrity": "sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "~0.25.0", - "get-tsconfig": "^4.7.5" - }, - "bin": { - "tsx": "dist/cli.mjs" - }, - "engines": { - "node": ">=18.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -9512,25 +8963,12 @@ "version": "3.24.3", "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz", "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==", - "devOptional": true, "license": "MIT", + "optional": true, "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } - }, - "node_modules/zod-openapi": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/zod-openapi/-/zod-openapi-4.2.4.tgz", - "integrity": "sha512-tsrQpbpqFCXqVXUzi3TPwFhuMtLN3oNZobOtYnK6/5VkXsNdnIgyNr4r8no4wmYluaxzN3F7iS+8xCW8BmMQ8g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "zod": "^3.21.4" - } } } } diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index c307e6927..f7ec2733e 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -6,7 +6,6 @@ "scripts": { "generate-client:typescript": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-fetch -o ./clients/typescript -c ./openapi-generator-config.json", "generate-client:python": "openapi-generator-cli generate -i ./openapi.yaml -g python -o ./clients/python -c ./openapi-generator-config.json", - "generate-openapi": "tsx src/api/generate-openapi.ts", "generate-client:ALL": "npm run generate-client:typescript && npm run generate-client:python", "swagger-ui": "node swagger-ui-server.js", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", @@ -23,14 +22,9 @@ }, "devDependencies": { "@types/jest": "^29.5.12", - "@types/js-yaml": "^4.0.9", "dotenv": "^16.5.0", - "i": "^0.3.7", "jest": "^29.7.0", - "js-yaml": "^4.1.0", "npm": "^11.3.0", - "ts-jest": "^29.1.2", - "tsx": "^4.19.4", - "zod-openapi": "^4.2.4" + "ts-jest": "^29.1.2" } } From ef0e7a490f14266bf7332aabd60dc96029776144 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 1 May 2025 13:30:09 +0530 Subject: [PATCH 038/110] introduce custom mcp server timeout --- core/config/yaml/loadYaml.ts | 2 ++ core/context/mcp/MCPConnection.ts | 2 +- core/index.d.ts | 1 + packages/config-yaml/src/schemas/index.ts | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 85e94bbb2..23185d7cd 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -72,6 +72,7 @@ function convertYamlMcpToContinueMcp( args: server.args ?? [], env: server.env, }, + timeout: server.timeout }; } @@ -444,6 +445,7 @@ async function configYamlToContinueConfig(options: { args: [], ...server, }, + timeout: server.timeout })), false, ); diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index dca630cc6..489d53ccf 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -14,7 +14,7 @@ import { MCPTool, } from "../.."; -export const DEFAULT_MCP_TIMEOUT = 20_000; // 10 seconds +const DEFAULT_MCP_TIMEOUT = 20_000; // 20 seconds class MCPConnection { public client: Client; diff --git a/core/index.d.ts b/core/index.d.ts index 7aa8d00ec..477927e9d 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1211,6 +1211,7 @@ export interface ExperimentalModelRoles { export interface ExperimentalMCPOptions { transport: TransportOptions; faviconUrl?: string; + timeout?: number; } export type EditStatus = diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 7f8d55531..99ae40d64 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -15,6 +15,7 @@ const mcpServerSchema = z.object({ faviconUrl: z.string().optional(), args: z.array(z.string()).optional(), env: z.record(z.string()).optional(), + timeout: z.number().gt(0).optional() }); export type MCPServer = z.infer; From f56f0aa93d5b1535f64200bc8234a67e79623511 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 1 May 2025 13:39:53 +0530 Subject: [PATCH 039/110] add test --- core/context/mcp/MCPConnection.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/core/context/mcp/MCPConnection.test.ts b/core/context/mcp/MCPConnection.test.ts index 3e22e5f8e..4b5ccd2a0 100644 --- a/core/context/mcp/MCPConnection.test.ts +++ b/core/context/mcp/MCPConnection.test.ts @@ -151,6 +151,21 @@ describe("MCPConnection", () => { expect(mockConnect).toHaveBeenCalled(); }); + it('should handle custom connection timeout', async () => { + const conn = new MCPConnection({ ...options, timeout: 11 }); + const mockConnect = jest + .spyOn(Client.prototype, "connect") + .mockImplementation( + () => new Promise((resolve) => setTimeout(resolve, 10)), + ); + + const abortController = new AbortController(); + await conn.connectClient(false, abortController.signal); + + expect(conn.status).toBe("connected"); + expect(mockConnect).toHaveBeenCalled(); + }); + it("should handle connection timeout", async () => { const conn = new MCPConnection({ ...options, timeout: 1 }); const mockConnect = jest From 520c783fd6c1b1563ea432cb987c9d282a7fcf3d Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 1 May 2025 13:45:43 +0530 Subject: [PATCH 040/110] update documentation --- docs/docs/reference.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 9ead04366..c62dd441b 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -380,6 +380,7 @@ prompts, context, and tool use. Continue supports any MCP server with the MCP co - `command` (**required**): The command used to start the server. - `args`: An optional array of arguments for the command. - `env`: An optional map of environment variables for the server process. +- `timeout`: An optional connection timeout number to the server in milliseconds. **Example:** From c3cd43413a23b7534fc0d8bdbdc28d49174ccfc3 Mon Sep 17 00:00:00 2001 From: NGC13009 Date: Thu, 1 May 2025 19:50:52 +0800 Subject: [PATCH 041/110] Update autocomplete.mdx Provide a better way of "### Is there a shortcut to accept one line at a time?" --- docs/docs/customize/deep-dives/autocomplete.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx index 6fd498e8d..c982579d3 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/customize/deep-dives/autocomplete.mdx @@ -136,6 +136,14 @@ Yes, in VS Code, if you don't want to be shown suggestions automatically you can This is a built-in feature of VS Code, but it's just a bit hidden. See this great [StackOverflow answer](https://stackoverflow.com/questions/72228174/accept-line-by-line-from-autocompletion/78001122#78001122) for more details. +Or, follow these settings to reassign the keyboard shortcuts in VS Code: +1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page. +2. Search for `editor.action.inlineSuggest.acceptNextLine`. +3. Set the key binding to `Tab`. +4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`. +This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`. +If you need to apply all the code, just press `Tab` multiple times. + ### How to turn off autocomplete #### VS Code From 924147c92803892425c7313b2a330a4f8ff9495a Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 1 May 2025 18:13:27 +0530 Subject: [PATCH 042/110] refactor into `getBaseSystemMessage` --- .../mainInput/Lump/sections/RulesSection.tsx | 8 ++------ gui/src/redux/thunks/streamResponse.ts | 8 ++------ .../redux/thunks/streamResponseAfterToolCall.ts | 8 ++------ gui/src/util/index.ts | 14 ++++++++++++++ 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx index b2e57bf71..1c661cf3e 100644 --- a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx @@ -18,6 +18,7 @@ import { setDialogMessage, setShowDialog, } from "../../../../redux/slices/uiSlice"; +import { getBaseSystemMessage } from "../../../../util"; import HeaderButtonWithToolTip from "../../../gui/HeaderButtonWithToolTip"; import { useFontSize } from "../../../ui/font"; import { ExploreBlocksButton } from "./ExploreBlocksButton"; @@ -182,12 +183,7 @@ export function RulesSection() { } // Add a displayed rule for the base system chat message when in chat mode if (mode === "chat" || mode === "agent") { - let baseMessage:string | undefined; - if(mode === 'agent') { - baseMessage = config.selectedModelByRole.chat?.baseAgentSystemMessage ?? config.selectedModelByRole.chat?.baseChatSystemMessage - } else { - baseMessage = config.selectedModelByRole.chat?.baseChatSystemMessage - } + const baseMessage = getBaseSystemMessage(config.selectedModelByRole.chat, mode) if (baseMessage) { rules.unshift({ rule: baseMessage, diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index 4b7ccf798..6c406f868 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -4,6 +4,7 @@ import { InputModifiers } from "core"; import { constructMessages } from "core/llm/constructMessages"; import posthog from "posthog-js"; import { v4 as uuidv4 } from "uuid"; +import { getBaseSystemMessage } from "../../util"; import { selectSelectedChatModel } from "../slices/configSlice"; import { submitEditorAndInitAtIndex, @@ -87,12 +88,7 @@ export const streamResponseThunk = createAsyncThunk< const updatedHistory = getState().session.history; const messageMode = getState().session.mode - let baseChatOrAgentSystemMessage: string|undefined - if(messageMode === 'agent') { - baseChatOrAgentSystemMessage = selectedChatModel?.baseAgentSystemMessage ?? selectedChatModel?.baseChatSystemMessage // fallback to chat system message if agent system message is unavailable - } else { - baseChatOrAgentSystemMessage = selectedChatModel.baseChatSystemMessage - } + const baseChatOrAgentSystemMessage = getBaseSystemMessage(selectedChatModel, messageMode) const messages = constructMessages( [...updatedHistory], diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 813a5e1f8..2b4ada0c1 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -2,6 +2,7 @@ import { createAsyncThunk, unwrapResult } from "@reduxjs/toolkit"; import { ChatMessage } from "core"; import { constructMessages } from "core/llm/constructMessages"; import { renderContextItems } from "core/util/messageContent"; +import { getBaseSystemMessage } from "../../util"; import { selectSelectedChatModel } from "../slices/configSlice"; import { addContextItemsAtIndex, @@ -68,12 +69,7 @@ export const streamResponseAfterToolCall = createAsyncThunk< const updatedHistory = getState().session.history; const messageMode = getState().session.mode - let baseChatOrAgentSystemMessage: string|undefined - if(messageMode === 'agent') { - baseChatOrAgentSystemMessage = selectedChatModel?.baseAgentSystemMessage ?? selectedChatModel?.baseChatSystemMessage // fallback to chat system message if agent system message is unavailable - } else { - baseChatOrAgentSystemMessage = selectedChatModel.baseChatSystemMessage - } + const baseChatOrAgentSystemMessage = getBaseSystemMessage(selectedChatModel, messageMode) const messages = constructMessages( [...updatedHistory], diff --git a/gui/src/util/index.ts b/gui/src/util/index.ts index f2b18105b..511dd1a64 100644 --- a/gui/src/util/index.ts +++ b/gui/src/util/index.ts @@ -1,3 +1,4 @@ +import { MessageModes, ModelDescription } from "core"; import { ProfileDescription } from "core/config/ProfileLifecycleManager"; import _ from "lodash"; import { KeyboardEvent } from "react"; @@ -114,3 +115,16 @@ export function updatedObj(old: any, pathToValue: { [key: string]: any }) { export function isLocalProfile(profile: ProfileDescription): boolean { return profile.profileType === "local"; } + +/** + * Get the base system message for the agent or chat mode from the model description. + */ +export function getBaseSystemMessage(modelDetails: ModelDescription | null, mode: MessageModes) { + let baseChatOrAgentSystemMessage: string|undefined + if(mode === 'agent') { + baseChatOrAgentSystemMessage = modelDetails?.baseAgentSystemMessage ?? modelDetails?.baseChatSystemMessage // fallback to chat system message if agent system message is unavailable + } else { + baseChatOrAgentSystemMessage = modelDetails?.baseChatSystemMessage + } + return baseChatOrAgentSystemMessage +} \ No newline at end of file From 2a51fc1cb25475a0dc40db3ce106b3d00913a372 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 09:45:37 -0700 Subject: [PATCH 043/110] Update Continue.ts --- packages/continue-sdk/src/Continue.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts index aca99e053..0a7990875 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/src/Continue.ts @@ -40,6 +40,7 @@ export class Continue { */ static async from(options: ContinueClientOptions): Promise { const baseURL = options.baseURL || "https://api.continue.dev/"; + const api = new DefaultApi( new Configuration({ basePath: baseURL, @@ -55,13 +56,18 @@ export class Continue { }; } + const { ownerSlug, packageSlug } = decodePackageSlug(options.assistant); + if (!ownerSlug || !packageSlug) { + throw new Error( + `Invalid assistant identifier: ${options.assistant}. Expected format: owner-slug/package-slug`, + ); + } + const assistants = await api.listAssistants({ organizationId: options.organizationId, alwaysUseProxy: "true", }); - const { ownerSlug, packageSlug } = decodePackageSlug(options.assistant); - const assistantRes = assistants.find( (a) => a.ownerSlug === ownerSlug && a.packageSlug === packageSlug, ); From c2c486040f52924718d9690ee155d5dfb78da933 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 1 May 2025 11:00:25 -0700 Subject: [PATCH 044/110] fix wrong name --- .continuerules | 1 - docs/docs/reference.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 .continuerules diff --git a/.continuerules b/.continuerules deleted file mode 100644 index bad5d9689..000000000 --- a/.continuerules +++ /dev/null @@ -1 +0,0 @@ -Give concise responses. diff --git a/docs/docs/reference.md b/docs/docs/reference.md index 9ead04366..9022ccd55 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -189,7 +189,7 @@ chat, editing, and summarizing. - `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are `chat`, [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [ `apply`](./customize/model-roles/apply.mdx#prompt-templating) and [ - `autocomplete`](./customize/model-roles/autocomplete.md#prompt-templating). The `chatTemplate` property must be a + `autocomplete`](./customize/model-roles/autocomplete.md#prompt-templating). The `chat` property must be a valid template name, such as `llama3` or `anthropic`. - `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: - `baseSystemMessage`: Can be used to override the default system prompt. From b18fd4aee0c66e41113bce4de1fa526da1dc16c6 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 11:04:03 -0700 Subject: [PATCH 045/110] feat: simplify types --- packages/continue-sdk/src/Continue.ts | 29 ++++---------------- packages/continue-sdk/tests/continue.test.ts | 2 +- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts index 0a7990875..c2209ac84 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/src/Continue.ts @@ -6,30 +6,17 @@ import { Assistant } from "./Assistant"; import { createOpenAIClient } from "./createOpenAIClient"; export interface ContinueClientOptions { - apiKey?: string; + assistant: string; + apiKey: string; organizationId?: string; - assistant?: string; baseURL?: string; } -/** - * Result from Continue.from() containing configured clients - */ export type ContinueResult = { - /** - * The Continue API client - */ api: DefaultApi; -} & ( - | { - client: OpenAI; - assistant: Assistant; - } - | { - client?: undefined; - assistant?: undefined; - } -); + client: OpenAI; + assistant: Assistant; +}; export class Continue { /** @@ -50,12 +37,6 @@ export class Continue { }), ); - if (!options.assistant) { - return { - api, - }; - } - const { ownerSlug, packageSlug } = decodePackageSlug(options.assistant); if (!ownerSlug || !packageSlug) { throw new Error( diff --git a/packages/continue-sdk/tests/continue.test.ts b/packages/continue-sdk/tests/continue.test.ts index 31039ea61..22e8fffdc 100644 --- a/packages/continue-sdk/tests/continue.test.ts +++ b/packages/continue-sdk/tests/continue.test.ts @@ -26,7 +26,7 @@ test("should make a real API call to the Continue service", async () => { baseURL: "http://localhost:3001", }); - const response = await client?.chat.completions.create({ + const response = await client.chat.completions.create({ model: assistant.getModel(modelName), messages: [ { role: "system", content: assistant.systemMessage }, From eb874a728dbdde6bdc84fa4a8c8db22fbcb5274d Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 11:06:47 -0700 Subject: [PATCH 046/110] Update Continue.ts --- packages/continue-sdk/src/Continue.ts | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts index c2209ac84..21237c694 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/src/Continue.ts @@ -6,15 +6,49 @@ import { Assistant } from "./Assistant"; import { createOpenAIClient } from "./createOpenAIClient"; export interface ContinueClientOptions { + /** + * The assistant identifier in the format owner-slug/package-slug + */ assistant: string; + + /** + * API Key Authentication + * + * API keys must be prefixed with "con_" and provided in the Authorization header. + * Example: `Authorization: Bearer con_your_api_key_here` + * + * API keys can be generated in the Continue Hub web interface under account settings. + */ apiKey: string; + + /** + * Optional organization ID + * + * TODO: This should be an org name, not the UUID + */ organizationId?: string; + + /** + * Base URL for the Continue API + */ baseURL?: string; } export type ContinueResult = { + /** + * The Continue API client + */ api: DefaultApi; + + /** + * The OpenAI client configured to use the Continue API + */ client: OpenAI; + + /** + * The full YAML configuration for the assistant, along + * with some additional utility methods + */ assistant: Assistant; }; From db1e6a8d2f8a28dcf55e3ea5e298cb350ea60c79 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 11:09:23 -0700 Subject: [PATCH 047/110] update sdk tests --- packages/continue-sdk/src/createOpenAIClient.ts | 4 +--- packages/continue-sdk/tests/continue.test.ts | 8 +++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/continue-sdk/src/createOpenAIClient.ts b/packages/continue-sdk/src/createOpenAIClient.ts index 35dbed03a..4431de01d 100644 --- a/packages/continue-sdk/src/createOpenAIClient.ts +++ b/packages/continue-sdk/src/createOpenAIClient.ts @@ -47,11 +47,9 @@ export function createOpenAIClient({ apiKey, baseURL = "https://api.continue.dev/", }: OpenAIClientOptions): OpenAI { - const proxyBaseURL = new URL("model-proxy/v1/", baseURL).toString(); - return new OpenAI({ apiKey, - baseURL: proxyBaseURL, + baseURL: new URL("model-proxy/v1/", baseURL).toString(), fetch: async (url: RequestInfo, init?: RequestInit): Promise => { // Clone the init object to avoid modifying the original const modifiedInit = init ? { ...init } : {}; diff --git a/packages/continue-sdk/tests/continue.test.ts b/packages/continue-sdk/tests/continue.test.ts index 22e8fffdc..6bedfa3b5 100644 --- a/packages/continue-sdk/tests/continue.test.ts +++ b/packages/continue-sdk/tests/continue.test.ts @@ -4,7 +4,13 @@ import { Continue } from "../src/Continue"; dotenv.config(); -test("should make a real API call to the Continue service", async () => { +/** + * This test is `.skip`'d for now becasue it requires a real API key + * and a real assistant to be set up in the Continue Hub. + * + * The primary use case for now is to aid in local iteration on the SDK. + */ +test.skip("should make a real API call to the Continue service", async () => { const apiKey = process.env.CONTINUE_API_KEY; if (!apiKey) { From 5ea59c9db004a59e47ec4460104a0a4b44b098f5 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 1 May 2025 12:04:20 -0700 Subject: [PATCH 048/110] improve error message display --- gui/src/pages/gui/StreamError.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/src/pages/gui/StreamError.tsx b/gui/src/pages/gui/StreamError.tsx index c6fcc703f..50caf7dfe 100644 --- a/gui/src/pages/gui/StreamError.tsx +++ b/gui/src/pages/gui/StreamError.tsx @@ -22,6 +22,10 @@ interface StreamErrorProps { } function parseErrorMessage(fullErrMsg: string): string { + if (!fullErrMsg.includes("\n\n")) { + return fullErrMsg; + } + const msg = fullErrMsg.split("\n\n").slice(1).join("\n\n"); try { const parsed = JSON.parse(msg); @@ -228,7 +232,9 @@ const StreamErrorDialog = ({ error }: StreamErrorProps) => { return (
    -

    {`Error (status code ${statusCode})`}

    +

    + {statusCode ? `Error (status code ${statusCode})` : "Error"} +

    {message ? (
    From c77491aae8c145e588a5af64f677b3643bb856f0 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 12:33:37 -0700 Subject: [PATCH 049/110] include rules in edit --- core/core.ts | 40 +++++++++--- core/edit/streamDiffLines.ts | 63 ++++++++++--------- core/protocol/core.ts | 1 + .../continue/IdeProtocolClient.kt | 2 +- .../editor/DiffStreamHandler.kt | 10 +-- .../editor/InlineEditAction.kt | 2 +- extensions/vscode/src/apply/ApplyManager.ts | 2 +- extensions/vscode/src/commands.ts | 2 +- .../vscode/src/diff/vertical/manager.ts | 6 +- .../vscode/src/extension/VsCodeMessenger.ts | 2 +- .../src/quickEdit/QuickEditQuickPick.ts | 2 +- 11 files changed, 80 insertions(+), 52 deletions(-) diff --git a/core/core.ts b/core/core.ts index e5c9eeab0..62121b642 100644 --- a/core/core.ts +++ b/core/core.ts @@ -63,32 +63,54 @@ import { llmStreamChat } from "./llm/streamChat"; import type { FromCoreProtocol, ToCoreProtocol } from "./protocol"; import type { IMessenger, Message } from "./protocol/messenger"; +// This function is used for jetbrains inline edit and apply async function* streamDiffLinesGenerator( configHandler: ConfigHandler, abortedMessageIds: Set, msg: Message, ): AsyncGenerator { - const data = msg.data; + const { + highlighted, + prefix, + suffix, + input, + language, + modelTitle, + includeRulesInSystemMessage, + } = msg.data; const { config } = await configHandler.loadConfig(); if (!config) { throw new Error("Failed to load config"); } - const llm = config.selectedModelByRole.chat; + // title can be an edit, chat, or apply model + let llm = + config.modelsByRole.edit.find((m) => m.title === modelTitle) ?? + config.modelsByRole.apply.find((m) => m.title === modelTitle) ?? + config.modelsByRole.chat.find((m) => m.title === modelTitle) ?? + null; + // fallback to selected chat model if (!llm) { - throw new Error("No chat model selected"); + llm = config.selectedModelByRole.chat; } + if (!llm) { + throw new Error("No model selected"); + } + + // rules included for edit, NOT apply + const rules = includeRulesInSystemMessage ? config.rules : undefined; + for await (const diffLine of streamDiffLines({ - highlighted: data.highlighted, - prefix: data.prefix, - suffix: data.suffix, + highlighted, + prefix, + suffix, llm, - rules: config.rules, - input: data.input, - language: data.language, + includeRulesAsSystemMessage: rules, + input, + language, onlyOneInsertion: false, overridePrompt: undefined, })) { diff --git a/core/edit/streamDiffLines.ts b/core/edit/streamDiffLines.ts index 320962b7c..1db707289 100644 --- a/core/edit/streamDiffLines.ts +++ b/core/edit/streamDiffLines.ts @@ -23,7 +23,7 @@ import { gptEditPrompt } from "../llm/templates/edit"; import { findLast } from "../util/findLast"; import { Telemetry } from "../util/posthog"; -function constructPrompt( +function constructEditPrompt( prefix: string, highlighted: string, suffix: string, @@ -66,7 +66,7 @@ export async function* streamDiffLines({ language, onlyOneInsertion, overridePrompt, - rules, + includeRulesAsSystemMessage, }: { prefix: string; highlighted: string; @@ -76,7 +76,7 @@ export async function* streamDiffLines({ language: string | undefined; onlyOneInsertion: boolean; overridePrompt: ChatMessage[] | undefined; - rules: RuleWithSource[]; + includeRulesAsSystemMessage: RuleWithSource[] | undefined; }): AsyncGenerator { void Telemetry.capture( "inlineEdit", @@ -99,38 +99,41 @@ export async function* streamDiffLines({ oldLines = []; } + // Defaults to creating an edit prompt + // For apply can be overridden with simply apply prompt let prompt = overridePrompt ?? - constructPrompt(prefix, highlighted, suffix, llm, input, language); + constructEditPrompt(prefix, highlighted, suffix, llm, input, language); - // Rules will be included with edit prompt + // Rules can be included with edit prompt // If any rules are present this will result in using chat instead of legacy completion - const lastUserMessage = - typeof prompt === "string" - ? ({ - role: "user", - content: prompt, - } as UserChatMessage) - : (findLast( - prompt, - (msg) => msg.role === "user" || msg.role === "tool", - ) as UserChatMessage | ToolResultChatMessage | undefined); + let systemMessage: string | undefined = undefined; + if (includeRulesAsSystemMessage) { + const lastUserMessage = + typeof prompt === "string" + ? ({ + role: "user", + content: prompt, + } as UserChatMessage) + : (findLast( + prompt, + (msg) => msg.role === "user" || msg.role === "tool", + ) as UserChatMessage | ToolResultChatMessage | undefined); - const systemMessage = getSystemMessageWithRules({ - rules, - userMessage: lastUserMessage, - baseSystemMessage: undefined, - }); + systemMessage = getSystemMessageWithRules({ + rules: includeRulesAsSystemMessage, + userMessage: lastUserMessage, + baseSystemMessage: undefined, + }); + } if (systemMessage) { if (typeof prompt === "string") { - // Removed system prompt because it was causing it to be used for Apply - // We should bring it back only for Edit prompt = [ - // { - // role: "system", - // content: systemMessage, - // }, + { + role: "system", + content: systemMessage, + }, { role: "user", content: prompt, @@ -141,10 +144,10 @@ export async function* streamDiffLines({ if (curSysMsg) { curSysMsg.content = systemMessage + "\n\n" + curSysMsg.content; } else { - // prompt.unshift({ - // role: "system", - // content: systemMessage, - // }); + prompt.unshift({ + role: "system", + content: systemMessage, + }); } } } diff --git a/core/protocol/core.ts b/core/protocol/core.ts index 45a01a976..de061c730 100644 --- a/core/protocol/core.ts +++ b/core/protocol/core.ts @@ -150,6 +150,7 @@ export type ToCoreFromIdeOrWebviewProtocol = { input: string; language: string | undefined; modelTitle: string | undefined; + includeRulesInSystemMessage: boolean; }, AsyncGenerator, ]; 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 031783597..b07d4e2ce 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 @@ -596,7 +596,7 @@ class IdeProtocolClient( diffStreamService.register(diffStreamHandler, editor) diffStreamHandler.streamDiffLinesToEditor( - prompt, prefix, highlighted, suffix, llmTitle + prompt, prefix, highlighted, suffix, llmTitle, false ) respond(null) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/DiffStreamHandler.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/DiffStreamHandler.kt index f6cf5972f..d8aa0b353 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/DiffStreamHandler.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/DiffStreamHandler.kt @@ -87,7 +87,7 @@ class DiffStreamHandler( } fun streamDiffLinesToEditor( - input: String, prefix: String, highlighted: String, suffix: String, modelTitle: String + input: String, prefix: String, highlighted: String, suffix: String, modelTitle: String, includeRulesInSystemMessage: Boolean ) { isRunning = true this.sendUpdate("streaming") @@ -96,7 +96,7 @@ class DiffStreamHandler( val virtualFile = getVirtualFile() continuePluginService.coreMessenger?.request( - "streamDiffLines", createRequestParams(input, prefix, highlighted, suffix, virtualFile, modelTitle), null + "streamDiffLines", createRequestParams(input, prefix, highlighted, suffix, virtualFile, modelTitle, includeRulesInSystemMessage), null ) { response -> if (!isRunning) return@request @@ -274,7 +274,8 @@ class DiffStreamHandler( highlighted: String, suffix: String, virtualFile: VirtualFile?, - modelTitle: String + modelTitle: String, + includeRulesInSystemMessage: Boolean ): Map { return mapOf( "input" to input, @@ -282,7 +283,8 @@ class DiffStreamHandler( "highlighted" to highlighted, "suffix" to suffix, "language" to virtualFile?.fileType?.name, - "modelTitle" to modelTitle + "modelTitle" to modelTitle, + "includeRulesInSystemMessage" to includeRulesInSystemMessage, ) } diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt index 9565b3d1b..0f87efc32 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt @@ -222,7 +222,7 @@ fun openInlineEdit(project: Project?, editor: Editor) { val selectedModelStrippedOfCaret = (comboBoxRef.get().selectedItem as String).removeSuffix(DOWN_ARROW) customPanelRef.get().enter() diffStreamHandler.streamDiffLinesToEditor( - textArea.text, prefix, highlighted, suffix, selectedModelStrippedOfCaret + textArea.text, prefix, highlighted, suffix, selectedModelStrippedOfCaret, true ) } diff --git a/extensions/vscode/src/apply/ApplyManager.ts b/extensions/vscode/src/apply/ApplyManager.ts index 3af716fc2..afe6bb168 100644 --- a/extensions/vscode/src/apply/ApplyManager.ts +++ b/extensions/vscode/src/apply/ApplyManager.ts @@ -181,7 +181,7 @@ export class ApplyManager { range: rangeToApplyTo, newCode: text, toolCallId, - rules: config.rules, + includeRulesAsSystemMessage: undefined, // No rules for apply }); } } diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index c651f1eb2..45331e61a 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -226,7 +226,7 @@ const getCommandsMap: ( llm, onlyOneInsertion, range, - rules: config.rules, + includeRulesAsSystemMessage: config.rules, }); } diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index 6c94ab343..db2d55cb9 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -280,7 +280,7 @@ export class VerticalDiffManager { range, newCode, toolCallId, - rules, + includeRulesAsSystemMessage, }: { input: string; llm: ILLM; @@ -290,7 +290,7 @@ export class VerticalDiffManager { range?: vscode.Range; newCode?: string; toolCallId?: string; - rules: RuleWithSource[]; + includeRulesAsSystemMessage: undefined | RuleWithSource[]; }): Promise { vscode.commands.executeCommand("setContext", "continue.diffVisible", true); @@ -443,7 +443,7 @@ export class VerticalDiffManager { prefix, suffix, llm, - rules, + includeRulesAsSystemMessage, input, language: getMarkdownLanguageTagForFile(fileUri), onlyOneInsertion: !!onlyOneInsertion, diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 8b33a37fa..5484ba204 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -226,7 +226,7 @@ export class VsCodeMessenger { new vscode.Position(start.line, start.character), new vscode.Position(end.line, end.character), ), - rules: config.rules, + includeRulesAsSystemMessage: config.rules, }); return fileAfterEdit; }); diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index fa526b6e5..7d677ab1b 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -331,7 +331,7 @@ export class QuickEdit { llm: model, quickEdit: this.previousInput, range: this.range, - rules, + includeRulesAsSystemMessage: rules, }); } From 6e9bea2b8a4d25dd824372d20458363411165cd3 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 13:12:53 -0700 Subject: [PATCH 050/110] hide tabs in edit mode --- gui/src/pages/gui/Chat.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 3c3abaf47..32a99f88d 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -285,12 +285,12 @@ export function Chat() { const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000; useAutoScroll(stepsDivRef, history); - + console.log(showSessionTabs); return ( <> {widget} - {!!showSessionTabs && } + {!!showSessionTabs && mode !== "edit" && } Date: Thu, 1 May 2025 15:19:45 -0700 Subject: [PATCH 051/110] feat: add `index.ts` to sdk --- .../clients/typescript/package-lock.json | 765 ++++++++++++++++++ packages/continue-sdk/package.json | 10 +- packages/continue-sdk/src/Assistant.ts | 23 +- packages/continue-sdk/src/Continue.ts | 8 +- .../continue-sdk/src/createOpenAIClient.ts | 4 +- packages/continue-sdk/src/index.ts | 2 + packages/continue-sdk/tsconfig.json | 10 +- 7 files changed, 802 insertions(+), 20 deletions(-) create mode 100644 packages/continue-sdk/clients/typescript/package-lock.json create mode 100644 packages/continue-sdk/src/index.ts diff --git a/packages/continue-sdk/clients/typescript/package-lock.json b/packages/continue-sdk/clients/typescript/package-lock.json new file mode 100644 index 000000000..1cd9c32d0 --- /dev/null +++ b/packages/continue-sdk/clients/typescript/package-lock.json @@ -0,0 +1,765 @@ +{ + "name": "@continuedev/sdk", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@continuedev/sdk", + "version": "0.0.1", + "devDependencies": { + "typescript": "^4.0 || ^5.0" + } + }, + "node_modules/@types/bluebird": { + "version": "3.5.42", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.42.tgz", + "integrity": "sha512-Jhy+MWRlro6UjVi578V/4ZGNfeCOcNCp0YaFNIUGFKlImowqwb1O/22wDVk3FDGMLqxdpOV3qQHD5fPEH4hK6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/caseless": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz", + "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/request": { + "version": "2.48.12", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz", + "integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/caseless": "*", + "@types/node": "*", + "@types/tough-cookie": "*", + "form-data": "^2.5.0" + } + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true, + "license": "MIT" + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", + "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", + "license": "MIT" + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "license": "BSD-3-Clause", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "license": "MIT" + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", + "license": "Apache-2.0" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", + "license": "MIT" + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "license": "MIT" + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.3.tgz", + "integrity": "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", + "license": "MIT" + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", + "license": "MIT" + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", + "license": "MIT" + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "license": "ISC" + }, + "node_modules/jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "license": "MIT" + }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", + "license": "Unlicense" + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + } + } +} diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index f7ec2733e..4c77733ed 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -2,6 +2,8 @@ "name": "@continuedev/sdk", "version": "0.0.1", "description": "SDK for Continue.dev", + "main": "dist/src/index.js", + "types": "dist/src/index.d.ts", "type": "module", "scripts": { "generate-client:typescript": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-fetch -o ./clients/typescript -c ./openapi-generator-config.json", @@ -9,7 +11,8 @@ "generate-client:ALL": "npm run generate-client:typescript && npm run generate-client:python", "swagger-ui": "node swagger-ui-server.js", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", - "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch" + "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch", + "build": "tsc" }, "author": "Continue Dev, Inc.", "license": "Apache-2.0", @@ -18,13 +21,16 @@ "@openapitools/openapi-generator-cli": "^2.19.1", "express": "^4.18.2", "openai": "^4.96.2", + "request": "^2.88.2", "swagger-ui-express": "^5.0.0" }, "devDependencies": { "@types/jest": "^29.5.12", + "@types/request": "^2.48.12", "dotenv": "^16.5.0", "jest": "^29.7.0", "npm": "^11.3.0", - "ts-jest": "^29.1.2" + "ts-jest": "^29.1.2", + "typescript": "^5.0.0" } } diff --git a/packages/continue-sdk/src/Assistant.ts b/packages/continue-sdk/src/Assistant.ts index c1d2519e5..25e4f766c 100644 --- a/packages/continue-sdk/src/Assistant.ts +++ b/packages/continue-sdk/src/Assistant.ts @@ -24,17 +24,23 @@ export class Assistant { * @param modelName - The name of the model to find * @returns The model configuration or the first model if no name is provided */ - getModel(modelName: string): any { - if (!this.config.models || !this.config.models.length) { + getModel(modelName?: string): string { + const firstModel = this.config?.models?.[0]; + + if (!this.config.models || !firstModel) { throw new Error("No models available in assistant configuration"); } + if (!modelName) { + return firstModel.model; + } + // Look for a model matching the provided name const model = this.config.models.find( - (m: any) => - m.model === modelName || - m.model.includes(modelName) || - m.model.endsWith(`/${modelName}`), + (m) => + m?.model === modelName || + m?.model.includes(modelName) || + m?.model.endsWith(`/${modelName}`), ); if (!model) { @@ -56,6 +62,9 @@ export class Assistant { return ""; } - return this.config.rules.join("\n"); + return this.config.rules + ?.filter((rule) => !!rule) + .map((rule) => (typeof rule === "string" ? rule : rule?.rule)) + .join("\n"); } } diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts index 21237c694..0c2bd27ca 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/src/Continue.ts @@ -1,9 +1,9 @@ import { decodePackageSlug } from "@continuedev/config-yaml"; import type { OpenAI } from "openai"; -import { Configuration } from "../clients/typescript/src"; -import { DefaultApi } from "../clients/typescript/src/apis/DefaultApi"; -import { Assistant } from "./Assistant"; -import { createOpenAIClient } from "./createOpenAIClient"; +import { DefaultApi } from "../clients/typescript/src/apis/DefaultApi.js"; +import { Configuration } from "../clients/typescript/src/index.js"; +import { Assistant } from "./Assistant.js"; +import { createOpenAIClient } from "./createOpenAIClient.js"; export interface ContinueClientOptions { /** diff --git a/packages/continue-sdk/src/createOpenAIClient.ts b/packages/continue-sdk/src/createOpenAIClient.ts index 4431de01d..cd3cd0ce5 100644 --- a/packages/continue-sdk/src/createOpenAIClient.ts +++ b/packages/continue-sdk/src/createOpenAIClient.ts @@ -2,7 +2,7 @@ import { AssistantUnrolled, ContinueProperties, } from "@continuedev/config-yaml"; -import fetch from "node-fetch"; +import fetch, { Response } from "node-fetch"; import OpenAI from "openai"; /** @@ -50,7 +50,7 @@ export function createOpenAIClient({ return new OpenAI({ apiKey, baseURL: new URL("model-proxy/v1/", baseURL).toString(), - fetch: async (url: RequestInfo, init?: RequestInit): Promise => { + fetch: async (url, init) => { // Clone the init object to avoid modifying the original const modifiedInit = init ? { ...init } : {}; diff --git a/packages/continue-sdk/src/index.ts b/packages/continue-sdk/src/index.ts new file mode 100644 index 000000000..adcacec55 --- /dev/null +++ b/packages/continue-sdk/src/index.ts @@ -0,0 +1,2 @@ +export * from "./Assistant.js"; +export * from "./Continue.js"; diff --git a/packages/continue-sdk/tsconfig.json b/packages/continue-sdk/tsconfig.json index ea9a79ab1..16525f795 100644 --- a/packages/continue-sdk/tsconfig.json +++ b/packages/continue-sdk/tsconfig.json @@ -1,14 +1,14 @@ { "compilerOptions": { - "target": "ES2020", - "module": "ESNext", - "moduleResolution": "node", + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "nodenext", "esModuleInterop": true, "strict": true, "outDir": "dist", "declaration": true, "types": ["node", "jest"] }, - "include": ["src/**/*", "tests/**/*"], + "include": ["src/**/*", "client/**/*"], "exclude": ["node_modules", "dist"] -} \ No newline at end of file +} From 09beb58260f32043c89cff39c6e8567f25099c9c Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 15:34:51 -0700 Subject: [PATCH 052/110] feat: working `copy-client` --- packages/continue-sdk/package.json | 10 ++++++++-- packages/continue-sdk/src/Continue.ts | 3 +-- packages/continue-sdk/tsconfig.json | 7 ++++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index 4c77733ed..56c854532 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -12,7 +12,10 @@ "swagger-ui": "node swagger-ui-server.js", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch", - "build": "tsc" + "prebuild": "rm -rf dist", + "build": "tsc && npm run copy-clients", + "copy-clients": "mkdir -p dist/clients && cp -r clients/typescript dist/clients/", + "prepublishOnly": "npm run build" }, "author": "Continue Dev, Inc.", "license": "Apache-2.0", @@ -32,5 +35,8 @@ "npm": "^11.3.0", "ts-jest": "^29.1.2", "typescript": "^5.0.0" - } + }, + "files": [ + "dist" + ] } diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/src/Continue.ts index 0c2bd27ca..593c97225 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/src/Continue.ts @@ -1,10 +1,9 @@ import { decodePackageSlug } from "@continuedev/config-yaml"; import type { OpenAI } from "openai"; import { DefaultApi } from "../clients/typescript/src/apis/DefaultApi.js"; -import { Configuration } from "../clients/typescript/src/index.js"; +import { Configuration } from "../clients/typescript/src/runtime.js"; import { Assistant } from "./Assistant.js"; import { createOpenAIClient } from "./createOpenAIClient.js"; - export interface ContinueClientOptions { /** * The assistant identifier in the format owner-slug/package-slug diff --git a/packages/continue-sdk/tsconfig.json b/packages/continue-sdk/tsconfig.json index 16525f795..a81e5fde7 100644 --- a/packages/continue-sdk/tsconfig.json +++ b/packages/continue-sdk/tsconfig.json @@ -7,8 +7,9 @@ "strict": true, "outDir": "dist", "declaration": true, - "types": ["node", "jest"] + "types": ["node", "jest"], + "skipLibCheck": true }, - "include": ["src/**/*", "client/**/*"], - "exclude": ["node_modules", "dist"] + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "clients"] } From 891e8b32ff6f77cb312b4bb016350852597a4291 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 16:21:43 -0700 Subject: [PATCH 053/110] red ghost text for apply --- .../vscode/src/diff/vertical/decorations.ts | 126 +++++++++++++++--- .../vscode/src/diff/vertical/handler.ts | 63 +++++---- 2 files changed, 136 insertions(+), 53 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/decorations.ts b/extensions/vscode/src/diff/vertical/decorations.ts index 5d3ae7525..c05e488e1 100644 --- a/extensions/vscode/src/diff/vertical/decorations.ts +++ b/extensions/vscode/src/diff/vertical/decorations.ts @@ -1,14 +1,19 @@ import * as vscode from "vscode"; -export const redDecorationType = vscode.window.createTextEditorDecorationType({ - isWholeLine: true, - backgroundColor: { id: "diffEditor.removedLineBackground" }, - color: "#808080", - outlineWidth: "1px", - outlineStyle: "solid", - outlineColor: { id: "diffEditor.removedTextBorder" }, - rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, -}); +export const redDecorationType = (line: string) => + vscode.window.createTextEditorDecorationType({ + isWholeLine: true, + backgroundColor: { id: "diffEditor.removedLineBackground" }, + // color: "#808080", + outlineWidth: "1px", + outlineStyle: "solid", + outlineColor: { id: "diffEditor.removedTextBorder" }, + rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, + after: { + contentText: line, + color: "#808080", + }, + }); export const greenDecorationType = vscode.window.createTextEditorDecorationType( { @@ -35,6 +40,13 @@ export const belowIndexDecorationType = rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, }); +function translateRange(range: vscode.Range, lineOffset: number): vscode.Range { + return new vscode.Range( + range.start.translate(lineOffset), + range.end.translate(lineOffset), + ); +} + export class DecorationTypeRangeManager { constructor( private decorationType: vscode.TextEditorDecorationType, @@ -82,20 +94,10 @@ export class DecorationTypeRangeManager { return this.ranges; } - private translateRange( - range: vscode.Range, - lineOffset: number, - ): vscode.Range { - return new vscode.Range( - range.start.translate(lineOffset), - range.end.translate(lineOffset), - ); - } - shiftDownAfterLine(afterLine: number, offset: number) { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].start.line >= afterLine) { - this.ranges[i] = this.translateRange(this.ranges[i], offset); + this.ranges[i] = translateRange(this.ranges[i], offset); } } this.editor.setDecorations(this.decorationType, this.ranges); @@ -109,3 +111,87 @@ export class DecorationTypeRangeManager { } } } + +export class RedDecorationsManager { + constructor(private editor: vscode.TextEditor) {} + + private ranges: { + range: vscode.Range; + decoration: vscode.TextEditorDecorationType; + }[] = []; + + applyToNewEditor(newEditor: vscode.TextEditor) { + this.editor = newEditor; + this.applyDecorations(); + } + + addLines(startIndex: number, lines: string[]) { + let i = 0; + for (const line of lines) { + this.ranges.push({ + range: new vscode.Range( + startIndex + i, + 0, + startIndex + i, + Number.MAX_SAFE_INTEGER, + ), + decoration: redDecorationType(line), + }); + i++; + } + this.applyDecorations(); + } + + addLine(index: number, line: string) { + this.addLines(index, [line]); + } + + private getDecorationsMap() { + const decorationsMap = new Map< + vscode.TextEditorDecorationType, + vscode.Range[] + >(); + for (const range of this.ranges) { + const ranges = decorationsMap.get(range.decoration) ?? []; + ranges.push(range.range); + decorationsMap.set(range.decoration, ranges); + } + return decorationsMap; + } + + applyDecorations() { + const decorationsMap = this.getDecorationsMap(); + for (const [decoration, ranges] of decorationsMap) { + this.editor.setDecorations(decoration, ranges); + } + } + + clear() { + const decorationsMap = this.getDecorationsMap(); + for (const [decoration, _] of decorationsMap) { + this.editor.setDecorations(decoration, []); + } + this.ranges = []; + } + + getRanges() { + return this.ranges.map((r) => r.range); + } + + shiftDownAfterLine(afterLine: number, offset: number) { + for (let i = 0; i < this.ranges.length; i++) { + if (this.ranges[i].range.start.line >= afterLine) { + this.ranges[i].range = translateRange(this.ranges[i].range, offset); + } + } + this.applyDecorations(); + } + + deleteRangeStartingAt(line: number) { + for (let i = 0; i < this.ranges.length; i++) { + if (this.ranges[i].range.start.line === line) { + return this.ranges.splice(i, 1)[0]; + } + } + } +} diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 2e90de6e6..2a9764bbd 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -4,10 +4,10 @@ import * as vscode from "vscode"; import { DecorationTypeRangeManager, + RedDecorationsManager, belowIndexDecorationType, greenDecorationType, indexDecorationType, - redDecorationType, } from "./decorations"; import type { ApplyState, DiffLine } from "core"; @@ -28,7 +28,7 @@ export class VerticalDiffHandler implements vscode.Disposable { private cancelled = false; private newLinesAdded = 0; private deletionBuffer: string[] = []; - private redDecorationManager: DecorationTypeRangeManager; + private redDecorationManager: RedDecorationsManager; private get fileUri() { return this.editor.document.uri.toString(); } @@ -56,10 +56,7 @@ export class VerticalDiffHandler implements vscode.Disposable { ) { this.currentLineIndex = startLine; - this.redDecorationManager = new DecorationTypeRangeManager( - redDecorationType, - this.editor, - ); + this.redDecorationManager = new RedDecorationsManager(this.editor); this.greenDecorationManager = new DecorationTypeRangeManager( greenDecorationType, @@ -86,8 +83,6 @@ export class VerticalDiffHandler implements vscode.Disposable { } private async insertDeletionBuffer() { - const totalDeletedContent = this.deletionBuffer.join("\n"); - if (this.deletionBuffer.length || this.insertedInCurrentBlock > 0) { const blocks = this.editorToVerticalDiffCodeLens.get(this.fileUri) || []; @@ -105,15 +100,15 @@ export class VerticalDiffHandler implements vscode.Disposable { return; } - // Insert the block of deleted lines + // Insert the block of deleted lines as empty new lines await this.insertTextAboveLine( this.currentLineIndex - this.insertedInCurrentBlock, - totalDeletedContent, + "\n".repeat(this.deletionBuffer.length), ); this.redDecorationManager.addLines( this.currentLineIndex - this.insertedInCurrentBlock, - this.deletionBuffer.length, + this.deletionBuffer, ); // Shift green decorations downward @@ -215,21 +210,21 @@ export class VerticalDiffHandler implements vscode.Disposable { this.editor.setDecorations(indexDecorationType, []); } - public getLineDeltaBeforeLine(line: number) { - // Returns the number of lines removed from a file when the diff currently active is closed - let totalLineDelta = 0; - for (const range of this.greenDecorationManager - .getRanges() - .sort((a, b) => a.start.line - b.start.line)) { - if (range.start.line > line) { - break; - } + // public getLineDeltaBeforeLine(line: number) { + // // Returns the number of lines removed from a file when the diff currently active is closed + // let totalLineDelta = 0; + // for (const range of this.greenDecorationManager + // .getRanges() + // .sort((a, b) => a.start.line - b.start.line)) { + // if (range.start.line > line) { + // break; + // } - totalLineDelta -= range.end.line - range.start.line + 1; - } + // totalLineDelta -= range.end.line - range.start.line + 1; + // } - return totalLineDelta; - } + // return totalLineDelta; + // } async clear(accept: boolean) { vscode.commands.executeCommand( @@ -500,15 +495,17 @@ export class VerticalDiffHandler implements vscode.Disposable { // ["A"] => "A" and ["A", ""] => "A\n" to be the same single line. // "A\n" and "A\n\n" are unambiguous. // - const oldFileContent = diffLines - .filter((line) => line.type === "same" || line.type === "old") - .map((line) => line.line) - .join("\n") + "\n"; + const oldFileContent = + diffLines + .filter((line) => line.type === "same" || line.type === "old") + .map((line) => line.line) + .join("\n") + "\n"; - const newFileContent = diffLines - .filter((line) => line.type === "same" || line.type === "new") - .map((line) => line.line) - .join("\n") + "\n"; + const newFileContent = + diffLines + .filter((line) => line.type === "same" || line.type === "new") + .map((line) => line.line) + .join("\n") + "\n"; const diffs = myersDiff(oldFileContent, newFileContent); @@ -531,7 +528,7 @@ export class VerticalDiffHandler implements vscode.Disposable { diffs.forEach((diff, index) => { if (diff.type === "old") { - this.redDecorationManager.addLine(this.startLine + index); + this.redDecorationManager.addLine(this.startLine + index, diff.line); numRed++; } else if (diff.type === "new") { this.greenDecorationManager.addLine(this.startLine + index); From b51905da95307ed17f3fa7a466e94514bcd4113a Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 16:45:37 -0700 Subject: [PATCH 054/110] feat: restructure for easier module publishing --- packages/continue-sdk/README.md | 30 +- .../clients/typescript/package-lock.json | 765 --- packages/continue-sdk/jest.config.js | 16 - .../openapi-generator-config.json | 2 +- packages/continue-sdk/package-lock.json | 202 +- packages/continue-sdk/package.json | 31 +- .../api}/.github/workflows/python.yml | 0 .../{clients/python => python/api}/.gitignore | 0 .../python => python/api}/.gitlab-ci.yml | 0 .../api}/.openapi-generator-ignore | 0 .../api}/.openapi-generator/FILES | 6 - .../api}/.openapi-generator/VERSION | 0 .../python => python/api}/.travis.yml | 0 .../{clients/python => python/api}/README.md | 0 .../python => python/api}/docs/DefaultApi.md | 0 .../docs/ListAssistants200ResponseInner.md | 0 ...tAssistants200ResponseInnerConfigResult.md | 0 .../api}/docs/ListAssistants401Response.md | 0 .../api}/docs/ListAssistants404Response.md | 0 .../python => python/api}/git_push.sh | 0 .../api}/openapi_client/__init__.py | 0 .../api}/openapi_client/api/__init__.py | 0 .../api}/openapi_client/api/default_api.py | 0 .../api}/openapi_client/api_client.py | 0 .../api}/openapi_client/api_response.py | 0 .../api}/openapi_client/configuration.py | 0 .../api}/openapi_client/exceptions.py | 0 .../api}/openapi_client/models/__init__.py | 0 .../list_assistants200_response_inner.py | 0 ...istants200_response_inner_config_result.py | 0 .../models/list_assistants401_response.py | 0 .../models/list_assistants404_response.py | 0 .../api}/openapi_client/py.typed | 0 .../api}/openapi_client/rest.py | 0 .../python => python/api}/pyproject.toml | 0 .../python => python/api}/requirements.txt | 0 .../{clients/python => python/api}/setup.cfg | 0 .../{clients/python => python/api}/setup.py | 0 .../api}/test-requirements.txt | 0 .../python => python/api}/test/__init__.py | 0 .../api}/test/test_default_api.py | 0 .../test_list_assistants200_response_inner.py | 0 ...istants200_response_inner_config_result.py | 0 .../test/test_list_assistants401_response.py | 0 .../test/test_list_assistants404_response.py | 0 .../{clients/python => python/api}/tox.ini | 0 packages/continue-sdk/tsconfig.json | 2 +- .../{ => typescript}/.env.example | 0 packages/continue-sdk/typescript/README.md | 55 + .../typescript => typescript/api}/.gitignore | 0 .../typescript => typescript/api}/.npmignore | 0 .../api}/.openapi-generator-ignore | 0 .../api}/.openapi-generator/FILES | 1 - .../api}/.openapi-generator/VERSION | 0 .../typescript => typescript/api}/README.md | 4 +- .../api}/package.json | 4 +- .../api}/src/apis/DefaultApi.ts | 0 .../api}/src/apis/index.ts | 0 .../api}/src/index.ts | 0 .../models/ListAssistants200ResponseInner.ts | 0 ...tAssistants200ResponseInnerConfigResult.ts | 0 .../src/models/ListAssistants401Response.ts | 0 .../src/models/ListAssistants404Response.ts | 0 .../api}/src/models/index.ts | 0 .../api}/src/runtime.ts | 0 .../api}/tsconfig.esm.json | 0 .../api}/tsconfig.json | 0 .../continue-sdk/typescript/jest.config.js | 17 + .../continue-sdk/typescript/package-lock.json | 4292 +++++++++++++++++ packages/continue-sdk/typescript/package.json | 29 + .../{ => typescript}/src/Assistant.ts | 0 .../{ => typescript}/src/Continue.ts | 3 +- .../src/createOpenAIClient.ts | 0 .../{ => typescript}/src/index.ts | 0 .../{ => typescript}/tests/continue.test.ts | 4 +- .../continue-sdk/typescript/tsconfig.json | 16 + 76 files changed, 4494 insertions(+), 985 deletions(-) delete mode 100644 packages/continue-sdk/clients/typescript/package-lock.json delete mode 100644 packages/continue-sdk/jest.config.js rename packages/continue-sdk/{clients/python => python/api}/.github/workflows/python.yml (100%) rename packages/continue-sdk/{clients/python => python/api}/.gitignore (100%) rename packages/continue-sdk/{clients/python => python/api}/.gitlab-ci.yml (100%) rename packages/continue-sdk/{clients/python => python/api}/.openapi-generator-ignore (100%) rename packages/continue-sdk/{clients/python => python/api}/.openapi-generator/FILES (78%) rename packages/continue-sdk/{clients/python => python/api}/.openapi-generator/VERSION (100%) rename packages/continue-sdk/{clients/python => python/api}/.travis.yml (100%) rename packages/continue-sdk/{clients/python => python/api}/README.md (100%) rename packages/continue-sdk/{clients/python => python/api}/docs/DefaultApi.md (100%) rename packages/continue-sdk/{clients/python => python/api}/docs/ListAssistants200ResponseInner.md (100%) rename packages/continue-sdk/{clients/python => python/api}/docs/ListAssistants200ResponseInnerConfigResult.md (100%) rename packages/continue-sdk/{clients/python => python/api}/docs/ListAssistants401Response.md (100%) rename packages/continue-sdk/{clients/python => python/api}/docs/ListAssistants404Response.md (100%) rename packages/continue-sdk/{clients/python => python/api}/git_push.sh (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/__init__.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/api/__init__.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/api/default_api.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/api_client.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/api_response.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/configuration.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/exceptions.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/models/__init__.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/models/list_assistants200_response_inner.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/models/list_assistants200_response_inner_config_result.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/models/list_assistants401_response.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/models/list_assistants404_response.py (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/py.typed (100%) rename packages/continue-sdk/{clients/python => python/api}/openapi_client/rest.py (100%) rename packages/continue-sdk/{clients/python => python/api}/pyproject.toml (100%) rename packages/continue-sdk/{clients/python => python/api}/requirements.txt (100%) rename packages/continue-sdk/{clients/python => python/api}/setup.cfg (100%) rename packages/continue-sdk/{clients/python => python/api}/setup.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test-requirements.txt (100%) rename packages/continue-sdk/{clients/python => python/api}/test/__init__.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test/test_default_api.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test/test_list_assistants200_response_inner.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test/test_list_assistants200_response_inner_config_result.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test/test_list_assistants401_response.py (100%) rename packages/continue-sdk/{clients/python => python/api}/test/test_list_assistants404_response.py (100%) rename packages/continue-sdk/{clients/python => python/api}/tox.ini (100%) rename packages/continue-sdk/{ => typescript}/.env.example (100%) create mode 100644 packages/continue-sdk/typescript/README.md rename packages/continue-sdk/{clients/typescript => typescript/api}/.gitignore (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/.npmignore (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/.openapi-generator-ignore (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/.openapi-generator/FILES (93%) rename packages/continue-sdk/{clients/typescript => typescript/api}/.openapi-generator/VERSION (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/README.md (92%) rename packages/continue-sdk/{clients/typescript => typescript/api}/package.json (82%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/apis/DefaultApi.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/apis/index.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/index.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/models/ListAssistants200ResponseInner.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/models/ListAssistants200ResponseInnerConfigResult.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/models/ListAssistants401Response.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/models/ListAssistants404Response.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/models/index.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/src/runtime.ts (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/tsconfig.esm.json (100%) rename packages/continue-sdk/{clients/typescript => typescript/api}/tsconfig.json (100%) create mode 100644 packages/continue-sdk/typescript/jest.config.js create mode 100644 packages/continue-sdk/typescript/package-lock.json create mode 100644 packages/continue-sdk/typescript/package.json rename packages/continue-sdk/{ => typescript}/src/Assistant.ts (100%) rename packages/continue-sdk/{ => typescript}/src/Continue.ts (94%) rename packages/continue-sdk/{ => typescript}/src/createOpenAIClient.ts (100%) rename packages/continue-sdk/{ => typescript}/src/index.ts (100%) rename packages/continue-sdk/{ => typescript}/tests/continue.test.ts (94%) create mode 100644 packages/continue-sdk/typescript/tsconfig.json diff --git a/packages/continue-sdk/README.md b/packages/continue-sdk/README.md index 66b6532f1..0c8a32ad4 100644 --- a/packages/continue-sdk/README.md +++ b/packages/continue-sdk/README.md @@ -1,15 +1,33 @@ # @continuedev/sdk -> **⚠️ EXPERIMENTAL: This package is in early development and subject to frequent breaking changes without notice.** +This SDK provides programmatic access to Continue's Hub APIs and functionality. -This SDK provides programmatic access to Continue's APIs and functionality. +## Overview -## Status +The Continue SDK is structured into separate language-specific packages, currently with implementations for TypeScript and Python, with more languages planned for the future: -This package is currently in early development and is considered **experimental**. It is not recommended for production use. The API surface, functionality, and implementation are subject to change at any time without prior notice or deprecation period. +- **TypeScript SDK**: Located in the `/typescript` directory, providing a drop-in replacement for OpenAI's TypeScript client libraries +- **Python SDK**: Located in the `/python` directory, providing a drop-in replacement for OpenAI's Python client libraries +- **Additional languages**: More language implementations are planned to be added in the future +Each package includes: -## Development +1. OpenAPI-generated clients for the Continue Hub API +2. A wrapper layer that exposes a `Continue.from()` method to easily initialize and use Continue assistants with an OpenAI-compatible interface + +## For End Users + +End users should install the published packages directly: + +- For TypeScript/JavaScript: `npm install @continuedev/sdk` +- For Python: `pip install continuedev` +- For other languages: Check back for new language support + +Each published package includes its own documentation. + +## For Developers + +### Development ```bash # Install dependencies @@ -20,4 +38,4 @@ npm run generate-client:ALL # Start Swagger UI for API exploration npm run swagger-ui -``` \ No newline at end of file +``` diff --git a/packages/continue-sdk/clients/typescript/package-lock.json b/packages/continue-sdk/clients/typescript/package-lock.json deleted file mode 100644 index 1cd9c32d0..000000000 --- a/packages/continue-sdk/clients/typescript/package-lock.json +++ /dev/null @@ -1,765 +0,0 @@ -{ - "name": "@continuedev/sdk", - "version": "0.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@continuedev/sdk", - "version": "0.0.1", - "devDependencies": { - "typescript": "^4.0 || ^5.0" - } - }, - "node_modules/@types/bluebird": { - "version": "3.5.42", - "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.42.tgz", - "integrity": "sha512-Jhy+MWRlro6UjVi578V/4ZGNfeCOcNCp0YaFNIUGFKlImowqwb1O/22wDVk3FDGMLqxdpOV3qQHD5fPEH4hK6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/caseless": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz", - "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/request": { - "version": "2.48.12", - "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz", - "integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/caseless": "*", - "@types/node": "*", - "@types/tough-cookie": "*", - "form-data": "^2.5.0" - } - }, - "node_modules/@types/tough-cookie": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", - "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", - "dev": true, - "license": "MIT" - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "license": "MIT", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/aws4": { - "version": "1.13.2", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", - "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", - "license": "MIT" - }, - "node_modules/bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", - "license": "BSD-3-Clause", - "dependencies": { - "tweetnacl": "^0.14.3" - } - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "license": "MIT" - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "license": "Apache-2.0" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", - "license": "MIT" - }, - "node_modules/dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", - "license": "MIT", - "dependencies": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "license": "MIT" - }, - "node_modules/extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT" - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" - }, - "node_modules/forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/form-data": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.3.tgz", - "integrity": "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", - "license": "ISC", - "engines": { - "node": ">=4" - } - }, - "node_modules/har-validator": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", - "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", - "deprecated": "this library is no longer supported", - "license": "MIT", - "dependencies": { - "ajv": "^6.12.3", - "har-schema": "^2.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - }, - "engines": { - "node": ">=0.8", - "npm": ">=1.3.7" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", - "license": "MIT" - }, - "node_modules/isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", - "license": "MIT" - }, - "node_modules/jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "license": "MIT" - }, - "node_modules/json-schema": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", - "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", - "license": "(AFL-2.1 OR BSD-3-Clause)" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "license": "ISC" - }, - "node_modules/jsprim": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", - "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", - "license": "MIT", - "dependencies": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.4.0", - "verror": "1.10.0" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/oauth-sign": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", - "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", - "license": "Apache-2.0", - "engines": { - "node": "*" - } - }, - "node_modules/performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", - "license": "MIT" - }, - "node_modules/psl": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", - "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", - "license": "MIT", - "dependencies": { - "punycode": "^2.3.1" - }, - "funding": { - "url": "https://github.com/sponsors/lupomontero" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", - "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", - "license": "Apache-2.0", - "dependencies": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/request/node_modules/form-data": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", - "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.6", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "license": "MIT" - }, - "node_modules/sshpk": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", - "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", - "license": "MIT", - "dependencies": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - }, - "bin": { - "sshpk-conv": "bin/sshpk-conv", - "sshpk-sign": "bin/sshpk-sign", - "sshpk-verify": "bin/sshpk-verify" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "license": "BSD-3-Clause", - "dependencies": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "license": "Unlicense" - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "license": "MIT", - "bin": { - "uuid": "bin/uuid" - } - }, - "node_modules/verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", - "engines": [ - "node >=0.6.0" - ], - "license": "MIT", - "dependencies": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - } - } -} diff --git a/packages/continue-sdk/jest.config.js b/packages/continue-sdk/jest.config.js deleted file mode 100644 index 924960d92..000000000 --- a/packages/continue-sdk/jest.config.js +++ /dev/null @@ -1,16 +0,0 @@ -export default { - preset: 'ts-jest', - testEnvironment: 'node', - extensionsToTreatAsEsm: ['.ts'], - moduleNameMapper: { - '^(\\.{1,2}/.*)\\.js$': '$1', - }, - transform: { - '^.+\\.tsx?$': [ - 'ts-jest', - { - useESM: true, - }, - ], - }, -}; \ No newline at end of file diff --git a/packages/continue-sdk/openapi-generator-config.json b/packages/continue-sdk/openapi-generator-config.json index c7600d13b..60a769472 100644 --- a/packages/continue-sdk/openapi-generator-config.json +++ b/packages/continue-sdk/openapi-generator-config.json @@ -4,7 +4,7 @@ "enumPropertyNaming": "UPPERCASE", "apiPackage": "api", "modelPackage": "models", - "npmName": "@continuedev/sdk", + "npmName": "@continuedev/hub-api", "npmVersion": "0.0.1", "withInterfaces": true, "nullSafeAdditionalProps": true, diff --git a/packages/continue-sdk/package-lock.json b/packages/continue-sdk/package-lock.json index 1b6876453..5bc77f90f 100644 --- a/packages/continue-sdk/package-lock.json +++ b/packages/continue-sdk/package-lock.json @@ -1,26 +1,27 @@ { - "name": "@continuedev/sdk", + "name": "@continuedev/sdk-generator", "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@continuedev/sdk", + "name": "@continuedev/sdk-generator", "version": "0.0.1", "license": "Apache-2.0", "dependencies": { "@continuedev/config-yaml": "file:../config-yaml", "@openapitools/openapi-generator-cli": "^2.19.1", "express": "^4.18.2", - "openai": "^4.96.2", "swagger-ui-express": "^5.0.0" }, "devDependencies": { "@types/jest": "^29.5.12", + "@types/request": "^2.48.12", "dotenv": "^16.5.0", "jest": "^29.7.0", "npm": "^11.3.0", - "ts-jest": "^29.1.2" + "ts-jest": "^29.1.2", + "typescript": "^5.0.0" } }, "../config-yaml": { @@ -1285,6 +1286,13 @@ "@babel/types": "^7.20.7" } }, + "node_modules/@types/caseless": { + "version": "0.12.5", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.5.tgz", + "integrity": "sha512-hWtVTC2q7hc7xZ/RLbxapMvDMgUnDvKvMOpKal4DrMyfGBUfB1oKaZlIRr6mJL+If3bAP6sV/QneGzF6tJjZDg==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -1337,19 +1345,40 @@ "version": "22.15.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==", + "dev": true, "license": "MIT", "dependencies": { "undici-types": "~6.21.0" } }, - "node_modules/@types/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "node_modules/@types/request": { + "version": "2.48.12", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.12.tgz", + "integrity": "sha512-G3sY+NpsA9jnwm0ixhAFQSJ3Q9JkpLZpJbI3GMv0mIAT0y3mRabYeINzal5WOChIiaTEGQYlHOKgkaM9EisWHw==", + "dev": true, "license": "MIT", "dependencies": { + "@types/caseless": "*", "@types/node": "*", - "form-data": "^4.0.0" + "@types/tough-cookie": "*", + "form-data": "^2.5.0" + } + }, + "node_modules/@types/request/node_modules/form-data": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.3.tgz", + "integrity": "sha512-XHIrMD0NpDrNM/Ckf7XJiBbLl57KEhT3+i3yY+eWm+cqYZJQTZrKo8Y8AWKnuV5GT4scfuUGt9LzNoIx3dU1nQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.35", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.12" } }, "node_modules/@types/stack-utils": { @@ -1359,6 +1388,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/yargs": { "version": "17.0.33", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", @@ -1376,18 +1412,6 @@ "dev": true, "license": "MIT" }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", @@ -1408,18 +1432,6 @@ "node": ">= 14" } }, - "node_modules/agentkeepalive": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", - "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", - "license": "MIT", - "dependencies": { - "humanize-ms": "^1.2.1" - }, - "engines": { - "node": ">= 8.0.0" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -2562,15 +2574,6 @@ "node": ">= 0.6" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", @@ -2868,25 +2871,6 @@ "node": ">= 6" } }, - "node_modules/form-data-encoder": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", - "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", - "license": "MIT" - }, - "node_modules/formdata-node": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", - "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", - "license": "MIT", - "dependencies": { - "node-domexception": "1.0.0", - "web-streams-polyfill": "4.0.0-beta.3" - }, - "engines": { - "node": ">= 12.20" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -3176,15 +3160,6 @@ "node": ">=10.17.0" } }, - "node_modules/humanize-ms": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.0.0" - } - }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -4620,26 +4595,6 @@ "node": ">= 0.4.0" } }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "deprecated": "Use your platform's native DOMException instead", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "engines": { - "node": ">=10.5.0" - } - }, "node_modules/node-fetch": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", @@ -7416,51 +7371,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/openai": { - "version": "4.96.2", - "resolved": "https://registry.npmjs.org/openai/-/openai-4.96.2.tgz", - "integrity": "sha512-R2XnxvMsizkROr7BV3uNp1q/3skwPZ7fmPjO1bXLnfB4Tu5xKxrT1EVwzjhxn0MZKBKAvOaGWS63jTMN6KrIXA==", - "license": "Apache-2.0", - "dependencies": { - "@types/node": "^18.11.18", - "@types/node-fetch": "^2.6.4", - "abort-controller": "^3.0.0", - "agentkeepalive": "^4.2.1", - "form-data-encoder": "1.7.2", - "formdata-node": "^4.3.2", - "node-fetch": "^2.6.7" - }, - "bin": { - "openai": "bin/cli" - }, - "peerDependencies": { - "ws": "^8.18.0", - "zod": "^3.23.8" - }, - "peerDependenciesMeta": { - "ws": { - "optional": true - }, - "zod": { - "optional": true - } - } - }, - "node_modules/openai/node_modules/@types/node": { - "version": "18.19.87", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.87.tgz", - "integrity": "sha512-OIAAu6ypnVZHmsHCeJ+7CCSub38QNBS9uceMQeg7K5Ur0Jr+wG9wEOEvvMbhp09pxD5czIUy/jND7s7Tb6Nw7A==", - "license": "MIT", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/openai/node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "license": "MIT" - }, "node_modules/ora": { "version": "5.4.1", "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", @@ -8695,7 +8605,6 @@ "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, "license": "Apache-2.0", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -8730,6 +8639,7 @@ "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, "license": "MIT" }, "node_modules/universalify": { @@ -8833,15 +8743,6 @@ "defaults": "^1.0.3" } }, - "node_modules/web-streams-polyfill": { - "version": "4.0.0-beta.3", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", - "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", - "license": "MIT", - "engines": { - "node": ">= 14" - } - }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -8958,17 +8859,6 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } - }, - "node_modules/zod": { - "version": "3.24.3", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.24.3.tgz", - "integrity": "sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==", - "license": "MIT", - "optional": true, - "peer": true, - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } } } } diff --git a/packages/continue-sdk/package.json b/packages/continue-sdk/package.json index 56c854532..1a450621e 100644 --- a/packages/continue-sdk/package.json +++ b/packages/continue-sdk/package.json @@ -1,21 +1,13 @@ { - "name": "@continuedev/sdk", + "name": "@continuedev/sdk-generator", "version": "0.0.1", - "description": "SDK for Continue.dev", - "main": "dist/src/index.js", - "types": "dist/src/index.d.ts", + "description": "SDK Generator for Continue.dev", "type": "module", "scripts": { - "generate-client:typescript": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-fetch -o ./clients/typescript -c ./openapi-generator-config.json", - "generate-client:python": "openapi-generator-cli generate -i ./openapi.yaml -g python -o ./clients/python -c ./openapi-generator-config.json", + "generate-client:typescript": "openapi-generator-cli generate -i ./openapi.yaml -g typescript-fetch -o ./typescript/api -c ./openapi-generator-config.json", + "generate-client:python": "openapi-generator-cli generate -i ./openapi.yaml -g python -o ./python/api -c ./openapi-generator-config.json", "generate-client:ALL": "npm run generate-client:typescript && npm run generate-client:python", - "swagger-ui": "node swagger-ui-server.js", - "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", - "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch", - "prebuild": "rm -rf dist", - "build": "tsc && npm run copy-clients", - "copy-clients": "mkdir -p dist/clients && cp -r clients/typescript dist/clients/", - "prepublishOnly": "npm run build" + "swagger-ui": "node swagger-ui-server.js" }, "author": "Continue Dev, Inc.", "license": "Apache-2.0", @@ -23,20 +15,9 @@ "@continuedev/config-yaml": "file:../config-yaml", "@openapitools/openapi-generator-cli": "^2.19.1", "express": "^4.18.2", - "openai": "^4.96.2", - "request": "^2.88.2", "swagger-ui-express": "^5.0.0" }, "devDependencies": { - "@types/jest": "^29.5.12", - "@types/request": "^2.48.12", - "dotenv": "^16.5.0", - "jest": "^29.7.0", - "npm": "^11.3.0", - "ts-jest": "^29.1.2", "typescript": "^5.0.0" - }, - "files": [ - "dist" - ] + } } diff --git a/packages/continue-sdk/clients/python/.github/workflows/python.yml b/packages/continue-sdk/python/api/.github/workflows/python.yml similarity index 100% rename from packages/continue-sdk/clients/python/.github/workflows/python.yml rename to packages/continue-sdk/python/api/.github/workflows/python.yml diff --git a/packages/continue-sdk/clients/python/.gitignore b/packages/continue-sdk/python/api/.gitignore similarity index 100% rename from packages/continue-sdk/clients/python/.gitignore rename to packages/continue-sdk/python/api/.gitignore diff --git a/packages/continue-sdk/clients/python/.gitlab-ci.yml b/packages/continue-sdk/python/api/.gitlab-ci.yml similarity index 100% rename from packages/continue-sdk/clients/python/.gitlab-ci.yml rename to packages/continue-sdk/python/api/.gitlab-ci.yml diff --git a/packages/continue-sdk/clients/python/.openapi-generator-ignore b/packages/continue-sdk/python/api/.openapi-generator-ignore similarity index 100% rename from packages/continue-sdk/clients/python/.openapi-generator-ignore rename to packages/continue-sdk/python/api/.openapi-generator-ignore diff --git a/packages/continue-sdk/clients/python/.openapi-generator/FILES b/packages/continue-sdk/python/api/.openapi-generator/FILES similarity index 78% rename from packages/continue-sdk/clients/python/.openapi-generator/FILES rename to packages/continue-sdk/python/api/.openapi-generator/FILES index c5f2b42f3..641b0db00 100644 --- a/packages/continue-sdk/clients/python/.openapi-generator/FILES +++ b/packages/continue-sdk/python/api/.openapi-generator/FILES @@ -1,7 +1,6 @@ .github/workflows/python.yml .gitignore .gitlab-ci.yml -.openapi-generator-ignore .travis.yml README.md docs/DefaultApi.md @@ -30,9 +29,4 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_default_api.py -test/test_list_assistants200_response_inner.py -test/test_list_assistants200_response_inner_config_result.py -test/test_list_assistants401_response.py -test/test_list_assistants404_response.py tox.ini diff --git a/packages/continue-sdk/clients/python/.openapi-generator/VERSION b/packages/continue-sdk/python/api/.openapi-generator/VERSION similarity index 100% rename from packages/continue-sdk/clients/python/.openapi-generator/VERSION rename to packages/continue-sdk/python/api/.openapi-generator/VERSION diff --git a/packages/continue-sdk/clients/python/.travis.yml b/packages/continue-sdk/python/api/.travis.yml similarity index 100% rename from packages/continue-sdk/clients/python/.travis.yml rename to packages/continue-sdk/python/api/.travis.yml diff --git a/packages/continue-sdk/clients/python/README.md b/packages/continue-sdk/python/api/README.md similarity index 100% rename from packages/continue-sdk/clients/python/README.md rename to packages/continue-sdk/python/api/README.md diff --git a/packages/continue-sdk/clients/python/docs/DefaultApi.md b/packages/continue-sdk/python/api/docs/DefaultApi.md similarity index 100% rename from packages/continue-sdk/clients/python/docs/DefaultApi.md rename to packages/continue-sdk/python/api/docs/DefaultApi.md diff --git a/packages/continue-sdk/clients/python/docs/ListAssistants200ResponseInner.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md similarity index 100% rename from packages/continue-sdk/clients/python/docs/ListAssistants200ResponseInner.md rename to packages/continue-sdk/python/api/docs/ListAssistants200ResponseInner.md diff --git a/packages/continue-sdk/clients/python/docs/ListAssistants200ResponseInnerConfigResult.md b/packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md similarity index 100% rename from packages/continue-sdk/clients/python/docs/ListAssistants200ResponseInnerConfigResult.md rename to packages/continue-sdk/python/api/docs/ListAssistants200ResponseInnerConfigResult.md diff --git a/packages/continue-sdk/clients/python/docs/ListAssistants401Response.md b/packages/continue-sdk/python/api/docs/ListAssistants401Response.md similarity index 100% rename from packages/continue-sdk/clients/python/docs/ListAssistants401Response.md rename to packages/continue-sdk/python/api/docs/ListAssistants401Response.md diff --git a/packages/continue-sdk/clients/python/docs/ListAssistants404Response.md b/packages/continue-sdk/python/api/docs/ListAssistants404Response.md similarity index 100% rename from packages/continue-sdk/clients/python/docs/ListAssistants404Response.md rename to packages/continue-sdk/python/api/docs/ListAssistants404Response.md diff --git a/packages/continue-sdk/clients/python/git_push.sh b/packages/continue-sdk/python/api/git_push.sh similarity index 100% rename from packages/continue-sdk/clients/python/git_push.sh rename to packages/continue-sdk/python/api/git_push.sh diff --git a/packages/continue-sdk/clients/python/openapi_client/__init__.py b/packages/continue-sdk/python/api/openapi_client/__init__.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/__init__.py rename to packages/continue-sdk/python/api/openapi_client/__init__.py diff --git a/packages/continue-sdk/clients/python/openapi_client/api/__init__.py b/packages/continue-sdk/python/api/openapi_client/api/__init__.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/api/__init__.py rename to packages/continue-sdk/python/api/openapi_client/api/__init__.py diff --git a/packages/continue-sdk/clients/python/openapi_client/api/default_api.py b/packages/continue-sdk/python/api/openapi_client/api/default_api.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/api/default_api.py rename to packages/continue-sdk/python/api/openapi_client/api/default_api.py diff --git a/packages/continue-sdk/clients/python/openapi_client/api_client.py b/packages/continue-sdk/python/api/openapi_client/api_client.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/api_client.py rename to packages/continue-sdk/python/api/openapi_client/api_client.py diff --git a/packages/continue-sdk/clients/python/openapi_client/api_response.py b/packages/continue-sdk/python/api/openapi_client/api_response.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/api_response.py rename to packages/continue-sdk/python/api/openapi_client/api_response.py diff --git a/packages/continue-sdk/clients/python/openapi_client/configuration.py b/packages/continue-sdk/python/api/openapi_client/configuration.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/configuration.py rename to packages/continue-sdk/python/api/openapi_client/configuration.py diff --git a/packages/continue-sdk/clients/python/openapi_client/exceptions.py b/packages/continue-sdk/python/api/openapi_client/exceptions.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/exceptions.py rename to packages/continue-sdk/python/api/openapi_client/exceptions.py diff --git a/packages/continue-sdk/clients/python/openapi_client/models/__init__.py b/packages/continue-sdk/python/api/openapi_client/models/__init__.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/models/__init__.py rename to packages/continue-sdk/python/api/openapi_client/models/__init__.py diff --git a/packages/continue-sdk/clients/python/openapi_client/models/list_assistants200_response_inner.py b/packages/continue-sdk/python/api/openapi_client/models/list_assistants200_response_inner.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/models/list_assistants200_response_inner.py rename to packages/continue-sdk/python/api/openapi_client/models/list_assistants200_response_inner.py diff --git a/packages/continue-sdk/clients/python/openapi_client/models/list_assistants200_response_inner_config_result.py b/packages/continue-sdk/python/api/openapi_client/models/list_assistants200_response_inner_config_result.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/models/list_assistants200_response_inner_config_result.py rename to packages/continue-sdk/python/api/openapi_client/models/list_assistants200_response_inner_config_result.py diff --git a/packages/continue-sdk/clients/python/openapi_client/models/list_assistants401_response.py b/packages/continue-sdk/python/api/openapi_client/models/list_assistants401_response.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/models/list_assistants401_response.py rename to packages/continue-sdk/python/api/openapi_client/models/list_assistants401_response.py diff --git a/packages/continue-sdk/clients/python/openapi_client/models/list_assistants404_response.py b/packages/continue-sdk/python/api/openapi_client/models/list_assistants404_response.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/models/list_assistants404_response.py rename to packages/continue-sdk/python/api/openapi_client/models/list_assistants404_response.py diff --git a/packages/continue-sdk/clients/python/openapi_client/py.typed b/packages/continue-sdk/python/api/openapi_client/py.typed similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/py.typed rename to packages/continue-sdk/python/api/openapi_client/py.typed diff --git a/packages/continue-sdk/clients/python/openapi_client/rest.py b/packages/continue-sdk/python/api/openapi_client/rest.py similarity index 100% rename from packages/continue-sdk/clients/python/openapi_client/rest.py rename to packages/continue-sdk/python/api/openapi_client/rest.py diff --git a/packages/continue-sdk/clients/python/pyproject.toml b/packages/continue-sdk/python/api/pyproject.toml similarity index 100% rename from packages/continue-sdk/clients/python/pyproject.toml rename to packages/continue-sdk/python/api/pyproject.toml diff --git a/packages/continue-sdk/clients/python/requirements.txt b/packages/continue-sdk/python/api/requirements.txt similarity index 100% rename from packages/continue-sdk/clients/python/requirements.txt rename to packages/continue-sdk/python/api/requirements.txt diff --git a/packages/continue-sdk/clients/python/setup.cfg b/packages/continue-sdk/python/api/setup.cfg similarity index 100% rename from packages/continue-sdk/clients/python/setup.cfg rename to packages/continue-sdk/python/api/setup.cfg diff --git a/packages/continue-sdk/clients/python/setup.py b/packages/continue-sdk/python/api/setup.py similarity index 100% rename from packages/continue-sdk/clients/python/setup.py rename to packages/continue-sdk/python/api/setup.py diff --git a/packages/continue-sdk/clients/python/test-requirements.txt b/packages/continue-sdk/python/api/test-requirements.txt similarity index 100% rename from packages/continue-sdk/clients/python/test-requirements.txt rename to packages/continue-sdk/python/api/test-requirements.txt diff --git a/packages/continue-sdk/clients/python/test/__init__.py b/packages/continue-sdk/python/api/test/__init__.py similarity index 100% rename from packages/continue-sdk/clients/python/test/__init__.py rename to packages/continue-sdk/python/api/test/__init__.py diff --git a/packages/continue-sdk/clients/python/test/test_default_api.py b/packages/continue-sdk/python/api/test/test_default_api.py similarity index 100% rename from packages/continue-sdk/clients/python/test/test_default_api.py rename to packages/continue-sdk/python/api/test/test_default_api.py diff --git a/packages/continue-sdk/clients/python/test/test_list_assistants200_response_inner.py b/packages/continue-sdk/python/api/test/test_list_assistants200_response_inner.py similarity index 100% rename from packages/continue-sdk/clients/python/test/test_list_assistants200_response_inner.py rename to packages/continue-sdk/python/api/test/test_list_assistants200_response_inner.py diff --git a/packages/continue-sdk/clients/python/test/test_list_assistants200_response_inner_config_result.py b/packages/continue-sdk/python/api/test/test_list_assistants200_response_inner_config_result.py similarity index 100% rename from packages/continue-sdk/clients/python/test/test_list_assistants200_response_inner_config_result.py rename to packages/continue-sdk/python/api/test/test_list_assistants200_response_inner_config_result.py diff --git a/packages/continue-sdk/clients/python/test/test_list_assistants401_response.py b/packages/continue-sdk/python/api/test/test_list_assistants401_response.py similarity index 100% rename from packages/continue-sdk/clients/python/test/test_list_assistants401_response.py rename to packages/continue-sdk/python/api/test/test_list_assistants401_response.py diff --git a/packages/continue-sdk/clients/python/test/test_list_assistants404_response.py b/packages/continue-sdk/python/api/test/test_list_assistants404_response.py similarity index 100% rename from packages/continue-sdk/clients/python/test/test_list_assistants404_response.py rename to packages/continue-sdk/python/api/test/test_list_assistants404_response.py diff --git a/packages/continue-sdk/clients/python/tox.ini b/packages/continue-sdk/python/api/tox.ini similarity index 100% rename from packages/continue-sdk/clients/python/tox.ini rename to packages/continue-sdk/python/api/tox.ini diff --git a/packages/continue-sdk/tsconfig.json b/packages/continue-sdk/tsconfig.json index a81e5fde7..9a7c235eb 100644 --- a/packages/continue-sdk/tsconfig.json +++ b/packages/continue-sdk/tsconfig.json @@ -11,5 +11,5 @@ "skipLibCheck": true }, "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "clients"] + "exclude": ["node_modules", "dist", "typescript"] } diff --git a/packages/continue-sdk/.env.example b/packages/continue-sdk/typescript/.env.example similarity index 100% rename from packages/continue-sdk/.env.example rename to packages/continue-sdk/typescript/.env.example diff --git a/packages/continue-sdk/typescript/README.md b/packages/continue-sdk/typescript/README.md new file mode 100644 index 000000000..10ac84e70 --- /dev/null +++ b/packages/continue-sdk/typescript/README.md @@ -0,0 +1,55 @@ +# @continuedev/sdk + +The official TypeScript SDK for [Continue](https://continue.dev), providing a drop-in replacement for OpenAI libraries to easily integrate with Continue assistants. + +## Installation + +```bash +npm install @continuedev/sdk +``` + +## Usage + +The SDK provides a `Continue.from()` method that initializes an assistant and returns a client you can use as a drop-in replacement for the OpenAI SDK: + +```typescript +import { Continue } from "@continuedev/sdk"; + +// Initialize the Continue client with your API key and assistant +const { client, assistant } = await Continue.from({ + apiKey: process.env.CONTINUE_API_KEY, + assistant: "owner-slug/assistant-slug", // The assistant identifier +}); + +// Use the client just like the OpenAI SDK +const response = await client.chat.completions.create({ + model: assistant.getModel("claude-3-7-sonnet-latest"), // Use the assistant's model + messages: [ + { role: "system", content: assistant.systemMessage }, // Use the assistant's system message + { role: "user", content: "Hello!" }, + ], +}); + +console.log(response.choices[0].message.content); +``` + +## API Reference + +### Continue.from(options) + +Creates a Continue instance with a pre-configured OpenAI client and assistant. + +#### Options + +- `apiKey` (string, required): Your Continue API key +- `assistant` (string, required): The assistant identifier in the format `owner-slug/assistant-slug` +- `organizationId` (string, optional): Optional organization ID +- `baseURL` (string, optional): Base URL for the Continue API (defaults to `https://api.continue.dev/`) + +#### Returns + +An object containing: + +- `client`: An OpenAI-compatible client configured to use the Continue API +- `assistant`: The assistant configuration with utility methods +- `api`: The raw Continue API client for direct API access diff --git a/packages/continue-sdk/clients/typescript/.gitignore b/packages/continue-sdk/typescript/api/.gitignore similarity index 100% rename from packages/continue-sdk/clients/typescript/.gitignore rename to packages/continue-sdk/typescript/api/.gitignore diff --git a/packages/continue-sdk/clients/typescript/.npmignore b/packages/continue-sdk/typescript/api/.npmignore similarity index 100% rename from packages/continue-sdk/clients/typescript/.npmignore rename to packages/continue-sdk/typescript/api/.npmignore diff --git a/packages/continue-sdk/clients/typescript/.openapi-generator-ignore b/packages/continue-sdk/typescript/api/.openapi-generator-ignore similarity index 100% rename from packages/continue-sdk/clients/typescript/.openapi-generator-ignore rename to packages/continue-sdk/typescript/api/.openapi-generator-ignore diff --git a/packages/continue-sdk/clients/typescript/.openapi-generator/FILES b/packages/continue-sdk/typescript/api/.openapi-generator/FILES similarity index 93% rename from packages/continue-sdk/clients/typescript/.openapi-generator/FILES rename to packages/continue-sdk/typescript/api/.openapi-generator/FILES index cdc461082..bd16b13fc 100644 --- a/packages/continue-sdk/clients/typescript/.openapi-generator/FILES +++ b/packages/continue-sdk/typescript/api/.openapi-generator/FILES @@ -1,6 +1,5 @@ .gitignore .npmignore -.openapi-generator-ignore README.md package.json src/apis/DefaultApi.ts diff --git a/packages/continue-sdk/clients/typescript/.openapi-generator/VERSION b/packages/continue-sdk/typescript/api/.openapi-generator/VERSION similarity index 100% rename from packages/continue-sdk/clients/typescript/.openapi-generator/VERSION rename to packages/continue-sdk/typescript/api/.openapi-generator/VERSION diff --git a/packages/continue-sdk/clients/typescript/README.md b/packages/continue-sdk/typescript/api/README.md similarity index 92% rename from packages/continue-sdk/clients/typescript/README.md rename to packages/continue-sdk/typescript/api/README.md index 4f436550b..ed367262b 100644 --- a/packages/continue-sdk/clients/typescript/README.md +++ b/packages/continue-sdk/typescript/api/README.md @@ -1,4 +1,4 @@ -## @continuedev/sdk@0.0.1 +## @continuedev/hub-api@0.0.1 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: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @continuedev/sdk@0.0.1 --save +npm install @continuedev/hub-api@0.0.1 --save ``` _unPublished (not recommended):_ diff --git a/packages/continue-sdk/clients/typescript/package.json b/packages/continue-sdk/typescript/api/package.json similarity index 82% rename from packages/continue-sdk/clients/typescript/package.json rename to packages/continue-sdk/typescript/api/package.json index 5c2f9e642..8fe69d4d5 100644 --- a/packages/continue-sdk/clients/typescript/package.json +++ b/packages/continue-sdk/typescript/api/package.json @@ -1,7 +1,7 @@ { - "name": "@continuedev/sdk", + "name": "@continuedev/hub-api", "version": "0.0.1", - "description": "OpenAPI client for @continuedev/sdk", + "description": "OpenAPI client for @continuedev/hub-api", "author": "OpenAPI-Generator", "repository": { "type": "git", diff --git a/packages/continue-sdk/clients/typescript/src/apis/DefaultApi.ts b/packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/apis/DefaultApi.ts rename to packages/continue-sdk/typescript/api/src/apis/DefaultApi.ts diff --git a/packages/continue-sdk/clients/typescript/src/apis/index.ts b/packages/continue-sdk/typescript/api/src/apis/index.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/apis/index.ts rename to packages/continue-sdk/typescript/api/src/apis/index.ts diff --git a/packages/continue-sdk/clients/typescript/src/index.ts b/packages/continue-sdk/typescript/api/src/index.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/index.ts rename to packages/continue-sdk/typescript/api/src/index.ts diff --git a/packages/continue-sdk/clients/typescript/src/models/ListAssistants200ResponseInner.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/models/ListAssistants200ResponseInner.ts rename to packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInner.ts diff --git a/packages/continue-sdk/clients/typescript/src/models/ListAssistants200ResponseInnerConfigResult.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/models/ListAssistants200ResponseInnerConfigResult.ts rename to packages/continue-sdk/typescript/api/src/models/ListAssistants200ResponseInnerConfigResult.ts diff --git a/packages/continue-sdk/clients/typescript/src/models/ListAssistants401Response.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/models/ListAssistants401Response.ts rename to packages/continue-sdk/typescript/api/src/models/ListAssistants401Response.ts diff --git a/packages/continue-sdk/clients/typescript/src/models/ListAssistants404Response.ts b/packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/models/ListAssistants404Response.ts rename to packages/continue-sdk/typescript/api/src/models/ListAssistants404Response.ts diff --git a/packages/continue-sdk/clients/typescript/src/models/index.ts b/packages/continue-sdk/typescript/api/src/models/index.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/models/index.ts rename to packages/continue-sdk/typescript/api/src/models/index.ts diff --git a/packages/continue-sdk/clients/typescript/src/runtime.ts b/packages/continue-sdk/typescript/api/src/runtime.ts similarity index 100% rename from packages/continue-sdk/clients/typescript/src/runtime.ts rename to packages/continue-sdk/typescript/api/src/runtime.ts diff --git a/packages/continue-sdk/clients/typescript/tsconfig.esm.json b/packages/continue-sdk/typescript/api/tsconfig.esm.json similarity index 100% rename from packages/continue-sdk/clients/typescript/tsconfig.esm.json rename to packages/continue-sdk/typescript/api/tsconfig.esm.json diff --git a/packages/continue-sdk/clients/typescript/tsconfig.json b/packages/continue-sdk/typescript/api/tsconfig.json similarity index 100% rename from packages/continue-sdk/clients/typescript/tsconfig.json rename to packages/continue-sdk/typescript/api/tsconfig.json diff --git a/packages/continue-sdk/typescript/jest.config.js b/packages/continue-sdk/typescript/jest.config.js new file mode 100644 index 000000000..d7d190d7c --- /dev/null +++ b/packages/continue-sdk/typescript/jest.config.js @@ -0,0 +1,17 @@ +export default { + preset: "ts-jest/presets/default-esm", + testEnvironment: "node", + extensionsToTreatAsEsm: [".ts"], + moduleNameMapper: { + "^(\\.{1,2}/.*)\\.js$": "$1", + }, + transform: { + "^.+\\.tsx?$": [ + "ts-jest", + { + useESM: true, + isolatedModules: true, + }, + ], + }, +}; diff --git a/packages/continue-sdk/typescript/package-lock.json b/packages/continue-sdk/typescript/package-lock.json new file mode 100644 index 000000000..50efab080 --- /dev/null +++ b/packages/continue-sdk/typescript/package-lock.json @@ -0,0 +1,4292 @@ +{ + "name": "@continuedev/sdk", + "version": "0.0.1", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@continuedev/sdk", + "version": "0.0.1", + "license": "Apache-2.0", + "dependencies": { + "@continuedev/hub-api": "file:./api", + "openai": "^4.96.2" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "dotenv": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.2", + "typescript": "^5.0.0" + } + }, + "api": { + "name": "@continuedev/hub-api", + "version": "0.0.1", + "devDependencies": { + "typescript": "^4.0 || ^5.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.1.tgz", + "integrity": "sha512-Q+E+rd/yBzNQhXkG+zQnF58e4zoZfBedaxwzPmicKsiK3nt8iJYrSrDbjwFFDGC4f+rPafqRaPH6TsDoSvMf7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.1.tgz", + "integrity": "sha512-IaaGWsQqfsQWVLqMn9OB92MNN7zukfVA4s7KKAI0KfrrDsZ0yhi5uV4baBuLuN7n3vsZpwP8asPPcVwApxvjBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helpers": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.1.tgz", + "integrity": "sha512-UnJfnIpc/+JO0/+KRVQNGU+y5taA5vCbwN8+azkX6beii/ZF+enZJSOKo11ZSzGJjlNfJHfQtmQT8H+9TXPG2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.27.1", + "@babel/types": "^7.27.1", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.1.tgz", + "integrity": "sha512-2YaDd/Rd9E598B5+WIc8wJPmWETiiJXFYVE60oX8FDohv7rAUU3CQj+A1MgeEmcsk2+dQuEjIe/GDvig0SqL4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.27.1.tgz", + "integrity": "sha512-9yHn519/8KvTU5BjTVEEeIM3w9/2yXNKoD82JifINImhpKkARMJKPP59kLo+BafpdN5zgNeIcS4jsGDmd3l58g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.1.tgz", + "integrity": "sha512-FCvFTm0sWV8Fxhpp2McP5/W53GPllQ9QeQ7SiqGWjMf/LVG07lFa5+pgK05IRhVwtvafT22KF+ZSnM9I545CvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.1.tgz", + "integrity": "sha512-I0dZ3ZpCrJ1c04OqlNsQcKiZlsrXf/kkE4FXzID9rIOYICsAbA8mMDzhW/luRNAHdCNt7os/u8wenklZDlUVUQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.27.1" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.1.tgz", + "integrity": "sha512-Fyo3ghWMqkHHpHQCoBs2VnYjR4iWFFjguTDEqA5WgZDOrFesVjMhMM2FSqTKSoUSDO1VQtavj8NFpdRBEvJTtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.1.tgz", + "integrity": "sha512-ZCYtZciz1IWJB4U61UPu4KEaqyfj+r5T1Q5mqPo+IBpcG9kHv30Z0aD8LXPgC1trYa6rK0orRyAhqUgk4MjmEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.27.1", + "@babel/parser": "^7.27.1", + "@babel/template": "^7.27.1", + "@babel/types": "^7.27.1", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.1.tgz", + "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@continuedev/hub-api": { + "resolved": "api", + "link": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.7.tgz", + "integrity": "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "22.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", + "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/agentkeepalive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz", + "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==", + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true, + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", + "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001716", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001716.tgz", + "integrity": "sha512-49/c1+x3Kwz7ZIWt+4DvK3aMJy9oYXXG6/97JKsnjdCk/6n9vVyWL8NAwVt95Lwt9eigI10Hl782kDfZUUlRXw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dotenv": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", + "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.148", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.148.tgz", + "integrity": "sha512-8uc1QXwwqayD4mblcsQYZqoi+cOc97A2XmKSBOIRbEAvbp6vrqmSYs4dHD2qVygUgn7Mi0qdKgPaJ9WC8cv63A==", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", + "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data-encoder": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", + "license": "MIT" + }, + "node_modules/formdata-node": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", + "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "license": "MIT", + "dependencies": { + "node-domexception": "1.0.0", + "web-streams-polyfill": "4.0.0-beta.3" + }, + "engines": { + "node": ">= 12.20" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/openai": { + "version": "4.96.2", + "resolved": "https://registry.npmjs.org/openai/-/openai-4.96.2.tgz", + "integrity": "sha512-R2XnxvMsizkROr7BV3uNp1q/3skwPZ7fmPjO1bXLnfB4Tu5xKxrT1EVwzjhxn0MZKBKAvOaGWS63jTMN6KrIXA==", + "license": "Apache-2.0", + "dependencies": { + "@types/node": "^18.11.18", + "@types/node-fetch": "^2.6.4", + "abort-controller": "^3.0.0", + "agentkeepalive": "^4.2.1", + "form-data-encoder": "1.7.2", + "formdata-node": "^4.3.2", + "node-fetch": "^2.6.7" + }, + "bin": { + "openai": "bin/cli" + }, + "peerDependencies": { + "ws": "^8.18.0", + "zod": "^3.23.8" + }, + "peerDependenciesMeta": { + "ws": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, + "node_modules/openai/node_modules/@types/node": { + "version": "18.19.87", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.87.tgz", + "integrity": "sha512-OIAAu6ypnVZHmsHCeJ+7CCSub38QNBS9uceMQeg7K5Ur0Jr+wG9wEOEvvMbhp09pxD5czIUy/jND7s7Tb6Nw7A==", + "license": "MIT", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/openai/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "license": "MIT" + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/ts-jest": { + "version": "29.3.2", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.3.2.tgz", + "integrity": "sha512-bJJkrWc6PjFVz5g2DGCNUo8z7oFEYaz1xP1NpeDU7KNLMWPpEyV8Chbpkn8xjzgRDpQhnGMyvyldoL7h8JXyug==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "ejs": "^3.1.10", + "fast-json-stable-stringify": "^2.1.0", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.1", + "type-fest": "^4.39.1", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.40.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.40.1.tgz", + "integrity": "sha512-9YvLNnORDpI+vghLU/Nf+zSv0kL47KbVJ1o3sKgoTefl6i+zebxbiDQWoe/oWWqPhIgQdRZRT1KA9sCPL810SA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/web-streams-polyfill": { + "version": "4.0.0-beta.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", + "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/packages/continue-sdk/typescript/package.json b/packages/continue-sdk/typescript/package.json new file mode 100644 index 000000000..d12180acc --- /dev/null +++ b/packages/continue-sdk/typescript/package.json @@ -0,0 +1,29 @@ +{ + "name": "@continuedev/sdk", + "version": "0.0.1", + "description": "SDK for Continue.dev", + "main": "dist/src/index.js", + "types": "dist/src/index.d.ts", + "type": "module", + "scripts": { + "build": "tsc", + "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", + "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch" + }, + "author": "Continue Dev, Inc.", + "license": "Apache-2.0", + "dependencies": { + "@continuedev/hub-api": "file:./api", + "openai": "^4.96.2" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "dotenv": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.2", + "typescript": "^5.0.0" + }, + "files": [ + "dist" + ] +} diff --git a/packages/continue-sdk/src/Assistant.ts b/packages/continue-sdk/typescript/src/Assistant.ts similarity index 100% rename from packages/continue-sdk/src/Assistant.ts rename to packages/continue-sdk/typescript/src/Assistant.ts diff --git a/packages/continue-sdk/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts similarity index 94% rename from packages/continue-sdk/src/Continue.ts rename to packages/continue-sdk/typescript/src/Continue.ts index 593c97225..1bf5801a2 100644 --- a/packages/continue-sdk/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -1,7 +1,6 @@ import { decodePackageSlug } from "@continuedev/config-yaml"; +import { Configuration, DefaultApi } from "@continuedev/hub-api"; import type { OpenAI } from "openai"; -import { DefaultApi } from "../clients/typescript/src/apis/DefaultApi.js"; -import { Configuration } from "../clients/typescript/src/runtime.js"; import { Assistant } from "./Assistant.js"; import { createOpenAIClient } from "./createOpenAIClient.js"; export interface ContinueClientOptions { diff --git a/packages/continue-sdk/src/createOpenAIClient.ts b/packages/continue-sdk/typescript/src/createOpenAIClient.ts similarity index 100% rename from packages/continue-sdk/src/createOpenAIClient.ts rename to packages/continue-sdk/typescript/src/createOpenAIClient.ts diff --git a/packages/continue-sdk/src/index.ts b/packages/continue-sdk/typescript/src/index.ts similarity index 100% rename from packages/continue-sdk/src/index.ts rename to packages/continue-sdk/typescript/src/index.ts diff --git a/packages/continue-sdk/tests/continue.test.ts b/packages/continue-sdk/typescript/tests/continue.test.ts similarity index 94% rename from packages/continue-sdk/tests/continue.test.ts rename to packages/continue-sdk/typescript/tests/continue.test.ts index 6bedfa3b5..bd967d60a 100644 --- a/packages/continue-sdk/tests/continue.test.ts +++ b/packages/continue-sdk/typescript/tests/continue.test.ts @@ -1,6 +1,6 @@ -import { expect } from "@jest/globals"; +import { expect, test } from "@jest/globals"; import dotenv from "dotenv"; -import { Continue } from "../src/Continue"; +import { Continue } from "../src/Continue.js"; dotenv.config(); diff --git a/packages/continue-sdk/typescript/tsconfig.json b/packages/continue-sdk/typescript/tsconfig.json new file mode 100644 index 000000000..14c7265d1 --- /dev/null +++ b/packages/continue-sdk/typescript/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "nodenext", + "esModuleInterop": true, + "strict": true, + "outDir": "dist", + "declaration": true, + "types": ["node", "jest"], + "skipLibCheck": true, + "isolatedModules": true + }, + "include": ["src", "api"], + "exclude": ["node_modules", "dist"] +} From 43ebb1ad0a95ac1dfc0ff1e198fe53e8c50f0671 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 17:30:29 -0700 Subject: [PATCH 055/110] feat: better type names --- packages/continue-sdk/typescript/src/Assistant.ts | 4 +++- packages/continue-sdk/typescript/src/Continue.ts | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/continue-sdk/typescript/src/Assistant.ts b/packages/continue-sdk/typescript/src/Assistant.ts index 25e4f766c..b0a22e1c6 100644 --- a/packages/continue-sdk/typescript/src/Assistant.ts +++ b/packages/continue-sdk/typescript/src/Assistant.ts @@ -1,5 +1,7 @@ import { AssistantUnrolled } from "@continuedev/config-yaml"; +export type AssistantConfig = AssistantUnrolled; + /** * Class that wraps an assistant configuration with utility methods */ @@ -7,7 +9,7 @@ export class Assistant { /** * The assistant configuration object */ - config: AssistantUnrolled; + config: AssistantConfig; /** * Create a new Assistant instance diff --git a/packages/continue-sdk/typescript/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts index 1bf5801a2..623c57372 100644 --- a/packages/continue-sdk/typescript/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -3,6 +3,7 @@ import { Configuration, DefaultApi } from "@continuedev/hub-api"; import type { OpenAI } from "openai"; import { Assistant } from "./Assistant.js"; import { createOpenAIClient } from "./createOpenAIClient.js"; + export interface ContinueClientOptions { /** * The assistant identifier in the format owner-slug/package-slug @@ -32,7 +33,7 @@ export interface ContinueClientOptions { baseURL?: string; } -export type ContinueResult = { +export type ContinueClient = { /** * The Continue API client */ @@ -57,7 +58,7 @@ export class Continue { * @param options - Configuration options * @returns Object containing Continue client, OpenAI client, and assistant config */ - static async from(options: ContinueClientOptions): Promise { + static async from(options: ContinueClientOptions): Promise { const baseURL = options.baseURL || "https://api.continue.dev/"; const api = new DefaultApi( From 5e454aae3c7edd197ac86137c6d913fd3a29cc33 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 17:39:44 -0700 Subject: [PATCH 056/110] chore: update READMEs --- packages/continue-sdk/python/README.md | 5 +++++ packages/continue-sdk/typescript/README.md | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/continue-sdk/python/README.md diff --git a/packages/continue-sdk/python/README.md b/packages/continue-sdk/python/README.md new file mode 100644 index 000000000..805ca3c8e --- /dev/null +++ b/packages/continue-sdk/python/README.md @@ -0,0 +1,5 @@ +# @continuedev/sdk + +> **⚠️ EXPERIMENTAL: This package is in early development and subject to frequent breaking changes without notice.** + +This SDK provides a drop-in replacement for OpenAI libraries to easily integrate with Continue assistants. diff --git a/packages/continue-sdk/typescript/README.md b/packages/continue-sdk/typescript/README.md index 10ac84e70..bb8a4dd7d 100644 --- a/packages/continue-sdk/typescript/README.md +++ b/packages/continue-sdk/typescript/README.md @@ -1,6 +1,8 @@ # @continuedev/sdk -The official TypeScript SDK for [Continue](https://continue.dev), providing a drop-in replacement for OpenAI libraries to easily integrate with Continue assistants. +> **⚠️ EXPERIMENTAL: This package is in early development and subject to frequent breaking changes without notice.** + +This SDK provides a drop-in replacement for OpenAI libraries to easily integrate with Continue assistants. ## Installation From d35f9d6e695dd5155d6d67f679d14ca787977695 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Thu, 1 May 2025 18:25:03 -0700 Subject: [PATCH 057/110] chore: create build script --- packages/continue-sdk/typescript/build.sh | 16 ++++++++++++++++ .../continue-sdk/typescript/package-lock.json | 10 +++------- packages/continue-sdk/typescript/package.json | 5 ++--- packages/continue-sdk/typescript/src/Continue.ts | 2 +- 4 files changed, 22 insertions(+), 11 deletions(-) create mode 100755 packages/continue-sdk/typescript/build.sh diff --git a/packages/continue-sdk/typescript/build.sh b/packages/continue-sdk/typescript/build.sh new file mode 100755 index 000000000..17b564e35 --- /dev/null +++ b/packages/continue-sdk/typescript/build.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# Build the hub-api first +cd api && npm run build +cd .. + +# Build the SDK +tsc + +# Create the necessary directory structure in dist +mkdir -p dist/api/dist + +# Copy the hub-api dist files to the SDK dist +cp -r api/dist/* dist/api/dist/ + +# Copy the package.json to ensure proper resolution +cp api/package.json dist/api/ \ No newline at end of file diff --git a/packages/continue-sdk/typescript/package-lock.json b/packages/continue-sdk/typescript/package-lock.json index 50efab080..5eb8e7999 100644 --- a/packages/continue-sdk/typescript/package-lock.json +++ b/packages/continue-sdk/typescript/package-lock.json @@ -1,15 +1,14 @@ { "name": "@continuedev/sdk", - "version": "0.0.1", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@continuedev/sdk", - "version": "0.0.1", + "version": "0.0.7", "license": "Apache-2.0", "dependencies": { - "@continuedev/hub-api": "file:./api", "openai": "^4.96.2" }, "devDependencies": { @@ -23,6 +22,7 @@ "api": { "name": "@continuedev/hub-api", "version": "0.0.1", + "extraneous": true, "devDependencies": { "typescript": "^4.0 || ^5.0" } @@ -527,10 +527,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@continuedev/hub-api": { - "resolved": "api", - "link": true - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", diff --git a/packages/continue-sdk/typescript/package.json b/packages/continue-sdk/typescript/package.json index d12180acc..53f0cf2e6 100644 --- a/packages/continue-sdk/typescript/package.json +++ b/packages/continue-sdk/typescript/package.json @@ -1,19 +1,18 @@ { "name": "@continuedev/sdk", - "version": "0.0.1", + "version": "0.0.9", "description": "SDK for Continue.dev", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "type": "module", "scripts": { - "build": "tsc", + "build": "bash ./build.sh", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch" }, "author": "Continue Dev, Inc.", "license": "Apache-2.0", "dependencies": { - "@continuedev/hub-api": "file:./api", "openai": "^4.96.2" }, "devDependencies": { diff --git a/packages/continue-sdk/typescript/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts index 623c57372..4659ddffc 100644 --- a/packages/continue-sdk/typescript/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -1,6 +1,6 @@ import { decodePackageSlug } from "@continuedev/config-yaml"; -import { Configuration, DefaultApi } from "@continuedev/hub-api"; import type { OpenAI } from "openai"; +import { Configuration, DefaultApi } from "../api/dist/index.js"; import { Assistant } from "./Assistant.js"; import { createOpenAIClient } from "./createOpenAIClient.js"; From 376f0e7a815589430e89edfa1583f4ed2febdaff Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 1 May 2025 19:47:25 -0700 Subject: [PATCH 058/110] improve error message when tool id not matched --- core/llm/countTokens.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/countTokens.ts b/core/llm/countTokens.ts index 218343538..9d2eb2ada 100644 --- a/core/llm/countTokens.ts +++ b/core/llm/countTokens.ts @@ -355,7 +355,7 @@ function compileChatMessages({ lastToolCallsMsg = msgsCopy.pop(); if (!messageHasToolCallId(lastToolCallsMsg, lastUserOrToolMsg.toolCallId)) { throw new Error( - `Error parsing chat history: tool call found to match tool output for id ${lastUserOrToolMsg.toolCallId}`, + `Error parsing chat history: no tool call found to match tool output for id "${lastUserOrToolMsg.toolCallId}"`, ); } } From 70db5ddcd0c31e85faee4ebc63980a2d4b22fbec Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 1 May 2025 19:47:40 -0700 Subject: [PATCH 059/110] disable args toggle icon --- gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx b/gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx index d041943b5..cec59e220 100644 --- a/gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx +++ b/gui/src/pages/gui/ToolCallDiv/SimpleToolCallUI.tsx @@ -2,7 +2,7 @@ import { ChevronDownIcon, ChevronRightIcon } from "@heroicons/react/24/outline"; import { ContextItemWithId, Tool, ToolCallState } from "core"; import { ComponentType, useMemo, useState } from "react"; import { ContextItemsPeekItem } from "../../../components/mainInput/belowMainInput/ContextItemsPeek"; -import { ArgsItems, ArgsToggleIcon } from "./ToolCallArgs"; +import { ArgsItems } from "./ToolCallArgs"; import { ToolCallStatusMessage } from "./ToolCallStatusMessage"; interface SimpleToolCallUIProps { @@ -66,7 +66,7 @@ export function SimpleToolCallUI({
    -
    + {/*
    {args.length > 0 ? ( ) : null} -
    +
    */}
    Date: Thu, 1 May 2025 19:48:08 -0700 Subject: [PATCH 060/110] give less scary warning when config fails to load --- extensions/vscode/src/autocomplete/statusBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/vscode/src/autocomplete/statusBar.ts b/extensions/vscode/src/autocomplete/statusBar.ts index faa85338f..4a26106e7 100644 --- a/extensions/vscode/src/autocomplete/statusBar.ts +++ b/extensions/vscode/src/autocomplete/statusBar.ts @@ -47,7 +47,7 @@ const statusBarItemText = ( error?: boolean, ) => { if (error) { - return "$(alert) Continue (FATAL ERROR)"; + return "$(alert) Continue (config error)"; } switch (status) { From 678bc7ae4c67440032ef2e045600e910f1196968 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 21:06:40 -0700 Subject: [PATCH 061/110] sensible renames --- .../vscode/src/diff/vertical/decorations.ts | 83 ++++++------ .../vscode/src/diff/vertical/handler.ts | 118 ++++++++++-------- 2 files changed, 106 insertions(+), 95 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/decorations.ts b/extensions/vscode/src/diff/vertical/decorations.ts index c05e488e1..f7c09f26d 100644 --- a/extensions/vscode/src/diff/vertical/decorations.ts +++ b/extensions/vscode/src/diff/vertical/decorations.ts @@ -1,6 +1,6 @@ import * as vscode from "vscode"; -export const redDecorationType = (line: string) => +const removedLineDecorationType = (line: string) => vscode.window.createTextEditorDecorationType({ isWholeLine: true, backgroundColor: { id: "diffEditor.removedLineBackground" }, @@ -12,19 +12,19 @@ export const redDecorationType = (line: string) => after: { contentText: line, color: "#808080", + textDecoration: "none; white-space: pre", }, + textDecoration: "none; display: none", }); -export const greenDecorationType = vscode.window.createTextEditorDecorationType( - { - isWholeLine: true, - backgroundColor: { id: "diffEditor.insertedLineBackground" }, - outlineWidth: "1px", - outlineStyle: "solid", - outlineColor: { id: "diffEditor.insertedTextBorder" }, - rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, - }, -); +const addedLineDecorationType = vscode.window.createTextEditorDecorationType({ + isWholeLine: true, + backgroundColor: { id: "diffEditor.insertedLineBackground" }, + outlineWidth: "1px", + outlineStyle: "solid", + outlineColor: { id: "diffEditor.insertedTextBorder" }, + rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed, +}); export const indexDecorationType = vscode.window.createTextEditorDecorationType( { @@ -47,13 +47,11 @@ function translateRange(range: vscode.Range, lineOffset: number): vscode.Range { ); } -export class DecorationTypeRangeManager { - constructor( - private decorationType: vscode.TextEditorDecorationType, - private editor: vscode.TextEditor, - ) {} +export class AddedLineDecorationManager { + constructor(private editor: vscode.TextEditor) {} private ranges: vscode.Range[] = []; + decorationType = addedLineDecorationType; applyToNewEditor(newEditor: vscode.TextEditor) { this.editor = newEditor; @@ -109,13 +107,15 @@ export class DecorationTypeRangeManager { return this.ranges.splice(i, 1)[0]; } } + this.editor.setDecorations(this.decorationType, this.ranges); } } -export class RedDecorationsManager { +export class RemovedLineDecorationManager { constructor(private editor: vscode.TextEditor) {} private ranges: { + line: string; range: vscode.Range; decoration: vscode.TextEditorDecorationType; }[] = []; @@ -129,13 +129,14 @@ export class RedDecorationsManager { let i = 0; for (const line of lines) { this.ranges.push({ + line, range: new vscode.Range( startIndex + i, 0, startIndex + i, Number.MAX_SAFE_INTEGER, ), - decoration: redDecorationType(line), + decoration: removedLineDecorationType(line), }); i++; } @@ -146,36 +147,22 @@ export class RedDecorationsManager { this.addLines(index, [line]); } - private getDecorationsMap() { - const decorationsMap = new Map< - vscode.TextEditorDecorationType, - vscode.Range[] - >(); - for (const range of this.ranges) { - const ranges = decorationsMap.get(range.decoration) ?? []; - ranges.push(range.range); - decorationsMap.set(range.decoration, ranges); - } - return decorationsMap; - } - applyDecorations() { - const decorationsMap = this.getDecorationsMap(); - for (const [decoration, ranges] of decorationsMap) { - this.editor.setDecorations(decoration, ranges); - } + this.ranges.forEach((r) => { + this.editor.setDecorations(r.decoration, [r.range]); + }); } + // Red decorations are always unique, so we'll always dispose clear() { - const decorationsMap = this.getDecorationsMap(); - for (const [decoration, _] of decorationsMap) { - this.editor.setDecorations(decoration, []); - } + this.ranges.forEach((r) => { + r.decoration.dispose(); + }); this.ranges = []; } getRanges() { - return this.ranges.map((r) => r.range); + return this.ranges; } shiftDownAfterLine(afterLine: number, offset: number) { @@ -187,10 +174,22 @@ export class RedDecorationsManager { this.applyDecorations(); } - deleteRangeStartingAt(line: number) { + // Red ranges are always single-line, so to delete group, delete sequential ranges + deleteRangesStartingAt(line: number) { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].range.start.line === line) { - return this.ranges.splice(i, 1)[0]; + this.ranges[i].decoration.dispose(); + // Find how many sequential ranges we have starting from this line + let count = 1; + while ( + i + count < this.ranges.length && + this.ranges[i + count].range.start.line === line + count + ) { + count++; + this.ranges[i + count].decoration.dispose(); + } + // Remove all sequential ranges and return them + return this.ranges.splice(i, count); } } } diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 2a9764bbd..9adec095d 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -3,10 +3,9 @@ import * as URI from "uri-js"; import * as vscode from "vscode"; import { - DecorationTypeRangeManager, - RedDecorationsManager, + AddedLineDecorationManager, + RemovedLineDecorationManager, belowIndexDecorationType, - greenDecorationType, indexDecorationType, } from "./decorations"; @@ -28,7 +27,9 @@ export class VerticalDiffHandler implements vscode.Disposable { private cancelled = false; private newLinesAdded = 0; private deletionBuffer: string[] = []; - private redDecorationManager: RedDecorationsManager; + private removedLineDecorations: RemovedLineDecorationManager; + private addedLineDecorations: AddedLineDecorationManager; + private get fileUri() { return this.editor.document.uri.toString(); } @@ -56,12 +57,8 @@ export class VerticalDiffHandler implements vscode.Disposable { ) { this.currentLineIndex = startLine; - this.redDecorationManager = new RedDecorationsManager(this.editor); - - this.greenDecorationManager = new DecorationTypeRangeManager( - greenDecorationType, - this.editor, - ); + this.removedLineDecorations = new RemovedLineDecorationManager(this.editor); + this.addedLineDecorations = new AddedLineDecorationManager(this.editor); const disposable = vscode.window.onDidChangeActiveTextEditor((editor) => { if (!editor) { @@ -70,8 +67,8 @@ export class VerticalDiffHandler implements vscode.Disposable { // When we switch away and back to this editor, need to re-draw decorations if (URI.equal(editor.document.uri.toString(), this.fileUri)) { this.editor = editor; - this.redDecorationManager.applyToNewEditor(editor); - this.greenDecorationManager.applyToNewEditor(editor); + this.removedLineDecorations.applyToNewEditor(editor); + this.addedLineDecorations.applyToNewEditor(editor); this.updateIndexLineDecorations(); this.refreshCodeLens(); @@ -103,16 +100,16 @@ export class VerticalDiffHandler implements vscode.Disposable { // Insert the block of deleted lines as empty new lines await this.insertTextAboveLine( this.currentLineIndex - this.insertedInCurrentBlock, - "\n".repeat(this.deletionBuffer.length), + "\n".repeat(this.deletionBuffer.length - 1), ); - this.redDecorationManager.addLines( + this.removedLineDecorations.addLines( this.currentLineIndex - this.insertedInCurrentBlock, this.deletionBuffer, ); // Shift green decorations downward - this.greenDecorationManager.shiftDownAfterLine( + this.addedLineDecorations.shiftDownAfterLine( this.currentLineIndex - this.insertedInCurrentBlock, this.deletionBuffer.length, ); @@ -132,8 +129,6 @@ export class VerticalDiffHandler implements vscode.Disposable { this.updateIndexLineDecorations(); } - private greenDecorationManager: DecorationTypeRangeManager; - private async insertTextAboveLine(index: number, text: string) { await this.editor.edit( (editBuilder) => { @@ -160,7 +155,7 @@ export class VerticalDiffHandler implements vscode.Disposable { private async insertLineAboveIndex(index: number, line: string) { await this.insertTextAboveLine(index, line); - this.greenDecorationManager.addLine(index); + this.addedLineDecorations.addLine(index); this.newLinesAdded++; } @@ -213,7 +208,7 @@ export class VerticalDiffHandler implements vscode.Disposable { // public getLineDeltaBeforeLine(line: number) { // // Returns the number of lines removed from a file when the diff currently active is closed // let totalLineDelta = 0; - // for (const range of this.greenDecorationManager + // for (const range of this.addedLineDecorations // .getRanges() // .sort((a, b) => a.start.line - b.start.line)) { // if (range.start.line > line) { @@ -232,29 +227,43 @@ export class VerticalDiffHandler implements vscode.Disposable { "continue.streamingDiff", false, ); - const rangesToDelete = accept - ? this.redDecorationManager.getRanges() - : this.greenDecorationManager.getRanges(); + + const redRanges = this.removedLineDecorations.getRanges(); + + const deleteRangeLines = async (ranges: vscode.Range[]) => { + await this.editor.edit( + (editBuilder) => { + for (const range of ranges) { + editBuilder.delete( + new vscode.Range( + range.start, + new vscode.Position(range.end.line + 1, 0), + ), + ); + } + }, + { + undoStopAfter: false, + undoStopBefore: false, + }, + ); + }; + + if (accept) { + // Accept all: delete all the red ranges and clear green decorations + await deleteRangeLines(redRanges.map((r) => r.range)); + } else { + // Reject all: Re-insert red lines, delete green ones + for (const r of redRanges) { + await deleteRangeLines([r.range]); + await this.insertTextAboveLine(r.range.start.line, r.line); + } + const greenRanges = this.addedLineDecorations.getRanges(); + await deleteRangeLines(greenRanges); + } this.clearDecorations(); - await this.editor.edit( - (editBuilder) => { - for (const range of rangesToDelete) { - editBuilder.delete( - new vscode.Range( - range.start, - new vscode.Position(range.end.line + 1, 0), - ), - ); - } - }, - { - undoStopAfter: false, - undoStopBefore: false, - }, - ); - this.options.onStatusUpdate( "closed", this.editorToVerticalDiffCodeLens.get(this.fileUri)?.length ?? 0, @@ -376,7 +385,7 @@ export class VerticalDiffHandler implements vscode.Disposable { ) { if (numGreen > 0) { // Delete the editor decoration - this.greenDecorationManager.deleteRangeStartingAt(startLine + numRed); + this.addedLineDecorations.deleteRangeStartingAt(startLine + numRed); if (!accept) { // Delete the actual lines await this.deleteLinesAt(startLine + numRed, numGreen); @@ -384,20 +393,23 @@ export class VerticalDiffHandler implements vscode.Disposable { } if (numRed > 0) { - const rangeToDelete = - this.redDecorationManager.deleteRangeStartingAt(startLine); + const deleted = + this.removedLineDecorations.deleteRangesStartingAt(startLine); - if (accept) { - // Delete the actual lines - await this.deleteLinesAt(startLine, numRed); + await this.deleteLinesAt(startLine, numRed); + if (deleted && !accept) { + await this.insertTextAboveLine( + startLine, + deleted.map((r) => r.line).join("\n"), + ); } } // Shift everything below upward const offset = -(accept ? numRed : numGreen); - this.redDecorationManager.shiftDownAfterLine(startLine, offset); - this.greenDecorationManager.shiftDownAfterLine(startLine, offset); + this.removedLineDecorations.shiftDownAfterLine(startLine, offset); + this.addedLineDecorations.shiftDownAfterLine(startLine, offset); // Shift the codelens objects this.shiftCodeLensObjects(startLine, offset); @@ -445,8 +457,8 @@ export class VerticalDiffHandler implements vscode.Disposable { } //update decorations - this.redDecorationManager.shiftDownAfterLine(startLine, lineDelta); - this.greenDecorationManager.shiftDownAfterLine(startLine, lineDelta); + this.removedLineDecorations.shiftDownAfterLine(startLine, lineDelta); + this.addedLineDecorations.shiftDownAfterLine(startLine, lineDelta); //update code lens this.shiftCodeLensObjects(startLine, lineDelta); @@ -458,8 +470,8 @@ export class VerticalDiffHandler implements vscode.Disposable { } clearDecorations() { - this.redDecorationManager.clear(); - this.greenDecorationManager.clear(); + this.removedLineDecorations.clear(); + this.addedLineDecorations.clear(); this.clearIndexLineDecorations(); this.editorToVerticalDiffCodeLens.delete(this.fileUri); this.refreshCodeLens(); @@ -528,10 +540,10 @@ export class VerticalDiffHandler implements vscode.Disposable { diffs.forEach((diff, index) => { if (diff.type === "old") { - this.redDecorationManager.addLine(this.startLine + index, diff.line); + this.removedLineDecorations.addLine(this.startLine + index, diff.line); numRed++; } else if (diff.type === "new") { - this.greenDecorationManager.addLine(this.startLine + index); + this.addedLineDecorations.addLine(this.startLine + index); numGreen++; } else if (diff.type === "same" && (numRed > 0 || numGreen > 0)) { codeLensBlocks.push({ From 61132a9acfa029150358812fd1390f9e31fab791 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 21:17:59 -0700 Subject: [PATCH 062/110] working diff lines, clean up --- .../vscode/src/diff/vertical/decorations.ts | 24 ++++++++----------- .../vscode/src/diff/vertical/handler.ts | 10 ++++---- .../vscode/src/diff/vertical/manager.ts | 4 ++-- 3 files changed, 16 insertions(+), 22 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/decorations.ts b/extensions/vscode/src/diff/vertical/decorations.ts index f7c09f26d..02f5daca4 100644 --- a/extensions/vscode/src/diff/vertical/decorations.ts +++ b/extensions/vscode/src/diff/vertical/decorations.ts @@ -4,7 +4,6 @@ const removedLineDecorationType = (line: string) => vscode.window.createTextEditorDecorationType({ isWholeLine: true, backgroundColor: { id: "diffEditor.removedLineBackground" }, - // color: "#808080", outlineWidth: "1px", outlineStyle: "solid", outlineColor: { id: "diffEditor.removedTextBorder" }, @@ -14,6 +13,9 @@ const removedLineDecorationType = (line: string) => color: "#808080", textDecoration: "none; white-space: pre", }, + // NOTE this has the effect of hiding text the user enters into a red line, which may cause linting errors + // But probably worth saving the ugly effect of having the ghost text after entered text + // And resolved upon accept/reject when line deleted anyways textDecoration: "none; display: none", }); @@ -47,10 +49,11 @@ function translateRange(range: vscode.Range, lineOffset: number): vscode.Range { ); } +// Class for managing highlight decorations for added lines (e.g. GREEN) export class AddedLineDecorationManager { constructor(private editor: vscode.TextEditor) {} - private ranges: vscode.Range[] = []; + ranges: vscode.Range[] = []; decorationType = addedLineDecorationType; applyToNewEditor(newEditor: vscode.TextEditor) { @@ -88,10 +91,6 @@ export class AddedLineDecorationManager { this.editor.setDecorations(this.decorationType, this.ranges); } - getRanges() { - return this.ranges; - } - shiftDownAfterLine(afterLine: number, offset: number) { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].start.line >= afterLine) { @@ -111,10 +110,13 @@ export class AddedLineDecorationManager { } } +// Class for managing ghost-text decorations for removed lines (e.g. RED) +// Behavior is slightly different all around +// because each line will have a unique decoration type export class RemovedLineDecorationManager { constructor(private editor: vscode.TextEditor) {} - private ranges: { + ranges: { line: string; range: vscode.Range; decoration: vscode.TextEditorDecorationType; @@ -153,7 +155,7 @@ export class RemovedLineDecorationManager { }); } - // Red decorations are always unique, so we'll always dispose + // Removed decorations are always unique, so we'll always dispose clear() { this.ranges.forEach((r) => { r.decoration.dispose(); @@ -161,10 +163,6 @@ export class RemovedLineDecorationManager { this.ranges = []; } - getRanges() { - return this.ranges; - } - shiftDownAfterLine(afterLine: number, offset: number) { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].range.start.line >= afterLine) { @@ -179,7 +177,6 @@ export class RemovedLineDecorationManager { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].range.start.line === line) { this.ranges[i].decoration.dispose(); - // Find how many sequential ranges we have starting from this line let count = 1; while ( i + count < this.ranges.length && @@ -188,7 +185,6 @@ export class RemovedLineDecorationManager { count++; this.ranges[i + count].decoration.dispose(); } - // Remove all sequential ranges and return them return this.ranges.splice(i, count); } } diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 9adec095d..4f1635926 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -228,8 +228,6 @@ export class VerticalDiffHandler implements vscode.Disposable { false, ); - const redRanges = this.removedLineDecorations.getRanges(); - const deleteRangeLines = async (ranges: vscode.Range[]) => { await this.editor.edit( (editBuilder) => { @@ -249,17 +247,17 @@ export class VerticalDiffHandler implements vscode.Disposable { ); }; + const removedRanges = this.removedLineDecorations.ranges; if (accept) { // Accept all: delete all the red ranges and clear green decorations - await deleteRangeLines(redRanges.map((r) => r.range)); + await deleteRangeLines(removedRanges.map((r) => r.range)); } else { // Reject all: Re-insert red lines, delete green ones - for (const r of redRanges) { + for (const r of removedRanges) { await deleteRangeLines([r.range]); await this.insertTextAboveLine(r.range.start.line, r.line); } - const greenRanges = this.addedLineDecorations.getRanges(); - await deleteRangeLines(greenRanges); + await deleteRangeLines(this.addedLineDecorations.ranges); } this.clearDecorations(); diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index 6c94ab343..45ce0736c 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -344,11 +344,11 @@ export class VerticalDiffManager { // startLine += effectiveLineDelta; // endLine += effectiveLineDelta; - existingHandler.clear(false); + await existingHandler.clear(false); } await new Promise((resolve) => { - setTimeout(resolve, 200); + setTimeout(resolve, 150); }); // Create new handler with determined start/end From 87fbde1400dea44e3ae070229b61392f8b607db7 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 1 May 2025 21:30:42 -0700 Subject: [PATCH 063/110] bump package.json --- 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 52715bdfd..9ed86ef2f 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.30", + "version": "1.1.31", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 71685897a87ceff868a375ff60841a63dce9535a Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 21:37:52 -0700 Subject: [PATCH 064/110] myers cleanup --- .../vscode/src/diff/vertical/decorations.ts | 13 ++++++------- extensions/vscode/src/diff/vertical/handler.ts | 17 +++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/decorations.ts b/extensions/vscode/src/diff/vertical/decorations.ts index 02f5daca4..2b3b15cca 100644 --- a/extensions/vscode/src/diff/vertical/decorations.ts +++ b/extensions/vscode/src/diff/vertical/decorations.ts @@ -176,16 +176,15 @@ export class RemovedLineDecorationManager { deleteRangesStartingAt(line: number) { for (let i = 0; i < this.ranges.length; i++) { if (this.ranges[i].range.start.line === line) { - this.ranges[i].decoration.dispose(); - let count = 1; + let sequential = 0; while ( - i + count < this.ranges.length && - this.ranges[i + count].range.start.line === line + count + i + sequential < this.ranges.length && + this.ranges[i + sequential].range.start.line === line + sequential ) { - count++; - this.ranges[i + count].decoration.dispose(); + this.ranges[i + sequential].decoration.dispose(); + sequential++; } - return this.ranges.splice(i, count); + return this.ranges.splice(i, sequential); } } } diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 4f1635926..5ba06f014 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -454,11 +454,11 @@ export class VerticalDiffHandler implements vscode.Disposable { return; } - //update decorations + // Update decorations this.removedLineDecorations.shiftDownAfterLine(startLine, lineDelta); this.addedLineDecorations.shiftDownAfterLine(startLine, lineDelta); - //update code lens + // Update code lens this.shiftCodeLensObjects(startLine, lineDelta); } @@ -504,7 +504,6 @@ export class VerticalDiffHandler implements vscode.Disposable { // newline separated, because myersDiff() would consider // ["A"] => "A" and ["A", ""] => "A\n" to be the same single line. // "A\n" and "A\n\n" are unambiguous. - // const oldFileContent = diffLines .filter((line) => line.type === "same" || line.type === "old") @@ -517,13 +516,15 @@ export class VerticalDiffHandler implements vscode.Disposable { .map((line) => line.line) .join("\n") + "\n"; - const diffs = myersDiff(oldFileContent, newFileContent); + const myersDiffs = myersDiff(oldFileContent, newFileContent); - const myersDiffLines = diffs.map((diff) => diff.line).join("\n"); + const replaceContent = myersDiffs + .map((diff) => (diff.type === "old" ? "" : diff.line)) + .join("\n"); // Then, we insert our diff lines await this.editor.edit((editBuilder) => { - editBuilder.replace(this.range, myersDiffLines), + editBuilder.replace(this.range, replaceContent), { undoStopAfter: false, undoStopBefore: false, @@ -536,7 +537,7 @@ export class VerticalDiffHandler implements vscode.Disposable { const codeLensBlocks: VerticalDiffCodeLens[] = []; - diffs.forEach((diff, index) => { + myersDiffs.forEach((diff, index) => { if (diff.type === "old") { this.removedLineDecorations.addLine(this.startLine + index, diff.line); numRed++; @@ -558,7 +559,7 @@ export class VerticalDiffHandler implements vscode.Disposable { codeLensBlocks.push({ numGreen, numRed, - start: this.startLine + diffs.length - numRed - numGreen, + start: this.startLine + myersDiffs.length - numRed - numGreen, }); } From aa1a7a72b08e279e41907d98d11b55a4b3f1e79e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 May 2025 04:42:00 +0000 Subject: [PATCH 065/110] Bump vite from 4.5.13 to 4.5.14 in /extensions/vscode Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.13 to 4.5.14. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v4.5.14/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.5.14/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 4.5.14 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- extensions/vscode/package-lock.json | 12 ++++++------ extensions/vscode/package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 2c1422e5a..8bdc0f0e5 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "1.1.30", + "version": "1.1.31", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "1.1.30", + "version": "1.1.31", "license": "Apache-2.0", "dependencies": { "@continuedev/config-types": "^1.0.14", @@ -89,7 +89,7 @@ "ovsx": "^0.8.3", "rimraf": "^5.0.5", "typescript": "^5.6.3", - "vite": "^4.5.13", + "vite": "^4.5.14", "vsce": "^2.15.0", "vscode-extension-tester": "^8.10.0" }, @@ -13442,9 +13442,9 @@ } }, "node_modules/vite": { - "version": "4.5.13", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.13.tgz", - "integrity": "sha512-Hgp8IF/yZDzKsN1hQWOuQZbrKiaFsbQud+07jJ8h9m9PaHWkpvZ5u55Xw5yYjWRXwRQ4jwFlJvY7T7FUJG9MCA==", + "version": "4.5.14", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.14.tgz", + "integrity": "sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==", "dev": true, "license": "MIT", "dependencies": { diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 9ed86ef2f..ff1ceffcc 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -656,7 +656,7 @@ "ovsx": "^0.8.3", "rimraf": "^5.0.5", "typescript": "^5.6.3", - "vite": "^4.5.13", + "vite": "^4.5.14", "vsce": "^2.15.0", "vscode-extension-tester": "^8.10.0" }, From 99b7623d2d26674204709b6088e909efe3138ec8 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 21:58:09 -0700 Subject: [PATCH 066/110] Update Chat.tsx --- gui/src/pages/gui/Chat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 32a99f88d..2514909bc 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -285,7 +285,7 @@ export function Chat() { const showScrollbar = showChatScrollbar ?? window.innerHeight > 5000; useAutoScroll(stepsDivRef, history); - console.log(showSessionTabs); + return ( <> {widget} From 50c12984d3aa739e00bb3e7c3702cc664f4ce584 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 22:28:33 -0700 Subject: [PATCH 067/110] gs --- .../vscode/src/diff/vertical/handler.ts | 19 +++++++++++-------- .../vscode/src/diff/vertical/manager.ts | 19 ++++++++++++++----- .../vscode/src/extension/VsCodeMessenger.ts | 2 +- extensions/vscode/src/util/errorHandling.ts | 18 ++++++++---------- 4 files changed, 34 insertions(+), 24 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 2e90de6e6..04d0d12d2 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -336,6 +336,7 @@ export class VerticalDiffHandler implements vscode.Disposable { let diffLines = []; try { + throw new Error("INTENTIONAL"); // As an indicator of loading this.updateIndexLineDecorations(); @@ -500,15 +501,17 @@ export class VerticalDiffHandler implements vscode.Disposable { // ["A"] => "A" and ["A", ""] => "A\n" to be the same single line. // "A\n" and "A\n\n" are unambiguous. // - const oldFileContent = diffLines - .filter((line) => line.type === "same" || line.type === "old") - .map((line) => line.line) - .join("\n") + "\n"; + const oldFileContent = + diffLines + .filter((line) => line.type === "same" || line.type === "old") + .map((line) => line.line) + .join("\n") + "\n"; - const newFileContent = diffLines - .filter((line) => line.type === "same" || line.type === "new") - .map((line) => line.line) - .join("\n") + "\n"; + const newFileContent = + diffLines + .filter((line) => line.type === "same" || line.type === "new") + .map((line) => line.line) + .join("\n") + "\n"; const diffs = myersDiff(oldFileContent, newFileContent); diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index 6c94ab343..15503998e 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -259,8 +259,13 @@ export class VerticalDiffManager { this.enableDocumentChangeListener(); } catch (e) { this.disableDocumentChangeListener(); - if (!handleLLMError(e)) { - vscode.window.showErrorMessage(`Error streaming diff: ${e}`); + const handled = await handleLLMError(e); + if (!handled) { + let message = "Error streaming diff"; + if (e instanceof Error) { + message += `: ${e.message}`; + } + throw new Error(message); } } finally { vscode.commands.executeCommand( @@ -466,10 +471,14 @@ export class VerticalDiffManager { return `${prefix}${streamedLines.join("\n")}${suffix}`; } catch (e) { this.disableDocumentChangeListener(); - if (!handleLLMError(e)) { - vscode.window.showErrorMessage(`Error streaming diff: ${e}`); + const handled = await handleLLMError(e); + if (!handled) { + let message = "Error streaming diff"; + if (e instanceof Error) { + message += `: ${e.message}`; + } + throw new Error(message); } - return undefined; } finally { vscode.commands.executeCommand( "setContext", diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 8b33a37fa..5280d4757 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -413,7 +413,7 @@ export class VsCodeMessenger { }); this.onWebviewOrCore("reportError", async (msg) => { - handleLLMError(msg.data); + await handleLLMError(msg.data); }); } } diff --git a/extensions/vscode/src/util/errorHandling.ts b/extensions/vscode/src/util/errorHandling.ts index c866e1907..40428cadd 100644 --- a/extensions/vscode/src/util/errorHandling.ts +++ b/extensions/vscode/src/util/errorHandling.ts @@ -2,17 +2,15 @@ import { ILLM } from "core"; import { isModelInstaller } from "core/llm"; import * as vscode from "vscode"; -function supportSpecialHandling(error: any): boolean { - let message: string | undefined = error.message; - return message !== undefined && message.toLowerCase().includes("ollama"); -} - /** * @param error Handles common LLM errors. Currently only handles Ollama-related errors. * @returns true if error is handled, false otherwise */ -export async function handleLLMError(error: any): Promise { - if (!supportSpecialHandling(error)) { +export async function handleLLMError(error: unknown): Promise { + if (!error || !(error instanceof Error) || !error.message) { + return false; + } + if (!error.message.toLowerCase().includes("ollama")) { return false; } let message: string = error.message; @@ -22,11 +20,11 @@ export async function handleLLMError(error: any): Promise { options = ["Download Ollama"]; } else if (message.includes("Ollama may not be running")) { options = ["Start Ollama"]; // We want "Start" to be the only choice - } else if (message.includes("ollama run") && error.llm) { + } else if (message.includes("ollama run") && "llm" in error) { //extract model name from error message matching the pattern "ollama run " modelName = message.match(/`ollama run (.*)`/)?.[1]; const llm = error.llm as ILLM; - if (isModelInstaller(llm) && await llm.isInstallingModel(modelName!)){ + if (isModelInstaller(llm) && (await llm.isInstallingModel(modelName!))) { console.log(`${llm.providerName} already installing ${modelName}`); return false; } @@ -43,7 +41,7 @@ export async function handleLLMError(error: any): Promise { vscode.env.openExternal(vscode.Uri.parse("https://ollama.ai/download")); } else if (val === "Start Ollama") { vscode.commands.executeCommand("continue.startLocalOllama"); - } else if (val === "Install Model" && error.llm) { + } else if (val === "Install Model" && "llm" in error) { //Eventually, we might be able to support installing models for other LLM providers than Ollama vscode.commands.executeCommand( "continue.installModel", From b6efb9f9d7649a4a037a3f031d50050b0204b035 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 22:28:53 -0700 Subject: [PATCH 068/110] handle diff streaming errors --- extensions/vscode/src/diff/vertical/handler.ts | 1 - extensions/vscode/src/diff/vertical/manager.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 04d0d12d2..5f7a5f804 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -336,7 +336,6 @@ export class VerticalDiffHandler implements vscode.Disposable { let diffLines = []; try { - throw new Error("INTENTIONAL"); // As an indicator of loading this.updateIndexLineDecorations(); diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index 15503998e..3c6af2ae0 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -261,7 +261,7 @@ export class VerticalDiffManager { this.disableDocumentChangeListener(); const handled = await handleLLMError(e); if (!handled) { - let message = "Error streaming diff"; + let message = "Error streaming diffs"; if (e instanceof Error) { message += `: ${e.message}`; } @@ -473,7 +473,7 @@ export class VerticalDiffManager { this.disableDocumentChangeListener(); const handled = await handleLLMError(e); if (!handled) { - let message = "Error streaming diff"; + let message = "Error streaming edit diffs"; if (e instanceof Error) { message += `: ${e.message}`; } From 99cc6b82868bd37630ad27700cb78a2206d28b90 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 22:30:50 -0700 Subject: [PATCH 069/110] Revert accidental changes --- extensions/vscode/src/diff/vertical/handler.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 5f7a5f804..2e90de6e6 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -500,17 +500,15 @@ export class VerticalDiffHandler implements vscode.Disposable { // ["A"] => "A" and ["A", ""] => "A\n" to be the same single line. // "A\n" and "A\n\n" are unambiguous. // - const oldFileContent = - diffLines - .filter((line) => line.type === "same" || line.type === "old") - .map((line) => line.line) - .join("\n") + "\n"; + const oldFileContent = diffLines + .filter((line) => line.type === "same" || line.type === "old") + .map((line) => line.line) + .join("\n") + "\n"; - const newFileContent = - diffLines - .filter((line) => line.type === "same" || line.type === "new") - .map((line) => line.line) - .join("\n") + "\n"; + const newFileContent = diffLines + .filter((line) => line.type === "same" || line.type === "new") + .map((line) => line.line) + .join("\n") + "\n"; const diffs = myersDiff(oldFileContent, newFileContent); From 319e20ad06c8d8811d622d962be9daa88732d6ef Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 1 May 2025 22:37:04 -0700 Subject: [PATCH 070/110] iteration on system prompt and edit file description --- core/llm/constructMessages.ts | 17 +++++++++-------- core/tools/definitions/editFile.ts | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index 8a6382ca4..ca3bdf1f9 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -24,31 +24,31 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ unmodified sections. For example: \`\`\`language /path/to/file - // ... rest of code here ... + // ... existing code ... {{ modified code here }} - // ... rest of code here ... + // ... existing code ... {{ another modification }} - // ... rest of code here ... + // ... rest of code ... \`\`\` In existing files, you should always restate the function or class that the snippet belongs to: \`\`\`language /path/to/file - // ... rest of code here ... + // ... existing code ... function exampleFunction() { - // ... rest of code here ... + // ... existing code ... {{ modified code here }} - // ... rest of code here ... + // ... rest of function ... } - // ... rest of code here ... + // ... rest of code ... \`\`\` Since users have access to their complete file, they prefer reading only the @@ -100,7 +100,8 @@ export function constructMessages( | undefined; const systemMessage = getSystemMessageWithRules({ - baseSystemMessage: baseChatOrAgentSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE, + baseSystemMessage: + baseChatOrAgentSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE, rules, userMessage: lastUserMsg, }); diff --git a/core/tools/definitions/editFile.ts b/core/tools/definitions/editFile.ts index 9e2d60219..1653cb279 100644 --- a/core/tools/definitions/editFile.ts +++ b/core/tools/definitions/editFile.ts @@ -30,7 +30,7 @@ export const editFileTool: Tool = { changes: { type: "string", description: - "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock. Use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... rest of code here ...'", + "Any modifications to the file, showing only needed changes. Do NOT wrap this in a codeblock or write anything besides the code changes. In larger files, use brief language-appropriate placeholders for large unmodified sections, e.g. '// ... existing code ...'", }, }, }, From 00ae0a078a008243fa5ba6cf3e74af733bb6fe33 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 2 May 2025 11:48:58 +0530 Subject: [PATCH 071/110] change `timeout` to `connectionTimeout` in yaml --- core/config/yaml/loadYaml.ts | 4 ++-- docs/docs/reference.md | 2 +- packages/config-yaml/src/schemas/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/config/yaml/loadYaml.ts b/core/config/yaml/loadYaml.ts index 23185d7cd..95a4bdc30 100644 --- a/core/config/yaml/loadYaml.ts +++ b/core/config/yaml/loadYaml.ts @@ -72,7 +72,7 @@ function convertYamlMcpToContinueMcp( args: server.args ?? [], env: server.env, }, - timeout: server.timeout + timeout: server.connectionTimeout }; } @@ -445,7 +445,7 @@ async function configYamlToContinueConfig(options: { args: [], ...server, }, - timeout: server.timeout + timeout: server.connectionTimeout })), false, ); diff --git a/docs/docs/reference.md b/docs/docs/reference.md index c62dd441b..3221f66bb 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -380,7 +380,7 @@ prompts, context, and tool use. Continue supports any MCP server with the MCP co - `command` (**required**): The command used to start the server. - `args`: An optional array of arguments for the command. - `env`: An optional map of environment variables for the server process. -- `timeout`: An optional connection timeout number to the server in milliseconds. +- `connectionTimeout`: An optional connection timeout number to the server in milliseconds. **Example:** diff --git a/packages/config-yaml/src/schemas/index.ts b/packages/config-yaml/src/schemas/index.ts index 99ae40d64..35e110206 100644 --- a/packages/config-yaml/src/schemas/index.ts +++ b/packages/config-yaml/src/schemas/index.ts @@ -15,7 +15,7 @@ const mcpServerSchema = z.object({ faviconUrl: z.string().optional(), args: z.array(z.string()).optional(), env: z.record(z.string()).optional(), - timeout: z.number().gt(0).optional() + connectionTimeout: z.number().gt(0).optional() }); export type MCPServer = z.infer; From d9074641df6cf067d332699449befac8eca9934f Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 2 May 2025 01:21:30 -0700 Subject: [PATCH 072/110] recursive streaming for infinite apply --- core/edit/recursiveStream.ts | 101 +++++++++++++++++++++++++++++++++++ core/edit/streamDiffLines.ts | 13 +---- 2 files changed, 103 insertions(+), 11 deletions(-) create mode 100644 core/edit/recursiveStream.ts diff --git a/core/edit/recursiveStream.ts b/core/edit/recursiveStream.ts new file mode 100644 index 000000000..8b9e173f1 --- /dev/null +++ b/core/edit/recursiveStream.ts @@ -0,0 +1,101 @@ +import { ChatMessage, ILLM, Prediction, PromptLog } from ".."; +import { DEFAULT_MAX_TOKENS } from "../llm/constants"; +import { countTokens } from "../llm/countTokens"; +import { renderChatMessage } from "../util/messageContent"; + +const INFINITE_STREAM_SAFETY = 0.8; + +const DUD_PROMPT_LOG: PromptLog = { + modelTitle: "", + completionOptions: { model: "" }, + prompt: "", + completion: "", +}; + +const RECURSIVE_PROMPT = `Continue EXACTLY where you left`; + +export async function* recursiveStream( + llm: ILLM, + prompt: ChatMessage[] | string, + prediction: Prediction | undefined, + currentBuffer = "", + isContinuation = false, +): AsyncGenerator { + const maxTokens = llm.completionOptions?.maxTokens ?? DEFAULT_MAX_TOKENS; + const safeTokens = maxTokens * INFINITE_STREAM_SAFETY; + let totalTokens = 0; + let buffer = currentBuffer; + let whiteSpaceAtEndOfBuffer = buffer.match(/\s*$/)?.[0] ?? ""; + let firstChunk = true; + + if (typeof prompt === "string") { + const generator = llm.streamComplete(prompt, new AbortController().signal, { + raw: true, + prediction: undefined, + reasoning: false, + }); + + for await (const chunk of generator) { + firstChunk = false; + + yield chunk; + buffer += chunk; + totalTokens += countTokens(chunk); + + if (totalTokens >= safeTokens) { + const continuationPrompt = `${RECURSIVE_PROMPT}:\n\n${buffer}`; + + await generator.return(DUD_PROMPT_LOG); // kill the previous generator + + // TODO - Prediction capabilities lost because of partial input + yield* recursiveStream( + llm, + continuationPrompt, + undefined, + buffer, + true, + ); // Recursively stream the continuation + + return; + } + } + } else { + const generator = llm.streamChat(prompt, new AbortController().signal, { + prediction, + reasoning: false, + }); + + for await (const chunk of generator) { + firstChunk = false; + + yield chunk; + const rendered = renderChatMessage(chunk); + buffer += rendered; + totalTokens += countTokens(chunk.content); + + if (totalTokens >= safeTokens) { + const continuationPrompt: ChatMessage[] = [ + ...(isContinuation ? prompt.slice(0, -2) : prompt), + { + role: "assistant", + content: buffer, + }, + { + role: "user", + content: RECURSIVE_PROMPT, + }, + ]; + + await generator.return(DUD_PROMPT_LOG); + yield* recursiveStream( + llm, + continuationPrompt, + undefined, + buffer, + true, + ); + return; + } + } + } +} diff --git a/core/edit/streamDiffLines.ts b/core/edit/streamDiffLines.ts index 320962b7c..792edb041 100644 --- a/core/edit/streamDiffLines.ts +++ b/core/edit/streamDiffLines.ts @@ -22,6 +22,7 @@ import { getSystemMessageWithRules } from "../llm/rules/getSystemMessageWithRule import { gptEditPrompt } from "../llm/templates/edit"; import { findLast } from "../util/findLast"; import { Telemetry } from "../util/posthog"; +import { recursiveStream } from "./recursiveStream"; function constructPrompt( prefix: string, @@ -156,17 +157,7 @@ export async function* streamDiffLines({ content: highlighted, }; - const completion = - typeof prompt === "string" - ? llm.streamComplete(prompt, new AbortController().signal, { - raw: true, - prediction, - reasoning: false, - }) - : llm.streamChat(prompt, new AbortController().signal, { - prediction, - reasoning: false, - }); + const completion = recursiveStream(llm, prompt, prediction); let lines = streamLines(completion); From 0f10dcb6a9904220e050e3277de0f3cf601b0bb6 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 2 May 2025 08:57:03 -0700 Subject: [PATCH 073/110] chore: :bookmark: bump JetBrains version to 1.0.16 --- extensions/intellij/gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index b6887362b..e1571f5aa 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.15 +pluginVersion=1.0.16 # 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 From 9e05f745a5c5634b82242596ab4753e5058dff4c Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 2 May 2025 09:34:12 -0400 Subject: [PATCH 074/110] MCPConnection: avoid accidentally mutating options.transport.env The code that added the PATH to the stdio transport environment was mutating the original options.transport.env object, which can lead to an infinite loop of reloading the continue config since MCPMananagerSingletone.setConnections() compares the old and new options and forces a refresh if any existing server changed transport options. This triggers a config reload because in core.ts we have: MCPManagerSingleton.getInstance().onConnectionsRefreshed = async () => { await this.configHandler.reloadConfig(); }; Which thens calls setConnections() and so forth... --- core/context/mcp/MCPConnection.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index 489d53ccf..6db095de4 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -55,7 +55,9 @@ class MCPConnection { private constructTransport(options: MCPOptions): Transport { switch (options.transport.type) { case "stdio": - const env: Record = options.transport.env || {}; + const env: Record = options.transport.env + ? { ...options.transport.env } + : {}; if (process.env.PATH !== undefined) { env.PATH = process.env.PATH; } From 52b1704f3c0fe991b32959d04c660fe55e899b2c Mon Sep 17 00:00:00 2001 From: liuk Date: Sat, 3 May 2025 02:26:40 +0800 Subject: [PATCH 075/110] feat: improve model retrieval logic in InlineEditAction --- .../continueintellijextension/editor/InlineEditAction.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt index 9c2703173..2766c2487 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/editor/InlineEditAction.kt @@ -131,7 +131,9 @@ fun openInlineEdit(project: Project?, editor: Editor) { val modelTitles = mutableListOf() continuePluginService.coreMessenger?.request("config/getSerializedProfileInfo", null, null) { response -> - response.castNestedOrNull>("content", "result", "config", "modelsByRole", "edit") + val modelsByRole = response.castNestedOrNull>("content", "result", "config", "modelsByRole") ?: return@request + val role = if (modelsByRole.containsKey("edit")) "edit" else "chat" + modelsByRole.castNestedOrNull>(role) ?.mapNotNull { it.castNestedOrNull("title") } ?.let(modelTitles::addAll) } From 56ab293ba1427c1cfaf9c6c98960a713f738c92f Mon Sep 17 00:00:00 2001 From: Jazzcort Date: Fri, 2 May 2025 14:58:32 -0400 Subject: [PATCH 076/110] Add tooltips for buttons in code display Before this fix, the functionality of the Insert and Copy buttons was unclear, as their icons alone did not provide enough information. Users had to interact with the buttons to understand their purpose. By adding tooltips, users now receive immediate context about each button's functionality. This not only improves usability but also ensures a more consistent user experience, as most other UI components already include tooltips. I also added tooltips to Create File and Apply buttons to maintain consistency across the UI. --- .../StepContainerPreToolbar/ApplyActions.tsx | 28 ++++++++++++------ .../StepContainerPreToolbar/CopyButton.tsx | 29 ++++++++++++------- .../CreateFileButton.tsx | 12 ++++++-- .../StepContainerPreToolbar/InsertButton.tsx | 22 ++++++++++---- 4 files changed, 63 insertions(+), 28 deletions(-) diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx index 17bbc5802..cd86c4c60 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/ApplyActions.tsx @@ -3,6 +3,8 @@ import { ApplyState } from "core"; import { useEffect, useState } from "react"; import { getMetaKeyLabel } from "../../../util"; import Spinner from "../../gui/Spinner"; +import { ToolTip } from "../../gui/Tooltip"; +import HoverItem from "../../mainInput/InputToolbar/HoverItem"; import { ToolbarButtonWithTooltip } from "./ToolbarButtonWithTooltip"; interface ApplyActionsProps { @@ -35,16 +37,24 @@ export function ApplyActions(props: ApplyActionsProps) { } const applyButton = (text: string) => ( - + + + {text} Code + + ); switch (props.applyState ? props.applyState.status : null) { diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CopyButton.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CopyButton.tsx index 8b06ad03f..024439c1f 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CopyButton.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CopyButton.tsx @@ -1,5 +1,7 @@ import { CheckIcon, ClipboardIcon } from "@heroicons/react/24/outline"; import useCopy from "../../../hooks/useCopy"; +import { ToolTip } from "../../gui/Tooltip"; +import HoverItem from "../../mainInput/InputToolbar/HoverItem"; interface CopyButtonProps { text: string; @@ -9,17 +11,22 @@ export function CopyButton({ text }: CopyButtonProps) { const { copyText, copied } = useCopy(text); return ( -
    -
    - {copied ? ( - - ) : ( - - )} + +
    +
    + {copied ? ( + + ) : ( + + )} +
    -
    + + Copy Code + + ); } diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CreateFileButton.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CreateFileButton.tsx index 113221b06..a8db04292 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CreateFileButton.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/CreateFileButton.tsx @@ -1,5 +1,7 @@ import { DocumentPlusIcon } from "@heroicons/react/24/outline"; import { vscForeground } from "../.."; +import { ToolTip } from "../../gui/Tooltip"; +import HoverItem from "../../mainInput/InputToolbar/HoverItem"; interface CreateFileButtonProps { onClick: () => void; @@ -7,7 +9,10 @@ interface CreateFileButtonProps { export function CreateFileButton({ onClick }: CreateFileButtonProps) { return ( - <> +
    - + + Create File with Code + + ); } diff --git a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/InsertButton.tsx b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/InsertButton.tsx index b8784dd07..6373673b6 100644 --- a/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/InsertButton.tsx +++ b/gui/src/components/StyledMarkdownPreview/StepContainerPreToolbar/InsertButton.tsx @@ -1,4 +1,6 @@ import { ArrowLeftEndOnRectangleIcon } from "@heroicons/react/24/outline"; +import { ToolTip } from "../../gui/Tooltip"; +import HoverItem from "../../mainInput/InputToolbar/HoverItem"; /** * Button that inserts code at the current cursor position @@ -9,13 +11,21 @@ interface InsertButtonProps { export function InsertButton({ onInsert }: InsertButtonProps) { return ( -
    -
    - +
    +
    + +
    -
    + + Insert Code + + ); } From 1ed9bfccca3f97d81effe728b73370438613690a Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Fri, 2 May 2025 14:44:04 -0700 Subject: [PATCH 077/110] Update README.md --- packages/continue-sdk/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/continue-sdk/README.md b/packages/continue-sdk/README.md index 0c8a32ad4..cf3f3fa88 100644 --- a/packages/continue-sdk/README.md +++ b/packages/continue-sdk/README.md @@ -1,5 +1,7 @@ # @continuedev/sdk +> **⚠️ EXPERIMENTAL: This package is in early development and subject to frequent breaking changes without notice.** + This SDK provides programmatic access to Continue's Hub APIs and functionality. ## Overview From 2a91c4ed969077de92e3480e7ea6cefabc8a3e72 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 2 May 2025 16:00:59 -0700 Subject: [PATCH 078/110] for now, throw error when max token output reached, rather than recursively continuing apply --- core/edit/recursiveStream.ts | 77 ++++++++++++++++++------------------ 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/core/edit/recursiveStream.ts b/core/edit/recursiveStream.ts index 8b9e173f1..9cb2db915 100644 --- a/core/edit/recursiveStream.ts +++ b/core/edit/recursiveStream.ts @@ -3,7 +3,7 @@ import { DEFAULT_MAX_TOKENS } from "../llm/constants"; import { countTokens } from "../llm/countTokens"; import { renderChatMessage } from "../util/messageContent"; -const INFINITE_STREAM_SAFETY = 0.8; +const INFINITE_STREAM_SAFETY = 0.9; const DUD_PROMPT_LOG: PromptLog = { modelTitle: "", @@ -25,8 +25,7 @@ export async function* recursiveStream( const safeTokens = maxTokens * INFINITE_STREAM_SAFETY; let totalTokens = 0; let buffer = currentBuffer; - let whiteSpaceAtEndOfBuffer = buffer.match(/\s*$/)?.[0] ?? ""; - let firstChunk = true; + // let whiteSpaceAtEndOfBuffer = buffer.match(/\s*$/)?.[0] ?? ""; // attempts at fixing whitespace bug with recursive boundaries if (typeof prompt === "string") { const generator = llm.streamComplete(prompt, new AbortController().signal, { @@ -36,27 +35,28 @@ export async function* recursiveStream( }); for await (const chunk of generator) { - firstChunk = false; - yield chunk; buffer += chunk; totalTokens += countTokens(chunk); if (totalTokens >= safeTokens) { - const continuationPrompt = `${RECURSIVE_PROMPT}:\n\n${buffer}`; + throw new Error( + "Token limit reached. File/range likely too large for this edit", + ); + // const continuationPrompt = `${RECURSIVE_PROMPT}:\n\n${buffer}`; - await generator.return(DUD_PROMPT_LOG); // kill the previous generator + // await generator.return(DUD_PROMPT_LOG); // kill the previous generator - // TODO - Prediction capabilities lost because of partial input - yield* recursiveStream( - llm, - continuationPrompt, - undefined, - buffer, - true, - ); // Recursively stream the continuation + // // TODO - Prediction capabilities lost because of partial input + // yield* recursiveStream( + // llm, + // continuationPrompt, + // undefined, + // buffer, + // true, + // ); // Recursively stream the continuation - return; + // return; } } } else { @@ -66,35 +66,36 @@ export async function* recursiveStream( }); for await (const chunk of generator) { - firstChunk = false; - yield chunk; const rendered = renderChatMessage(chunk); buffer += rendered; totalTokens += countTokens(chunk.content); if (totalTokens >= safeTokens) { - const continuationPrompt: ChatMessage[] = [ - ...(isContinuation ? prompt.slice(0, -2) : prompt), - { - role: "assistant", - content: buffer, - }, - { - role: "user", - content: RECURSIVE_PROMPT, - }, - ]; - - await generator.return(DUD_PROMPT_LOG); - yield* recursiveStream( - llm, - continuationPrompt, - undefined, - buffer, - true, + throw new Error( + "Token limit reached. File/range likely too large for this edit", ); - return; + // const continuationPrompt: ChatMessage[] = [ + // ...(isContinuation ? prompt.slice(0, -2) : prompt), + // { + // role: "assistant", + // content: buffer, + // }, + // { + // role: "user", + // content: RECURSIVE_PROMPT, + // }, + // ]; + + // await generator.return(DUD_PROMPT_LOG); + // yield* recursiveStream( + // llm, + // continuationPrompt, + // undefined, + // buffer, + // true, + // ); + // return; } } } From 1c44b2549d794d6347a5a04a8f82186f027e9e1e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 2 May 2025 16:20:26 -0700 Subject: [PATCH 079/110] let -> const --- core/core.ts | 14 +++---- core/edit/streamDiffLines.ts | 39 +++++++++---------- extensions/vscode/src/apply/ApplyManager.ts | 2 +- extensions/vscode/src/commands.ts | 2 +- .../vscode/src/diff/vertical/manager.ts | 6 +-- .../vscode/src/extension/VsCodeMessenger.ts | 2 +- .../src/quickEdit/QuickEditQuickPick.ts | 2 +- 7 files changed, 30 insertions(+), 37 deletions(-) diff --git a/core/core.ts b/core/core.ts index 62121b642..9ca9108df 100644 --- a/core/core.ts +++ b/core/core.ts @@ -84,17 +84,13 @@ async function* streamDiffLinesGenerator( throw new Error("Failed to load config"); } - // title can be an edit, chat, or apply model - let llm = + // Title can be an edit, chat, or apply model + // Fall back to chat + const llm = config.modelsByRole.edit.find((m) => m.title === modelTitle) ?? config.modelsByRole.apply.find((m) => m.title === modelTitle) ?? config.modelsByRole.chat.find((m) => m.title === modelTitle) ?? - null; - - // fallback to selected chat model - if (!llm) { - llm = config.selectedModelByRole.chat; - } + config.selectedModelByRole.chat; if (!llm) { throw new Error("No model selected"); @@ -108,7 +104,7 @@ async function* streamDiffLinesGenerator( prefix, suffix, llm, - includeRulesAsSystemMessage: rules, + rulesToInclude: rules, input, language, onlyOneInsertion: false, diff --git a/core/edit/streamDiffLines.ts b/core/edit/streamDiffLines.ts index 1db707289..5693d02d2 100644 --- a/core/edit/streamDiffLines.ts +++ b/core/edit/streamDiffLines.ts @@ -66,7 +66,7 @@ export async function* streamDiffLines({ language, onlyOneInsertion, overridePrompt, - includeRulesAsSystemMessage, + rulesToInclude, }: { prefix: string; highlighted: string; @@ -76,7 +76,7 @@ export async function* streamDiffLines({ language: string | undefined; onlyOneInsertion: boolean; overridePrompt: ChatMessage[] | undefined; - includeRulesAsSystemMessage: RuleWithSource[] | undefined; + rulesToInclude: RuleWithSource[] | undefined; }): AsyncGenerator { void Telemetry.capture( "inlineEdit", @@ -107,25 +107,22 @@ export async function* streamDiffLines({ // Rules can be included with edit prompt // If any rules are present this will result in using chat instead of legacy completion - let systemMessage: string | undefined = undefined; - if (includeRulesAsSystemMessage) { - const lastUserMessage = - typeof prompt === "string" - ? ({ - role: "user", - content: prompt, - } as UserChatMessage) - : (findLast( - prompt, - (msg) => msg.role === "user" || msg.role === "tool", - ) as UserChatMessage | ToolResultChatMessage | undefined); - - systemMessage = getSystemMessageWithRules({ - rules: includeRulesAsSystemMessage, - userMessage: lastUserMessage, - baseSystemMessage: undefined, - }); - } + const systemMessage = rulesToInclude + ? getSystemMessageWithRules({ + rules: rulesToInclude, + userMessage: + typeof prompt === "string" + ? ({ + role: "user", + content: prompt, + } as UserChatMessage) + : (findLast( + prompt, + (msg) => msg.role === "user" || msg.role === "tool", + ) as UserChatMessage | ToolResultChatMessage | undefined), + baseSystemMessage: undefined, + }) + : undefined; if (systemMessage) { if (typeof prompt === "string") { diff --git a/extensions/vscode/src/apply/ApplyManager.ts b/extensions/vscode/src/apply/ApplyManager.ts index afe6bb168..df5791335 100644 --- a/extensions/vscode/src/apply/ApplyManager.ts +++ b/extensions/vscode/src/apply/ApplyManager.ts @@ -181,7 +181,7 @@ export class ApplyManager { range: rangeToApplyTo, newCode: text, toolCallId, - includeRulesAsSystemMessage: undefined, // No rules for apply + rulesToInclude: undefined, // No rules for apply }); } } diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 45331e61a..24bf57c52 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -226,7 +226,7 @@ const getCommandsMap: ( llm, onlyOneInsertion, range, - includeRulesAsSystemMessage: config.rules, + rulesToInclude: config.rules, }); } diff --git a/extensions/vscode/src/diff/vertical/manager.ts b/extensions/vscode/src/diff/vertical/manager.ts index db2d55cb9..5f8a646d0 100644 --- a/extensions/vscode/src/diff/vertical/manager.ts +++ b/extensions/vscode/src/diff/vertical/manager.ts @@ -280,7 +280,7 @@ export class VerticalDiffManager { range, newCode, toolCallId, - includeRulesAsSystemMessage, + rulesToInclude, }: { input: string; llm: ILLM; @@ -290,7 +290,7 @@ export class VerticalDiffManager { range?: vscode.Range; newCode?: string; toolCallId?: string; - includeRulesAsSystemMessage: undefined | RuleWithSource[]; + rulesToInclude: undefined | RuleWithSource[]; }): Promise { vscode.commands.executeCommand("setContext", "continue.diffVisible", true); @@ -443,7 +443,7 @@ export class VerticalDiffManager { prefix, suffix, llm, - includeRulesAsSystemMessage, + rulesToInclude, input, language: getMarkdownLanguageTagForFile(fileUri), onlyOneInsertion: !!onlyOneInsertion, diff --git a/extensions/vscode/src/extension/VsCodeMessenger.ts b/extensions/vscode/src/extension/VsCodeMessenger.ts index 5484ba204..160ae1183 100644 --- a/extensions/vscode/src/extension/VsCodeMessenger.ts +++ b/extensions/vscode/src/extension/VsCodeMessenger.ts @@ -226,7 +226,7 @@ export class VsCodeMessenger { new vscode.Position(start.line, start.character), new vscode.Position(end.line, end.character), ), - includeRulesAsSystemMessage: config.rules, + rulesToInclude: config.rules, }); return fileAfterEdit; }); diff --git a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts index 7d677ab1b..30af51cd1 100644 --- a/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts +++ b/extensions/vscode/src/quickEdit/QuickEditQuickPick.ts @@ -331,7 +331,7 @@ export class QuickEdit { llm: model, quickEdit: this.previousInput, range: this.range, - includeRulesAsSystemMessage: rules, + rulesToInclude: rules, }); } From f224e5813a3d9c494f116cee5b54ae7697f3918d Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 2 May 2025 17:06:08 -0700 Subject: [PATCH 080/110] mark all gpt- and o-series models as chat only (not /v1/completions) --- core/llm/llms/OpenAI.ts | 26 +++++--------------------- extensions/vscode/package.json | 2 +- 2 files changed, 6 insertions(+), 22 deletions(-) diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index 51453d974..f6dbc2bf3 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -31,26 +31,10 @@ const NON_CHAT_MODELS = [ "ada", ]; -const CHAT_ONLY_MODELS = [ - "gpt-3.5-turbo", - "gpt-3.5-turbo-0613", - "gpt-3.5-turbo-16k", - "gpt-4", - "gpt-4-turbo", - "gpt-4o", - "gpt-35-turbo-16k", - "gpt-35-turbo-0613", - "gpt-35-turbo", - "gpt-4-32k", - "gpt-4-turbo-preview", - "gpt-4-vision", - "gpt-4-0125-preview", - "gpt-4-1106-preview", - "gpt-4o-mini", - "o1-preview", - "o1-mini", - "o3-mini", -]; +function isChatOnlyModel(model: string): boolean { + // gpt and o-series models + return model.startsWith("gpt") || model.startsWith("o"); +} const formatMessageForO1 = (messages: ChatCompletionMessageParam[]) => { return messages?.map((message: any) => { @@ -335,7 +319,7 @@ class OpenAI extends BaseLLM { options: CompletionOptions, ): AsyncGenerator { if ( - !CHAT_ONLY_MODELS.includes(options.model) && + !isChatOnlyModel(options.model) && this.supportsCompletions() && (NON_CHAT_MODELS.includes(options.model) || this.useLegacyCompletionsEndpoint || diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index ff1ceffcc..c8297eed7 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.31", + "version": "1.1.32", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From b6ec53d76927201a769c68ff205bd5209caa9742 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 2 May 2025 18:07:15 -0700 Subject: [PATCH 081/110] patrick requested changes - remove in-block function etc --- .../vscode/src/diff/vertical/handler.ts | 60 +++++++------------ 1 file changed, 22 insertions(+), 38 deletions(-) diff --git a/extensions/vscode/src/diff/vertical/handler.ts b/extensions/vscode/src/diff/vertical/handler.ts index 5ba06f014..6a4e36241 100644 --- a/extensions/vscode/src/diff/vertical/handler.ts +++ b/extensions/vscode/src/diff/vertical/handler.ts @@ -174,6 +174,25 @@ export class VerticalDiffHandler implements vscode.Disposable { ); } + private async deleteRangeLines(ranges: vscode.Range[]) { + await this.editor.edit( + (editBuilder) => { + for (const range of ranges) { + editBuilder.delete( + new vscode.Range( + range.start, + new vscode.Position(range.end.line + 1, 0), + ), + ); + } + }, + { + undoStopAfter: false, + undoStopBefore: false, + }, + ); + } + private updateIndexLineDecorations() { if (this.options.instant) { // We don't show progress on instant apply @@ -205,22 +224,6 @@ export class VerticalDiffHandler implements vscode.Disposable { this.editor.setDecorations(indexDecorationType, []); } - // public getLineDeltaBeforeLine(line: number) { - // // Returns the number of lines removed from a file when the diff currently active is closed - // let totalLineDelta = 0; - // for (const range of this.addedLineDecorations - // .getRanges() - // .sort((a, b) => a.start.line - b.start.line)) { - // if (range.start.line > line) { - // break; - // } - - // totalLineDelta -= range.end.line - range.start.line + 1; - // } - - // return totalLineDelta; - // } - async clear(accept: boolean) { vscode.commands.executeCommand( "setContext", @@ -228,36 +231,17 @@ export class VerticalDiffHandler implements vscode.Disposable { false, ); - const deleteRangeLines = async (ranges: vscode.Range[]) => { - await this.editor.edit( - (editBuilder) => { - for (const range of ranges) { - editBuilder.delete( - new vscode.Range( - range.start, - new vscode.Position(range.end.line + 1, 0), - ), - ); - } - }, - { - undoStopAfter: false, - undoStopBefore: false, - }, - ); - }; - const removedRanges = this.removedLineDecorations.ranges; if (accept) { // Accept all: delete all the red ranges and clear green decorations - await deleteRangeLines(removedRanges.map((r) => r.range)); + await this.deleteRangeLines(removedRanges.map((r) => r.range)); } else { // Reject all: Re-insert red lines, delete green ones for (const r of removedRanges) { - await deleteRangeLines([r.range]); + await this.deleteRangeLines([r.range]); await this.insertTextAboveLine(r.range.start.line, r.line); } - await deleteRangeLines(this.addedLineDecorations.ranges); + await this.deleteRangeLines(this.addedLineDecorations.ranges); } this.clearDecorations(); From 9bb12beedfbff526000986424e383e5faf3931f2 Mon Sep 17 00:00:00 2001 From: Nate Date: Fri, 2 May 2025 23:01:36 -0700 Subject: [PATCH 082/110] chore: :technologist: recommended extensions for Continue developers in .vscode/extensions.json --- .vscode/extensions.json | 10 ++++++++++ .vscode/settings.json | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..2e93694c0 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + "recommendations": [ + "Continue.continue", + "vivaxy.vscode-conventional-commits", + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "bradlc.vscode-tailwindcss", + "YoavBls.pretty-ts-errors" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 397937afb..7fe747a2c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -46,5 +46,10 @@ // "sync/**": true }, "eslint.workingDirectories": ["./core"], - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + "conventionalCommits.showNewVersionNotes": false, + "conventionalCommits.promptBody": false, + "conventionalCommits.promptFooter": false, + "conventionalCommits.promptScopes": false, + "conventionalCommits.scopes": [] } From 1628869f74ee4f8d755785423a56a3d82f92f443 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Sun, 4 May 2025 14:52:31 +0530 Subject: [PATCH 083/110] fix word break on error section --- .../components/mainInput/Lump/sections/errors/ErrorSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/Lump/sections/errors/ErrorSection.tsx b/gui/src/components/mainInput/Lump/sections/errors/ErrorSection.tsx index 89a243871..b1117c767 100644 --- a/gui/src/components/mainInput/Lump/sections/errors/ErrorSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/errors/ErrorSection.tsx @@ -28,7 +28,7 @@ export function ErrorSection() { ) : ( )} -

    {error.message}

    +

    {error.message}

    ))} From dcdfa59db43ae4e864e5cb1ca04b6804cca64d2f Mon Sep 17 00:00:00 2001 From: Yang Jun Date: Sun, 4 May 2025 12:40:25 +0800 Subject: [PATCH 084/110] fix: undefined in title --- core/config/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/config/util.ts b/core/config/util.ts index 9460986bb..cc187fc55 100644 --- a/core/config/util.ts +++ b/core/config/util.ts @@ -38,7 +38,7 @@ export function addModel( (prev, curr) => (curr.title.startsWith(model.title) ? prev + 1 : prev), 0, ); - if (numMatches !== 0) { + if (numMatches !== undefined && numMatches > 0) { model.title = `${model.title} (${numMatches})`; } @@ -63,7 +63,7 @@ export function addModel( "name" in curr && curr.name.startsWith(model.title) ? prev + 1 : prev, 0, ); - if (numMatches !== 0) { + if (numMatches !== undefined && numMatches > 0) { model.title = `${model.title} (${numMatches})`; } From 48429ae04f957a98c24d841316c722b91841c329 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 4 May 2025 19:42:51 -0700 Subject: [PATCH 085/110] feat: make `assistant` optional on sdk --- packages/continue-sdk/typescript/package.json | 2 +- .../continue-sdk/typescript/src/Continue.ts | 59 +++++++++++++++---- 2 files changed, 50 insertions(+), 11 deletions(-) diff --git a/packages/continue-sdk/typescript/package.json b/packages/continue-sdk/typescript/package.json index 53f0cf2e6..4e5d95706 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.9", + "version": "0.0.10", "description": "SDK for Continue.dev", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", diff --git a/packages/continue-sdk/typescript/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts index 4659ddffc..929d7faa7 100644 --- a/packages/continue-sdk/typescript/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -7,8 +7,9 @@ import { createOpenAIClient } from "./createOpenAIClient.js"; export interface ContinueClientOptions { /** * The assistant identifier in the format owner-slug/package-slug + * If not provided, only the Continue API client will be returned */ - assistant: string; + assistant?: string; /** * API Key Authentication @@ -33,11 +34,11 @@ export interface ContinueClientOptions { baseURL?: string; } -export type ContinueClient = { +export type ContinueClientWithAssistant = { /** * The Continue API client */ - api: DefaultApi; + continueClient: DefaultApi; /** * The OpenAI client configured to use the Continue API @@ -51,17 +52,51 @@ export type ContinueClient = { assistant: Assistant; }; +export type ContinueClientOnly = { + /** + * The Continue API client + */ + api: DefaultApi; +}; + export class Continue { /** - * Create a Continue instance with pre-configured OpenAI client and assistant + * Create a Continue instance with a specific assistant * - * @param options - Configuration options - * @returns Object containing Continue client, OpenAI client, and assistant config + * When you provide an assistant name, this returns a full client with: + * - Continue API access + * - A configured OpenAI-compatible client + * - Assistant configuration and helper methods + * + * @param options - Configuration including your API key and assistant name + * @returns Full Continue environment with API client, LLM client, and assistant config */ - static async from(options: ContinueClientOptions): Promise { + static async from( + options: ContinueClientOptions & { assistant: string }, + ): Promise; + + /** + * Create a simple Continue API client + * + * When you don't specify an assistant, this returns just the Continue API client + * for making direct API calls. + * + * @param options - Configuration including your API key + * @returns Just the Continue API client + */ + static async from( + options: ContinueClientOptions & { assistant?: undefined }, + ): Promise; + + /** + * Internal implementation + */ + static async from( + options: ContinueClientOptions, + ): Promise { const baseURL = options.baseURL || "https://api.continue.dev/"; - const api = new DefaultApi( + const continueClient = new DefaultApi( new Configuration({ basePath: baseURL, accessToken: options.apiKey @@ -70,6 +105,10 @@ export class Continue { }), ); + if (!options.assistant) { + return { api: continueClient }; + } + const { ownerSlug, packageSlug } = decodePackageSlug(options.assistant); if (!ownerSlug || !packageSlug) { throw new Error( @@ -77,7 +116,7 @@ export class Continue { ); } - const assistants = await api.listAssistants({ + const assistants = await continueClient.listAssistants({ organizationId: options.organizationId, alwaysUseProxy: "true", }); @@ -100,7 +139,7 @@ export class Continue { }); return { - api, + api: continueClient, client, assistant, }; From 4559519f3b3ca43ea6598e5ad641f92334f0d813 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 4 May 2025 19:56:46 -0700 Subject: [PATCH 086/110] docs: update READMe for sdk --- packages/continue-sdk/typescript/README.md | 24 ++++++++++++++++--- .../continue-sdk/typescript/src/Continue.ts | 2 +- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/packages/continue-sdk/typescript/README.md b/packages/continue-sdk/typescript/README.md index bb8a4dd7d..773b9eee3 100644 --- a/packages/continue-sdk/typescript/README.md +++ b/packages/continue-sdk/typescript/README.md @@ -35,6 +35,20 @@ const response = await client.chat.completions.create({ console.log(response.choices[0].message.content); ``` +You can also use the SDK without specifying an assistant to just get the Continue API client: + +```typescript +import { Continue } from "@continuedev/sdk"; + +// Initialize just the Continue API client +const { api } = await Continue.from({ + apiKey: process.env.CONTINUE_API_KEY, +}); + +// Use the continueClient for direct API calls +const assistants = await continueClient.listAssistants({}); +``` + ## API Reference ### Continue.from(options) @@ -44,14 +58,18 @@ Creates a Continue instance with a pre-configured OpenAI client and assistant. #### Options - `apiKey` (string, required): Your Continue API key -- `assistant` (string, required): The assistant identifier in the format `owner-slug/assistant-slug` +- `assistant` (string, optional): The assistant identifier in the format `owner-slug/assistant-slug` - `organizationId` (string, optional): Optional organization ID - `baseURL` (string, optional): Base URL for the Continue API (defaults to `https://api.continue.dev/`) #### Returns -An object containing: +When `assistant` is provided, returns an object containing: +- `api`: The Continue API client for direct API access - `client`: An OpenAI-compatible client configured to use the Continue API - `assistant`: The assistant configuration with utility methods -- `api`: The raw Continue API client for direct API access + +When assistant is not provided, returns an object containing: + +- `api`: The Continue API client for direct API access diff --git a/packages/continue-sdk/typescript/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts index 929d7faa7..166480077 100644 --- a/packages/continue-sdk/typescript/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -38,7 +38,7 @@ export type ContinueClientWithAssistant = { /** * The Continue API client */ - continueClient: DefaultApi; + api: DefaultApi; /** * The OpenAI client configured to use the Continue API From 7b337c331a275e6ccf3189a28049595a18aabe51 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 4 May 2025 20:05:46 -0700 Subject: [PATCH 087/110] chore: improve type names --- packages/continue-sdk/typescript/README.md | 4 ++-- packages/continue-sdk/typescript/src/Continue.ts | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/continue-sdk/typescript/README.md b/packages/continue-sdk/typescript/README.md index 773b9eee3..3faaf55c3 100644 --- a/packages/continue-sdk/typescript/README.md +++ b/packages/continue-sdk/typescript/README.md @@ -45,8 +45,8 @@ const { api } = await Continue.from({ apiKey: process.env.CONTINUE_API_KEY, }); -// Use the continueClient for direct API calls -const assistants = await continueClient.listAssistants({}); +// Make calls to the Continue API +const assistants = await api.listAssistants({}); ``` ## API Reference diff --git a/packages/continue-sdk/typescript/src/Continue.ts b/packages/continue-sdk/typescript/src/Continue.ts index 166480077..14e136a9b 100644 --- a/packages/continue-sdk/typescript/src/Continue.ts +++ b/packages/continue-sdk/typescript/src/Continue.ts @@ -34,7 +34,7 @@ export interface ContinueClientOptions { baseURL?: string; } -export type ContinueClientWithAssistant = { +export type ContinueClient = { /** * The Continue API client */ @@ -52,7 +52,7 @@ export type ContinueClientWithAssistant = { assistant: Assistant; }; -export type ContinueClientOnly = { +export type ContinueClientBase = { /** * The Continue API client */ @@ -73,7 +73,7 @@ export class Continue { */ static async from( options: ContinueClientOptions & { assistant: string }, - ): Promise; + ): Promise; /** * Create a simple Continue API client @@ -86,14 +86,14 @@ export class Continue { */ static async from( options: ContinueClientOptions & { assistant?: undefined }, - ): Promise; + ): Promise; /** * Internal implementation */ static async from( options: ContinueClientOptions, - ): Promise { + ): Promise { const baseURL = options.baseURL || "https://api.continue.dev/"; const continueClient = new DefaultApi( From c051dbb0d662231e257d1dadca0a42427e7bf6ac Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 4 May 2025 20:08:59 -0700 Subject: [PATCH 088/110] Update package.json --- 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 4e5d95706..8079dc2db 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.10", + "version": "0.0.11", "description": "SDK for Continue.dev", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", From ee59a300ad7f58ae93eb5074509117b83c467466 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Sun, 4 May 2025 20:43:55 -0700 Subject: [PATCH 089/110] Update package.json --- 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 8079dc2db..1d0544e9d 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.11", + "version": "0.0.12", "description": "SDK for Continue.dev", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", From 44fdd65967b561527865a02cafce0de4cdc9fa70 Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Mon, 5 May 2025 11:27:24 -0700 Subject: [PATCH 090/110] feat: use theme color for shortcuts rows --- gui/src/pages/config/KeyboardShortcuts.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/gui/src/pages/config/KeyboardShortcuts.tsx b/gui/src/pages/config/KeyboardShortcuts.tsx index 4456bf45c..75e6eec18 100644 --- a/gui/src/pages/config/KeyboardShortcuts.tsx +++ b/gui/src/pages/config/KeyboardShortcuts.tsx @@ -11,13 +11,10 @@ interface KeyboardShortcutProps { function KeyboardShortcut(props: KeyboardShortcutProps) { return (
    -
    - {props.description}: +
    + {props.description}:
    {props.shortcut} @@ -27,7 +24,7 @@ function KeyboardShortcut(props: KeyboardShortcutProps) { } // Shortcut strings will be rendered correctly based on the platform by the Shortcut component -const vscodeShortcuts: Omit[] = [ +const vscodeShortcuts: Omit[] = [ { shortcut: "cmd '", description: "Toggle Selected Model", @@ -84,7 +81,7 @@ const vscodeShortcuts: Omit[] = [ }, ]; -const jetbrainsShortcuts: Omit[] = [ +const jetbrainsShortcuts: Omit[] = [ { shortcut: "cmd '", description: "Toggle Selected Model", @@ -135,7 +132,7 @@ function KeyboardShortcuts() { }, []); return ( -
    +

    Keyboard shortcuts

    {shortcuts.map((shortcut, i) => { @@ -154,4 +151,3 @@ function KeyboardShortcuts() { } export default KeyboardShortcuts; - From d392d7736d5d31804cd54b3c307bbfb6289e5358 Mon Sep 17 00:00:00 2001 From: 04cfb1ed <12877898+04cfb1ed@users.noreply.github.com> Date: Fri, 2 May 2025 17:16:18 -0500 Subject: [PATCH 091/110] feat: add support for custom headers in SSE transport --- core/context/mcp/MCPConnection.test.ts | 19 +++++++++++++++++++ core/context/mcp/MCPConnection.ts | 14 +++++++++++++- core/index.d.ts | 3 +++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/core/context/mcp/MCPConnection.test.ts b/core/context/mcp/MCPConnection.test.ts index 4b5ccd2a0..ee32b44c6 100644 --- a/core/context/mcp/MCPConnection.test.ts +++ b/core/context/mcp/MCPConnection.test.ts @@ -55,6 +55,25 @@ describe("MCPConnection", () => { expect(conn.status).toBe("not-connected"); }); + it("should create instance with SSE transport and custom headers", () => { + const options = { + name: "test-mcp", + id: "test-id", + transport: { + type: "sse" as const, + url: "http://test.com/events", + headers: { + "Authorization": "Bearer token123", + "X-Custom-Header": "custom-value" + } + }, + }; + + const conn = new MCPConnection(options); + expect(conn).toBeInstanceOf(MCPConnection); + expect(conn.status).toBe("not-connected"); + }); + it("should throw on invalid transport type", () => { const options = { name: "test-mcp", diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index 6db095de4..505d20fb1 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -69,7 +69,19 @@ class MCPConnection { case "websocket": return new WebSocketClientTransport(new URL(options.transport.url)); case "sse": - return new SSEClientTransport(new URL(options.transport.url)); + return new SSEClientTransport(new URL(options.transport.url), { + eventSourceInit: { + fetch: (input, init) => + fetch(input, { + ...init, + headers: { + ...init?.headers, + ...(options.transport.headers as Record | undefined), + } + }), + }, + requestInit: { headers: options.transport.headers } + }); default: throw new Error( `Unsupported transport type: ${(options.transport as any).type}`, diff --git a/core/index.d.ts b/core/index.d.ts index e781aa5a5..1f0460161 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1114,16 +1114,19 @@ export interface StdioOptions { command: string; args: string[]; env?: Record; + headers?: HeadersInit; } export interface WebSocketOptions { type: "websocket"; url: string; + headers?: HeadersInit; } export interface SSEOptions { type: "sse"; url: string; + headers?: HeadersInit; } export type TransportOptions = StdioOptions | WebSocketOptions | SSEOptions; From 51c294aaed23f43bb6de6fe25eb5c602255cbe43 Mon Sep 17 00:00:00 2001 From: mq200 Date: Mon, 5 May 2025 16:44:08 -0700 Subject: [PATCH 092/110] add codestral template --- core/llm/autodetect.ts | 2 ++ core/llm/templates/chat.ts | 10 ++++++++++ packages/config-yaml/src/schemas/models.ts | 1 + 3 files changed, 13 insertions(+) diff --git a/core/llm/autodetect.ts b/core/llm/autodetect.ts index 1393ac44e..ea34414f7 100644 --- a/core/llm/autodetect.ts +++ b/core/llm/autodetect.ts @@ -9,6 +9,7 @@ import { anthropicTemplateMessages, chatmlTemplateMessages, codeLlama70bTemplateMessages, + codestralTemplateMessages, deepseekTemplateMessages, gemmaTemplateMessage, graniteTemplateMessages, @@ -295,6 +296,7 @@ function autodetectTemplateFunction( gemma: gemmaTemplateMessage, granite: graniteTemplateMessages, llama3: llama3TemplateMessages, + codestral: codestralTemplateMessages, none: null, }; diff --git a/core/llm/templates/chat.ts b/core/llm/templates/chat.ts index b205f3d3c..0e625b1f3 100644 --- a/core/llm/templates/chat.ts +++ b/core/llm/templates/chat.ts @@ -93,6 +93,15 @@ function llama2TemplateMessages(msgs: ChatMessage[]): string { return prompt; } +// Llama2 template with added \n to prevent Codestral from continuing user message +function codestralTemplateMessages(msgs: ChatMessage[]): string { + let template = llama2TemplateMessages(msgs); + if (template.length == 0) { + return template; + } + return template + "\n"; +} + function anthropicTemplateMessages(messages: ChatMessage[]): string { const HUMAN_PROMPT = "\n\nHuman:"; const AI_PROMPT = "\n\nAssistant:"; @@ -300,4 +309,5 @@ export { templateAlpacaMessages, xWinCoderTemplateMessages, zephyrTemplateMessages, + codestralTemplateMessages, }; diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index abc0c50c4..2a1eb0a68 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -88,6 +88,7 @@ const templateSchema = z.enum([ "gemma", "granite", "llama3", + "codestral", ]); /** Prompt templates use Handlebars syntax */ From e089d53f27a91ee274e5ceabd5f87e8f775c5a52 Mon Sep 17 00:00:00 2001 From: mq200 Date: Mon, 5 May 2025 16:52:31 -0700 Subject: [PATCH 093/110] add codestral in template enum --- core/config/types.ts | 3 ++- core/control-plane/schema.ts | 1 + core/index.d.ts | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/config/types.ts b/core/config/types.ts index ee4b500bf..a23dcfeec 100644 --- a/core/config/types.ts +++ b/core/config/types.ts @@ -835,7 +835,8 @@ declare global { | "llava" | "gemma" | "granite" - | "llama3"; + | "llama3" + | "codestral"; export interface RequestOptions { timeout?: number; diff --git a/core/control-plane/schema.ts b/core/control-plane/schema.ts index be53a9864..66b0837ab 100644 --- a/core/control-plane/schema.ts +++ b/core/control-plane/schema.ts @@ -44,6 +44,7 @@ const modelDescriptionSchema = z.object({ "llava", "gemma", "llama3", + "codestral", ]) .optional(), completionOptions: z diff --git a/core/index.d.ts b/core/index.d.ts index e781aa5a5..d4b5c47dc 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -910,7 +910,8 @@ export type TemplateType = | "llava" | "gemma" | "granite" - | "llama3"; + | "llama3" + | "codestral"; export interface RequestOptions { timeout?: number; From 18832e05a974c3b4e08b67acb53b90d5e009377d Mon Sep 17 00:00:00 2001 From: Camilo Date: Mon, 5 May 2025 19:04:39 -0500 Subject: [PATCH 094/110] refactor: replace transport headers with requestOptions --- core/context/mcp/MCPConnection.test.ts | 8 +++++--- core/context/mcp/MCPConnection.ts | 4 ++-- core/index.d.ts | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/core/context/mcp/MCPConnection.test.ts b/core/context/mcp/MCPConnection.test.ts index ee32b44c6..f2b13ca10 100644 --- a/core/context/mcp/MCPConnection.test.ts +++ b/core/context/mcp/MCPConnection.test.ts @@ -62,9 +62,11 @@ describe("MCPConnection", () => { transport: { type: "sse" as const, url: "http://test.com/events", - headers: { - "Authorization": "Bearer token123", - "X-Custom-Header": "custom-value" + requestOptions: { + headers: { + "Authorization": "Bearer token123", + "X-Custom-Header": "custom-value" + } } }, }; diff --git a/core/context/mcp/MCPConnection.ts b/core/context/mcp/MCPConnection.ts index 505d20fb1..532bb273a 100644 --- a/core/context/mcp/MCPConnection.ts +++ b/core/context/mcp/MCPConnection.ts @@ -76,11 +76,11 @@ class MCPConnection { ...init, headers: { ...init?.headers, - ...(options.transport.headers as Record | undefined), + ...(options.transport.requestOptions?.headers as Record | undefined), } }), }, - requestInit: { headers: options.transport.headers } + requestInit: { headers: options.transport.requestOptions?.headers } }); default: throw new Error( diff --git a/core/index.d.ts b/core/index.d.ts index 1f0460161..858c8e1ac 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1114,19 +1114,19 @@ export interface StdioOptions { command: string; args: string[]; env?: Record; - headers?: HeadersInit; + requestOptions?: RequestOptions; } export interface WebSocketOptions { type: "websocket"; url: string; - headers?: HeadersInit; + requestOptions?: RequestOptions; } export interface SSEOptions { type: "sse"; url: string; - headers?: HeadersInit; + requestOptions?: RequestOptions; } export type TransportOptions = StdioOptions | WebSocketOptions | SSEOptions; From b717b9211fb9af03d97b7b2578c763a7bc41d629 Mon Sep 17 00:00:00 2001 From: mq200 Date: Mon, 5 May 2025 17:05:32 -0700 Subject: [PATCH 095/110] lint codestral template --- core/llm/templates/chat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/llm/templates/chat.ts b/core/llm/templates/chat.ts index 0e625b1f3..0e12d6b92 100644 --- a/core/llm/templates/chat.ts +++ b/core/llm/templates/chat.ts @@ -96,7 +96,7 @@ function llama2TemplateMessages(msgs: ChatMessage[]): string { // Llama2 template with added \n to prevent Codestral from continuing user message function codestralTemplateMessages(msgs: ChatMessage[]): string { let template = llama2TemplateMessages(msgs); - if (template.length == 0) { + if (template.length === 0) { return template; } return template + "\n"; From 4b55cfb2e8ad4803855020111d0cff6a38ad79d5 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 5 May 2025 19:17:46 -0700 Subject: [PATCH 096/110] fix: :ambulance: load global ~/.continue/assistants --- core/config/ConfigHandler.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index 0c3167b7b..a1588dd43 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -279,10 +279,7 @@ export class ConfigHandler { if (options.includeWorkspace) { const assistantFiles = await getAllDotContinueYamlFiles( this.ide, - { - ...options, - includeGlobal: false, // Because the global comes from above - }, + options, ASSISTANTS, ); const profiles = assistantFiles.map((assistant) => { From 3a477239e0bbd0099cb64fa4a3a5b8c07d325ae6 Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 5 May 2025 19:18:24 -0700 Subject: [PATCH 097/110] chore: :bookmark: bump vscode pre-release version --- 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 c8297eed7..e7d8e2bb2 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.32", + "version": "1.1.33", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" From 0d800fb5e0bac7680b929337a3fc9b29d6093a26 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Tue, 6 May 2025 09:03:55 +0530 Subject: [PATCH 098/110] remove generic esbuild binary from build --- extensions/vscode/scripts/prepackage-cross-platform.js | 3 +-- extensions/vscode/scripts/prepackage.js | 6 ++++-- extensions/vscode/scripts/utils.js | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/vscode/scripts/prepackage-cross-platform.js b/extensions/vscode/scripts/prepackage-cross-platform.js index f7bedc06c..cb3c3c582 100644 --- a/extensions/vscode/scripts/prepackage-cross-platform.js +++ b/extensions/vscode/scripts/prepackage-cross-platform.js @@ -209,10 +209,9 @@ async function package(target, os, arch, exe) { : `${target}${os === "linux" ? "-gnu" : ""}` }/index.node`, `out/node_modules/esbuild/lib/main.js`, - `out/node_modules/esbuild/bin/esbuild`, ]); } -(async () => { +void (async () => { await package(target, os, arch, exe); })(); diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index c16e627c3..9b4244efd 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -64,7 +64,7 @@ const isWinTarget = target?.startsWith("win"); const isLinuxTarget = target?.startsWith("linux"); const isMacTarget = target?.startsWith("darwin"); -(async () => { +void (async () => { console.log("[info] Packaging extension for target ", target); // Generate and copy over config-yaml-schema.json @@ -464,6 +464,9 @@ const isMacTarget = target?.startsWith("darwin"); ), ); + // delete esbuild/bin because platform-specific @esbuild is downloaded + fs.rmdirSync(`out/node_modules/esbuild/bin`, { recursive: true }); + console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`); // Copy over any worker files @@ -530,6 +533,5 @@ const isMacTarget = target?.startsWith("darwin"); }`, `out/node_modules/@lancedb/vectordb-${target}${isWinTarget ? "-msvc" : ""}${isLinuxTarget ? "-gnu" : ""}/index.node`, `out/node_modules/esbuild/lib/main.js`, - `out/node_modules/esbuild/bin/esbuild`, ]); })(); diff --git a/extensions/vscode/scripts/utils.js b/extensions/vscode/scripts/utils.js index 7023b6372..c61a59510 100644 --- a/extensions/vscode/scripts/utils.js +++ b/extensions/vscode/scripts/utils.js @@ -301,6 +301,9 @@ async function copyNodeModules() { ), ); + // delete esbuild/bin because platform-specific @esbuild is downloaded + fs.rmdirSync(`out/node_modules/esbuild/bin`, {recursive: true}); + console.log(`[info] Copied ${NODE_MODULES_TO_COPY.join(", ")}`); } From c0b26d330248770472eec5d2dc9ecbbc2b2802c8 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 6 May 2025 00:16:52 -0700 Subject: [PATCH 099/110] fix-mode-switch-broken-tools --- core/llm/constructMessages.ts | 81 ++++++++++++++++++- core/tools/builtIn.ts | 2 + gui/src/redux/selectors/selectActiveTools.ts | 24 ++++-- gui/src/redux/thunks/streamResponse.ts | 3 +- .../thunks/streamResponseAfterToolCall.ts | 1 + gui/src/util/index.ts | 5 +- 6 files changed, 104 insertions(+), 12 deletions(-) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index ca3bdf1f9..1c2ace67d 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -8,14 +8,73 @@ import { } from "../"; import { findLast } from "../util/findLast"; import { normalizeToMessageParts } from "../util/messageContent"; -import { isUserOrToolMsg } from "./messages"; +import { isUserOrToolMsg, messageHasToolCallId } from "./messages"; import { getSystemMessageWithRules } from "./rules/getSystemMessageWithRules"; +import { CHAT_UNSAFE_TOOLS } from "../tools/builtIn"; export const DEFAULT_CHAT_SYSTEM_MESSAGE_URL = "https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts"; +export const DEFAULT_AGENT_SYSTEM_MESSAGE_URL = + "https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts"; + export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ + You are in chat mode. + Only use functions that are explicitly listed in the toolsConfig provided to you. Ignore any previous tools that might have been used. + Before making any function call, verify that the function name exists in your current toolsConfig. + Never attempt to use functions you've observed in context if they aren't in your current toolsConfig. + Ignore any examples that use unavailable functions. + In chat mode, only suggest changes rather than attempting to make them directly. and can't actually edit or create files. + You can only suggest modifictions. + If the user asks to make changes offer that they can switch to Agent Mode to make the suggested updates automatically. + If needed consisely explain to the user they can switch to agent mode using the Mode Selector dropdown and provide no other details. + + Always include the language and file name in the info string when you write code blocks. + If you are editing "src/main.py" for example, your code block should start with '\`\`\`python src/main.py' + + When addressing code modification requests, present a concise code snippet that + emphasizes only the necessary changes and uses abbreviated placeholders for + unmodified sections. For example: + + \`\`\`language /path/to/file + // ... existing code ... + + {{ modified code here }} + + // ... existing code ... + + {{ another modification }} + + // ... rest of code ... + \`\`\` + + In existing files, you should always restate the function or class that the snippet belongs to: + + \`\`\`language /path/to/file + // ... existing code ... + + function exampleFunction() { + // ... existing code ... + + {{ modified code here }} + + // ... rest of function ... + } + + // ... rest of code ... + \`\`\` + + Since users have access to their complete file, they prefer reading only the + relevant modifications. It's perfectly acceptable to omit unmodified portions + at the beginning, middle, or end of files using these "lazy" comments. Only + provide the complete file when explicitly requested. Include a concise explanation + of changes unless the user specifically asks for code only. +`; + +export const DEFAULT_AGENT_SYSTEM_MESSAGE = `\ + + You are in agent mode. Always include the language and file name in the info string when you write code blocks. If you are editing "src/main.py" for example, your code block should start with '\`\`\`python src/main.py' @@ -59,6 +118,7 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ `; export function constructMessages( + messageMode: string, history: ChatHistoryItem[], baseChatOrAgentSystemMessage: string | undefined, rules: RuleWithSource[], @@ -67,10 +127,26 @@ export function constructMessages( (item) => item.message.role !== "system", ); const msgs: ChatMessage[] = []; + const toolCallIdsToRemove: string[] = []; for (let i = 0; i < filteredHistory.length; i++) { const historyItem = filteredHistory[i]; + if (messageMode === "chat" && CHAT_UNSAFE_TOOLS.includes(historyItem.toolCallState?.toolCall.function.name || "")) { + // remove unsafe tools calls to avoid using them in chat mode. + // Some models ignore toolsConfig and instead use tools use in history. + if (historyItem.toolCallState?.toolCallId) { + toolCallIdsToRemove.push(historyItem.toolCallState.toolCall.id); + } + continue; + } + + const toolMessage: ToolResultChatMessage = historyItem.message as ToolResultChatMessage; + if (messageMode === "chat" && toolCallIdsToRemove.includes(toolMessage.toolCallId || "")) { + // remove toolcall responses from the history for unsafe tools. + continue; + } + if (historyItem.message.role === "user") { // Gather context items for user messages let content = normalizeToMessageParts(historyItem.message); @@ -100,8 +176,7 @@ export function constructMessages( | undefined; const systemMessage = getSystemMessageWithRules({ - baseSystemMessage: - baseChatOrAgentSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE, + baseSystemMessage: baseChatOrAgentSystemMessage, rules, userMessage: lastUserMsg, }); diff --git a/core/tools/builtIn.ts b/core/tools/builtIn.ts index 9f70b1a22..ba5f6e67e 100644 --- a/core/tools/builtIn.ts +++ b/core/tools/builtIn.ts @@ -16,6 +16,8 @@ export enum BuiltInToolNames { ViewSubdirectory = "builtin_view_subdirectory", } +export const CHAT_UNSAFE_TOOLS: string[] = [ BuiltInToolNames.EditExistingFile, BuiltInToolNames.CreateNewFile, BuiltInToolNames.RunTerminalCommand ]; + export const BUILT_IN_GROUP_NAME = "Built-In"; export const CLIENT_TOOLS = [BuiltInToolNames.EditExistingFile]; diff --git a/gui/src/redux/selectors/selectActiveTools.ts b/gui/src/redux/selectors/selectActiveTools.ts index bae3426e0..8cb4503de 100644 --- a/gui/src/redux/selectors/selectActiveTools.ts +++ b/gui/src/redux/selectors/selectActiveTools.ts @@ -1,6 +1,7 @@ import { createSelector } from "@reduxjs/toolkit"; import { Tool } from "core"; import { RootState } from "../store"; +import { CHAT_UNSAFE_TOOLS } from "core/tools/builtIn"; export const selectActiveTools = createSelector( [ @@ -10,13 +11,24 @@ export const selectActiveTools = createSelector( (store: RootState) => store.ui.toolGroupSettings, ], (mode, tools, policies, groupPolicies): Tool[] => { - if (mode !== "agent") { + if (mode === "chat") { + const chatSafeTools: Tool[] = tools.filter( + (tool) => + !CHAT_UNSAFE_TOOLS.includes(tool.function.name) && + policies[tool.function.name] !== "disabled" && + groupPolicies[tool.group] !== "exclude", + ); + return chatSafeTools; + } + else if (mode === "agent") { + return tools.filter( + (tool) => + policies[tool.function.name] !== "disabled" && + groupPolicies[tool.group] !== "exclude", + ); + } + else { return []; } - return tools.filter( - (tool) => - policies[tool.function.name] !== "disabled" && - groupPolicies[tool.group] !== "exclude", - ); }, ); diff --git a/gui/src/redux/thunks/streamResponse.ts b/gui/src/redux/thunks/streamResponse.ts index 6c406f868..5ab6f036e 100644 --- a/gui/src/redux/thunks/streamResponse.ts +++ b/gui/src/redux/thunks/streamResponse.ts @@ -89,8 +89,9 @@ export const streamResponseThunk = createAsyncThunk< const messageMode = getState().session.mode const baseChatOrAgentSystemMessage = getBaseSystemMessage(selectedChatModel, messageMode) - + const messages = constructMessages( + messageMode, [...updatedHistory], baseChatOrAgentSystemMessage, state.config.config.rules, diff --git a/gui/src/redux/thunks/streamResponseAfterToolCall.ts b/gui/src/redux/thunks/streamResponseAfterToolCall.ts index 2b4ada0c1..990723f7a 100644 --- a/gui/src/redux/thunks/streamResponseAfterToolCall.ts +++ b/gui/src/redux/thunks/streamResponseAfterToolCall.ts @@ -72,6 +72,7 @@ export const streamResponseAfterToolCall = createAsyncThunk< const baseChatOrAgentSystemMessage = getBaseSystemMessage(selectedChatModel, messageMode) const messages = constructMessages( + messageMode, [...updatedHistory], baseChatOrAgentSystemMessage, state.config.config.rules, diff --git a/gui/src/util/index.ts b/gui/src/util/index.ts index 511dd1a64..b237c6e1b 100644 --- a/gui/src/util/index.ts +++ b/gui/src/util/index.ts @@ -3,6 +3,7 @@ import { ProfileDescription } from "core/config/ProfileLifecycleManager"; import _ from "lodash"; import { KeyboardEvent } from "react"; import { getLocalStorage } from "./localStorage"; +import { DEFAULT_CHAT_SYSTEM_MESSAGE, DEFAULT_AGENT_SYSTEM_MESSAGE } from "core/llm/constructMessages"; export type Platform = "mac" | "linux" | "windows" | "unknown"; @@ -122,9 +123,9 @@ export function isLocalProfile(profile: ProfileDescription): boolean { export function getBaseSystemMessage(modelDetails: ModelDescription | null, mode: MessageModes) { let baseChatOrAgentSystemMessage: string|undefined if(mode === 'agent') { - baseChatOrAgentSystemMessage = modelDetails?.baseAgentSystemMessage ?? modelDetails?.baseChatSystemMessage // fallback to chat system message if agent system message is unavailable + baseChatOrAgentSystemMessage = modelDetails?.baseAgentSystemMessage ?? DEFAULT_AGENT_SYSTEM_MESSAGE; } else { - baseChatOrAgentSystemMessage = modelDetails?.baseChatSystemMessage + baseChatOrAgentSystemMessage = modelDetails?.baseChatSystemMessage ?? DEFAULT_CHAT_SYSTEM_MESSAGE; } return baseChatOrAgentSystemMessage } \ No newline at end of file From ec58d64dd5f7f5066237203c9e782a26bb399930 Mon Sep 17 00:00:00 2001 From: NGC13009 Date: Tue, 6 May 2025 21:02:48 +0800 Subject: [PATCH 100/110] remove redundant link --- docs/docs/customize/deep-dives/autocomplete.mdx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/docs/customize/deep-dives/autocomplete.mdx b/docs/docs/customize/deep-dives/autocomplete.mdx index c982579d3..e6dc62f42 100644 --- a/docs/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/docs/customize/deep-dives/autocomplete.mdx @@ -134,9 +134,7 @@ Yes, in VS Code, if you don't want to be shown suggestions automatically you can ### Is there a shortcut to accept one line at a time? -This is a built-in feature of VS Code, but it's just a bit hidden. See this great [StackOverflow answer](https://stackoverflow.com/questions/72228174/accept-line-by-line-from-autocompletion/78001122#78001122) for more details. - -Or, follow these settings to reassign the keyboard shortcuts in VS Code: +This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code: 1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page. 2. Search for `editor.action.inlineSuggest.acceptNextLine`. 3. Set the key binding to `Tab`. From 91d796788d5e7bf54093a45458c0bfccddd364b5 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 6 May 2025 16:58:57 -0700 Subject: [PATCH 101/110] chore: :technologist: add "reg" scope to conventional commits --- .vscode/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fe747a2c..db2967d2e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -50,6 +50,6 @@ "conventionalCommits.showNewVersionNotes": false, "conventionalCommits.promptBody": false, "conventionalCommits.promptFooter": false, - "conventionalCommits.promptScopes": false, - "conventionalCommits.scopes": [] + "conventionalCommits.promptScopes": true, + "conventionalCommits.scopes": ["reg"] } From f60fd1c6188567c67d3d8285fd6c2c5d6acc5bfa Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 6 May 2025 16:59:24 -0700 Subject: [PATCH 102/110] fix(reg): :ambulance: remove log except when in NODE_ENV === "test" --- core/util/logger.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/util/logger.ts b/core/util/logger.ts index faaa05a43..ebd21199c 100644 --- a/core/util/logger.ts +++ b/core/util/logger.ts @@ -7,7 +7,9 @@ export const logger = winston.createLogger({ format: winston.format.json(), transports: [ // Write all logs with importance level of `info` or higher to `info.log` - new winston.transports.File({ filename: "e2e.log", level: "info" }), + ...(process.env.NODE_ENV === "test" + ? [new winston.transports.File({ filename: "e2e.log", level: "info" })] + : []), // Normal console.log behavior new winston.transports.Console(), ], From e69dbe7f6bf2de71bcde7887851166ec0b3e3e3e Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Wed, 7 May 2025 07:58:03 +0530 Subject: [PATCH 103/110] fix minor reference.md typo --- docs/docs/reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/reference.md b/docs/docs/reference.md index bfb2c229d..647608fa5 100644 --- a/docs/docs/reference.md +++ b/docs/docs/reference.md @@ -19,7 +19,7 @@ from [the Hub](https://hub.continue.dev/explore/assistants) or locally - in your workspace in a `/.continue/assistants` folder, with the same naming convention :::info -Config YAML replaces [`config.json`](./json-reference.md), which is deprecated. View the \* \*[Migration Guide](./yaml-migration.md)\*\*. +Config YAML replaces [`config.json`](./json-reference.md), which is deprecated. View the **[Migration Guide](./yaml-migration.md)**. ::: An assistant is made up of: From c44e29c981898fd0d4f8887244b5b337c453c859 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 6 May 2025 22:21:42 -0700 Subject: [PATCH 104/110] suggested changes --- core/index.d.ts | 4 +- core/llm/constructMessages.ts | 90 ++++++------------- core/tools/builtIn.ts | 2 - .../mainInput/Lump/sections/RulesSection.tsx | 43 ++++++--- gui/src/redux/selectors/selectActiveTools.ts | 9 +- 5 files changed, 60 insertions(+), 88 deletions(-) diff --git a/core/index.d.ts b/core/index.d.ts index e781aa5a5..4c9239a7d 100644 --- a/core/index.d.ts +++ b/core/index.d.ts @@ -1495,8 +1495,10 @@ export interface RuleWithSource { name?: string; slug?: string; source: - | "default" + | "default-chat" + | "default-agent" | "model-chat-options" + | "model-agent-options" | "rules-block" | "json-systemMessage" | ".continuerules"; diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index 1c2ace67d..b7da0de17 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -10,7 +10,7 @@ import { findLast } from "../util/findLast"; import { normalizeToMessageParts } from "../util/messageContent"; import { isUserOrToolMsg, messageHasToolCallId } from "./messages"; import { getSystemMessageWithRules } from "./rules/getSystemMessageWithRules"; -import { CHAT_UNSAFE_TOOLS } from "../tools/builtIn"; +import { BuiltInToolNames } from "../tools/builtIn"; export const DEFAULT_CHAT_SYSTEM_MESSAGE_URL = "https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts"; @@ -18,18 +18,7 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE_URL = export const DEFAULT_AGENT_SYSTEM_MESSAGE_URL = "https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts"; -export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ - - You are in chat mode. - Only use functions that are explicitly listed in the toolsConfig provided to you. Ignore any previous tools that might have been used. - Before making any function call, verify that the function name exists in your current toolsConfig. - Never attempt to use functions you've observed in context if they aren't in your current toolsConfig. - Ignore any examples that use unavailable functions. - In chat mode, only suggest changes rather than attempting to make them directly. and can't actually edit or create files. - You can only suggest modifictions. - If the user asks to make changes offer that they can switch to Agent Mode to make the suggested updates automatically. - If needed consisely explain to the user they can switch to agent mode using the Mode Selector dropdown and provide no other details. - +const EDIT_MESSAGE = `\ Always include the language and file name in the info string when you write code blocks. If you are editing "src/main.py" for example, your code block should start with '\`\`\`python src/main.py' @@ -53,15 +42,15 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ \`\`\`language /path/to/file // ... existing code ... - + function exampleFunction() { // ... existing code ... - + {{ modified code here }} - + // ... rest of function ... } - + // ... rest of code ... \`\`\` @@ -70,51 +59,23 @@ export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ at the beginning, middle, or end of files using these "lazy" comments. Only provide the complete file when explicitly requested. Include a concise explanation of changes unless the user specifically asks for code only. +` + +export const DEFAULT_CHAT_SYSTEM_MESSAGE = `\ + + You are in chat mode. + + If the user asks to make changes to files offer that they can use the Apply Button on the code block, or switch to Agent Mode to make the suggested updates automatically. + If needed consisely explain to the user they can switch to agent mode using the Mode Selector dropdown and provide no other details. + +${EDIT_MESSAGE} `; export const DEFAULT_AGENT_SYSTEM_MESSAGE = `\ You are in agent mode. - Always include the language and file name in the info string when you write code blocks. - If you are editing "src/main.py" for example, your code block should start with '\`\`\`python src/main.py' - When addressing code modification requests, present a concise code snippet that - emphasizes only the necessary changes and uses abbreviated placeholders for - unmodified sections. For example: - - \`\`\`language /path/to/file - // ... existing code ... - - {{ modified code here }} - - // ... existing code ... - - {{ another modification }} - - // ... rest of code ... - \`\`\` - - In existing files, you should always restate the function or class that the snippet belongs to: - - \`\`\`language /path/to/file - // ... existing code ... - - function exampleFunction() { - // ... existing code ... - - {{ modified code here }} - - // ... rest of function ... - } - - // ... rest of code ... - \`\`\` - - Since users have access to their complete file, they prefer reading only the - relevant modifications. It's perfectly acceptable to omit unmodified portions - at the beginning, middle, or end of files using these "lazy" comments. Only - provide the complete file when explicitly requested. Include a concise explanation - of changes unless the user specifically asks for code only. +${EDIT_MESSAGE} `; export function constructMessages( @@ -132,19 +93,18 @@ export function constructMessages( for (let i = 0; i < filteredHistory.length; i++) { const historyItem = filteredHistory[i]; - if (messageMode === "chat" && CHAT_UNSAFE_TOOLS.includes(historyItem.toolCallState?.toolCall.function.name || "")) { - // remove unsafe tools calls to avoid using them in chat mode. - // Some models ignore toolsConfig and instead use tools use in history. + if (messageMode === "chat") { if (historyItem.toolCallState?.toolCallId) { + // remove all tool calls from the history toolCallIdsToRemove.push(historyItem.toolCallState.toolCall.id); + continue; } - continue; - } - const toolMessage: ToolResultChatMessage = historyItem.message as ToolResultChatMessage; - if (messageMode === "chat" && toolCallIdsToRemove.includes(toolMessage.toolCallId || "")) { - // remove toolcall responses from the history for unsafe tools. - continue; + const toolMessage: ToolResultChatMessage = historyItem.message as ToolResultChatMessage; + if (toolMessage.toolCallId && toolCallIdsToRemove.includes(toolMessage.toolCallId)) { + // remove toolcall responses from the history + continue; + } } if (historyItem.message.role === "user") { diff --git a/core/tools/builtIn.ts b/core/tools/builtIn.ts index ba5f6e67e..9f70b1a22 100644 --- a/core/tools/builtIn.ts +++ b/core/tools/builtIn.ts @@ -16,8 +16,6 @@ export enum BuiltInToolNames { ViewSubdirectory = "builtin_view_subdirectory", } -export const CHAT_UNSAFE_TOOLS: string[] = [ BuiltInToolNames.EditExistingFile, BuiltInToolNames.CreateNewFile, BuiltInToolNames.RunTerminalCommand ]; - export const BUILT_IN_GROUP_NAME = "Built-In"; export const CLIENT_TOOLS = [BuiltInToolNames.EditExistingFile]; diff --git a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx index 1c661cf3e..fa9dff106 100644 --- a/gui/src/components/mainInput/Lump/sections/RulesSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/RulesSection.tsx @@ -8,6 +8,8 @@ import { RuleWithSource } from "core"; import { DEFAULT_CHAT_SYSTEM_MESSAGE, DEFAULT_CHAT_SYSTEM_MESSAGE_URL, + DEFAULT_AGENT_SYSTEM_MESSAGE, + DEFAULT_AGENT_SYSTEM_MESSAGE_URL } from "core/llm/constructMessages"; import { useContext, useMemo } from "react"; import { defaultBorderRadius, vscCommandCenterActiveBorder } from "../../.."; @@ -18,7 +20,6 @@ import { setDialogMessage, setShowDialog, } from "../../../../redux/slices/uiSlice"; -import { getBaseSystemMessage } from "../../../../util"; import HeaderButtonWithToolTip from "../../../gui/HeaderButtonWithToolTip"; import { useFontSize } from "../../../ui/font"; import { ExploreBlocksButton } from "./ExploreBlocksButton"; @@ -30,6 +31,7 @@ interface RuleCardProps { const RuleCard: React.FC = ({ rule }) => { const dispatch = useAppDispatch(); const ideMessenger = useContext(IdeMessengerContext); + const mode = useAppSelector((store) => store.session.mode); const handleOpen = async () => { if (rule.slug) { @@ -41,8 +43,10 @@ const RuleCard: React.FC = ({ rule }) => { ideMessenger.post("openFile", { path: rule.ruleFile, }); - } else if (rule.source === "default") { + } else if (rule.source === "default-chat" && mode === "chat") { ideMessenger.post("openUrl", DEFAULT_CHAT_SYSTEM_MESSAGE_URL); + } else if (rule.source === "default-agent" && mode === "agent") { + ideMessenger.post("openUrl", DEFAULT_AGENT_SYSTEM_MESSAGE_URL); } else { ideMessenger.post("config/openProfile", { profileId: undefined, @@ -56,10 +60,14 @@ const RuleCard: React.FC = ({ rule }) => { } else { if (rule.source === ".continuerules") { return "Project rules"; - } else if (rule.source === "default") { + } else if (rule.source === "default-chat") { return "Default chat system message"; + } else if (rule.source === "default-agent") { + return "Default agent system message"; } else if (rule.source === "json-systemMessage") { return "JSON systemMessage)"; + } else if (rule.source === "model-agent-options") { + return "Base System Agent Message"; } else if (rule.source === "model-chat-options") { return "Base System Chat Message"; } else { @@ -104,7 +112,7 @@ const RuleCard: React.FC = ({ rule }) => { {" "} - {rule.source === "default" ? ( + {rule.source === "default-chat" || rule.source === "default-agent" ? ( @@ -181,19 +189,30 @@ export function RulesSection() { ); } } - // Add a displayed rule for the base system chat message when in chat mode - if (mode === "chat" || mode === "agent") { - const baseMessage = getBaseSystemMessage(config.selectedModelByRole.chat, mode) - if (baseMessage) { + + if (mode === "agent") { + if (config.selectedModelByRole.chat?.baseAgentSystemMessage) { rules.unshift({ - rule: baseMessage, + rule: config.selectedModelByRole.chat?.baseAgentSystemMessage, + source: "model-agent-options", + }) + } else { + rules.unshift({ + rule: DEFAULT_AGENT_SYSTEM_MESSAGE, + source: "default-agent", + }) + } + } else { + if (config.selectedModelByRole.chat?.baseChatSystemMessage) { + rules.unshift({ + rule: config.selectedModelByRole.chat?.baseChatSystemMessage, source: "model-chat-options", - }); + }) } else { rules.unshift({ rule: DEFAULT_CHAT_SYSTEM_MESSAGE, - source: "default", - }); + source: "default-chat", + }) } } diff --git a/gui/src/redux/selectors/selectActiveTools.ts b/gui/src/redux/selectors/selectActiveTools.ts index 8cb4503de..82a47c158 100644 --- a/gui/src/redux/selectors/selectActiveTools.ts +++ b/gui/src/redux/selectors/selectActiveTools.ts @@ -1,7 +1,6 @@ import { createSelector } from "@reduxjs/toolkit"; import { Tool } from "core"; import { RootState } from "../store"; -import { CHAT_UNSAFE_TOOLS } from "core/tools/builtIn"; export const selectActiveTools = createSelector( [ @@ -12,13 +11,7 @@ export const selectActiveTools = createSelector( ], (mode, tools, policies, groupPolicies): Tool[] => { if (mode === "chat") { - const chatSafeTools: Tool[] = tools.filter( - (tool) => - !CHAT_UNSAFE_TOOLS.includes(tool.function.name) && - policies[tool.function.name] !== "disabled" && - groupPolicies[tool.group] !== "exclude", - ); - return chatSafeTools; + return []; } else if (mode === "agent") { return tools.filter( From 9b7ee72becd5fa3bf72c6deacd55f671c75ce892 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 6 May 2025 22:57:37 -0700 Subject: [PATCH 105/110] simplify constructMessages.ts --- core/llm/constructMessages.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/core/llm/constructMessages.ts b/core/llm/constructMessages.ts index b7da0de17..309429d4b 100644 --- a/core/llm/constructMessages.ts +++ b/core/llm/constructMessages.ts @@ -8,9 +8,8 @@ import { } from "../"; import { findLast } from "../util/findLast"; import { normalizeToMessageParts } from "../util/messageContent"; -import { isUserOrToolMsg, messageHasToolCallId } from "./messages"; +import { isUserOrToolMsg } from "./messages"; import { getSystemMessageWithRules } from "./rules/getSystemMessageWithRules"; -import { BuiltInToolNames } from "../tools/builtIn"; export const DEFAULT_CHAT_SYSTEM_MESSAGE_URL = "https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts"; @@ -88,21 +87,14 @@ export function constructMessages( (item) => item.message.role !== "system", ); const msgs: ChatMessage[] = []; - const toolCallIdsToRemove: string[] = []; for (let i = 0; i < filteredHistory.length; i++) { const historyItem = filteredHistory[i]; if (messageMode === "chat") { - if (historyItem.toolCallState?.toolCallId) { - // remove all tool calls from the history - toolCallIdsToRemove.push(historyItem.toolCallState.toolCall.id); - continue; - } - const toolMessage: ToolResultChatMessage = historyItem.message as ToolResultChatMessage; - if (toolMessage.toolCallId && toolCallIdsToRemove.includes(toolMessage.toolCallId)) { - // remove toolcall responses from the history + if (historyItem.toolCallState?.toolCallId || toolMessage.toolCallId) { + // remove all tool calls from the history continue; } } From af9d71cf072bcb4940d0b2f2615332dedc89c695 Mon Sep 17 00:00:00 2001 From: HQ1363 <46860462+HQ1363@users.noreply.github.com> Date: Wed, 7 May 2025 14:11:00 +0800 Subject: [PATCH 106/110] Create close.svg --- extensions/intellij/src/main/resources/icons/close.svg | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 extensions/intellij/src/main/resources/icons/close.svg diff --git a/extensions/intellij/src/main/resources/icons/close.svg b/extensions/intellij/src/main/resources/icons/close.svg new file mode 100644 index 000000000..21a6d4a52 --- /dev/null +++ b/extensions/intellij/src/main/resources/icons/close.svg @@ -0,0 +1,4 @@ + + + + From 8c3805c067e81ccef551a8659e30c7ffbe9e48fe Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 6 May 2025 23:26:48 -0700 Subject: [PATCH 107/110] fix tests that now only work in Agent Mode --- extensions/vscode/e2e/actions/GUI.actions.ts | 14 ++++++++++++++ extensions/vscode/e2e/selectors/GUI.selectors.ts | 10 ++++++++++ extensions/vscode/e2e/tests/GUI.test.ts | 3 ++- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/extensions/vscode/e2e/actions/GUI.actions.ts b/extensions/vscode/e2e/actions/GUI.actions.ts index 636eb6ebd..1091c1a0a 100644 --- a/extensions/vscode/e2e/actions/GUI.actions.ts +++ b/extensions/vscode/e2e/actions/GUI.actions.ts @@ -91,6 +91,20 @@ export class GUIActions { await dropdownOption.click(); }; + public static selectModeFromDropdown = async ( + view: WebView, + option: string, + ) => { + const dropdownButton = await GUISelectors.getModeDropdownButton(view); + await dropdownButton.click(); + + const dropdownOption = await TestUtils.waitForSuccess(() => { + return GUISelectors.getModeDropdownOption(view, option); + }); + + await dropdownOption.click(); + }; + public static async sendMessage({ view, message, diff --git a/extensions/vscode/e2e/selectors/GUI.selectors.ts b/extensions/vscode/e2e/selectors/GUI.selectors.ts index 45d2a23e6..e51bfd681 100644 --- a/extensions/vscode/e2e/selectors/GUI.selectors.ts +++ b/extensions/vscode/e2e/selectors/GUI.selectors.ts @@ -67,6 +67,10 @@ export class GUISelectors { return SelectorUtils.getElementByDataTestId(view, "model-select-button"); } + public static getModeDropdownButton(view: WebView) { + return SelectorUtils.getElementByDataTestId(view, "mode-select-button"); + } + public static getFirstContextProviderDropdownItem(view: WebView) { return SelectorUtils.getElementByDataTestId( view, @@ -104,6 +108,12 @@ export class GUISelectors { ); } + public static getModeDropdownOption(view: WebView, option: string) { + return view.findWebElement( + By.xpath(`//*[@role="listbox"]//*[contains(text(), "${option}")]`), + ); + } + public static getOnboardingTabButton(view: WebView, title: string) { return SelectorUtils.getElementByDataTestId( view, diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index 461225343..5f362d64a 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -239,9 +239,10 @@ describe("GUI Test", () => { }).timeout(DEFAULT_TIMEOUT.XL); }); - describe("Chat with tools", () => { + describe("Agent with tools", () => { it("should render tool call", async () => { await GUIActions.selectModelFromDropdown(view, "TOOL MOCK LLM"); + await GUIActions.selectModeFromDropdown(view, "Agent"); const [messageInput] = await GUISelectors.getMessageInputFields(view); await messageInput.sendKeys("Hello"); From 80f4460ed17740c7972004e5a810bb189b157c59 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 7 May 2025 10:03:43 +0000 Subject: [PATCH 108/110] chore(deps): bump JetBrains/qodana-action from 2025.1.0 to 2025.1.1 Bumps [JetBrains/qodana-action](https://github.com/jetbrains/qodana-action) from 2025.1.0 to 2025.1.1. - [Release notes](https://github.com/jetbrains/qodana-action/releases) - [Commits](https://github.com/jetbrains/qodana-action/compare/v2025.1.0...v2025.1.1) --- updated-dependencies: - dependency-name: JetBrains/qodana-action dependency-version: 2025.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/jetbrains-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/jetbrains-release.yaml b/.github/workflows/jetbrains-release.yaml index 9f20b8131..d1303995e 100644 --- a/.github/workflows/jetbrains-release.yaml +++ b/.github/workflows/jetbrains-release.yaml @@ -481,7 +481,7 @@ jobs: # Run Qodana inspections - name: Qodana - Code Inspection - uses: JetBrains/qodana-action@v2025.1.0 + uses: JetBrains/qodana-action@v2025.1.1 with: cache-default-branch-only: true From 4d1a33fd794a7415b0cc3b8de1d349fbba5a01cb Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Tue, 6 May 2025 12:19:52 +0200 Subject: [PATCH 109/110] fix: Do not break completion for unsupported FS providers Signed-off-by: Fred Bricon --- extensions/vscode/src/VsCodeIde.ts | 32 +++-- .../src/autocomplete/completionProvider.ts | 9 +- .../vscode/src/autocomplete/recentlyEdited.ts | 14 +- extensions/vscode/src/commands.ts | 5 +- extensions/vscode/src/util/addCode.ts | 14 +- extensions/vscode/src/util/ideUtils.ts | 123 ++++++++++++++++-- 6 files changed, 163 insertions(+), 34 deletions(-) diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index 364140cb4..4a553ef60 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -76,8 +76,8 @@ class VsCodeIde implements IDE { async fileExists(uri: string): Promise { try { - await vscode.workspace.fs.stat(vscode.Uri.parse(uri)); - return true; + const stat = await this.ideUtils.stat(vscode.Uri.parse(uri)); + return stat !== null; } catch (error) { if (error instanceof vscode.FileSystemError) { return false; @@ -335,10 +335,10 @@ class VsCodeIde implements IDE { const pathToLastModified: FileStatsMap = {}; await Promise.all( files.map(async (file) => { - const stat = await vscode.workspace.fs.stat(vscode.Uri.parse(file)); + const stat = await this.ideUtils.stat(vscode.Uri.parse(file), false /* No need to catch ENOPRO exceptions */); pathToLastModified[file] = { - lastModified: stat.mtime, - size: stat.size, + lastModified: stat!.mtime, + size: stat!.size, }; }), ); @@ -400,7 +400,10 @@ class VsCodeIde implements IDE { vscode.workspace.workspaceFolders?.map((folder) => folder.uri) || []; const configs: ContinueRcJson[] = []; for (const workspaceDir of workspaceDirs) { - const files = await vscode.workspace.fs.readDirectory(workspaceDir); + 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 || @@ -512,12 +515,15 @@ class VsCodeIde implements IDE { return openTextDocument.getText(); } - const fileStats = await vscode.workspace.fs.stat(uri); - if (fileStats.size > 10 * VsCodeIde.MAX_BYTES) { + const fileStats = await this.ideUtils.stat(uri); + if (fileStats === null || fileStats.size > 10 * VsCodeIde.MAX_BYTES) { return ""; } - const bytes = await vscode.workspace.fs.readFile(uri); + const bytes = await this.ideUtils.readFile(uri); + if (bytes === null) { + return ""; + } // Truncate the buffer to the first MAX_BYTES const truncatedBytes = bytes.slice(0, VsCodeIde.MAX_BYTES); @@ -599,7 +605,10 @@ class VsCodeIde implements IDE { const ignoreGlobs: Set = new Set(); for (const file of ignoreFiles) { - const content = await vscode.workspace.fs.readFile(file); + const content = await this.ideUtils.readFile(file); + if (content === null) { + continue; + } const filePath = vscode.workspace.asRelativePath(file); const fileDir = filePath .replace(/\\/g, "/") @@ -743,7 +752,8 @@ class VsCodeIde implements IDE { } async listDir(dir: string): Promise<[string, FileType][]> { - return vscode.workspace.fs.readDirectory(vscode.Uri.parse(dir)) as any; + const entries = await this.ideUtils.readDirectory(vscode.Uri.parse(dir)); + return entries === null? [] : entries as any; } private getIdeSettingsSync(): IdeSettings { diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index 381d9117a..a2688d886 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -11,6 +11,7 @@ import * as vscode from "vscode"; import { handleLLMError } from "../util/errorHandling"; import { showFreeTrialLoginMessage } from "../util/messages"; +import { VsCodeIde } from "../VsCodeIde"; import { VsCodeWebviewProtocol } from "../webviewProtocol"; import { getDefinitionsFromLsp } from "./lsp"; @@ -23,8 +24,6 @@ import { stopStatusBarLoading, } from "./statusBar"; -import type { IDE } from "core"; - interface VsCodeCompletionInput { document: vscode.TextDocument; position: vscode.Position; @@ -61,13 +60,15 @@ export class ContinueCompletionProvider private completionProvider: CompletionProvider; private recentlyVisitedRanges: RecentlyVisitedRangesService; - private recentlyEditedTracker = new RecentlyEditedTracker(); + private recentlyEditedTracker: RecentlyEditedTracker; constructor( private readonly configHandler: ConfigHandler, - private readonly ide: IDE, + private readonly ide: VsCodeIde, private readonly webviewProtocol: VsCodeWebviewProtocol, ) { + this.recentlyEditedTracker = new RecentlyEditedTracker(ide.ideUtils); + async function getAutocompleteModel() { const { config } = await configHandler.loadConfig(); if (!config) { diff --git a/extensions/vscode/src/autocomplete/recentlyEdited.ts b/extensions/vscode/src/autocomplete/recentlyEdited.ts index d32f362dd..a9ac75ab7 100644 --- a/extensions/vscode/src/autocomplete/recentlyEdited.ts +++ b/extensions/vscode/src/autocomplete/recentlyEdited.ts @@ -3,6 +3,8 @@ import { getSymbolsForSnippet } from "core/autocomplete/context/ranking"; import { RecentlyEditedRange } from "core/autocomplete/util/types"; import * as vscode from "vscode"; +import { VsCodeIdeUtils } from "../util/ideUtils"; + type VsCodeRecentlyEditedRange = { uri: vscode.Uri; range: vscode.Range; @@ -21,7 +23,7 @@ export class RecentlyEditedTracker { private recentlyEditedDocuments: VsCodeRecentlyEditedDocument[] = []; private static maxRecentlyEditedDocuments = 10; - constructor() { + constructor(private ideUtils: VsCodeIdeUtils) { vscode.workspace.onDidChangeTextDocument((event) => { event.contentChanges.forEach((change) => { const editedRange = { @@ -112,13 +114,15 @@ export class RecentlyEditedTracker { private async _getContentsForRange( entry: Omit, ): Promise { - return vscode.workspace.fs.readFile(entry.uri).then((content) => - content + const content = await this.ideUtils.readFile(entry.uri); + if (content === null) { + return ""; + } + return content .toString() .split("\n") .slice(entry.range.start.line, entry.range.end.line + 1) - .join("\n"), - ); + .join("\n"); } public async getRecentlyEditedRanges(): Promise { diff --git a/extensions/vscode/src/commands.ts b/extensions/vscode/src/commands.ts index 24bf57c52..c7b5c3ffc 100644 --- a/extensions/vscode/src/commands.ts +++ b/extensions/vscode/src/commands.ts @@ -570,13 +570,14 @@ const getCommandsMap: ( for await (const fileUri of walkDirAsync(uri.toString(), ide, { source: "vscode continue.selectFilesAsContext command", })) { - addEntireFileToContext( + await addEntireFileToContext( vscode.Uri.parse(fileUri), sidebar.webviewProtocol, + ide.ideUtils ); } } else { - addEntireFileToContext(uri, sidebar.webviewProtocol); + await addEntireFileToContext(uri, sidebar.webviewProtocol, ide.ideUtils); } } }, diff --git a/extensions/vscode/src/util/addCode.ts b/extensions/vscode/src/util/addCode.ts index a056cbfd2..0b602811a 100644 --- a/extensions/vscode/src/util/addCode.ts +++ b/extensions/vscode/src/util/addCode.ts @@ -1,6 +1,10 @@ -import { RangeInFileWithContents } from "core"; import * as os from "node:os"; + +import { RangeInFileWithContents } from "core"; import * as vscode from "vscode"; + +import { VsCodeIdeUtils } from "./ideUtils"; + import type { VsCodeWebviewProtocol } from "../webviewProtocol"; export function getRangeInFileWithContents( @@ -85,16 +89,18 @@ export async function addHighlightedCodeToContext( export async function addEntireFileToContext( uri: vscode.Uri, webviewProtocol: VsCodeWebviewProtocol | undefined, + ideUtils: VsCodeIdeUtils ) { // If a directory, add all files in the directory - const stat = await vscode.workspace.fs.stat(uri); - if (stat.type === vscode.FileType.Directory) { - const files = await vscode.workspace.fs.readDirectory(uri); + const stat = await ideUtils.stat(uri); + if (stat?.type === vscode.FileType.Directory) { + const files = (await ideUtils.readDirectory(uri))!;//files can't be null if we reached this point for (const [filename, type] of files) { if (type === vscode.FileType.File) { addEntireFileToContext( vscode.Uri.joinPath(uri, filename), webviewProtocol, + ideUtils ); } } diff --git a/extensions/vscode/src/util/ideUtils.ts b/extensions/vscode/src/util/ideUtils.ts index 9642af68e..3494ec29f 100644 --- a/extensions/vscode/src/util/ideUtils.ts +++ b/extensions/vscode/src/util/ideUtils.ts @@ -1,7 +1,9 @@ import { EXTENSION_NAME } from "core/control-plane/env"; +import { findUriInDirs } from "core/util/uri"; import _ from "lodash"; -import * as vscode from "vscode"; import * as URI from "uri-js"; +import * as vscode from "vscode"; + import { threadStopped } from "../debug/debug"; import { VsCodeExtension } from "../extension/VsCodeExtension"; import { GitExtension, Repository } from "../otherExtensions/git"; @@ -14,12 +16,14 @@ import { import { getUniqueId, openEditorAndRevealRange } from "./vscode"; -import type { Range, RangeInFile, Thread } from "core"; -import { findUriInDirs } from "core/util/uri"; +import type { Range, Thread } from "core"; const util = require("node:util"); const asyncExec = util.promisify(require("node:child_process").exec); +const NO_FS_PROVIDER_ERROR = "ENOPRO"; +const UNSUPPORTED_SCHEMES: Set = new Set(); + export class VsCodeIdeUtils { visibleMessages: Set = new Set(); @@ -99,13 +103,114 @@ export class VsCodeIdeUtils { async fileExists(uri: vscode.Uri): Promise { try { - await vscode.workspace.fs.stat(uri); - return true; + return (await this.stat(uri)) !== null; } catch { return false; } } + /** + * Read the entire contents of a file from the given URI. + * + * @param uri - The URI of the file to read. + * @param ignoreMissingProviders - Optional flag to ignore missing file system providers for unsupported schemes. + * Defaults to `true`. + * @returns A promise that resolves to the file content as a `Uint8Array`, or `null` if the scheme is unsupported + * or the provider is missing and `ignoreMissingProviders` is `true`. + * If `ignoreMissingProviders` is `false`, it will throw an error for unsupported schemes or missing providers. + * @throws Will rethrow any error that is not related to missing providers or unsupported schemes. + */ + async readFile( + uri: vscode.Uri, + ignoreMissingProviders: boolean = true, + ): Promise { + return await this.fsOperation( + uri, + async (u) => { + return await vscode.workspace.fs.readFile(u); + }, + ignoreMissingProviders, + ); + } + + /** + * Retrieve metadata about a file from the given URI. + * + * @param uri - The URI of the file or directory to retrieve metadata about. + * @param ignoreMissingProviders - Optional. If `true`, missing file system providers will be ignored. Defaults to `true`. + * @returns A promise that resolves to a `vscode.FileStat` object containing the file metadata, + * or `null` if the scheme is unsupported or the provider is missing and `ignoreMissingProviders` is `true`. + */ + async stat( + uri: vscode.Uri, + ignoreMissingProviders: boolean = true, + ): Promise { + return await this.fsOperation( + uri, + async (u) => { + return await vscode.workspace.fs.stat(uri); + }, + ignoreMissingProviders, + ); + } + + /** + * Retrieve all entries of a directory from the given URI. + * + * @param uri - The URI of the directory to read. + * @param ignoreMissingProviders - Optional. If `true`, missing file system providers will be ignored. Defaults to `true`. + * @returns A promise that resolves to an array of tuples, where each tuple contains the name of a directory entry + * and its type (`vscode.FileType`), or `null` if the scheme is unsupported or the provider is missing and `ignoreMissingProviders` is `true`. + */ + async readDirectory( + uri: vscode.Uri, + ignoreMissingProviders: boolean = true, + ): Promise<[string, vscode.FileType][] | null> { + return await this.fsOperation( + uri, + async (u) => { + return await vscode.workspace.fs.readDirectory(uri); + }, + ignoreMissingProviders, + ); + } + + /** + * Performs a file system operation on the given URI using the provided delegate function. + * + * @template T The type of the result returned by the delegate function. + * @param uri The URI on which the file system operation is to be performed. + * @param delegate A function that performs the desired operation on the given URI. + * @param ignoreMissingProviders Whether to ignore errors caused by missing file system providers. Defaults to `true`. + * @returns A promise that resolves to the result of the delegate function, or `null` if the operation is skipped due to unsupported schemes or missing providers. + * @throws Re-throws any error encountered during the operation, except for missing provider errors when `ignoreMissingProviders` is `true`. + */ + private async fsOperation( + uri: vscode.Uri, + delegate: (uri: vscode.Uri) => T, + ignoreMissingProviders: boolean = true, + ): Promise { + const scheme = uri.scheme; + if (ignoreMissingProviders && UNSUPPORTED_SCHEMES.has(scheme)) { + return null; + } + try { + return await delegate(uri); + } catch (err: any) { + if ( + ignoreMissingProviders && + //see https://github.com/microsoft/vscode/blob/c9c54f9e775e5f57d97bef796797b5bc670c8150/src/vs/workbench/api/common/extHostFileSystemConsumer.ts#L230 + (err.name === NO_FS_PROVIDER_ERROR || + err.message?.includes(NO_FS_PROVIDER_ERROR)) + ) { + UNSUPPORTED_SCHEMES.add(scheme); + console.log(`Ignoring missing provider error:`, err.message); + return null; + } + throw err; + } + } + showVirtualFile(name: string, contents: string) { vscode.workspace .openTextDocument( @@ -185,9 +290,11 @@ export class VsCodeIdeUtils { } async readRangeInFile(uri: vscode.Uri, range: vscode.Range): Promise { - const contents = new TextDecoder().decode( - await vscode.workspace.fs.readFile(uri), - ); + const buffer = await this.readFile(uri); + if (buffer === null) { + return ''; + } + const contents = new TextDecoder().decode(buffer); const lines = contents.split("\n"); return `${lines .slice(range.start.line, range.end.line) From 1e87618a5384b4f86f006acc19db97f14d17746f Mon Sep 17 00:00:00 2001 From: Patrick Erichsen Date: Wed, 7 May 2025 14:26:08 -0700 Subject: [PATCH 110/110] test: hardcode tool_use --- extensions/vscode/e2e/test-continue-yaml/config.yaml | 2 ++ extensions/vscode/e2e/test-continue/config.json | 3 +++ extensions/vscode/e2e/tests/GUI.test.ts | 12 +++--------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/extensions/vscode/e2e/test-continue-yaml/config.yaml b/extensions/vscode/e2e/test-continue-yaml/config.yaml index 8eeac3ffa..9dfe3ed0e 100644 --- a/extensions/vscode/e2e/test-continue-yaml/config.yaml +++ b/extensions/vscode/e2e/test-continue-yaml/config.yaml @@ -43,6 +43,8 @@ models: - chat - edit - apply + capabilities: + - tool_use - name: SYSTEM MESSAGE MOCK LLM provider: mock diff --git a/extensions/vscode/e2e/test-continue/config.json b/extensions/vscode/e2e/test-continue/config.json index 341e00bd2..e6b610f6a 100644 --- a/extensions/vscode/e2e/test-continue/config.json +++ b/extensions/vscode/e2e/test-continue/config.json @@ -17,6 +17,9 @@ "provider": "mock", "title": "TOOL MOCK LLM", "model": "claude-3-5-sonnet-latest", + "capabilities": { + "tools": true + }, "requestOptions": { "extraBodyProperties": { "chatStream": [ diff --git a/extensions/vscode/e2e/tests/GUI.test.ts b/extensions/vscode/e2e/tests/GUI.test.ts index 5f362d64a..55493a28c 100644 --- a/extensions/vscode/e2e/tests/GUI.test.ts +++ b/extensions/vscode/e2e/tests/GUI.test.ts @@ -240,10 +240,12 @@ describe("GUI Test", () => { }); describe("Agent with tools", () => { - it("should render tool call", async () => { + beforeEach(async () => { await GUIActions.selectModelFromDropdown(view, "TOOL MOCK LLM"); await GUIActions.selectModeFromDropdown(view, "Agent"); + }); + it("should render tool call", async () => { const [messageInput] = await GUISelectors.getMessageInputFields(view); await messageInput.sendKeys("Hello"); await messageInput.sendKeys(Key.ENTER); @@ -261,10 +263,6 @@ describe("GUI Test", () => { it("should call tool after approval", async () => { await GUIActions.toggleToolPolicy(view, "builtin_view_diff", 2); - await TestUtils.waitForSuccess(() => - GUIActions.selectModelFromDropdown(view, "TOOL MOCK LLM"), - ); - const [messageInput] = await GUISelectors.getMessageInputFields(view); await messageInput.sendKeys("Hello"); await messageInput.sendKeys(Key.ENTER); @@ -286,10 +284,6 @@ describe("GUI Test", () => { it("should cancel tool", async () => { await GUIActions.toggleToolPolicy(view, "builtin_view_diff", 2); - await TestUtils.waitForSuccess(() => - GUIActions.selectModelFromDropdown(view, "TOOL MOCK LLM"), - ); - const [messageInput] = await GUISelectors.getMessageInputFields(view); await messageInput.sendKeys("Hello"); await messageInput.sendKeys(Key.ENTER);