continue-custom/binary
2025-04-23 08:48:31 -07:00
..
.idea add download step 2024-10-14 17:24:44 -07:00
pkgJson Squash commits for JB integration testing 2024-12-17 09:12:33 -08:00
src LLMLogFormatter: rich logging to an output stream 2025-04-07 14:11:38 -04:00
test feat: remove models property 2025-04-08 19:28:48 -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 improved Start Core Dev Server 2025-04-22 12:51:38 -07:00
core-dev-server.js jetbrains cross env support for CE 2025-02-28 17:25:35 -08: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 Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
package.json improved Start Core Dev Server 2025-04-22 12:51:38 -07:00
prompt-logs.js prompt logs cross platform 2025-02-28 17:45:13 -08:00
README.md temporary fix for encoding packaging issues 2024-08-17 12:31:15 -07:00
tsconfig.json feat: add tsc:watch cmd to vs code 2024-12-09 15:57:48 -08: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.

Building

npm run build

Testing

npm run test