From f4c66f0c3cb2ae61c9d89661197ff28c44868783 Mon Sep 17 00:00:00 2001
From: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Date: Wed, 25 Oct 2023 23:13:46 -0700
Subject: [PATCH 01/19] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 6b7cf1491..a0a8aedbd 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
> 🎁 **New! [Try out the new JetBrains extension (Alpha)](https://plugins.jetbrains.com/plugin/22707-continue-extension)**
+> Interested in a 1-on-1, 15 minute introduction to Continue? Fill out [this form](https://forms.gle/H6U6rGDX55oWSWjC8) and we'll get in touch!
+

Continue
From ba6e385030c1bb1fb19c6c8e0661a4882eb42515 Mon Sep 17 00:00:00 2001
From: Mase Graye
Date: Thu, 26 Oct 2023 17:46:40 -0500
Subject: [PATCH 02/19] Set CWD when running ui build prelaunch task (#588)
Fixes Server + Extension vscode launch configuration.
Then previous "npm" type task respected the cwd setting from launch.json. However, the new "shell" type task seems to require it be explicitly set in the task.
---
.vscode/tasks.json | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 7210d7d62..5673d154c 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -60,6 +60,9 @@
"presentation": {
"revealProblems": "onProblem",
"clear": true
+ },
+ "options": {
+ "cwd": "${workspaceFolder}/extensions/vscode"
}
},
//
From f6cfdf4f931356722b94fc98a635706414e8797c Mon Sep 17 00:00:00 2001
From: Ty Dunn
Date: Fri, 27 Oct 2023 09:10:33 -0700
Subject: [PATCH 03/19] add ref to what llm to use
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a0a8aedbd..10f0ec297 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ Press `cmd+shift+r` (MacOS) / `ctrl+shift+r` (Windows) when you come across an e
### Download for [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension)
-By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs), including local, private models. Read more [here](https://continue.dev/docs/customization/models).
+By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](github.com/continuedev/what-llm-to-use). Read more about available model providers [here](https://continue.dev/docs/customization/models).
### [Run the server manually](https://continue.dev/docs/walkthroughs/manually-run-continue)
From ce22d3404873ae23cfe865613cb9ed10565f512c Mon Sep 17 00:00:00 2001
From: Ty Dunn
Date: Fri, 27 Oct 2023 09:11:31 -0700
Subject: [PATCH 04/19] fixing broken link
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 10f0ec297..27227d093 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ Press `cmd+shift+r` (MacOS) / `ctrl+shift+r` (Windows) when you come across an e
### Download for [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension)
-By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](github.com/continuedev/what-llm-to-use). Read more about available model providers [here](https://continue.dev/docs/customization/models).
+By default, Continue uses `GPT-4` and `GPT-3.5-turbo` via the OpenAI API. You can adjust the config to use different Large Language Models (LLMs) like [Code Llama, Claude 2, WizardCoder, PaLM 2, and more](https://github.com/continuedev/what-llm-to-use). Read more [here](https://continue.dev/docs/customization/models).
### [Run the server manually](https://continue.dev/docs/walkthroughs/manually-run-continue)
From 7b1f362e82b02b060ba0257cdbeb83c9c19c6dcb Mon Sep 17 00:00:00 2001
From: GitHub Action
Date: Fri, 27 Oct 2023 16:12:27 +0000
Subject: [PATCH 05/19] =?UTF-8?q?ci:=20=F0=9F=8F=B7=20Update=20PyPI=20vers?=
=?UTF-8?q?ion=20[skip=20ci]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
server/pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/pyproject.toml b/server/pyproject.toml
index 8858d4c10..29042701b 100644
--- a/server/pyproject.toml
+++ b/server/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "continuedev"
-version = "0.1.72"
+version = "0.1.73"
description = ""
authors = ["Nate Sesti "]
readme = "README.md"
From ef0306441ce7459338cd2dd440d2bbe001f2ea42 Mon Sep 17 00:00:00 2001
From: jwalksir <35584631+jwalksir@users.noreply.github.com>
Date: Sat, 28 Oct 2023 15:50:13 -0400
Subject: [PATCH 06/19] Update running-continue-without-internet.md (#590)
---
docs/docs/walkthroughs/running-continue-without-internet.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/walkthroughs/running-continue-without-internet.md b/docs/docs/walkthroughs/running-continue-without-internet.md
index 752c4bff9..1ae7b7a41 100644
--- a/docs/docs/walkthroughs/running-continue-without-internet.md
+++ b/docs/docs/walkthroughs/running-continue-without-internet.md
@@ -9,7 +9,7 @@ keywords: [no internet, air-gapped, local model]
Continue can be run even on an air-gapped computer if you use a local model. You'll have to make a few adjustments for this to work.
-1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extensions/vscode/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
+1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
2. In VS Code settings, search "continue" and check the box that says "Manually Running Server". This will stop Continue from trying to kill and redownload the server binary.
3. Follow instructions to [run Continue manually](./manually-run-continue.md).
4. Open `~/.continue/config.py` and set `allow_anonymous_telemetry=False`. This will stop Continue from attempting requests to PostHog.
From c61049600ec96a92e02356d79412650dc3883f43 Mon Sep 17 00:00:00 2001
From: Peter Zaback
Date: Mon, 30 Oct 2023 17:13:58 -0500
Subject: [PATCH 07/19] Fix URL for Together.ai models list in models.md (#593)
---
docs/docs/customization/models.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/docs/customization/models.md b/docs/docs/customization/models.md
index 8fc1940e7..2f9fcab82 100644
--- a/docs/docs/customization/models.md
+++ b/docs/docs/customization/models.md
@@ -24,7 +24,7 @@ Local Models
Open-Source Models (not local)
-- [TogetherLLM](../reference/Models/togetherllm.md) - Use any model from the [Together Models list](https://docs.together.ai/docs/models-inference) with your Together API key.
+- [TogetherLLM](../reference/Models/togetherllm.md) - Use any model from the [Together Models list](https://docs.together.ai/docs/inference-models) with your Together API key.
- [ReplicateLLM](../reference/Models/replicatellm.md) - Use any open-source model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models) with your Replicate API key.
- [HuggingFaceInferenceAPI](../reference/Models/huggingfaceinferenceapi.md) - Use any open-source model from the [Hugging Face Inference API](https://huggingface.co/inference-api) with your Hugging Face token.
From db222418da3ed076d54a996e71a3c6a9a2d749e5 Mon Sep 17 00:00:00 2001
From: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Date: Wed, 1 Nov 2023 01:57:51 -0700
Subject: [PATCH 08/19] Preview (#595)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Strong typing (#533)
* refactor: :recycle: get rid of continuedev.src.continuedev structure
* refactor: :recycle: switching back to server folder
* feat: :sparkles: make config.py imports shorter
* feat: :bookmark: publish as pre-release vscode extension
* refactor: :recycle: refactor and add more completion params to ui
* build: :building_construction: download from preview S3
* fix: :bug: fix paths
* fix: :green_heart: package:pre-release
* ci: :green_heart: more time for tests
* fix: :green_heart: fix build scripts
* fix: :bug: fix import in run.py
* fix: :bookmark: update version to try again
* ci: 💚 Update package.json version [skip ci]
* refactor: :fire: don't check for old extensions version
* fix: :bug: small bug fixes
* fix: :bug: fix config.py import paths
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: platform-specific builds test #1
* feat: :green_heart: ship with binary
* fix: :green_heart: fix copy statement to include.exe for windows
* fix: :green_heart: cd extension before packaging
* chore: :loud_sound: count tokens generated
* fix: :green_heart: remove npm_config_arch
* fix: :green_heart: publish as pre-release!
* chore: :bookmark: update version
* perf: :green_heart: hardcode distro paths
* fix: :bug: fix yaml syntax error
* chore: :bookmark: update version
* fix: :green_heart: update permissions and version
* feat: :bug: kill old server if needed
* feat: :lipstick: update marketplace icon for pre-release
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: auto-reload for config.py
* feat: :wrench: update default config.py imports
* feat: :sparkles: codelens in config.py
* feat: :sparkles: select model param count from UI
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: more model options, ollama error handling
* perf: :zap: don't show server loading immediately
* fix: :bug: fixing small UI details
* ci: 💚 Update package.json version [skip ci]
* feat: :rocket: headers param on LLM class
* fix: :bug: fix headers for openai.;y
* feat: :sparkles: highlight code on cmd+shift+L
* ci: 💚 Update package.json version [skip ci]
* feat: :lipstick: sticky top bar in gui.tsx
* fix: :loud_sound: websocket logging and horizontal scrollbar
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: allow AzureOpenAI Service through GGML
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: fix automigration
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: upload binaries in ci, download apple silicon
* chore: :fire: remove notes
* fix: :green_heart: use curl to download binary
* fix: :green_heart: set permissions on apple silicon binary
* fix: :green_heart: testing
* fix: :green_heart: cleanup file
* fix: :green_heart: fix preview.yaml
* fix: :green_heart: only upload once per binary
* fix: :green_heart: install rosetta
* ci: :green_heart: download binary after tests
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: prepare ci for merge to main
* feat: :sparkles: improved edit prompts for OS models
* feat: :sparkles: add edit templates to model packages
* feat: :necktie: allow timeout param for OpenAI LLM class
* ci: 💚 Update package.json version [skip ci]
* feat: :lipstick: add textgenwebui as official option in Ui
* fix: :bug: fix for --meilisearch-url flag
* fix: :bug: meilisearch fixes
* feat: :sparkles: display model params for previous prompts
* fix: :bug: fix overriding of system message
* ci: 💚 Update package.json version [skip ci]
* fix: :zap: update count_tokens method
* feat: :zap: reduce default max_tokens
* fix: :bug: fix set_system_message
* ✨ Codebase Embeddings (#547)
* feat: :sparkles: basic codebase embeddings
* feat: :construction: reranking after chroma retrieval
* refactor: :truck: rename binary: run to continue_server
* ci: :green_heart: only do pypi step in github workflow
* ci: 🏷 Update PyPI version [skip ci]
* feat: :bug: add openai_api_key param for chroma steps
* ci: 🏷 Update PyPI version [skip ci]
* build: :green_heart: update pypi package
* ci: 🏷 Update PyPI version [skip ci]
* fix: :bug: rename run.spec
* ci: 🏷 Update PyPI version [skip ci]
* feat: :sparkles: params to control embeddings search
* ci: 🏷 Update PyPI version [skip ci]
* rename run.py
* feat: :construction: improvements in progress for embeddings
* feat: :art: last bit of cleaning for chunked embeddings
* ci: :green_heart: add back pypi deployment in main.yam
* ci: 🏷 Update PyPI version [skip ci]
* fix: :bug: error handling for chroma index in non-git folder
* ci: 🏷 Update PyPI version [skip ci]
* fix: :bug: don't log reranking prompt
* ci: 🏷 Update PyPI version [skip ci]
* feat: :sparkles: add option to select embeddings model
* ci: 🏷 Update PyPI version [skip ci]
* move path decode/encode functions
* ci: 🏷 Update PyPI version [skip ci]
* update spec file
* Preview (#541)
* Strong typing (#533)
* refactor: :recycle: get rid of continuedev.src.continuedev structure
* refactor: :recycle: switching back to server folder
* feat: :sparkles: make config.py imports shorter
* feat: :bookmark: publish as pre-release vscode extension
* refactor: :recycle: refactor and add more completion params to ui
* build: :building_construction: download from preview S3
* fix: :bug: fix paths
* fix: :green_heart: package:pre-release
* ci: :green_heart: more time for tests
* fix: :green_heart: fix build scripts
* fix: :bug: fix import in run.py
* fix: :bookmark: update version to try again
* ci: 💚 Update package.json version [skip ci]
* refactor: :fire: don't check for old extensions version
* fix: :bug: small bug fixes
* fix: :bug: fix config.py import paths
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: platform-specific builds test #1
* feat: :green_heart: ship with binary
* fix: :green_heart: fix copy statement to include.exe for windows
* fix: :green_heart: cd extension before packaging
* chore: :loud_sound: count tokens generated
* fix: :green_heart: remove npm_config_arch
* fix: :green_heart: publish as pre-release!
* chore: :bookmark: update version
* perf: :green_heart: hardcode distro paths
* fix: :bug: fix yaml syntax error
* chore: :bookmark: update version
* fix: :green_heart: update permissions and version
* feat: :bug: kill old server if needed
* feat: :lipstick: update marketplace icon for pre-release
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: auto-reload for config.py
* feat: :wrench: update default config.py imports
* feat: :sparkles: codelens in config.py
* feat: :sparkles: select model param count from UI
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: more model options, ollama error handling
* perf: :zap: don't show server loading immediately
* fix: :bug: fixing small UI details
* ci: 💚 Update package.json version [skip ci]
* feat: :rocket: headers param on LLM class
* fix: :bug: fix headers for openai.;y
* feat: :sparkles: highlight code on cmd+shift+L
* ci: 💚 Update package.json version [skip ci]
* feat: :lipstick: sticky top bar in gui.tsx
* fix: :loud_sound: websocket logging and horizontal scrollbar
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: allow AzureOpenAI Service through GGML
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: fix automigration
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: upload binaries in ci, download apple silicon
* chore: :fire: remove notes
* fix: :green_heart: use curl to download binary
* fix: :green_heart: set permissions on apple silicon binary
* fix: :green_heart: testing
* fix: :green_heart: cleanup file
* fix: :green_heart: fix preview.yaml
* fix: :green_heart: only upload once per binary
* fix: :green_heart: install rosetta
* ci: :green_heart: download binary after tests
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: prepare ci for merge to main
---------
Co-authored-by: GitHub Action
* fix: :memo: fix deployent readme
* chore: :bookmark: update package.json version
* fix: :bug: fix ci to only upload from linux x64, not alpine
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: fixing up
* refactor: :fire: remove sentence_transformers_model option
* ci: :green_heart: run preview.yaml
* refactor: :recycle: rename to continue_server
* ci: :green_heart: update python version in continue_server.spec
* ci: :green_heart: checking paths
* ci: :green_heart: find path of site-packages
* fix
* ci: :green_heart: deploy to pre-release
* ci: :green_heart: change branch to pull from in ci
* perf: :construction_worker: build with tiktoken vocab
* chore: :bookmark: upgrade version
* ci: 💚 Update package.json version [skip ci]
* fix: :zap: update count_tokens method
* ci: :green_heart: download continue_server, not run
* ci: 💚 Update package.json version [skip ci]
* feat: :zap: reduce default max_tokens
* fix: :bug: fix set_system_message
* ci: :green_heart: update ci for preview branch
* build: :green_heart: update pypi package
---------
Co-authored-by: GitHub Action
* ci: :green_heart: publish to pypi in seperate step
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* feat: :art: small changes to /codebase ui
* 📌 update pydantic version
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🐛 check for DISCONNECTED before closing ws
* 🐛 check for disconnected before sending ws msg
* 🚸 add python path to global vscode settings
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 💄 stop button
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🚑 solve ssl file not found error
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🔒️ trust_env=True for proxy env var
* ⚡️ always use custom aiohttp session for openai
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* ⚡️ flatten messages
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🐛 migrate away from legacy completions endpoint
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🚑 fix delta undefined
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* ⚡️ retry for readfile in index generation
* 💄 inserting at cursor above input box
* ⚡️ debouncing /edit streaming
* Initial intelliJ plugin changes to support webview (#457)
* Initial intelliJ plugin changes to support webview
* connect webview websockets
* Starting work on downloading server binary from S3
* fix color theme in intellij
* refactor name to continuedev
* correctly set important variables for onLoad
* highlighted code now working
* keyboard shortcuts (Actions)
* fix: :bug: hf_tgi fix, proxy support for ggml
* fix: :bug: remove unecessary logging
* Sync the changes
* Clean up code
* updating how continue works
* ci: 🏷 Update PyPI version [skip ci]
* docs: :memo: docs for customizing chat / edit templates
* docs: :memo: headless mode docs (start)
* docs: :memo: updated setup docs
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: compatibility with python 3.8
* feat: :sparkles: verify_ssl option for all LLMs
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: verify_ssl and ssl_context mutual exclusivity
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* feat: :adhesive_bandage: ca_bundle_path for maybeproxyopenai
* fix: :bug: a few minor fixes
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: custom escaping instead of URI for diff paths
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: fix huggingface tgi
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* docs: :memo: small docs update on how continue works
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* Clarifying `logs` instructions in troubleshooting.md (#476)
* fix: :bug: fixes to templating messages
* fix: some typos (#478)
* fix: :bug: fix for lmstudio defaults
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* Implement design patterns for better extensibility
* Fix: Ensure read operations in ContinuePluginSelectionListener are run within the correct context using runReadAction.
* feat: :sparkles: implement most other ideProtocolClient methods
* wait until server is running to connect
* remove unnecessary imports, update version
* reformat code and optimize the imports
* fix: :bug: fix serialization bug
* fix: :bug: attempt to fix error from jetbrains marketplace
* a few updates
* fix: :bug: bringing jetbrains up to par
* feat: :sparkles: highlighted code updates in intellij
* fix: :ambulance: fix freezing issue
* fix: :bug: fix icons, bump version
* feat: :sparkles: /edit support, other fixes
* quick input, keyboard shortcuts
* fix: :bug: fix /edit and keyboard shortcuts and lagging on scroll
* feat: :lipstick: welcome panel
* chore: :bookmark: update version
* ide endpoint for websockets
* fix: :ambulance: fix freezing problem
* quick input
* fix: :bug: small jetbrains fixes
* fix: :lipstick: nicer dropdown that can "drop up"
* fix: :bug: fix font size for dropdown
* fix: :lipstick: fix textarea for quickinput
* Preview (#541)
* Strong typing (#533)
* refactor: :recycle: get rid of continuedev.src.continuedev structure
* refactor: :recycle: switching back to server folder
* feat: :sparkles: make config.py imports shorter
* feat: :bookmark: publish as pre-release vscode extension
* refactor: :recycle: refactor and add more completion params to ui
* build: :building_construction: download from preview S3
* fix: :bug: fix paths
* fix: :green_heart: package:pre-release
* ci: :green_heart: more time for tests
* fix: :green_heart: fix build scripts
* fix: :bug: fix import in run.py
* fix: :bookmark: update version to try again
* ci: 💚 Update package.json version [skip ci]
* refactor: :fire: don't check for old extensions version
* fix: :bug: small bug fixes
* fix: :bug: fix config.py import paths
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: platform-specific builds test #1
* feat: :green_heart: ship with binary
* fix: :green_heart: fix copy statement to include.exe for windows
* fix: :green_heart: cd extension before packaging
* chore: :loud_sound: count tokens generated
* fix: :green_heart: remove npm_config_arch
* fix: :green_heart: publish as pre-release!
* chore: :bookmark: update version
* perf: :green_heart: hardcode distro paths
* fix: :bug: fix yaml syntax error
* chore: :bookmark: update version
* fix: :green_heart: update permissions and version
* feat: :bug: kill old server if needed
* feat: :lipstick: update marketplace icon for pre-release
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: auto-reload for config.py
* feat: :wrench: update default config.py imports
* feat: :sparkles: codelens in config.py
* feat: :sparkles: select model param count from UI
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: more model options, ollama error handling
* perf: :zap: don't show server loading immediately
* fix: :bug: fixing small UI details
* ci: 💚 Update package.json version [skip ci]
* feat: :rocket: headers param on LLM class
* fix: :bug: fix headers for openai.;y
* feat: :sparkles: highlight code on cmd+shift+L
* ci: 💚 Update package.json version [skip ci]
* feat: :lipstick: sticky top bar in gui.tsx
* fix: :loud_sound: websocket logging and horizontal scrollbar
* ci: 💚 Update package.json version [skip ci]
* feat: :sparkles: allow AzureOpenAI Service through GGML
* ci: 💚 Update package.json version [skip ci]
* fix: :bug: fix automigration
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: upload binaries in ci, download apple silicon
* chore: :fire: remove notes
* fix: :green_heart: use curl to download binary
* fix: :green_heart: set permissions on apple silicon binary
* fix: :green_heart: testing
* fix: :green_heart: cleanup file
* fix: :green_heart: fix preview.yaml
* fix: :green_heart: only upload once per binary
* fix: :green_heart: install rosetta
* ci: :green_heart: download binary after tests
* ci: 💚 Update package.json version [skip ci]
* ci: :green_heart: prepare ci for merge to main
---------
Co-authored-by: GitHub Action
* fix: :memo: fix deployent readme
* fix: :bug: do read operation in readAction
* chore: :bookmark: update version
* 🐛 small jetbrains fixes
* ⚡️ exponential backoff jetbrains
* 🐛 fix history loading bug
* 💄 many small ui fixes
* 🐛 fixes freezing problem (actually)
* 🥅 catch errors, other stuff
* 🐛 many jetbrains fixes
* 💄 when no context items found, say in dropdown
* 🎉 VS Code tutorial
* ✨ jetbrains tutorial file
* ⚡️ exponential backoff for ide websockets
* 🎉 unused work on intellij editor inlay
* ✨ server loading progress messages
* ✨ additional progress update
* 💄 fix /edit flickering, keyboard interactions
---------
Co-authored-by: Nate Sesti
Co-authored-by: Ty Dunn
Co-authored-by: GitHub Action
Co-authored-by: Aaron Mihalik
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
* 💚 update binaries in preview workflow
* ci: 🏷 Update PyPI version [skip ci]
* 💚 log prepackaging error
* 💚 remove ci steps for testing
* 💚 make npm run build work on windows
* 🔥 remove codebase embeddings from default config
* 🐛 fix jetbrains input key handling
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🔊 add vscMachineId to user interest form
* 💄 focus continue input box after quick input
* ✨ Show VS Code Tutorial
* ✨ chatml template_messages
* 🐛 fix gh action s3 bucket name, handle ollama err
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* ✏️ automatically remove trailing / from serverUrl
* Nate/better embeddings (#564)
* ♻️ refactoring codebase index folder
* ➕ tree_sitter dependency
* 🐛 solve a few indexing bugs
* ⚡️ code chunker
* ✏️ automatically remove trailing / from serverUrl
* 🎨 introduce Chunk class
* 🎨 finish chunking refactor
* 🐛 call format_exception so that 3.8-compatible
* ci: 🏷 Update PyPI version [skip ci]
* register/unregister shortcuts instead of unregistering the commands themselves (#568)
* 💚 fix tree_sitter_languages build for windows
* 🚸 allow toggling telemetry from vscode settings
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🔊 update logging
* ♻️ refactor extension folders and react-app
* fix: hotkey for new session (#572)
* 💄 file icons, preview context items
* 💄 toggle to show context items
* 💄 nicer preview dropdown
* ci: 🏷 Update PyPI version [skip ci]
* 💚 fix path in yaml
* ci: 🏷 Update PyPI version [skip ci]
* 💚 one more path fix to GH workflows
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 💄 inline keyboard shortcut suggestions
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 👷 parameterize .spec file
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🐛 use platform-specific keyboard shortcut icons
* ci: 🏷 Update PyPI version [skip ci]
* ci: 💚 Update package.json version [skip ci]
* 🧑💻 refresh contents of highlighted ranges
* 🐛 stop description and title gen if step stopped
* 🐛 fix hidden items in dropdown by setting height
* 🔖 update compatibility for eap jetbrains
* ✨ continue ascii art
* ♻️ use message IDs
* 🚧 can at start the server
* ⚡️ switch to socket.io!
* 🚧 socket.io for GUI
* 🚧 working out proper object composition
* 🏷️ regenerate types
* 🚧 implement first version of SessionState reducer
* 🚧 Fixed all type errors in gui
* 🚧 basic chat is working!
* 🚧 prompt inspection
* 🚧 mostly fixed session loading/saving
* 🚧 slash commands and context providers
* 🚧 inspect prompt
* 🚧 highlighted code
* 🚧 preview context items
* ✨ state persistence
* 🚧 /edit
* 🚧 settings
* 🚧 change models
* 🚧 /share
* 🚧 fixed saving history
* 🚧 /clear
* undo reset
* 🐛 small fixes
* 🚧 intellij socket.io
* 🐛 refactor for Intellij
* 🐛 fix gui connection, ci
* 🐛 health endpoint
* 💚 give more time in ci
* 💚 health
* 💚 testing ci server start
* 🐛 don't ignore stdio
* 💚 pysqlite3-binary
* 💚 import new sqlite
* 👷 build sqlite from source
* 💡 ci
* 📌 try building with python3.11
* 👷 build sqlite, try again
* 💚 if ubuntu
* 💚 ubuntu latest
* ✅ don't call done in test
* 📌 use newer ubuntu
* ci: 💚 Update package.json version [skip ci]
* 🐛 uncomment testing tweaks
* ci: 💚 Update package.json version [skip ci]
* 🐛 small fixes
* ⚡️ limit to avoid max msg size with socketio
* 🐛 ignore other msg types in ide
* ci: 💚 Update package.json version [skip ci]
* ✨ debug terminal
* ci: 💚 Update package.json version [skip ci]
* 🐛 merge ranges
* 🐛 fix vscMediaUrl
* ci: 💚 Update package.json version [skip ci]
* ✨ Ask Continue
* ci: 💚 Update package.json version [skip ci]
* 👷 don't publish binaries from main
* 📝 fix docs
---------
Co-authored-by: GitHub Action
Co-authored-by: Bishwendu Kundu
Co-authored-by: Ty Dunn
Co-authored-by: Aaron Mihalik
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
Co-authored-by: James Vogel
---
.github/workflows/main.yaml | 100 +--
.github/workflows/preview.yaml | 189 +++--
continue_server.py | 4 +
continue_server.spec | 3 +-
extensions/intellij/README.md | 2 +-
extensions/intellij/build.gradle.kts | 2 +-
.../ContinuePluginStartupActivity.kt | 9 +-
.../continue/Diffs.kt | 3 +-
.../continue/IdeProtocolClient.kt | 319 ++++---
.../factories/CustomhandlerFactory.kt | 3 +-
.../ContinuePluginSelectionListener.kt | 3 +-
.../ContinueExtensionSettingsService.kt | 3 +-
.../services/ContinuePluginService.kt | 6 +-
.../ContinuePluginToolWindowFactory.kt | 44 +-
.../src/main/resources/META-INF/plugin.xml | 2 +-
.../src/main/resources/continue_tutorial.py | 13 +-
.../main/resources/webview/assets/index.css | 2 +-
.../main/resources/webview/assets/index.js | 738 ++++++++--------
extensions/vscode/continue_tutorial.py | 6 +
extensions/vscode/gui/assets/index.css | 2 +-
extensions/vscode/gui/assets/index.js | 738 ++++++++--------
.../vscode/manual-testing-sandbox/example.ts | 4 +-
.../nested-folder/helloNested.py | 3 +
extensions/vscode/package-lock.json | 172 +++-
extensions/vscode/package.json | 4 +-
extensions/vscode/schema/ContextItemId.d.ts | 19 +
.../schema/ContextProviderDescription.d.ts | 22 +
extensions/vscode/schema/ContinueConfig.d.ts | 27 +-
extensions/vscode/schema/ContinueError.d.ts | 16 +
extensions/vscode/schema/FullState.d.ts | 177 ----
extensions/vscode/schema/Models.d.ts | 8 +-
...oryNode.d.ts => PersistedSessionInfo.d.ts} | 85 +-
.../schema/RangeInFileWithContents.d.ts | 35 +
.../vscode/schema/SessionState.d.ts | 75 +-
extensions/vscode/schema/SessionUpdate.d.ts | 61 ++
.../schema/SlashCommandDescription.d.ts | 16 +
.../vscode/scripts/install_from_source.py | 4 +-
extensions/vscode/src/activation/activate.ts | 52 +-
extensions/vscode/src/commands.ts | 42 +-
extensions/vscode/src/continueIdeClient.ts | 241 +++---
extensions/vscode/src/debugPanel.ts | 190 ++---
extensions/vscode/src/diffs.ts | 3 +-
extensions/vscode/src/util/messenger.ts | 177 ----
gui/package-lock.json | 186 ++++
gui/package.json | 4 +
gui/src/App.tsx | 68 +-
gui/src/components/ComboBox.tsx | 163 ++--
gui/src/components/ContinueButton.tsx | 4 +-
gui/src/components/ErrorStepContainer.tsx | 12 +-
gui/src/components/Layout.tsx | 15 +-
gui/src/components/Loader.tsx | 4 +-
gui/src/components/ModelCard.tsx | 4 +-
gui/src/components/PillButton.tsx | 68 +-
gui/src/components/StepContainer.tsx | 68 +-
gui/src/components/Suggestions.tsx | 14 +-
gui/src/components/UserInputContainer.tsx | 356 --------
gui/src/components/VSCodeFileLink.tsx | 4 +-
.../dialogs/AddContextGroupDialog.tsx | 2 +-
.../dialogs/SelectContextGroupDialog.tsx | 2 +-
.../AbstractContinueGUIClientProtocol.ts | 16 +-
gui/src/hooks/ContinueGUIClientProtocol.ts | 156 ++--
gui/src/hooks/messenger.ts | 108 ++-
gui/src/hooks/useContinueClient.ts | 49 ++
gui/src/hooks/useSetup.ts | 151 ++++
gui/src/hooks/useWebsocket.ts | 48 --
gui/src/hooks/vscodeMessenger.ts | 8 +-
gui/src/main.tsx | 11 +-
gui/src/pages/error.tsx | 24 +-
gui/src/pages/gui.tsx | 530 ++++++------
gui/src/pages/history.tsx | 43 +-
gui/src/pages/modelconfig.tsx | 4 +-
gui/src/redux/selectors/chatSelectors.ts | 11 -
gui/src/redux/selectors/miscSelectors.ts | 5 -
gui/src/redux/slices/chatSlice.ts | 93 --
gui/src/redux/slices/configSlice.ts | 18 +-
gui/src/redux/slices/miscSlice.ts | 10 +-
gui/src/redux/slices/serverStateReducer.ts | 100 +--
gui/src/redux/slices/sessionStateReducer.ts | 330 ++++++++
gui/src/redux/store.ts | 80 +-
gui/src/schema/ContextItemId.d.ts | 19 +
.../schema/ContextProviderDescription.d.ts | 22 +
gui/src/schema/ContinueConfig.d.ts | 27 +-
gui/src/schema/ContinueError.d.ts | 16 +
gui/src/schema/FullState.d.ts | 177 ----
gui/src/schema/Models.d.ts | 8 +-
...History.d.ts => PersistedSessionInfo.d.ts} | 91 +-
gui/src/schema/RangeInFileWithContents.d.ts | 35 +
.../src/schema/SessionState.d.ts | 81 +-
gui/src/schema/SessionUpdate.d.ts | 61 ++
gui/src/schema/SlashCommandDescription.d.ts | 16 +
gui/src/vscode/index.ts | 30 +-
schema/json/ContextItemId.json | 25 +
schema/json/ContextProviderDescription.json | 39 +
schema/json/ContinueConfig.json | 35 +-
schema/json/ContinueError.json | 24 +
schema/json/FullState.json | 413 ---------
schema/json/Models.json | 14 +-
...oryNode.json => PersistedSessionInfo.json} | 222 +++--
schema/json/RangeInFileWithContents.json | 64 ++
.../json/{History.json => SessionState.json} | 217 ++---
schema/json/SessionUpdate.json | 136 +++
schema/json/SlashCommandDescription.json | 24 +
server/config.py | 2 +-
server/continuedev/__init__.py | 5 +-
server/continuedev/__main__.py | 12 +
server/continuedev/core/abstract_sdk.py | 82 --
server/continuedev/core/autopilot.py | 793 +++++-------------
server/continuedev/core/config.py | 115 ++-
server/continuedev/core/context.py | 185 ++--
server/continuedev/core/main.py | 195 ++---
server/continuedev/core/models.py | 59 +-
server/continuedev/core/sdk.py | 211 ++---
server/continuedev/core/steps.py | 103 +--
server/continuedev/headless/__init__.py | 23 +-
server/continuedev/headless/headless_ide.py | 4 -
.../libs/constants/default_config.py | 6 -
server/continuedev/libs/llm/anthropic.py | 4 +-
server/continuedev/libs/llm/base.py | 18 +-
server/continuedev/libs/llm/ggml.py | 31 +-
server/continuedev/libs/llm/ollama.py | 4 +-
server/continuedev/libs/llm/openai.py | 6 +-
.../continuedev/libs/llm/openai_free_trial.py | 8 +-
server/continuedev/libs/llm/prompts/chat.py | 25 +-
server/continuedev/libs/llm/replicate.py | 4 +-
server/continuedev/libs/llm/text_gen_webui.py | 4 -
server/continuedev/libs/llm/together.py | 19 +-
server/continuedev/libs/util/edit_config.py | 19 +-
server/continuedev/libs/util/logging.py | 4 +-
server/continuedev/libs/util/queue.py | 25 +-
server/continuedev/libs/util/telemetry.py | 13 -
server/continuedev/models/filesystem.py | 6 +
.../models/generate_json_schema.py | 27 +-
server/continuedev/models/websockets.py | 13 +
.../plugins/context_providers/file.py | 61 +-
.../plugins/context_providers/filetree.py | 2 +-
.../context_providers/highlighted_code.py | 85 +-
.../plugins/context_providers/search.py | 2 +-
.../plugins/context_providers/terminal.py | 15 +-
server/continuedev/plugins/policies/commit.py | 6 +-
.../continuedev/plugins/policies/default.py | 38 +-
.../continuedev/plugins/policies/headless.py | 15 +-
.../recipes/AddTransformRecipe/README.md | 9 -
.../AddTransformRecipe/dlt_transform_docs.md | 142 ----
.../recipes/AddTransformRecipe/main.py | 31 -
.../recipes/AddTransformRecipe/steps.py | 106 ---
.../recipes/CreatePipelineRecipe/README.md | 0
.../recipes/CreatePipelineRecipe/main.py | 40 -
.../recipes/CreatePipelineRecipe/steps.py | 243 ------
.../plugins/recipes/DDtoBQRecipe/README.md | 3 -
.../dlt_duckdb_to_bigquery_docs.md | 85 --
.../plugins/recipes/DDtoBQRecipe/main.py | 31 -
.../plugins/recipes/DDtoBQRecipe/steps.py | 119 ---
.../DeployPipelineAirflowRecipe/README.md | 0
.../DeployPipelineAirflowRecipe/main.py | 86 --
.../DeployPipelineAirflowRecipe/steps.py | 125 ---
.../plugins/recipes/TemplateRecipe/main.py | 2 +-
server/continuedev/plugins/steps/chat.py | 332 +-------
server/continuedev/plugins/steps/chroma.py | 38 +-
.../plugins/steps/clear_history.py | 6 +-
server/continuedev/plugins/steps/cmd.py | 8 +-
.../plugins/steps/draft/typeorm.py | 2 +-
.../plugins/steps/function_calling.py | 261 ++++++
.../plugins/steps/input/nl_multiselect.py | 32 -
server/continuedev/plugins/steps/main.py | 25 +-
.../continuedev/plugins/steps/on_traceback.py | 7 +-
.../continuedev/plugins/steps/open_config.py | 3 +-
.../plugins/steps/share_session.py | 36 +-
server/continuedev/server/gui.py | 531 +-----------
server/continuedev/server/ide.py | 718 +---------------
server/continuedev/server/main.py | 36 +-
.../continuedev/server/meilisearch_server.py | 4 +-
server/continuedev/server/protocols/gui.py | 314 +++++++
.../server/protocols/gui_protocol.py | 15 +
server/continuedev/server/protocols/ide.py | 474 +++++++++++
.../server/{ => protocols}/ide_protocol.py | 30 +-
server/continuedev/server/session_manager.py | 195 -----
server/continuedev/server/sessions.py | 129 +++
.../server/websockets_messenger.py | 142 ++++
server/continuedev/server/window_manager.py | 242 ++++++
server/poetry.lock | 88 +-
server/pyproject.toml | 1 +
server/requirements.txt | 3 +-
182 files changed, 6827 insertions(+), 8305 deletions(-)
create mode 100644 extensions/vscode/schema/ContextItemId.d.ts
create mode 100644 extensions/vscode/schema/ContextProviderDescription.d.ts
create mode 100644 extensions/vscode/schema/ContinueError.d.ts
delete mode 100644 extensions/vscode/schema/FullState.d.ts
rename extensions/vscode/schema/{HistoryNode.d.ts => PersistedSessionInfo.d.ts} (56%)
create mode 100644 extensions/vscode/schema/RangeInFileWithContents.d.ts
rename gui/src/schema/HistoryNode.d.ts => extensions/vscode/schema/SessionState.d.ts (56%)
create mode 100644 extensions/vscode/schema/SessionUpdate.d.ts
create mode 100644 extensions/vscode/schema/SlashCommandDescription.d.ts
delete mode 100644 extensions/vscode/src/util/messenger.ts
delete mode 100644 gui/src/components/UserInputContainer.tsx
create mode 100644 gui/src/hooks/useContinueClient.ts
create mode 100644 gui/src/hooks/useSetup.ts
delete mode 100644 gui/src/hooks/useWebsocket.ts
delete mode 100644 gui/src/redux/selectors/chatSelectors.ts
delete mode 100644 gui/src/redux/selectors/miscSelectors.ts
delete mode 100644 gui/src/redux/slices/chatSlice.ts
create mode 100644 gui/src/redux/slices/sessionStateReducer.ts
create mode 100644 gui/src/schema/ContextItemId.d.ts
create mode 100644 gui/src/schema/ContextProviderDescription.d.ts
create mode 100644 gui/src/schema/ContinueError.d.ts
delete mode 100644 gui/src/schema/FullState.d.ts
rename gui/src/schema/{History.d.ts => PersistedSessionInfo.d.ts} (52%)
create mode 100644 gui/src/schema/RangeInFileWithContents.d.ts
rename extensions/vscode/schema/History.d.ts => gui/src/schema/SessionState.d.ts (52%)
create mode 100644 gui/src/schema/SessionUpdate.d.ts
create mode 100644 gui/src/schema/SlashCommandDescription.d.ts
create mode 100644 schema/json/ContextItemId.json
create mode 100644 schema/json/ContextProviderDescription.json
create mode 100644 schema/json/ContinueError.json
delete mode 100644 schema/json/FullState.json
rename schema/json/{HistoryNode.json => PersistedSessionInfo.json} (63%)
create mode 100644 schema/json/RangeInFileWithContents.json
rename schema/json/{History.json => SessionState.json} (55%)
create mode 100644 schema/json/SessionUpdate.json
create mode 100644 schema/json/SlashCommandDescription.json
delete mode 100644 server/continuedev/core/abstract_sdk.py
create mode 100644 server/continuedev/models/websockets.py
delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/README.md
delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/dlt_transform_docs.md
delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/main.py
delete mode 100644 server/continuedev/plugins/recipes/AddTransformRecipe/steps.py
delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/README.md
delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/main.py
delete mode 100644 server/continuedev/plugins/recipes/CreatePipelineRecipe/steps.py
delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/README.md
delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/dlt_duckdb_to_bigquery_docs.md
delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/main.py
delete mode 100644 server/continuedev/plugins/recipes/DDtoBQRecipe/steps.py
delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/README.md
delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/main.py
delete mode 100644 server/continuedev/plugins/recipes/DeployPipelineAirflowRecipe/steps.py
create mode 100644 server/continuedev/plugins/steps/function_calling.py
delete mode 100644 server/continuedev/plugins/steps/input/nl_multiselect.py
create mode 100644 server/continuedev/server/protocols/gui.py
create mode 100644 server/continuedev/server/protocols/gui_protocol.py
create mode 100644 server/continuedev/server/protocols/ide.py
rename server/continuedev/server/{ => protocols}/ide_protocol.py (83%)
delete mode 100644 server/continuedev/server/session_manager.py
create mode 100644 server/continuedev/server/sessions.py
create mode 100644 server/continuedev/server/websockets_messenger.py
create mode 100644 server/continuedev/server/window_manager.py
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index f616c60a1..19b947ec7 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -7,7 +7,7 @@ on:
jobs:
pypi-deployment:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
permissions:
contents: write
steps:
@@ -64,19 +64,19 @@ jobs:
platform: win32
arch: arm64
npm_config_arch: arm
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: x64
npm_config_arch: x64
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: arm64
npm_config_arch: arm64
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: armhf
npm_config_arch: arm
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: alpine
arch: x64
npm_config_arch: x64
@@ -97,11 +97,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
- python-version: "3.10.8"
+ python-version: "3.11"
- - name: Install Pyinstaller
+ - name: Install dependencies
run: |
- pip install pyinstaller
+ python -m pip install --upgrade pip
+ pip install poetry
- name: Install Dependencies
run: |
@@ -143,7 +144,7 @@ jobs:
path: extensions/vscode/exe/continue_server
- uses: actions/upload-artifact@v2
- if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux'
+ if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' && matrix.platform == 'linux'
with:
name: LinuxBinary
path: extensions/vscode/exe/continue_server
@@ -200,13 +201,13 @@ jobs:
export DISPLAY=:99 # Export the display number to the environment
cd extensions/vscode
npm run test
- if: matrix.os == 'ubuntu-20.04'
+ if: matrix.os == 'ubuntu-latest'
- name: Run extension tests
run: |
cd extensions/vscode
npm run test
- if: matrix.os != 'ubuntu-20.04'
+ if: matrix.os != 'ubuntu-latest'
# 3.5 If on Apple Silicon, download the binary from S3 bucket
- name: Remove existing binary
@@ -215,7 +216,7 @@ jobs:
- name: Download Apple Silicon Binary
if: matrix.os == 'macos-latest' && matrix.arch == 'arm64'
- run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server
+ run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon-preview/continue_server
- name: Set permissions
run: |
@@ -241,7 +242,7 @@ jobs:
if: always()
publish:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
needs: build
permissions:
contents: write
@@ -285,7 +286,7 @@ jobs:
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
- git commit -am "ci: 💚 Update package.json version [skip ci]"
+ git commit -am "ci: 🏷 Update PyPI version [skip ci]"
- name: Push changes
uses: ad-m/github-push-action@master
@@ -294,42 +295,43 @@ jobs:
branch: ${{ github.ref }}
# 5. Download binaries and upload to S3
- - name: Download Linux build
- uses: actions/download-artifact@v2
- with:
- name: LinuxBinary
- path: exe/linux
+ # Skipping this until JetBrains is up-to-date
+ # - name: Download Linux build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: LinuxBinary
+ # path: exe/linux
- - name: Download macOS build
- uses: actions/download-artifact@v2
- with:
- name: macOSBinary
- path: exe/mac
+ # - name: Download macOS build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: macOSBinary
+ # path: exe/mac
- - name: Download Windows build
- uses: actions/download-artifact@v2
- with:
- name: WindowsBinary
- path: exe/windows
+ # - name: Download Windows build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: WindowsBinary
+ # path: exe/windows
- - name: Upload binaries to S3 (s3.continue.dev)
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks
- env:
- AWS_S3_BUCKET: s3.continue.dev
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: "us-west-1"
- SOURCE_DIR: "exe"
+ # - name: Upload binaries to S3 (s3.continue.dev)
+ # uses: jakejarvis/s3-sync-action@master
+ # with:
+ # args: --acl public-read --follow-symlinks
+ # env:
+ # AWS_S3_BUCKET: s3.continue.dev
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # AWS_REGION: "us-west-1"
+ # SOURCE_DIR: "exe"
- - name: Upload binaries to S3 (continue-server-binaries)
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks
- env:
- AWS_S3_BUCKET: continue-server-binaries
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: "us-west-1"
- SOURCE_DIR: "exe"
+ # - name: Upload binaries to S3 (continue-server-binaries)
+ # uses: jakejarvis/s3-sync-action@master
+ # with:
+ # args: --acl public-read --follow-symlinks
+ # env:
+ # AWS_S3_BUCKET: continue-server-binaries
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # AWS_REGION: "us-west-1"
+ # SOURCE_DIR: "exe"
diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml
index 022372383..eb88e555f 100644
--- a/.github/workflows/preview.yaml
+++ b/.github/workflows/preview.yaml
@@ -6,47 +6,47 @@ on:
- preview
jobs:
- pypi-deployment:
- runs-on: ubuntu-20.04
- permissions:
- contents: write
- steps:
- - name: Check out code
- uses: actions/checkout@v2
+ # pypi-deployment:
+ # runs-on: ubuntu-latest
+ # permissions:
+ # contents: write
+ # steps:
+ # - name: Check out code
+ # uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v4
- with:
- python-version: "3.10.8"
+ # - name: Set up Python
+ # uses: actions/setup-python@v4
+ # with:
+ # python-version: "3.10.8"
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install poetry
+ # - name: Install dependencies
+ # run: |
+ # python -m pip install --upgrade pip
+ # pip install poetry
- - name: Install project dependencies
- run: cd server && poetry install
+ # - name: Install project dependencies
+ # run: cd server && poetry install
- - name: Configure Poetry Token
- run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
+ # - name: Configure Poetry Token
+ # run: cd server && poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- - name: Bump the version
- run: cd server && poetry version patch
+ # - name: Bump the version
+ # run: cd server && poetry version patch
- - name: Build and publish the package
- run: cd server && poetry publish --build
+ # - name: Build and publish the package
+ # run: cd server && poetry publish --build
- - name: Commit changes
- run: |
- git config --local user.email "action@github.com"
- git config --local user.name "GitHub Action"
- git commit -am "ci: 🏷 Update PyPI version [skip ci]"
+ # - name: Commit changes
+ # run: |
+ # git config --local user.email "action@github.com"
+ # git config --local user.name "GitHub Action"
+ # git commit -am "ci: 🏷 Update PyPI version [skip ci]"
- - name: Push changes
- uses: ad-m/github-push-action@master
- with:
- github_token: ${{ secrets.GITHUB_TOKEN }}
- branch: ${{ github.ref }}
+ # - name: Push changes
+ # uses: ad-m/github-push-action@master
+ # with:
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
+ # branch: ${{ github.ref }}
build:
strategy:
@@ -64,19 +64,19 @@ jobs:
platform: win32
arch: arm64
npm_config_arch: arm
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: x64
npm_config_arch: x64
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: arm64
npm_config_arch: arm64
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: linux
arch: armhf
npm_config_arch: arm
- - os: ubuntu-20.04
+ - os: ubuntu-latest
platform: alpine
arch: x64
npm_config_arch: x64
@@ -97,7 +97,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
- python-version: "3.10.8"
+ python-version: "3.11"
- name: Install Pyinstaller
run: |
@@ -107,6 +107,36 @@ jobs:
run: |
pip install -r server/requirements.txt
+ # - name: Install newer sqlite on linux
+ # run: pip install pysqlite3-binary
+ # if: matrix.os == 'ubuntu-latest'
+
+ # Download the latest release of SQLite source code and build the source
+ # amalgamation files (sqlite3.c and sqlite3.h).
+
+ # - name: Git clone pysqlite3
+ # run: git clone https://github.com/coleifer/pysqlite3
+ # if: matrix.os == 'ubuntu-latest'
+
+ # - name: Install newer sqlite3 on linux
+ # run: |
+ # wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=release \
+ # -O sqlite.tar.gz
+ # tar xzf sqlite.tar.gz
+ # cd sqlite/
+ # ./configure
+ # make sqlite3.c
+ # if: matrix.os == 'ubuntu-latest'
+
+ # Copy the sqlite3 amalgamation files into the root of the pysqlite3 checkout
+ # and run build_static + build:
+ # - name: Copy and static build
+ # run: |
+ # cp sqlite/sqlite3.[ch] pysqlite3/
+ # cd pysqlite3
+ # python setup.py build_static build
+ # if: matrix.os == 'ubuntu-latest'
+
- name: Install tiktoken vocab file
# Done to avoid extra network request to download the vocab file
run: |
@@ -143,7 +173,7 @@ jobs:
path: extensions/vscode/exe/continue_server
- uses: actions/upload-artifact@v2
- if: matrix.os == 'ubuntu-20.04' && matrix.arch == 'x64' && matrix.platform == 'linux'
+ if: matrix.os == 'ubuntu-latest' && matrix.arch == 'x64' && matrix.platform == 'linux'
with:
name: LinuxBinary
path: extensions/vscode/exe/continue_server
@@ -200,13 +230,13 @@ jobs:
export DISPLAY=:99 # Export the display number to the environment
cd extensions/vscode
npm run test
- if: matrix.os == 'ubuntu-20.04'
+ if: matrix.os == 'ubuntu-latest'
- name: Run extension tests
run: |
cd extensions/vscode
npm run test
- if: matrix.os != 'ubuntu-20.04'
+ if: matrix.os != 'ubuntu-latest'
# 3.5 If on Apple Silicon, download the binary from S3 bucket
- name: Remove existing binary
@@ -215,7 +245,7 @@ jobs:
- name: Download Apple Silicon Binary
if: matrix.os == 'macos-latest' && matrix.arch == 'arm64'
- run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon/continue_server
+ run: curl -o extensions/vscode/exe/continue_server https://continue-server-binaries.s3.us-west-1.amazonaws.com/apple-silicon-preview/continue_server
- name: Set permissions
run: |
@@ -241,7 +271,7 @@ jobs:
if: always()
publish:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-latest
needs: build
permissions:
contents: write
@@ -262,7 +292,8 @@ jobs:
- uses: actions/download-artifact@v3
# 2. Publish the extension to VS Code Marketplace
- - run: |
+ - name: Publish to VS Code Marketplace
+ run: |
cd extensions/vscode
npx vsce publish --pre-release --packagePath ../../alpine-x64/*.vsix ../../darwin-arm64/*.vsix ../../darwin-x64/*.vsix ../../linux-arm64/*.vsix ../../linux-armhf/*.vsix ../../linux-x64/*.vsix ../../win32-ia32/*.vsix ../../win32-x64/*.vsix ../../win32-arm64/*.vsix
env:
@@ -293,42 +324,42 @@ jobs:
branch: ${{ github.ref }}
# 5. Download binaries and upload to S3
- - name: Download Linux build
- uses: actions/download-artifact@v2
- with:
- name: LinuxBinary
- path: exe/linux
+ # - name: Download Linux build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: LinuxBinary
+ # path: exe/linux
- - name: Download macOS build
- uses: actions/download-artifact@v2
- with:
- name: macOSBinary
- path: exe/mac
+ # - name: Download macOS build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: macOSBinary
+ # path: exe/mac
- - name: Download Windows build
- uses: actions/download-artifact@v2
- with:
- name: WindowsBinary
- path: exe/windows
+ # - name: Download Windows build
+ # uses: actions/download-artifact@v2
+ # with:
+ # name: WindowsBinary
+ # path: exe/windows
- - name: Upload binaries to S3 (s3.continue.dev)
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks
- env:
- AWS_S3_BUCKET: s3.continue.dev
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: "us-west-1"
- SOURCE_DIR: "exe"
+ # - name: Upload binaries to S3 (s3.continue.dev)
+ # uses: jakejarvis/s3-sync-action@master
+ # with:
+ # args: --acl public-read --follow-symlinks
+ # env:
+ # AWS_S3_BUCKET: s3.continue.dev
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # AWS_REGION: "us-west-1"
+ # SOURCE_DIR: "exe"
- - name: Upload binaries to S3 (continue-server-binaries)
- uses: jakejarvis/s3-sync-action@master
- with:
- args: --acl public-read --follow-symlinks
- env:
- AWS_S3_BUCKET: continue-server-binaries
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- AWS_REGION: "us-west-1"
- SOURCE_DIR: "exe"
+ # - name: Upload binaries to S3 (continue-server-binaries)
+ # uses: jakejarvis/s3-sync-action@master
+ # with:
+ # args: --acl public-read --follow-symlinks
+ # env:
+ # AWS_S3_BUCKET: continue-server-binaries
+ # AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ # AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ # AWS_REGION: "us-west-1"
+ # SOURCE_DIR: "exe"
diff --git a/continue_server.py b/continue_server.py
index ec093c8e5..3acd1a1bd 100644
--- a/continue_server.py
+++ b/continue_server.py
@@ -3,6 +3,10 @@ import sys
from server.main import main
+# __import__('pysqlite3')
+# import sys
+# sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
+
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
ca_bundle_path = os.path.join(sys._MEIPASS, "ca_bundle", "cacert.pem")
print("Certificates at: ", ca_bundle_path)
diff --git a/continue_server.spec b/continue_server.spec
index f160f131e..ef528b7f9 100644
--- a/continue_server.spec
+++ b/continue_server.spec
@@ -55,7 +55,8 @@ a = Analysis(
'chromadb.migrations.embeddings_queue', 'chromadb.migrations.sysdb',
'chromadb.migrations.metadb', 'chromadb.segment.impl',
'chromadb.segment.impl.manager', 'chromadb.segment.impl.manager.local',
- 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite'
+ 'chromadb.segment.impl.metadata', 'chromadb.segment.impl.metadata.sqlite',
+ # 'pysqlite3'
],
hookspath=[],
hooksconfig={},
diff --git a/extensions/intellij/README.md b/extensions/intellij/README.md
index 981ecd97a..c2f9142dd 100644
--- a/extensions/intellij/README.md
+++ b/extensions/intellij/README.md
@@ -40,4 +40,4 @@ The Continue JetBrains extension is currently in alpha. It will attempt to start
> [Troubleshooting Continue](https://continue.dev/docs/troubleshooting)
-
\ No newline at end of file
+
diff --git a/extensions/intellij/build.gradle.kts b/extensions/intellij/build.gradle.kts
index d4dad25ed..a6c600d45 100644
--- a/extensions/intellij/build.gradle.kts
+++ b/extensions/intellij/build.gradle.kts
@@ -26,7 +26,7 @@ dependencies {
// implementation(libs.annotations)
implementation("com.squareup.okhttp3:okhttp:4.9.1")
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.4.32")
-
+ implementation ("io.socket:socket.io-client:2.1.0")
}
// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt
index 8e1957b50..92e514c18 100644
--- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt
+++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/activities/ContinuePluginStartupActivity.kt
@@ -21,6 +21,7 @@ import com.intellij.openapi.editor.EditorFactory
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.keymap.KeymapManager
+import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.ui.DialogWrapper
@@ -459,7 +460,7 @@ class WelcomeDialogWrapper(val project: Project) : DialogWrapper(true) {
}
}
-class ContinuePluginStartupActivity : StartupActivity, Disposable {
+class ContinuePluginStartupActivity : StartupActivity, Disposable, DumbAware {
private val coroutineScope = CoroutineScope(Dispatchers.IO)
override fun runActivity(project: Project) {
@@ -539,9 +540,7 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable {
GlobalScope.async(Dispatchers.IO) {
startContinuePythonServer(project)
- val wsUrl = getContinueServerUrl().replace("http://", "ws://").replace("https://", "wss://")
val ideProtocolClient = IdeProtocolClient(
- "$wsUrl/ide/ws",
continuePluginService,
defaultStrategy,
coroutineScope,
@@ -557,16 +556,12 @@ class ContinuePluginStartupActivity : StartupActivity, Disposable {
coroutineScope
)
- val newSessionId = ideProtocolClient.getSessionIdAsync().await()
- val sessionId = newSessionId ?: ""
-
// Reload the WebView
continuePluginService?.let {
val workspacePaths =
if (project.basePath != null) arrayOf(project.basePath) else emptyList()
continuePluginService.worksapcePaths = workspacePaths as Array
- continuePluginService.sessionId = sessionId
}
EditorFactory.getInstance().eventMulticaster.addSelectionListener(
diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt
index e0d61db7a..5fc62fc12 100644
--- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt
+++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/continue/Diffs.kt
@@ -12,6 +12,7 @@ import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.fileEditor.FileDocumentManager
+import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import com.intellij.openapi.util.Disposer
@@ -46,7 +47,7 @@ interface DiffInfo {
var dialog: DialogWrapper?
}
-class DiffManager(private val project: Project) {
+class DiffManager(private val project: Project): DumbAware {
private val diffContentFactory = DiffContentFactory.getInstance()
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 77811fc8b..97425c09c 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
@@ -1,5 +1,6 @@
package com.github.continuedev.continueintellijextension.`continue`
+import com.github.continuedev.continueintellijextension.activities.getContinueServerUrl
import com.github.continuedev.continueintellijextension.services.ContinuePluginService
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
@@ -9,6 +10,7 @@ import com.intellij.openapi.editor.SelectionModel
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.fileEditor.TextEditor
+import com.intellij.openapi.project.DumbAware
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.MessageType
import com.intellij.openapi.ui.popup.Balloon
@@ -25,9 +27,18 @@ import kotlinx.coroutines.*
import okhttp3.*
import java.io.File
import java.net.NetworkInterface
+import java.net.URI
+import java.util.*
+import io.socket.client.IO
+import io.socket.client.Socket
+import java.net.URLEncoder
+
+fun uuid(): String {
+ return UUID.randomUUID().toString()
+}
-data class WebSocketMessage(val messageType: String, val data: T)
+data class WebSocketMessage(val messageType: String, val messageId: String, val data: T)
data class WorkspaceDirectory(val workspaceDirectory: String)
data class UniqueId(val uniqueId: String)
data class ReadFile(val contents: String)
@@ -70,17 +81,16 @@ fun getMachineUniqueID(): String {
return "No MAC Address Found"
}
-class IdeProtocolClient(
- private val serverUrl: String = "ws://localhost:65432/ide/ws",
+class IdeProtocolClient (
private val continuePluginService: ContinuePluginService,
private val textSelectionStrategy: TextSelectionStrategy,
private val coroutineScope: CoroutineScope,
private val workspacePath: String,
private val project: Project
-) {
- private val eventListeners = mutableListOf()
+): DumbAware {
private var webSocket: WebSocket? = null
- private val okHttpClient = OkHttpClient()
+
+ private var socket: Socket? = null
val diffManager = DiffManager(project)
@@ -88,73 +98,45 @@ class IdeProtocolClient(
initWebSocket()
}
- var sessionId: String? = null
-
- fun getSessionIdAsync(): Deferred = coroutineScope.async {
- withTimeoutOrNull(10000) {
- while ((webSocket?.queueSize() ?: 0) > 0) {
- delay(1000)
- }
- }
- println("Getting session ID")
- val respDeferred = sendAndReceive("getSessionId", mapOf())
- val resp = respDeferred.await() // Awaiting the deferred response
- println(resp)
- val data = (resp as? Map<*, *>)?.get("data") as? Map<*, *>
- sessionId = data?.get("sessionId").toString()
- println("New Continue session with ID: $sessionId")
- sessionId
- }
-
- private val pendingResponses: MutableMap> =
- mutableMapOf()
-
- fun sendAndReceive(
- messageType: String,
- data: Map
- ): CompletableDeferred {
- val deferred = CompletableDeferred()
- pendingResponses[messageType] =
- deferred // Store the deferred object for later resolution
-
- sendMessage(messageType, data)
- return deferred
- }
-
private fun serializeMessage(data: Map): String {
val gson = Gson()
return gson.toJson(data)
}
- private fun handleWebsocketMessage(webSocket: WebSocket, text: String) {
+ private fun send(messageType: String, messageId: String, data: Any) {
+ val wsMessage = WebSocketMessage(
+ messageType,
+ messageId,
+ data
+ )
+ socket?.send("message", Gson().toJson(wsMessage))
+ }
+
+ private fun handleWebsocketMessage(text: String) {
coroutineScope.launch(Dispatchers.IO) {
val parsedMessage: Map = Gson().fromJson(
text,
object : TypeToken