continue-custom/binary
Nate Sesti ca884b8212
fix ollama onboarding (#1539)
* allow setting apiBase for bedrock provider

* ⚡️ better linking

* ✨ new prompt file action

* ⚡️ strip <COMPLETION> from GPT-4 completion

* continue proxy FIM support

* warn user if potentially dangerous command is generated

* tab autocomplete docs

* docs: update PR template (#1531)

* chore: add docs to install script (#1533)

* fix(extensions): schema for db ctx provider (#1534)

* fix(extensions): schema for db ctx provider

* fix: invalid enum

* prettierignore

* docs: add docs and schema for "OS" provider (#1536)

* tests (#1501)

* 👷 CI for jetbrains

* default working dir

* changelog

* build binaries

* binary testing setup

* idesettings

* core binary testing

* run binary tests in ci

* remove unused targets

* needs build

* console.log bin contents

* fix ci

* fix win32 binary download

* test

* no linux arm64

* macos latest

* macos-12

* binary permissions

* upload logs

* fix

* upload full folder as binary artifact

* test

* test macos only

* set full execute permissions

* copy sqlite binary

* cd

* it worked!

* build again in test job

* debug

* remove timeout

* info

* log

* log2

* more logs

* catch

* fewer logs

* test all platforms

* test downloaded artifact

* needs build

* updates

* build

* false

* release

* add tag and upload binaryes

* change tag name

* proper artifact upload

* jest updates

* ✅ generate a few unit tests with Continue

* fix imports related to IdeSettings

* run tsc on PRs

* remove shareSession command (unused)

* update release process

* update plugin version

* don't show ghost text when jetbrains completion visible

* run jetbrains ci in main

* check ts in dev

* ignore .env

* 🚑 fix constant warnings when onboarding with Ollama

---------

Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
2024-06-21 11:09:03 -07:00
..
pkgJson 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
src fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
test fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
.continueignore Preview (#1114) 2024-04-12 11:54:58 -07:00
.gitignore publish stubs (#1472) 2024-06-12 22:30:27 -07:00
build.js Multi-Build/Package VS Code extensions on single computer. (#1473) 2024-06-14 10:43:31 -07:00
importMetaUrl.js Preview (#1114) 2024-04-12 11:54:58 -07:00
jest.config.js fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
package-lock.json fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
package.json fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00
README.md 🎨 Refactor core (#1281) 2024-05-24 19:38:13 -07:00
tsconfig.json fix ollama onboarding (#1539) 2024-06-21 11:09:03 -07:00

Continue Core Binary

The purpose of this folder is to package Typescript code in a way that can be run from any IDE or platform. We first bundle with esbuild and then package into binaries with pkg.

The pkgJson/package.json contains instructions for building with pkg, and needs to be in a separte folder because there is no CLI flag for the assets option (it must be in a package.json), and pkg doesn't recognize any name other than package.json, but if we use the same package.json with dependencies in it, pkg will automatically include these, significantly increasing the binary size.

The build process is otherwise defined entirely in build.js.

List of native modules

  • sqlite3/build/Release/node_sqlite3.node (*)
  • @lancedb/**
  • esbuild?
  • @esbuild?
  • onnxruntime-node?

List of dynamically imported modules

  • posthog-node
  • @octokit/rest
  • esbuild

List of .wasm files

  • tree-sitter.wasm
  • tree-sitter-wasms/

(*) = need to download for each platform manually

Debugging

To debug the binary with IntelliJ, set useTcp to true in CoreMessenger.kt, and then in VS Code run the "Core Binary" debug script. Instead of starting a subprocess for the binary and communicating over stdin/stdout, the IntelliJ extension will connect over TCP to the server started from the VS Code window. You can place breakpoints anywhere in the core or binary folders.