diff options
author | Nate Sesti <33237525+sestinj@users.noreply.github.com> | 2023-10-09 18:37:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 18:37:27 -0700 |
commit | f09150617ed2454f3074bcf93f53aae5ae637d40 (patch) | |
tree | 5cfe614a64d921dfe58b049f426d67a8b832c71f /server/README.md | |
parent | 985304a213f620cdff3f8f65f74ed7e3b79be29d (diff) | |
download | sncontinue-f09150617ed2454f3074bcf93f53aae5ae637d40.tar.gz sncontinue-f09150617ed2454f3074bcf93f53aae5ae637d40.tar.bz2 sncontinue-f09150617ed2454f3074bcf93f53aae5ae637d40.zip |
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 <action@github.com>
Diffstat (limited to 'server/README.md')
-rw-r--r-- | server/README.md | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/server/README.md b/server/README.md new file mode 100644 index 00000000..25fb640e --- /dev/null +++ b/server/README.md @@ -0,0 +1,88 @@ +# Continue PyPI Package + +This package contains the [Continue](https://github.com/continuedev/continue) server and core classes needed to build your own recipes. + +Continue is a Python library for automating repetitive sequences of software development tasks using language models. Using our VS Code extension, you can build, run, and refine these recipes as they natively interact with your codebase. Read the docs [here](https://continue.dev/docs) or download the VS Code extension [here](https://marketplace.visualstudio.com/items?itemName=Continue.continue). + +## Continue Server + +The Continue server acts as a bridge between the Continue React app and your IDE, running your recipes and acting on the codebase. + +Start it by running the following commands: + +1. `cd server` +2. Make sure packages are installed with `poetry install` + - If poetry is not installed, you can install with + ```bash + curl -sSL https://install.python-poetry.org | python3 - + ``` + (official instructions [here](https://python-poetry.org/docs/#installing-with-the-official-installer)) +3. `poetry shell` to activate the virtual environment +4. `python3 -m continuedev.server.main` to start the server + +Once you've validated that this works, you'll often want to use a debugger, in which case we've provided a launch configuration for VS Code in `.vscode/launch.json`. To start the debugger in VS Code, ensure that the workspace directory is the root of the `continue` repo, then press F5. + +> [!NOTE] +> To start the debugger, you'll have to select the poetry Python interpreter +> (`/path-to-poetry-venv/bin/python3`) in the bottom right of the VS Code window. If you +> don't see this, you may have to install the [Python +> extension](https://marketplace.visualstudio.com/items?itemName=ms-python.python). + +## Scripts + +`poetry run typegen` to generate JSONSchema .json files from the Pydantic types defined in the `models` directory. + +`poetry build` will output wheel and tarball files in `./dist`. + +## Writing Steps + +See the `continuedev/libs/steps` folder for examples of writing a Continue step. See our documentation for tutorials. + +## How to contribute + +Open a [new GitHub Issue](https://github.com/continuedev/continue/issues/new) or comment on [an existing one](https://github.com/continuedev/continue/issues). Let us know what you would like to contribute, and we will help you make it happen! + +For more a more detailed contributing guide, see [CONTRIBUTING.md](../CONTRIBUTING.md). + +## Install from source + +#### 1. Clone this repo + +Recommended: Run this command to use SSH + +```bash +git clone git@github.com:continuedev/continue.git +``` + +Alternative: Run this command to use HTTPS + +```bash +git clone https://github.com/continuedev/continue +``` + +#### 2. Install Continue + +Run this command to use the install script + +```bash +cd continue/extension/scripts && python3 install_from_source.py +``` + +> [!IMPORTANT] +> Ensure you have a Java Runtime Environment (JRE) installed. Verify this by typing `java +-version` in your command prompt or terminal. If a version number appears, you're set. +> If not, download and install a JRE from Oracle's website or through a package manager, +> for example Homebrew. +> +> ```sh +> brew install openjdk@11 +> ``` + +# Understanding the codebase + +- [Continue Server README](./README.md): learn about the core of Continue, which can be downloaded as a [PyPI package](https://pypi.org/project/continuedev/) +- [VS Code Extension README](../extension/README.md): learn about the capabilities of our extensionโthe first implementation of Continue's IDE Protocolโwhich makes it possible to use use Continue in VS Code and GitHub Codespaces +- [Continue GUI README](../extension/react-app/): learn about the React app that lets users interact with the server and is placed adjacent to the text editor in any supported IDE +- [Schema README](../schema/README.md): learn about the JSON Schema types generated from Pydantic models, which we use across the `server/` and `extension/` directories +- [Continue Docs README](../docs/README.md): learn how our [docs](https://continue.dev/docs) are written and built +- [How to debug the VS Code Extension README](../extension/src/README.md): learn how to set up the VS Code extension, so you can debug it |