2023-10-31 09:04:35 -06:00
|
|
|
# Development
|
|
|
|
Reworking.
|
|
|
|
|
|
|
|
Using Debian Bookworm (stable/12).
|
|
|
|
|
|
|
|
|
2023-10-31 09:47:07 -06:00
|
|
|
# Dependencies
|
2023-10-31 09:04:35 -06:00
|
|
|
Install OS dependencies.
|
|
|
|
|
|
|
|
Perhaps:
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt install \
|
2023-10-31 09:47:07 -06:00
|
|
|
git python3-venv python3-virtualenv python3-pip
|
|
|
|
```
|
|
|
|
|
2023-10-31 10:12:59 -06:00
|
|
|
|
|
|
|
# Setup
|
|
|
|
Python setup, such as:
|
2023-10-31 09:47:07 -06:00
|
|
|
|
|
|
|
```
|
|
|
|
virtualenv venv
|
|
|
|
source venv/bin/activate
|
2023-10-31 09:04:35 -06:00
|
|
|
```
|
|
|
|
|
2023-10-31 10:12:59 -06:00
|
|
|
|
2023-10-31 09:04:35 -06:00
|
|
|
# Build
|
|
|
|
Thusly:
|
|
|
|
|
|
|
|
```
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
|
|
|
Same as:
|
|
|
|
|
|
|
|
```
|
|
|
|
make all
|
|
|
|
```
|
|
|
|
|
|
|
|
Build parts, in order:
|
|
|
|
|
|
|
|
```
|
2023-10-31 10:12:59 -06:00
|
|
|
make setup
|
|
|
|
make server
|
2023-10-31 09:04:35 -06:00
|
|
|
```
|
|
|
|
|
2023-11-13 08:33:36 -07:00
|
|
|
Extension build:
|
|
|
|
|
|
|
|
```
|
|
|
|
src/extensions/vscode/build/continue-patch.vsix
|
|
|
|
```
|
|
|
|
|
2023-10-31 09:04:35 -06:00
|
|
|
|
|
|
|
# Versions
|
|
|
|
To update versions:
|
|
|
|
|
|
|
|
```
|
|
|
|
${EDITOR} CHANGELOG
|
|
|
|
# git tag v0.0.0
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
# Clean
|
|
|
|
Clean.
|
|
|
|
|
|
|
|
```
|
|
|
|
make clean
|
|
|
|
```
|
2023-10-31 10:14:58 -06:00
|
|
|
|
|
|
|
|
|
|
|
# Push
|
|
|
|
Push to git repo.
|
|
|
|
|
|
|
|
```
|
|
|
|
make push
|
|
|
|
```
|
2023-10-31 10:36:44 -06:00
|
|
|
|
2023-10-31 11:31:12 -06:00
|
|
|
|
|
|
|
# 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/
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2023-10-31 10:36:44 -06:00
|
|
|
# Run
|
|
|
|
|
|
|
|
Server:
|
|
|
|
|
|
|
|
```
|
2023-11-23 12:08:43 -07:00
|
|
|
./parrot-server
|
2023-10-31 10:36:44 -06:00
|
|
|
```
|
2023-10-31 11:44:14 -06:00
|
|
|
|
|
|
|
|
|
|
|
# Extension
|
|
|
|
Perhaps
|
|
|
|
|
|
|
|
```
|
|
|
|
cd src/extensions/vscode/
|
|
|
|
yarn
|
|
|
|
yarn package
|
|
|
|
```
|
2023-10-31 12:59:28 -06:00
|
|
|
|
2023-11-15 15:24:27 -07:00
|
|
|
# llama.cpp
|
|
|
|
Use `llama.cpp`.
|