parrot-extension/BUILD.md

122 lines
1.2 KiB
Markdown

# Development
Reworking.
Using Debian Bookworm (stable/12).
# Dependencies
Install OS dependencies.
Perhaps:
```
sudo apt install \
git python3-venv python3-virtualenv python3-pip
```
# Setup
Python setup, such as:
```
virtualenv venv
source venv/bin/activate
```
# Build
Thusly:
```
make
```
Same as:
```
make all
```
Build parts, in order:
```
make setup
make server
```
## Extension build
```
src/extensions/vscode/build/continue-patch.vsix
```
## continue_server build
```
src/dist/continue_server
```
# Versions
To update versions:
```
${EDITOR} CHANGELOG
# git tag v0.0.0
```
# Clean
Clean.
```
make clean
```
# Push
Push to git repo.
```
make push
```
# Search
Meilisearch is used.
Need to build it.
Used Rust 1.73.0.
```
git clone --recursive https://github.com/meilisearch/meilisearch
cd meilisearch/
cargo build
./target/debug/meilisearch
# ctrl-c, maybe note key.
mkdir -p ~/.continue/server/
cp -p ./target/debug/meilisearch ~/.continue/server/
# newly created:
cp -a data.ms dumps ~/.continue/server/
```
# Run
Server:
```
./parrot-server
```
# Extension
Perhaps
```
cd src/extensions/vscode/
yarn
yarn package
```
# llama.cpp
Use `llama.cpp`.